Collada for JSON

I am trying to display some Collada files with WebGL and Three.js. I tried with THREE.ColladaLoader() , but it returns some material errors.

I see that you can convert the file to JSON and then import it into WebGL.

I look back, but did not do this to do this ...

Any clue?

+6
source share
3 answers

COLLADA2Json may be what you are looking for.

edit:

gltf is now starndard. (Json + binary code). The converter is here: https://github.com/KhronosGroup/collada2gltf

+3
source

One option would be to import the Collada file into Blender.

If it saves the import and still looks as expected, you can export it there using the THREE.js blender exporter .

+2
source

Collada, as you know, is hard to make out. If you have one that doesn't understand, you will have to write your own parser or fix the one you want to use. I gave up trying to use collada because of this, now I'm using 3DS files

+1
source

Source: https://habr.com/ru/post/904742/


All Articles