开发者

Texture coordintes for a polygon and a square texture

开发者 https://www.devze.com 2022-12-30 21:28 出处:网络
basically I have a texture. I also have a lets say octagon (or any polygon). I find that octagon\'s bounding box. Let\'s say my texture is the size of the octagon\'s bounding box. How could I figure o

basically I have a texture. I also have a lets say octagon (or any polygon). I find that octagon's bounding box. Let's say my texture is the size of the octagon's bounding box. How could I figure out the text开发者_C百科ure coordinates so that the texture maps to it. To clarify, lets say you had a square of tin foil and cut the octagon out you'd be left with a tin foil textured polygon.I'm just not sure how to figure it out for an arbitrary polygon. Thanks


See Texture mapping an NGon?.

0

精彩评论

暂无评论...
验证码 换一张
取 消