ChinaShrimp
06-10-2004, 05:10 AM
Hi,
I want to project a image onto a plane that located at (0, 0, -100) via projective texture:
http://photo.dudu.com/displayImg.jsp?u=chinashrimp&f=523395&contentId=522735&sid=a-OXveG_HkM-&size=3
How can I set the texture matrix?
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glTranslatef(0.5, 0.5, 0.0);
glScalef(0.5, 0.5, 1.0);
...Thank you in advance!
I want to project a image onto a plane that located at (0, 0, -100) via projective texture:
http://photo.dudu.com/displayImg.jsp?u=chinashrimp&f=523395&contentId=522735&sid=a-OXveG_HkM-&size=3
How can I set the texture matrix?
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glTranslatef(0.5, 0.5, 0.0);
glScalef(0.5, 0.5, 1.0);
...Thank you in advance!