Advertisement Jump to content
Sign in to follow this  

Texture question

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

It is possible to place the texture on a shape the has more than 4 vertexes?How? I'm asking that because i loaded a HeightMap from a picture file and textured it so: 4 neighbour vertexes share one texture.It is not textured nice because i would like to place the texture over more than 4 vertexes... This is how the heightMap texturind looks in my project: 00 10 00 10 01 11 01 11 00 10 00 10 01 11 01 11 00 10 00 10 01 11 01 11 .... . . . I tryed to texture so: 00 x x x x x 10 x x x x x 01 x x x x x 11 but i don't know how...can anybody help me

Share this post

Link to post
Share on other sites
if you use coordinates above 1 it should wrap the values for you. This would mean you can go, horizontally:
0,0 1,0 2,0 3,0 4,0 xxxx 29,0
0,1 1,1 2,1 3,1 4,1 xxxx 29,1

Try it and see how it goes. If you just want to stretch the texture, use fractions instead. Divide each coord by width/height to get how far across the texture.

Hope it helps,

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!