Jump to content
  • Advertisement


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


Fitting a Texture to a Face

This topic is 6225 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!