• Advertisement
Sign in to follow this  

Subtracting shapes?

This topic is 4752 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

suppose i wish to draw a cube with a cylindar hole in it... is it possible to do some sort of subtraction between a cube and a cylindar to get to proper result? i have heard of something like that before...

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
you can either do geometrically yourself and then just render the final result with opengl. search for constructive solid geometry(csg) for how to subtract one geometry from another.

or you can do image space csg using opengl's stencil buffer, like this: http://www.opencsg.org/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement