1
我想把這個圖像 - https://hdfreefoto.files.wordpress.com/2014/09/bright-milky-way-over-the-lake-at-night.jpg - 作爲我的three.js場景中的全景背景。three.js - 適合背景圖像全景
我有以下代碼:
var sphere = new THREE.SphereGeometry(200, 200, 32);
sphere.applyMatrix(new THREE.Matrix4().makeScale(-1, 1, 1));
var sphereMaterial = new THREE.MeshBasicMaterial();
sphereMaterial.map = THREE.ImageUtils.loadTexture(<path to above image>);
var sphereMesh = new THREE.Mesh(sphere, sphereMaterial);
scene.add(sphereMesh);
然而
當我通過紙板查看,並旋轉360度,我沒有看到背景旋轉360度(但小於)。我如何對齊?
,當我在我的筆記本電腦的看法,我可以旋轉圖像,但它似乎underfit屏幕尺寸
是否有關於如何完美地貼合在給定的背景圖像作爲three.js所的指導方針全景?
爲[這樣的事情(http://www.emanueleferonato.com/2014/12/10/ html5-webgl-360-degrees-panorama-viewer-with-three-js /)你在做什麼? – Wilt