But you'd hide the terrain while rendering the shadow...
Ok you mean an array which stores all the Ground surfaces, not the children...
because is that (the surface) that I need most of the time (really also the walls should be lightmapped if the light is not on the top of the character.
What I'm trying to do, is to retrieve each frame, the surface (triangle or quad) where the player is walking on, so to be able to texture it with a real time shadow lightmap.
I have at the mo' the handle of the mesh, the player is "touching/walking",
but now I need to know
EG: which surface of the room/corridor, is the one to be textured( I don't know if is possible in blitz, to assing a second texture layer just for a "face" of a cube/room, but I hope so).
Which one is below the player's foot ?
Infact at the moment, when I walk in a room, the real time animated shadow, is texturing all the parts of the room with itself, it seems is using the 1st channel of UVmapping, instead of using the whole mesh....
...stucked there
P.S. Tell me if you need screenshot
Ok you mean an array which stores all the Ground surfaces, not the children...
because is that (the surface) that I need most of the time (really also the walls should be lightmapped if the light is not on the top of the character.
What I'm trying to do, is to retrieve each frame, the surface (triangle or quad) where the player is walking on, so to be able to texture it with a real time shadow lightmap.
I have at the mo' the handle of the mesh, the player is "touching/walking",
but now I need to know
EG: which surface of the room/corridor, is the one to be textured( I don't know if is possible in blitz, to assing a second texture layer just for a "face" of a cube/room, but I hope so).
Which one is below the player's foot ?
Infact at the moment, when I walk in a room, the real time animated shadow, is texturing all the parts of the room with itself, it seems is using the 1st channel of UVmapping, instead of using the whole mesh....
...stucked there
P.S. Tell me if you need screenshot