QGLFramebufferObject with 3D texture
-
wrote on 29 May 2011, 21:21 last edited by
Hi !
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 =)
-
wrote on 30 May 2011, 10:04 last edited by
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.
-
wrote on 6 Jun 2011, 09:06 last edited by
Anyone knows if its possible to use 32 bit precision floating point textures with a 3D texture?
3/3