Notifications
Clear all
[Closed] World UV to unit vector?
Jul 06, 2009 3:00 pm
Would anyone be able to point me in the right direction to be able to figure out how to calculate a unit vector from world UV space? For example if I have values of U:.65 V:.45 how could I calculate where that would be in XYZ space if it was one unit from 0,0,0?
Thanks,
Cg.
4 Replies
Jul 06, 2009 3:00 pm
Wouldn’t it just be. . .
normalize [.65, .45, 0.0]
or maybe I don’t understand the question.
Jul 06, 2009 3:00 pm
Hi Jonlauf, yes you’ve slightly misunderstood the question. The U and the V relate to the lat/long position on a sphere like spherical (2d) UV mapping rather than worldspace (3d) UVW mapping. I should have mentioned spherical environment mapping in my first post to make myself more clear.
Cheers,
Cg.
Jul 06, 2009 3:00 pm
http://mathworld.wolfram.com/MercatorProjection.html
this might help, try the second.