Shadows

Blitz3D Forums/Blitz3D Programming/Shadows

Ya know if people emailed me and teold me they were having problems I might be able to help you optimize the use of it, or use the data to help me optimize the system further. :-)

One thing I need to know is what is causing slowdown. It can either be rendering the shadow textueres, or it can be culling the polygons, or it can be uploading the new meshes to the 3D card. I wonder if perhaps I should create a built in profiler to tell you how much time each section takes.

In Jedive's case, sounds like the number of polygons in the level is the problem. There's two ways to fix that. Either you split your level up into multiplie entities, or I write something into the system for handling static receivers which breaks stuff up internally to speed culling.

So you see, the system's not unusable in that case. Jedive just didn't want to subdivide his level to help it out. :-)

Anyway the only thing I can't really optimize is the cost for rendering the shadows. That is just a matter of 3d cards being slow to copy from the screen to a texture buffer. But part of the reason I can't optimize that further is because I can't get enough information about animated character to avoid rendering a new shadow texture every frame.