A Question about Projective Texture
Hi,
I want to project a image onto a plane that located at (0, 0, -100) via projective texture:
[IMG]http://photo.dudu.com/displayImg.jsp?u=chinashrimp&f=523395&contentId=522735&sid=a-OXveG_HkM-&size=3[/IMG]
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!
[edited by - ChinaShrimp on June 10, 2004 11:47:09 PM]
Off the top of my head, what you''ve got there is correct, you only need to concatenate the projection matrix and modelview matrix to the series (first modelview, then projection).
nVidia dev-pages can be very helpfull.
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement