One more question about shadows.
This is for a flight sim project, that I am doing preliminary testing for.
ViewportFull.range=100000;// require visibility of at least 100KM
I have to create shadows for aircraft when they come below 100M to the ground or water, and when they are closer than 1KM to the camera.
Shadow mapping over such a huge area just does not work.
I have tried stencil shadow creation, to test it out., but I must be doing something wrong.
D.shdMode(SHD_STENCIL); is in the "void InitPre()".
case (RM_SHD_STENCIL): with the object to cast the shadow under this, inside the "void Render()" function.
There is an active Sun , so I assume no other light source is required.
What am I doing wrong? Or is there a sample code dealing with stencil shadow creation?
Thanks Syd.
EDIT: OK found the problem, should be using "Mesh::drawStencilShadow()".
It appears to be broken though: