Texture projection, compute UV coordinates

asked 2014-06-10 15:07:50 -0500

AlexeyIS gravatar image

updated 2015-09-28 04:20:36 -0500

Hi everybody, I’m trying to project an image to the plane. I was using this approach from opencv and also read this post. The question is how do I get a UV coordinates for the image.

Here is my scenario: plane 16x12 ( blue) and image with the translation at 0,4,0 (red cross) and the rotation matrix ( 100 010 001 )

image description

I was using this, but I get really wrong UV coordinates i was using this formulas from opencv article:

image description

Result for example for the point ( -8, 0 , -6 ) -> (1.33, -0.66) and i expect it to be -> (0,0)

Do you have any ideas, what I do wrong and how it should be done?


edit retag flag offensive close merge delete