Jump to content
  • Advertisement
Sign in to follow this  
Disfunctional

UV mapping - parallelogram tiling on a plane

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

Hello, I've been searching a way to calculate the uv coordinates on a plane. It was a succes as I used the following formula to get an image onto my plane. (There are no tiles of my image, just 1 image strechted in my plane) This is how I calculated the UV coordinates: is my intersection point from a ray from the camera that hits the plane. (here we fill the intersection point into the equation to get our u) (here we fill in the intersection point into the equation to get our v) The plane is defined by it's normal vector and an offset. Now I want to put textures onto my plane, however I want to be able to not only make rectangle tiles, but I also want to make parallelogram tiles. This will be done by defining two directional vectors I call one xVec and the other yVec. How can I change my u function and v function to be able to map parallelogram tiles? The size of the tile is specified by the length of those vectors. Thanks for your help!

Share this post


Link to post
Share on other sites
Advertisement
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!