X,Z to U,V

Blitz3D Forums/Blitz3D Programming/X,Z to U,V

Ferret(Posted 2005) [#1]
Hi,

I got shadows using a towel mesh textured with the shadow.
Now i was thinking of getting rid of the mesh and paint the texture directly on to the terrain mesh.

The terain mesh is 256x256 scaled to 25600x25600 and the colormap is 512x512. The shadow texture is 256x256 and is loaded with the flags 16+32 to prevent wrapping.

How do i get the coordinates for positioning the shadow at the player?


poopla(Posted 2005) [#2]
That's going to be considerably slower and extremely low detail with any decently sized terrain.


Ferret(Posted 2005) [#3]
I see, so i'm better of with towel meshes??


poopla(Posted 2005) [#4]
In that case, I believe you would be. You'll get much much prettier results.


Ferret(Posted 2005) [#5]
Ok, thank you for the help ;)