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

Thread: Projective Texture problem

  1. #1
    Intern Contributor
    Join Date
    Feb 2001
    Posts
    71

    Projective Texture problem

    I Have a problem with Projective Texture:
    is this corrected way to make the
    TEXTURE MATRIX??

    glMatrixMode(GL_TEXTURE);
    glLoadIdentity();
    glTranslatef(0.5,0.5,0);
    glScalef(0.5,0.5,1);
    gluPerspective(50.0f,1,.1,1);
    glRotatef(LightRoty,0,1,0);
    glRotatef(LightRotx,1,0,0);
    glRotatef(LightRotz,0,0,1);
    glTranslatef(LightPosx,LightPosy,LightPosz);
    glMultMatrixf(obj3d->Matrix);
    glMatrixMode(GL_MODELVIEW);

    The Object Matrix is not Inverse.
    Thanks in Advace

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Lubbock, TX, USA
    Posts
    224

    Re: Projective Texture problem

    What do you want to use the projective texture for? Generally, for projective textures, use the OpenGL texgen facility. Look into glTexGen.

Posting Permissions

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