【问题标题】:How to add transparency to the .dae model?如何为 .dae 模型添加透明度?
【发布时间】:2017-01-12 16:47:31
【问题描述】:
var mesh7;
loader.load("test_obj/dae/07.DAE", function (result) {

    mesh7 = result.scene.children[0].children[0].clone();
    mesh7.scale.set(1, 1, 1);
    mesh7.position.set(0, 0, 0);
    mesh7.opacity: 0.5; //it doesn't work

    objects.push( mesh7 );
    console.log(mesh7);
});

【问题讨论】:

    标签: javascript three.js


    【解决方案1】:

    尝试添加:

    mesh7.material.transparent = true;
    mesh7.material.opacity = 0.5;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-27
      • 1970-01-01
      • 1970-01-01
      • 2018-03-24
      • 2013-09-01
      • 2011-04-18
      • 2011-09-16
      相关资源
      最近更新 更多