Ask Your Question

AlexeyIS's profile - activity

2014-06-12 07:56:02 -0600 received badge  Editor (source)
2014-06-11 06:10:28 -0600 received badge  Student (source)
2014-06-10 15:07:50 -0600 asked a question Texture projection, compute UV coordinates

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?

Thanks!