kon
09-06-2005, 04:25 AM
Hi
a texture with some shape defined in the alpha channel is rendered using a quad. Now, with enabled alphatesting just the pixels passing the alphatest are being rendered.
Now, I'm trying to build a solid object out of this. With solid I mean to render two quads in xy with different z and then "connect" the borders (alphatested!) of these two.
One solution would be first to find the contour(s) of the geometry "analytically" in the texture and then extrude these contour(s) to create the geometry. This is costly in computational time when the alpha values change interactively!
Is there any other (OpenGL-) way to get this solid object?
Any idea is appreciated!
Thanks
kon
a texture with some shape defined in the alpha channel is rendered using a quad. Now, with enabled alphatesting just the pixels passing the alphatest are being rendered.
Now, I'm trying to build a solid object out of this. With solid I mean to render two quads in xy with different z and then "connect" the borders (alphatested!) of these two.
One solution would be first to find the contour(s) of the geometry "analytically" in the texture and then extrude these contour(s) to create the geometry. This is costly in computational time when the alpha values change interactively!
Is there any other (OpenGL-) way to get this solid object?
Any idea is appreciated!
Thanks
kon