【问题标题】:texture coordinates for point in polygon多边形中点的纹理坐标
【发布时间】:2011-04-23 20:46:14
【问题描述】:

我有一个多边形,其中每个顶点都有纹理坐标。如何计算多边形中任何点的纹理坐标? (我知道点坐标。) 谢谢

附言对不起我的英语......

【问题讨论】:

    标签: graphics 3d polygon textures


    【解决方案1】:

    我不关心透视,因为它很简单。只需找到该点的重心坐标并对顶点纹理坐标进行线性插值。 Here's a nice tutorial about this

    但是,如果您尝试在使用透视投影的场景中执行此操作,您可能还需要担心透视校正。 Here's some reading about this issue

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-27
      • 1970-01-01
      相关资源
      最近更新 更多