javascript - Collada Loader in Three.js does not load a scene of a few objects -
i'm quite new in three.js, question not trivial.
i have collada scene in dae format, in fact contains links dae-files. looks inside of "parent" file:
<library_visual_scenes> <visual_scene id="thescene" name="thescene"> <node id="designtransform1" name="designtransform1" type="node"> <matrix>0.87811053 0.46947187 0.0922935 19.499561 -0.46690002 0.88294739 -0.04907337 98.835884 -0.10452887 0 0.99452192 0.28129196 0 0 0 1</matrix> <instance_node url="./first_dae/first_dae.dae"/> </node> <node id="designtransform2" name="designtransform2" type="node"> <instance_node url="./second_dae/second_dae.dae"/> </node> </visual_scene> </library_visual_scenes> <scene> <instance_visual_scene url="#thescene"/> </scene>
this scene can opened desktop software without problems. when try load collada three.js collada loader displays nothing. same code works nice ordinary collada files, not have links dae-files.
the loader looks this:
var mesh; var loader = new three.colladaloader(); loader.options.convertupaxis = true; loader.options.centergeometry = true; loader.load("parent_dae.dae", function (result) { mesh = result.scene; scene.add(mesh); render(); });
the question is: "does three.js collada loader supports such dae files, containing links dae-files? if does, wrong code?"
i've opened issue three.js , got answer, 3 not support such files. question closed.
Comments
Post a Comment