Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. QGLFramebufferObject with 3D texture
Forum Updated to NodeBB v4.3 + New Features

QGLFramebufferObject with 3D texture

Scheduled Pinned Locked Moved Game Development
3 Posts 3 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BigzYeah
    wrote on 29 May 2011, 21:21 last edited by
    #1

    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 =)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      minimoog77
      wrote on 30 May 2011, 10:04 last edited by
      #2

      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.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Ron9Gogo
        wrote on 6 Jun 2011, 09:06 last edited by
        #3

        Anyone knows if its possible to use 32 bit precision floating point textures with a 3D texture?

        [url=http://www.thewebco.co.nz/our-services/magento-ecommerce-solutions.html]Magento Developers[/url]

        1 Reply Last reply
        0

        3/3

        6 Jun 2011, 09:06

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved