圆柱体内的纹理不会改变高度

时间:2015-06-15 12:20:15

标签: three.js

我正在尝试增加全景的高度,但在一定数量之后它会停止拉伸而我会变得奇怪的边缘。

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的样子:enter image description here

这是高度大于600时的外观: enter image description here

请停下来! :)

2 个答案:

答案 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)

发现问题了!只需要增加skyBox的大小,我完全忘记了!谢谢大家!