Forum Discussion
rcapote
10 years agoHonored Guest
What is wrong with my projection?
I'm working on implementing OVR into my program, but have run into a weird issue where my triangles are being skewed incorrectly. Here is an image to demonstrate: http://i.imgur.com/FtpGXQ6.png ...
rcapote
10 years agoHonored Guest
In my OP the code I posted a clip marked as "view matrix", which is the function called VR::getViewMatrix(eye). I'm currently testing in extended mode, and I default the window size to 1920x1080. Each eye texture is {w=1182 h=1461 }
In my loop, for each eye I call:
My function for assigning the view matrix to the shader
In my loop, for each eye I call:
glm::mat4 viewMat = VR::getViewMatrix(eye);
_context.projViewMatrix = VR::_vrContext.eyeProj[eye] * viewMat;
My function for assigning the view matrix to the shader
void setUniformMat4(const char* name, glm::mat4 matrix)
{
GLuint location = glGetUniformLocation(RenderContext::_context.boundShader.program, name);
glUniformMatrix4fv(location, 1, GL_FALSE, glm::value_ptr(matrix));
}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months agoAnonymous
- 3 months ago