Blender模型导出(以.dae为单位)到THREE.JS可能不显示

时间:2017-09-11 16:09:57

标签: javascript model 3d three.js blender

我使用“云生成器插件”在混合器中生成“云”,然后以“.dae”格式将其导出为three.js:

var modelname="cloud_0";

var object1 = new PinaCollada('cloud_0', 100);
scene.add(object1); 
var object2 = new PinaCollada('cloud_0', 100);
scene.add(object2);

function PinaCollada(modelname, scale) 
{

var loader = new THREE.ColladaLoader();
var localObject;
loader.options.convertUpAxis = true;
loader.load( 'models/'+modelname+'.dae', function colladaReady( collada ) {
    localObject = collada.scene;
    localObject.scale.x = localObject.scale.y = localObject.scale.z = scale;
    localObject.updateMatrix();
} );
return localObject;
}

我可以成功查看正在导入的对象;但是云的面部显示为几何空白形状,与原始物体无关。

如何克服这个?

更新:我包含了three.js场景和原始混合场景的截图:

型搅拌机: enter image description here

-three.js: enter image description here

1 个答案:

答案 0 :(得分:0)

经过一些搜索和问题后,我发现模拟和效果(如烟雾和云)不可输出,因此它是一个混合问题,而不是一个问题。看到这里:

https://blender.stackexchange.com/questions/90057/exported-model-done-with-cloud-generator-a-o-not-showing-probably?noredirect=1#comment158671_90057