-
advanced csg using stencil buffer
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!
i am a begginner!

-
Advanced Member
Frequent Contributor
Re: advanced csg using stencil buffer
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
-
Re: advanced csg using stencil buffer
-
Re: advanced csg using stencil buffer
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.
-
Re: advanced csg using stencil buffer
hky I'd be interrested in "computational" CSG, ie, real geometry calculation.
-
Re: advanced csg using stencil buffer
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules