Closed bigdimboom closed 6 years ago
o.k. I think I found the answer.
RenderingParameters
has a get_modelview()
and get_projection()
function. They use glm
actually, and for the projection, you'll get a glm::ortho(...)
matrix back, which should be "OpenGL-compliant".
The projection matrix doesn't really have anything to do with Webcam.
What do you mean "flip" - transpose? And what exactly are you "flipping"?
Good that you figured it out :-)
The flip in "2." is probably because some libraries use the top-left corner as image origin (0, 0) while others use the bottom-left.
I'm trying to get opengl and the fitting algorithm working. What's the correct way of using "RenderingParameters". What's coordinates convention for this class? How can I get the correct opengl model view projection from this class. I tested the rendering with my own projection matrix. It looks like mode view in this class is working fine. The projection might be reversed.
Then, I will be using projection method to get the projected uv and do the textured mapping without extracting isomap first. What's projection matrix for getting UV mapping for vertices?