Character Shadows

Blitz3D Forums/Blitz3D Programming/Character Shadows

"sswift, can you just clarify that point about your shadow system not being possible with Blitz terrains?"


You can use the Shadow system if you have a Blitz terrain in the scene, but you can't specify the terrain as a shadow receiver, because there is no way for the shadow system to get the vertices and polygons which make up its mesh. Any kind of mesh terrain would work just fine, but Blitz's Roam terrains are dynamic, and Blitz will not tell you how many vertcies it has or where they are at any particular time. So it is impossible to cast shadows onto them.

There is however a workaround if you're truly desperate to use my shadow system with a Blitz terrain. In the code archives there is code for "towel shadows". These towel shadows work with terrains because they simply drape over the terrain in an imprecise manner using the linepick commands. They however do not support true shadows. They're just black dots under your character as written. However, if you place one of these towel shadows on your terrain and specify it as a shadow recevier, then you could cast a character shadow onto it. But it would have to be large enough to catch all of the shadow.

I suggest you don't use Blitz terrains though. They're very simple to implement to be sure, but they're also very expensive to render. I can make a mesh terrain with the same level of detail that runs twice as fast as a Blitz terrain, and has more detailed texturing.