Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ChinaShrimp

A Question about Projective Texture

This topic is 5096 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement
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).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!