1
General / Re: Transfer camera parameters to a minimal OpenGL renderer
« on: February 15, 2023, 06:03:52 PM »
Thank you Alexey,
I ended up with this guide : https://strawlab.org/2011/11/05/augmented-reality-with-OpenGL/
I had to transpose the matrix before using it.
Also, since cx and cy are already centered :
(width - 2*cx)/width -> -2*cx/width
and
(-height + 2*cy)/height -> 2*cy/height
I ended up with this guide : https://strawlab.org/2011/11/05/augmented-reality-with-OpenGL/
I had to transpose the matrix before using it.
Also, since cx and cy are already centered :
(width - 2*cx)/width -> -2*cx/width
and
(-height + 2*cy)/height -> 2*cy/height