【问题标题】:three.js: My planes has a dark side to themthree.js:我的飞机有阴暗面
【发布时间】:2012-10-08 01:43:38
【问题描述】:

当我在three.js中制作飞机时,像这样:

plane = new THREE.Mesh( new THREE.PlaneGeometry( 10, 10 ), new THREE.MeshBasicMaterial( { color: 0xe0e0e0 } ) );
plane.position = somePoint;
plane.lookAt( someOtherPoint );
scene.add( plane );

飞机只能从一侧看到。另一面是看不见的。我已经尝试改变背景颜色,但另一面仍然没有显示。

我做错了什么?

【问题讨论】:

  • 你应该和你的飞机谈谈;也许给他们一些咨询。

标签: javascript three.js


【解决方案1】:
plane.material.side = THREE.DoubleSide;

或者,

THREE.MeshBasicMaterial( { color: 0xe0e0e0, side: THREE.DoubleSide } )

three.js r.51

我希望你的飞机感觉更好。

【讨论】:

    猜你喜欢
    • 2013-05-21
    • 2012-10-24
    • 2016-11-08
    • 2017-12-12
    • 2012-06-17
    • 2021-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多