Stencil Shadow Volume demo

Blitz3D Forums/Blitz3D Programming/Stencil Shadow Volume demo

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.

Is it possible to create triangles with c++ dlls in Blitz? If so then it would be best to write a c++ dll that creates the volumes themselves, if it is not possible maybe it could return the positions of all the volume's triangles. This way it should be a lot faster.

EDIT2 - correction:
What would have to be done (correct me if I'm wrong):
- go through all of the occluder's triangles and drop the ones not facing the light
- go through all these triangles and save the edges that are not in common with one other triangle's edge
- now extrude every edge as far away as possible
- done

I wrote the dll right now if I had ever coded in c++ but I haven't. If someone would like to write it, contact me whenever you have a question. I could also write it as a Function in Blitz but that would be very slow.