PDA

View Full Version : FBO with 3d texture as color attachment



dodgersnow
06-28-2005, 05:36 AM
Hi,

i try to create an FBO with an attached 3D Texture. This 3D texture must have an float(32) as internal format. By my rectangular textures my card (geforce 6800) supports only GL_FLOAT_RGBA32_NV with GL_TEXTURE_RECTANGLE_ARB. Does someone now if 3D textures are supported right now?

dodgersnow

simongreen
06-28-2005, 07:20 AM
No, this is not currently supported in NVIDIA drivers.

It is possible we may add support in future drivers, but rendering to slices of 3D textures isn't likely to be fast.

One possible workaround is to pack the slices of a 3D texture into a 2D texture, and then do the addressing and filtering yourself in the shader.

dodgersnow
06-29-2005, 01:25 AM
Hi,

can you explain this more precisely please. In the end I want to have a updated 3D Texture. My idea was to render directly in the slices.
When I now render in a big 2D Texture is there a fast way to get than out of this my 3D Texture?
My work around right now is to render in a 2D Texture with same size as a 3D Texture slice and then make a glCopyTexSubImage. It works but is slow.