Jump to content
  • Advertisement
Sign in to follow this  

Texture Coordinates dynamic change to Screen

This topic is 4502 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 @all i am try to work an an effect for water, i didnt find any tutorial that i understand so i try it in other way i render "mirror" scene to texture, and put this to an alpha transparent water plane (to see ground under the water), simple thing (later i try simple vertex buffer stuff to manipulate the mirror dynamic texture for wave effects) but how can i calculate the vertices u/v texture positions to fit to screen the middle of the 3d scene (window_x/2 window_y/2) is the middle of texture ( 0.5, 0.5) what formula can i use for that.. or is there any function to do it automatically? greetings aragon

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!