小编use*_*890的帖子

three.js设置背景图片

如何创建静态背景图像?

对于默认背景:

scene = new THREE.Scene();

// ...

renderer = new THREE.WebGLRenderer( { antialias: false } );
renderer.setClearColor( scene.fog.color, 1 );
Run Code Online (Sandbox Code Playgroud)

如何设置图像scene.fog,或设置不透明度clearcolor

static background image set three.js

14
推荐指数
5
解决办法
3万
查看次数

用于放大three.js的按钮

我使用three.js和THREE.OrbitControls动画我不知道如何通过按钮点击更改缩放我如何理解...用于缩放回答此功能

this.dollyIn = function ( dollyScale ) {
        if ( dollyScale === undefined ) {
            dollyScale = getZoomScale();
        }
        scale /= dollyScale;

    };

    this.dollyOut = function ( dollyScale ) {
        if ( dollyScale === undefined ) {
            dollyScale = getZoomScale();
        }
        scale *= dollyScale;

    };
Run Code Online (Sandbox Code Playgroud)

我需要发送什么来增加或减少缩放我如何为这个按钮形式?

<input id="clickMe" type="button" value="+" onclick="..." /> 
Run Code Online (Sandbox Code Playgroud)

zoom button three.js

2
推荐指数
1
解决办法
3325
查看次数

标签 统计

three.js ×2

background ×1

button ×1

image ×1

set ×1

static ×1

zoom ×1