Is there a ThreeJS to Collada Exporter?

Is there a ThreeJS to Collada Exporter?

I don’t believe there is one.

If you look into the THREE.js editor export menu, the options available for exports are JSON, OBJ and STL. I am afraid those 3 options are the only export format available. Plz. someone confirm! has a collada exporter. The creator of has contributed in many ways to THREE.js, you may want to ask him if he could add his exporter to the library :wink:

1 Like might work - you can import three.js json scenes and export as collada.

You’ll have to test it to see how well it works for your scene though.


In the meanwhile, @gkjohnson added one :tada:. Here is the respective example:


Does not like this code:

var texture1 = new THREE.Texture(canvas1) 
	texture1.needsUpdate = true;
    var material1 = new THREE.MeshPhongMaterial( {map: texture1, side:THREE.DoubleSide } );
    material1.transparent = true;

    var mesh1 = new THREE.Mesh(
        new THREE.PlaneGeometry(canvas1.width, canvas1.height),
    mesh1.rotation.z = orientierung; // +5.0/4.0*Math.PI;
	group.add( mesh1 );   

Uncaught DOMException: Failed to execute ‘atob’ on ‘Window’: The string to be decoded is not correctly encoded. at base64to buffer … at imageToData at processTexture, at processMaterial