我正在尝试增加全景的高度,但在一定数量之后它会停止拉伸而我会变得奇怪的边缘。
var bg = THREE.ImageUtils.loadTexture(backgroundTexture);
var bgBox = new THREE.Mesh(new THREE.CylinderGeometry(950, 950, 600, 50, 50, true), new THREE.MeshBasicMaterial({
map: bg,
side: THREE.BackSide
}));
这是高度为600的样子:
这是高度大于600时的外观:
请停下来! :)
答案 0 :(得分:0)
It's look like you need increase Camera frustum far plane - it must be greater than the height and radius of the cylinder.
camera = new THREE.PerspectiveCamera (
40, window.innerWidth / window.innerHeight, 1, 2800
);
http://jsfiddle.net/wn18avym/4/ VS http://jsfiddle.net/wn18avym/5/
答案 1 :(得分:0)