Forum Discussion
whitehexagon
11 years agoExplorer
JOVR with JOGL and SDK rendering
I'm trying to get something really basic running with OSX, JOVR, OpenGL, JOGL, and SDK 0-4-1 rendering. But I'm getting this fatal error at step 5.5 in the code below. C [libGL.dylib+0x18b5] glG...
jherico
11 years agoAdventurer
"whitehexagon" wrote:
Cracked it, kinda...
gl2.glBindFramebuffer(GL2.GL_FRAMEBUFFER, eyeTextures[eye].TextureId);
gl2.glClear(GL2.GL_COLOR_BUFFER_BIT);
renderScene(gl2);
gl2.glBindFramebuffer(GL2.GL_FRAMEBUFFER, 0);
Framebuffers are not textures. The second parameter of glBindFramebuffer must be the framebuffer ID, not the color attachment. Additionally, your framebuffers will need both depth and color attachments for any reasonable rendering tasks.
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
- 10 months ago
- 10 years ago