FAQ

来源:互联网 发布:怎样推广淘宝网店 编辑:程序博客网 时间:2024/06/05 17:12

Which Import Format/Exporter is best supported?

TODO

Why are there meta viewport tags in examples?

<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

这些标签控制移动浏览器的视口大小和比例(页面内容的大小可以与可视的视口不同)。

http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html
https://developer.mozilla.org/en/Mobile/Viewport_meta_tag

How can scene scale be preserved on resize?

我们希望所有的物体在窗口大小被改变的情况下也能保持原来的大小,不管它跟camera的距离是多少。解决这个问题的关键方程是:给定距离处可见高度的公式。

visible_height = 2 * Math.tan( ( Math.PI / 180 ) * camera.fov / 2 ) * distance_from_camera;

如果我们将窗口高度增加一定百分比,那么我们想要的是所有距离上的可见高度以相同的百分比增加。 这不能通过更改相机位置来完成。 相反,您必须更改相机的视野。例子

Why is part of my object invisible?

这也许是因为face culling(面剔除?)。面有一个方向,来区分正反面,通常情况下背面会被去除掉。为了确定是哪儿的问题,你可以将material的side设置为THREE.DoubleSide。

material.side = THREE.DoubleSide
原创粉丝点击