Ray casting with CSG tree
I'm working a project in which I have to perform ray casting and use CSG 开发者_Go百科trees. But I don't know how to use the CSG trees or implement it for this project. I can do the ray cast and give the final answer. My problem is really how to implement the tree and link it.
The following PhD thesis details various CSG rendering techniques in OpenGL. Part of the thesis illustrates how CSG trees are constructed and simplified. A program (with full C++ source code) demonstrates the various algorithms mentioned in the thesis and will also give you an implementation of a CSG tree.
精彩评论