Cubic, Cylindrical and Spherical texture mapping

Hi All,

I found this very easy to understand tutorial on spherical texture mapping http://www.mvps.org/directx/articles/spheremap.htm. Cylindrical is very easy to derive but what about Cubic? Can you direct me to a similar tutorial on cubic mapping?

Thanks,

Alberto

Cubic mappic is also similar, basically you use a planar mapping method (you do know how to do that?) and project from all six sides of the cube, then you use the normal and select one of those projections based on witch one it’s facing the most.

zeoverlord,

I know, but I was looking for a pseudo code to code it faster…

Hi All,

Can anybody provide me a pseudo code to map triangles normals to a cubic mapping?

Thanks,

Alberto