Terrain + Shadow

Blitz3D Forums/Blitz3D Programming/Terrain + Shadow

Eole(Posted 2003) [#1]
Hi !

I want make some shadow in my terrain (create with load terrain). So I make a mesh who his vertex is deformed like the terrain.

But there is a problem the in rendering order .

If I use EnityOrder on my terrain, the result it's very strange , the terrain is not rendering correctly

Anybody know, if there is a bug with terrain and entityorder


jfk EO-11110(Posted 2003) [#2]
I would rather position the shadow mesh a bit higher than the terrain and not use entityorder.


Eole(Posted 2003) [#3]
I aldredy do this, but wwith the LOd it's not good for object are away from the camera, and somtime you can see that the shadow is not realy on the ground . . .


Rob(Posted 2003) [#4]
Your problem is you are relying on the mesh. Is this flex? you must use terrainY or terrainheight to provide the mesh height coordinates. These are unaffected by LOD.