Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: glTexImage3DEXT crashed

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    8

    glTexImage3DEXT crashed

    I am trying to use glTexImage3DEXT for volume rendering. In fact, I am using the code from the following link.
    http://www.opengl.org/resources/code.../programs.html

    However, after successful compilation, the program crashed when it entered glTexImage3DEXT function. I used
    glewIsSupported("GL_EXT_texture3D");
    to make diagnosis and I found the reture value is 0.

    Can anyone give me some hints?

    Thanks a lot.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: glTexImage3DEXT crashed

    Don't use it, if it is not available

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    8

    Re: glTexImage3DEXT crashed

    my system has the following config. Should the glTexImage3DEXT be supported and available?


    GLEW version 1.5.1
    Reporting capabilities of pixelformat 1
    Running on a GeForce 8600 GT/PCI/SSE2 from NVIDIA Corporation
    OpenGL version 2.1.1 is supported

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,768

    Re: glTexImage3DEXT crashed

    OpenGL version 2.1.1 is supported
    The implementation probably stopped exposing texture3D as an extension, as it supports a version of OpenGL that requires 3D textures. Just use the core function pointers.

  5. #5
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    8

    Re: glTexImage3DEXT crashed

    Hi Korval:

    I do not quite understand what you posted. Can you give a little bit more explanationS?

    Thanks a lot.

  6. #6
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,768

    Re: glTexImage3DEXT crashed

    I do not quite understand what you posted. Can you give a little bit more explanationS?
    OpenGL version 2.1 requires that implementations support 3D textures. The API to do this is part of the core OpenGL 2.1 specification.

    However, support for 3D textures can also be exposed by an extension called "GL_EXT_texture3D". Because it is an extension, all of the function pointers for it end in "EXT" as do all of the #define enumerations.

    OpenGL version 2.1 defines a function called "glTexImage3D" (note the lack of EXT at the end). The extension "GL_EXT_texture3D" defines a function called "glTexImage3DEXT". If an OpenGL version returns 2.1, it must expose "glTexImage3D" as a function. If an OpenGL implementation advertises the extension "GL_EXT_texture3D", then it must expose "glTexImage3DEXT".

    Your GL implementation says that it does not support the "GL_EXT_texture3D" extension. However, your OpenGL version is 2.1, which means that it does expose "glTexImage3D". Therefore, you should stop looking for the extension and start looking for the core feature.

  7. #7
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,052

    Re: glTexImage3DEXT crashed

    1) Did you call glewInit _after_ context creation?
    2) Korval suggests to use glTexImage3D instead of glTexImage3DEXT.
    GLIM - Immediate Mode Emulation for GL3

  8. #8
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,052

    Re: glTexImage3DEXT crashed

    Argh, too slow
    GLIM - Immediate Mode Emulation for GL3

  9. #9
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    8

    Re: glTexImage3DEXT crashed

    I tried using glTexImage3D before and it had the similar crashing result.

  10. #10
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    8

    Re: glTexImage3DEXT crashed

    Thank you for you advice, Jan and Korval.

    For Jan, I do not understand the glewInit _after_ context suggestion. Can you come up with more details?

Posting Permissions

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