Results 1 to 4 of 4

Thread: 3D texture API in OpenGL ?

  1. #1
    Guest

    3D texture API in OpenGL ?

    Hi, I need to use 3D Texture mapping in my project and I'm using Visual C++ for making the project. BUT the 3D texture API is missing from GL.h For Example I couldn't find function glTexImage3D though glTexImage2D is present. Does that mean I need to update my headers and libraries ?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: 3D texture API in OpenGL ?

    I am guessing you are using windows, I think that is a newer openGL function.
    Due to Microsoft not updating their openGL library's, you have to use extensions to access these functions from the video drivers. Look up using openGL extensions.


    Originally posted by Kundan:
    Hi, I need to use 3D Texture mapping in my project and I'm using Visual C++ for making the project. BUT the 3D texture API is missing from GL.h For Example I couldn't find function glTexImage3D though glTexImage2D is present. Does that mean I need to update my headers and libraries ?

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

    Re: 3D texture API in OpenGL ?

    Try this: http://glew.sourceforge.net/

    It will intialize all your extensions. All you need to do is to add the library to your project and do one function call.

    After that you can use 3D textures.

    Jan.
    GLIM - Immediate Mode Emulation for GL3

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

    Re: 3D texture API in OpenGL ?

    Originally posted by nexusone:
    I am guessing you are using windows, I think that is a newer openGL function.
    Due to Microsoft not updating their openGL library's, you have to use extensions to access these functions from the video drivers. Look up using openGL extensions.



Similar Threads

  1. OpenGL second Texture is not showing up (OpenGL Texture Unit).
    By Haiiro no Jiren in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 01-18-2018, 07:17 AM
  2. OpenGL texture flickering when rendering only parts of texture
    By wrymnn in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-30-2015, 02:01 PM
  3. Texture on SDL- OpenGL
    By XaBerr in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-07-2013, 12:37 PM
  4. OpenGL 4.2, How to Copy a color texture into a depth texture ?
    By imported_cippyboy in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 08-26-2013, 01:17 AM
  5. float texture: OpenGL vs OpenGL ES
    By rldivide in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-10-2012, 02:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean