c++ Programming Glossary: pxwidth
Skewed frustum/off-axis projection for head tracking in OpenGL http://stackoverflow.com/questions/16723674/skewed-frustum-off-axis-projection-for-head-tracking-in-opengl well done. Quick demo you might have to adjust wcsWidth pxWidth and wcsPtHead.z . #include glm glm.hpp #include glm ext.hpp.. the screen in mm and in pixels. float wcsWidth 520.0 float pxWidth 1920.0f float wcsHeight heightFromWidth wcsWidth float pxHeight.. heightFromWidth wcsWidth float pxHeight heightFromWidth pxWidth float wcsFromPx wcsWidth pxWidth glm vec3 wcsPtTopLeftScreen..
|