Sign in to follow this  
Riviera Kid

Perspective texture mapping question.

Recommended Posts

Riviera Kid    142
Hi. I am about to implement perspective texture mapping and i was wondering about the theory. As far as i am aware you interpolate 1/z, u/z, v/z and u = (u/z)/(1/z) v = (v/z)/(1/z) okay. but i dont get why you have to interpolate 1/z. Why not z then multiply by z instead of divide by 1/z. lets say you have a point A where z =1 and a point B where z = 10. interpolate from 1/1 to 1/10 so you have 1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7 etc or if you just interpolate z you get 1,2,3,4,5,6,7 etc so you might have u = (u/z) / (1/5) so why not just have u = (u/z) * 5 so my point is why cant you just interpolate u/z, v/z, z and u = (u/z) * z v = (v/z) * z it seams just as reasonable to me and faster.

Share this post

Link to post
Share on other sites

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