Fast CSG

Blitz3D Forums/Blitz3D Programming/Fast CSG

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here is a demo of a 32-sided cylinder set at a 45 degree angle carving a chunk out of a cube. The process takes 7 milliseconds(!). Hit any key to start:
http://www.leadwerks.com/post/fastcarve.zip

If I can do a complex boolean like this in basically no time, real-time processing for shadow volumes, BSP cuts, occlusion, etc., should be no problem.

For the CShop 5 lightmapper, I am going to attempt to use a shadow volume method rather than a raytracer. It's project the edges of brushes onto other brushes and trim away the overlaps. At this speed, it might be possible to perform lighting in a few seconds. Maybe even real-time. I don't know yet.