•      Sign In
• Create Account

### #ActualLil_Lloyd

Posted 12 July 2012 - 10:37 AM

gDebugger is realllllly awesome thanks!

Additionally, I have solved my issue....kind of!

I only swapped some lines of code from

glGenRenderbuffers(1,&fboData.depthBuffer);
glBindRenderbuffer(GL_RENDERBUFFER,fboData.depthBuffer);
glRenderbufferStorage(GL_RENDERBUFFER,GL_DEPTH_COMPONENT,fboData.depthWidth,fboData.depthHeight);
glFramebufferRenderbuffer(GL_FRAMEBUFFER,GL_DEPTH_ATTACHMENT,GL_RENDERBUFFER,fboData.depthBuffer);

glFramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,fboData,texID,0);


to

glGenRenderbuffers(1,&fboData.depthBuffer);
glBindRenderbuffer(GL_RENDERBUFFER,fboData.depthBuffer);

glFramebufferRenderbuffer(GL_FRAMEBUFFER,GL_DEPTH_ATTACHMENT,GL_RENDERBUFFER,fboData.depthBuffer);
glRenderbufferStorage(GL_RENDERBUFFER,GL_DEPTH_COMPONENT,fboData.depthWidth,fboData.depthHeight);

glFramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,fboData.texID,0);


and it kind of works....

Well. What happens is my teapot is now rendered to the screen, but with no movement what so ever. No translation takes place, so no animation is visible! I don't understand it...

### #2Lil_Lloyd

Posted 12 July 2012 - 10:35 AM

gDebugger is realllllly awesome thanks!

Additionally, I have solved my issue....kind of!

I only swapped some lines of code from

glGenRenderbuffers(1,&fboData.depthBuffer);
glBindRenderbuffer(GL_RENDERBUFFER,fboData.depthBuffer);
glRenderbufferStorage(GL_RENDERBUFFER,GL_DEPTH_COMPONENT,fboData.depthWidth,fboData.depthHeight);
glFramebufferRenderbuffer(GL_FRAMEBUFFER,GL_DEPTH_ATTACHMENT,GL_RENDERBUFFER,fboData.depthBuffer);

[color=#000000]glFramebufferTexture2D[/color][color=#666600]([/color][color=#000000]GL_FRAMEBUFFER[/color][color=#666600],[/color][color=#000000]GL_COLOR_ATTACHMENT0[/color][color=#666600],[/color][color=#000000]GL_TEXTURE_2D[/color][color=#666600],[/color][color=#000000]fboData[/color][color=#666600].[/color][color=#000000]texID[/color][color=#666600],[/color][color=#006666]0[/color][color=#666600]);[/color]


to

glGenRenderbuffers(1,&fboData.depthBuffer);
glBindRenderbuffer(GL_RENDERBUFFER,fboData.depthBuffer);

glFramebufferRenderbuffer(GL_FRAMEBUFFER,GL_DEPTH_ATTACHMENT,GL_RENDERBUFFER,fboData.depthBuffer);
glRenderbufferStorage(GL_RENDERBUFFER,GL_DEPTH_COMPONENT,fboData.depthWidth,fboData.depthHeight);

glFramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,fboData.texID,0);


and it kind of works....

Well. What happens is my teapot is now rendered to the screen, but with no movement what so ever. No translation takes place, so no animation is visible! I don't understand it...

### #1Lil_Lloyd

Posted 12 July 2012 - 10:34 AM

gDebugger is realllllly awesome thanks!

Additionally, I have solved my issue....kind of!

I only swapped some lines of code from

glGenRenderbuffers(1,&fboData.depthBuffer);
glBindRenderbuffer(GL_RENDERBUFFER,fboData.depthBuffer);
glRenderbufferStorage(GL_RENDERBUFFER,GL_DEPTH_COMPONENT,fboData.depthWidth,fboData.depthHeight);
glFramebufferRenderbuffer(GL_FRAMEBUFFER,GL_DEPTH_ATTACHMENT,GL_RENDERBUFFER,fboData.depthBuffer);


to

glGenRenderbuffers(1,&fboData.depthBuffer);
glBindRenderbuffer(GL_RENDERBUFFER,fboData.depthBuffer);

glFramebufferRenderbuffer(GL_FRAMEBUFFER,GL_DEPTH_ATTACHMENT,GL_RENDERBUFFER,fboData.depthBuffer);
glRenderbufferStorage(GL_RENDERBUFFER,GL_DEPTH_COMPONENT,fboData.depthWidth,fboData.depthHeight);

glFramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,fboData.texID,0);


and it kind of works....

Well. What happens is my teapot is now rendered to the screen, but with no movement what so ever. No translation takes place, so no animation is visible! I don't understand it...

PARTNERS