Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: NV3X and FBO floating point texture

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2004
    Posts
    4

    NV3X and FBO floating point texture

    I am using nv36 GPU and want to get 32bit floating texture. GL_FRAMEBUFFER_UNSUPPORTED_EXT was reported. I used floating buffer of nv before. Is there any way to implement unclamped floating texture in FBO on nv36 GPU?

  2. #2
    Intern Contributor
    Join Date
    Apr 2005
    Location
    Prague, Czech Republic
    Posts
    87

    Re: NV3X and FBO floating point texture

    Originally posted by Brainter:
    I am using nv36 GPU and want to get 32bit floating texture. GL_FRAMEBUFFER_UNSUPPORTED_EXT was reported. I used floating buffer of nv before. Is there any way to implement unclamped floating texture in FBO on nv36 GPU?
    You have to use GL_FLOAT_RGBA32_NV as internal format for the texuture. This format also works only when the texture target is GL_TEXTURE_RECTANGLE_ARB ( or the rectangle extension from nVidia ).
    If you created the texture with these params then there should be no problem attaching this texture to the framebuffer object

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2004
    Posts
    4

    Re: NV3X and FBO floating point texture

    Thank you Trahern! I have solved the problem.

    glTexImage2D(GL_TEXTURE_RECTANGLE_NV,0, GL_FLOAT_RGBA32_NV, texWidth, texHeight,0,GL_RGB, GL_UNSIGNED_BYTE, NULL);
    glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,GL_TEXTURE_RECTANGLE_NV, tex.grid0, 0);

    can also work well!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •