QGLFramebufferObject with 3D texture
I use the QtOpenGL module for implementing a 3D fire simulation using particles and Navier-Stokes equations. In order to calculate those equations, I need to use a ping pong technique on FBO which implies to manipulate textures as input and output of a fragment shader. As I said, this is a 3D simulation, so my eurelian grid is in 3D too and its representation is a 3D texture. But the class QGLFramebufferObject allows to use GL_TEXTURE_2D only.
So, my question is : Is there a way to use GL_TEXTURE_3D with QGLFramebufferObject or not ? And, if not, is it something which will be implemented in the QtOpenGL module in the future ?
Thanks for your help =)
You can use vanilla FBO.
I don't know about adding GL_TEXTURE_3D, but looking at QGLFramebufferObject it's missing layer parameter. You need sometimes this when attaching 3D texture.
Anyone knows if its possible to use 32 bit precision floating point textures with a 3D texture?