Fitting a Texture to a Face

Started by
-1 comments, last by phueppl1 22 years, 9 months ago
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
Visit Rarebyte! and no!, there are NO kangaroos in Austria (I got this question a few times over in the states ;) )

This topic is closed to new replies.

Advertisement