Sign in to follow this  

Texture Coordinates dynamic change to Screen

This topic is 4285 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

This topic is 4285 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this