6

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 ?

Andreas Köberle
  • 106,652
  • 57
  • 273
  • 297
Xavier
  • 3,919
  • 3
  • 27
  • 55

3 Answers3

3

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

Remi Arnaud
  • 465
  • 1
  • 4
  • 11
2

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 .

SchmitzIT
  • 9,227
  • 9
  • 65
  • 92
jensarps
  • 21
  • 2
1

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

NoNaMe
  • 6,020
  • 30
  • 82
  • 110
Florian Bösch
  • 27,420
  • 11
  • 48
  • 53
  • 2
    I found a nice solution, it's a plugin for Sketchup wich export directly to Three.js => https://github.com/timjb/sketchup-threejs – Xavier Jan 05 '12 at 08:29