Results 1 to 2 of 2

Thread: Projective Texture problem

  1. #1
    Member Contributor
    Join Date
    Feb 2001
    Posts
    50

    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
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Lubbock, TX, USA
    Posts
    197

    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.

Similar Threads

  1. Replies: 0
    Last Post: 01-09-2005, 06:01 PM
  2. Replies: 0
    Last Post: 01-09-2005, 05:53 PM
  3. Replies: 1
    Last Post: 01-09-2005, 05:50 PM
  4. VP Projective texture problem
    By Vasbin in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 12-05-2003, 10:56 AM
  5. projective texture problem
    By greg2 in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 09-20-2003, 08:11 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