Sign in to follow this  
No_Germs

Subtracting shapes?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this