Advertisement

Tri-planar mapping

Started by August 31, 2004 04:58 PM
-1 comments, last by llvllatrix 20 years, 3 months ago
Hi guys, I'm trying to create a tri-planar mapping algorithm. The algorithm goes something like this: If the normal of the face is more towards the x axis, then project the texture such that the texture's normal lies on the x; conversely for the other two axis. The problem with the approach is if vertices that compose a triangle lie on different axis, interpolation should be done. The only way I've thought of to approach the problem is cube mapping; feed the algorithm warped normals and hope for the best. The only problem I can think of is the texturing would be perspective - I need it to be like a normal texture map. Cg might be a way out but its kinda a last resort. Any ideas? tia, - llvllatrix

This topic is closed to new replies.

Advertisement