PDA

View Full Version : CSG with OpenGL



glfreak
04-18-2004, 10:06 AM
Hello,

I am trying to implement a CSG-based rendering engine.
Is there a general way to perform CSG operations
(Union, Intersection and Subtraction) accuratelly by traversing a CSG tree?

Let say a room consists of two boxes subtracted.


Room
|
|
-
/ \
/ \
/ \
Box1 Box2Thanks.

Hampel
04-18-2004, 11:20 AM
OpenCSG.org (http://opencsg.org/)

dorbie
04-18-2004, 11:43 AM
Wow full GPL on a lib, that's pretty darned viral. I've used LGPL libs before but GPL on something like this is a non starter for most people.

heppe
04-18-2004, 08:00 PM
don't forget that full csg requires view-dependent sorting and depth peeling. you'll need multiple passes.