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: Weird Problem

  1. #1
    Intern Contributor
    Join Date
    Mar 2003
    Posts
    88

    Weird Problem

    Something wicked is going on in this crazy world : )
    why would a glBindTexture affect a simple

    glBegin(GL_POINTS)
    glVertex2d(.....);
    .
    .
    .
    glEnd();

    in a way that that the points simply arenīt renderized ??
    Problem 2-
    it also happens that no matter what initialization i do ....one section of GL_QUADS is not texturized .... i set up the multitexturing enviroment with (i.e for 2 texture units)

    glActiveTextureARB(GL_TEXTURE0_ARB);
    glBindTexture(GL_TEXTURE_2D,Texture[0]);
    glEnable(GL_TEXTURE_2D);

    glActiveTextureARB(GL_TEXTURE1_ARB);
    glBindTexture(GL_TEXTURE_2D,Texture[1]);
    glEnable(GL_TEXTURE_2D);

    and for the texture renderization i use the oldie

    glMultiTexCoord2fARB or glMultiTexCoord2fvARB

    so my friends ...what could be wrong ??
    ohh and yes iīm using flTexGen and glTexParam and stuff to correct generate the textures ...
    help me please : )
    As shadows into darkness, the Ninja fades away

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Melbourne,Victoria,Australia
    Posts
    748

    Re: Weird Problem

    Problem 1: Do a glDisable (GL_TEXTURE_2D) before you draw your points and see what happens.

    Problem 2: No idea. Try glClientActiveTextureARB() instead of glActiveTextureARB().

  3. #3
    Intern Contributor
    Join Date
    Mar 2003
    Posts
    88

    Re: Weird Problem

    both problems solved...
    stupid 1:00 AM copy and paste mistake : )
    As shadows into darkness, the Ninja fades away

Posting Permissions

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