PDA

View Full Version : advanced csg using stencil buffer



havi888
05-27-2004, 09:25 PM
as we kown,in OGL we can get a fake csg by using stencil buffer,but a true boolean operations should produce one true solid after oparetion,what should i do to find the valid point of intersections to construt the true solid.
need your advices or some code should be better,
thanks a lot!

-NiCo-
05-28-2004, 02:55 AM
have a look at http://www.opencsg.org , this may be what you're looking for.
Otherwise try a google search on csg + opengl, there are a number of possible implementations.

Nico

jdz_simon
06-01-2004, 10:09 PM
good!

hkyProgrammer88
06-21-2004, 09:46 PM
Hello.

I have a recent CSG program and website I did for a class project. If anyone is interested I could clean it up and give it out cause it does teach how to do "real" CSG.

Michael Steinberg
06-22-2004, 12:55 AM
hky I'd be interrested in "computational" CSG, ie, real geometry calculation.

hkyProgrammer88
06-22-2004, 10:26 PM
Hello,

Here is a link to the CSG tutorial I am re-writing. It is not complete yet, but should be so in about 24 to 48 hours. Currently, it talks about splitting edges and polygons. By tommorow I will post up doing the set operations and using a binary tree to keep track of all the splits.

If you have specific questions or want me to add or remove something from the tutorial, email me at ahassan@ucalgary.ca .

Link to CSG tutorial:
http://pages.cpsc.ucalgary.ca/~hassana/csg/csg_tut.html

PS: I will add sample code in C\C++, Java and Visual Basic once I finish the tutorial.