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 4 of 4

Thread: Extensions, Multitexturing

  1. #1
    Intern Contributor
    Join Date
    Jul 2000
    Posts
    57

    Extensions, Multitexturing

    I can't get the multitexturing to work, I figured I've got it on my voodoo3 My testprogram gets stuck when it asks for the string length of extensions.

    char *extensions=(char *)glGetStringGL_EXTENSIONS);
    int len=strlen(extensions);

    It seems the extensions returns a NULL pointer. Any help would be appreciated

    --> Divide Overflow

    "A wise man may look ridiculous in the company of fools."

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: Extensions, Multitexturing

    Make sure you have created a contex first. With wgl*() that is, if you are using Win32.

  3. #3
    Intern Contributor
    Join Date
    Jul 2000
    Posts
    57

    Re: Extensions, Multitexturing

    Thanks ! I feel... ashamed somehow :P

    But I now got the next problem. Multi Texturing calculates the color by c1*c2, but I want 2 pictures to fade into eachother ( a good old crossfade ) at the same location. Suggestions ?

    Thanx !

    --> Divide Overflow

  4. #4
    Intern Contributor
    Join Date
    Aug 2000
    Location
    USA
    Posts
    99

    Re: Extensions, Multitexturing

    to do a blend w/ texture alpha you can use the GL_DECAL texture function with glTexEnv() function call; to get a varying fade (varied alpha) there doesn't seem to be much built into the standard ARB multitexture extension, but with extensions such as nVidia's register combiners this is easy. Of course then it only works on nVidia hardware.

Posting Permissions

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