I try to display some Collada files with WebGL and Three.js. I tried with THREE.ColladaLoader()
but it returns some materials errors.
I see it's possible to convert the file to JSON and then import it to WebGL.
I look around but didn't any solution to do that...
Any clue ?
I try to display some Collada files with WebGL and Three.js. I tried with THREE.ColladaLoader()
but it returns some materials errors.
I see it's possible to convert the file to JSON and then import it to WebGL.
I look around but didn't any solution to do that...
Any clue ?
Share Improve this question edited Dec 30, 2011 at 16:53 Andreas Köberle 111k58 gold badges280 silver badges307 bronze badges asked Dec 30, 2011 at 9:52 XavierXavier 4,0173 gold badges30 silver badges57 bronze badges3 Answers
Reset to default 3COLLADA2Json may be what you are looking for.
edit:
gltf is a starndard now. (Json + binary). The converter is here: https://github./KhronosGroup/collada2gltf
One option could be to import the Collada file into Blender.
If it survives importing and still looks as expected, you could then export it from there using the THREE.js's Blender exporter .
Collada is notoriously difficult to parse. If you have one that doesn't parse, you'll have to write your own parser or fix one that you want to use. I gave up trying to use collada because of that, I'm now using 3DS files