Archived

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

Fitting a Texture to a Face

This topic is 6013 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 There! It''s pretty hard to adjust the texture koordinates in my Leveleditor so I thought I''d write a function that generates texture coordinates so that the texture is not disorted... (but repeats..).. Faces have at least 3 vertices, but can have unlimited (well, ya know what I mean :O). Faces are always coplanar.. Any ideas how to go ''bout that? I tried to take a base line (vektor from point1 to point2 and project all the other points onto that vektor and use the resulting values as x.. For y I took the distance to the points from the base line... That seemed to work on rectangular quads, but didn''t work with any other kinds of faces... cya, Phil Visit Rarebyte! and no!, there are NO kangaroos in Austria (I got this questions a few times over in the states

Share this post


Link to post
Share on other sites