From: <Art...@ao...> - 2001-02-25 00:46:52
|
David wrote - >Adding a primitive in C++ that would behave similarly but more efficiently >or triangles would be relatively easy. >Alpha is harder, because to render translucent surfaces accurately, you need >to draw them from back to front. At present, Visual doesn't need to sort >most primitives (because they are drawn opaquely, and can be zbuffered). If >you want to attack this, I can give you some pointers - but it will take >some effort. An overview of the cvisual's rendering approach might help me get started. What I am seeing in the code, to the extent I follow it, is not what I would expect. If I look at the code for a glut sphere or cone I see it being built geometrically from triangle fans and strips. Cvisual seems to look more like ray-tracing code - which I have never been able to follow - though wish I could. Is there anything available that might help me better understand cvisual at this level? ART |