Forum Discussion
godjilla
10 years agoHonored Guest
struggling with rendering on Oculus [sdk 0.7 / 0.8]
Hi. I'm an Oculus development beginner. I use OpenGL to deal with Oculus and I could easily get HMD sensor variables but I had difficulties with rendering images on HMD. What I tried were. - Cr...
Mars3D
10 years agoHonored Guest
"godjilla" wrote:
I just put the above code between the "BindFramebuffer" and "UnbindFramebuffer"
And I just got black void lonely scene.
Would you tell me with more detail?
The offsets are what you need to translate your modelview matrix by.
This should work,
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(-OffSetX, 0.0f, -6.0f);
glDisable(GL_TEXTURE_2D);
glColor4f(1.0f, 0.0f, 0.0f, 0.0f);
glBegin(GL_TRIANGLES); // Drawing Using Triangles
glVertex3f(0.0f, 1.0f, 0.0f); // Top
glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left
glVertex3f(1.0f, -1.0f, 0.0f); // Bottom Right
glEnd();
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
- 1 year ago
- 2 years ago
- 8 months ago