Hello, all.

I need to implement something like 3dmax boolean operation - substruction. My objects can be very complex, how to implement this?

I do not know MAX specifically, but you’re probably talking about Constructive Solid Geometry, and, unfortunately, there is no built-in support for that in OpenGL (that I’m aware).

If you’re just building static scenes, you might be able to construct a mesh in max, then export it to some format your OGL can read (Wavefront OBJs are a good choice.)


There is a way to fake this with the stencil buffer.