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 ?
COLLADA2Json may be what you are looking for.
edit:
gltf is a starndard now. (Json + binary). The converter is here: https://github.com/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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With