This topic is now archived and is closed to further replies.

Texture Coords Problem

This topic is 6368 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!I have a problem with texture coordinates: I must calculate u,v ,the tex coords needed by Direct3D, for a given point that lies on a polygon. I have texture coordinates equations but I don''t understand how to determine the texture space axes. The only things that I have are world coords and u,v of all polygon''s vertices and I would like to know u and v of a point on the polygon that doesn''t belong to that set of vertices. Thanks Zcode

Share this post

Link to post
Share on other sites can I predefine texture coordinates if the
problem is just that I don''t know hot to define them?
I can define them manually only for simple cases (ex: a square (0,0)(1,0)(0,1)(1,1)), whereas when I have arbitrary vertices of
an arbitrary polygon...-maybe I am wrong too but- I need a calculation in order to fill the u and v fields.

Share this post

Link to post
Share on other sites