Skip to main content
gamedev.net
🔒 Locked

Trying to understand texture mapping algorithm

Started by CRACK123 May 31, 2006 at 3:52 AM 0 replies 500+ views
Original Post
CRACK123
CRACK123
Hi, I am trying to understand how a texture coordinate gets calculated. From what I have read on google most say that a vertex should be convert to view space coordinates. Many examples I see just do x/z and y/z for the conversion. However I wanted to confirm if I had my basic 3d understanding right - isn't the vector supposed to be multiplied by the world transformation matrix, then the modelview matrix and then the projection matrix to get into screen space. Thanks
The more applications I write, more I find out how less I know
nini
nini
yes you are right except you forgot the viewport transformation which is a scale and bias matrix at the end in order to stay in screen...

i don't know why you need to know that for texture mapping at all ...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.