Jump to content
  • Advertisement
Sign in to follow this  
s3mt3x

UV Mapping Help

This topic is 4486 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 Guys, I'm currently creating walls in a 3d game - my question is is how do I generate the uvs for each vertex along the x-z axis to ensure the texture's wrap nicely? Each of my textures has a world width and world height associated with it (the height value i'm mapping to the y axis). So i'm presuming I need to factor this in as well as the x/z values of the 3d positions(the y values are not a problem obviously). Any help woruld be really appreciated, Kind Regards, Chris Evans

Share this post


Link to post
Share on other sites
Advertisement
I came half through a while ago... it didnt tile perfect yet but brick walls still seemed brick walls lol...
What i did was something like this ( dont have the code here ): for each U of the UV coordinates I took the X and Z coordinate of the vertex, and divided it by two. This looked ok, if not extremely exact placed on the x or z axis...

Share this post


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

  • 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!