Hi, i have a Geforce5900 and i have problems using FBO and texture3D. With GL_TEXTURE_2D i have no problem, but when i use something like:
glGenFramebuffersEXT(1, &fb);
/*errcheck(); */
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fb);
glGenTextures(1, &tex);
glBindTexture(GL_TEXTURE_3D, tex);
glTexImage3D(GL_TEXTURE_3D, 0,
internalFormat,
textureSize, textureSize, 4, 0,
format,
type,
NULL);
glFramebufferTexture3DEXT(GL_FRAMEBUFFER_EXT,
GL_COLOR_ATTACHMENT0_EXT,
GL_TEXTURE_3D, tex, 0, 0);
//see if everything is OK
if(CHECK_FRAMEBUFFER_OK())
{
printf("Supported combination: (%i, %i, %i) !!! - Press a key
",
internalFormat, format, type);
getchar();
}
I tried a lot of possibilities with internalFormat, format and type, but nothing ¿anyone has a idea? I supposed that if my card support glFramebufferTexture3DEXT should exist some combination that works.
thanks for your attention
API