KhronosGroup / OpenGL-Registry

OpenGL, OpenGL ES, and OpenGL ES-SC API and Extension Registry
690 stars 276 forks source link

Focal Length #470

Closed shiyani21 closed 3 years ago

shiyani21 commented 3 years ago

I am doing transformation from physics simulation to image space, I keep getting the focal length to be 0.234, and I have found using glviewport how to get coordinated from clip space to window space but since my focal length is so tiny the transformed pixel coordinates only move around in the tiny space. How do i fix my focal length? is there a magnification ratio?

pdaniell-nv commented 3 years ago

A better place for programming questions would be here: https://community.khronos.org/c/opengl-general/opengl-basic-coding/28