How High

Blitz3D Forums/Blitz3D Programming/How High

Marg,

The way I created full black shadows for virus remake was by overlaying a texture on the landscape and adjusting u,v for each vertice.

Pseudo Code

Create a texture, multiply blend
Create a shadowcamera using ortho view mode
Set cameraclscolor to 255,255,255.
Use a cameraviewport the same size as the texture
Point shadowcamera at the landscape from high above
{you'll need to fiddle with the height}
Hide all light
Hide the landscape.
Renderworld()
Copyrect the cameraviewport to the texture

I've been working on the game for the last few days but can send you some working code if you want?

Stevie