多边形和方形纹理的纹理坐标
基本上我有一个纹理。我还有一个八边形(或任何多边形)。我找到了那个八边形的边界框。假设我的纹理是八边形边界框的大小。我怎样才能找出纹理坐标以便纹理映射到它。为了澄清起见,假设您有一个正方形的锡箔,然后将八边形切掉,您将得到一个锡箔纹理的多边形。我只是不确定如何计算出任意多边形。谢谢
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 texture 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅纹理映射 NGon?。
See Texture mapping an NGon?.