1

I have a question that is bothering me for weeks! Is there any way of applying textures to 3D convex polygons, independently of their orientation in the 3D world. I am working with XNA 4.0 if it's relevant

I'm not expecting an easy way out, just a clean solution to solve my current problem. Does anyone made something similar to that?!

Thanks in advance, for your concern and time!

4

2 回答 2

1

形状的自动生成纹理坐标并不容易......我有一个不是最好的想法,但也许它可以帮助你

如果形状位于平面上,您可以创建一个包含该形状的正方形,很容易获得 [0..1] 范围内的纹理坐标,在平面中的正方形内插值顶点位置。

在此处输入图像描述

于 2013-07-21T03:01:25.197 回答
0

这里也有类似的东西https://stackoverflow.com/a/19004944/2521214

  • 整个线程也值得一看(问题和所有评论,包括)
  • 不只是我的回答
于 2013-10-12T08:26:14.000 回答