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!

clara.io has a collada exporter. The creator of clara.io 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

https://clara.io 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.

2 Likes

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

https://threejs.org/examples/misc_exporter_collada

4 Likes

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),
        material1
      );
	mesh1.position.set(-Math.sin(orientierung)*500,-hw/2,-Math.cos(orientierung)*500-lw/2);
    mesh1.rotation.x=-Math.PI/2;
    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