Jump to content
  • Advertisement
Sign in to follow this  
FlyingDodo

Texture coordinates

This topic is 4701 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 have function which splits a polygon by a plane, and I can't work out how to calculate texture coordinates for the two new vertices. Google doesnt turn up anything of use, just info on texture mapping in things like 3d studio. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
You should establish a texture space (T/B/N vectors) for each one of your polygons. This way, after the polygon is split you can still project the new polygons into texture space and get the new coordinates. Have each new polygon copy the texture space of its source polygon and you're set.

Share this post


Link to post
Share on other sites
Interpolation will be fine as long as you pay attention to the nature of the surface being split. For example, linear interpolation will not be what you want for polygons across which the original texture coordinates are not evenly distributed.

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!