Gilles Posted January 23, 2015 Report Share Posted January 23, 2015 I'm surprised there is not a definition of the coordinate system (u,v) in the original papers about the method PTM. Could you explain the transformations between azimuth/elevation angles and the spatial variables uv (or between cartesian coordinates and the spatial variables uv)? ie. How to pass the light positions (xl,yl,zl) (where zl takes the normalized value 1) to spatial coordinates lu and lv? Thank you for your help Gilles Link to comment Share on other sites More sharing options...
Gilles Posted January 26, 2015 Author Report Share Posted January 26, 2015 Sorry, I didn't read this : "The local coordinate system is defined per vertex, based on the normal and on the tangent and binormal derived from the local texture coordinates" But I don't understand. Have you an exemple in order to illustrate this projection? Link to comment Share on other sites More sharing options...
Bender Posted January 27, 2015 Report Share Posted January 27, 2015 Gilles, Sorry if this wasn't articulated well in the 2001 Siggraph paper. To figure out what your Lu, Lv values are, construct a vector that points to the light source from the center of the image. The first coordinate of that vector is measured along the x axis of the images, the second is along the y axis of the images and the 3rd is perpendicular to those two, pointing up. Now normalize that vector, which is just dividing each of those components by the length of the vector. You should now have each component being between -1 and +1, and their squares adding up to 1. Now just drop that last component, the first two are the Lu, Lv coordinates that specify the lighting directions. cheers, Tom Malzbender Link to comment Share on other sites More sharing options...
Gilles Posted January 30, 2015 Author Report Share Posted January 30, 2015 Thank you Tom for your precisions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.