Sign in to follow this  
FlyingDodo

Texture coordinates

Recommended Posts

FlyingDodo    103
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
Zipster    2359
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
head_hunter    139
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this