Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collada to JSON

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 ?

like image 887
Xavier Avatar asked Dec 30 '11 09:12

Xavier


3 Answers

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

like image 151
Remi Arnaud Avatar answered Nov 16 '22 15:11

Remi Arnaud


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 .

like image 32
jensarps Avatar answered Nov 16 '22 14:11

jensarps


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

like image 1
Florian Bösch Avatar answered Nov 16 '22 14:11

Florian Bösch