ros3djs
ros3djs copied to clipboard
Export scene as gltf
Hi there is any way to export viewer as ply or GLTF. I was trying three js Exporters with no success always result is empty.
You must mean that you tried the GLTFExporter from three.js examples.
https://threejs.org/docs/#examples/en/exporters/GLTFExporter
I'd imagine if you use this module like in the following code, it should work:
var viewer = new ROS3D.Viewer();
...
var exporter = new THREE.GLTFExporter();
// Parse the input and generate the glTF output
exporter.parse( viewer.scene, function ( gltf ) {
console.log( gltf );
}, options );