Jump to content
  • Advertisement

Archived

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

alnite

is there an explanation on how to map textures on some irregular shapes?

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

I am not looking for a tutorial or anything, but more an explanation on mapping textures to a let''s say a triangle. Textures are rectangles, triangles are triangles, how do you specify the coordinates? Now what if it''s some shape made of a triangle fan, and I want to assign textures on this shape?

Share this post


Link to post
Share on other sites
Advertisement
You don''t have to fit the entire texture onto the shape. You can have empty space. Frequently an artist will combine several textures together to reduce the amount of wasted space.

Share this post


Link to post
Share on other sites
quote:
Original post by alnite
I am not looking for a tutorial or anything, but more an explanation on mapping textures to a let''s say a triangle. Textures are rectangles, triangles are triangles, how do you specify the coordinates?

Now what if it''s some shape made of a triangle fan, and I want to assign textures on this shape?


imagine the texture as a canvas, and the object outline projected on that canvas. You can project the outline of the object to fit the canvas, or scale it, stretch it, rotate it... the vertices of the projected object on the canvas define the texture coordinates.

It really is up to you how you want to map the vertices to the texture.

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!