Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

texture transformation

Status
Not open for further replies.

zyllabaua

Programmer
Jul 1, 2003
2
0
0
AT
Hello!

have u ever read this page?


microsoft describes how to transform texture coordinates.
my problem is, that i'm not able to translate my coordinates, because it seems that the input rhw is zero when applying the transformation matrix.

doesn't anybody know how i could solve this problem?

thanks
 
It would help if I could view a little source snippet to see what your doing in your code.
 
i have just found out what was wrong
texture coordinates are 2 dimensional
so the w coordinate is not 1, but the z coordinate is
i have simply put the tranlation values to the wrong row of the transformation matrix
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top