Finding the angle of a perspective image

一曲冷凌霜 提交于 2019-12-06 01:53:33
Gwen

You should try to find the vanishing point of the structural lines of the room. There are many line-finding algorithms for this.

You have to find two vanishing points, for the two main directions of the floor. On your example, one vanishing point is at the convergence of all red lines, the other one is far on the left side, at the convergence of he blue lines.

Once you have this, you can build a regular tiling starting from these two points:

To map a texture on the floor, you just have to find the bounding rectangle following the tiling:

to stretch your texture inside it:

and to remove extra parts and apply shadows:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!