Triangle sorting / blending question

Blitz3D Forums/Blitz3D Programming/Triangle sorting / blending question

Ok, I think I get you ...

Assume MAINcamera is the main cam you use to show your visible level.
Set up a LIGHTcamera and position it far away from the main scene.
Set cameraclsmode to false, true
Create your shadow mesh
Set entityfx to 1
Colour it black
Set it's entityorder to be drawn last
Parent it to the LIGHTcamera
Position it the same as the visible level, but relative to the LIGHTcamera, rather than the MAINcamera.
Parent all your light cone meshes to the LIGHTcamera

Then do a 2 pass render ....

;render main camera
cameraprojmode MAINcamera, 2
cameraprojmode LIGHTcamera, 0
renderworld()

;render light camera over the top
cameraprojmode MAINcamera, 0
cameraprojmode LIGHTcamera, 2
renderworld()


Stevie