Texture coordinates

Started by
2 comments, last by head_hunter 18 years, 5 months ago
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?
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.
Seems you could just interpolate. You're some percentage between vertices so you are the same percentage between texture coordinates.
Keys to success: Ability, ambition and opportunity.
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.

This topic is closed to new replies.

Advertisement