3D World space to 2D (texture) lightmap?

Blitz3D Forums/Blitz3D Programming/3D World space to 2D (texture) lightmap?

Richard Betson(Posted 2003) [#1]
Does anyone have function or sourece to illustrate this?

What I want to do is use a triangle in a mesh (unwelded I think) and calc the worldspace and UV then draw to that triangles texture (ala. lightmapping). This I think is also sometime called is point in triangle.

There are several examples of this in other lightmapping BB programs and tutorials on the net but I seem to be getting it wrong.

It would be great if someone had a function to allow me to pass a surface, trinagle, or alike and be able to render to that triangles/surface.

Thanks for any help. :)

L8r,


Rob(Posted 2003) [#2]
Birdie's done this with sphere paint demo on cd I think...