PDA

View Full Version : Projective Texture problem



jeppa
01-17-2002, 06:47 AM
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

Dodger
01-19-2002, 08:24 AM
What do you want to use the projective texture for? Generally, for projective textures, use the OpenGL texgen facility. Look into glTexGen.