Planar Mapping

Blitz3D Forums/Blitz3D Programming/Planar Mapping

Volution(Posted 2004) [#1]
Hi,

I wonder how can i calculate the correct uv for the vertices of a polygon if i use an arbitrary direction when i do planar mapping?. For example not one of the standards like 1,0,0 (YZ plane) but 0.5, 0.5, 0. Another example would be the way 3dsmax uvwmap modifier calculates new uv coordinates when you move the plane gizmo for planar mapping.

Thank You


Richard Betson(Posted 2004) [#2]
You can look at YAL (Yet Another Lightmapper) here:

http://www.blitzbasic.com/codearcs/codearcs.php?code=794

If you look through the functions it shows how to planar map. :)

L8r,


N(Posted 2004) [#3]
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=06June2000-LightmapStorage&forum=askmid&id=-1
This may or may not be the particular subject you're interested in, but I'm tryin' my best. Mostly theory and not practice, though.


Volution(Posted 2004) [#4]
Richard and Noel, both of your references uses standard planes for planar mapping and i know how to do that. My question was for the arbitrary directions not the standard ones but thanks for your answers anyway.


Richard Betson(Posted 2004) [#5]
/me hides as he does not know :) lol

L8r,