I have a complex 3D scene builded with Three JS and a lot of Javascript code. I need to export this scene as one file and then use it on my site with a simple ThreeJS scene play
SceneExporter does not export the scene objects that are loaded through JSON ObjectExporter can't exports texture
link scripts
ObjectExporter.js
GeometryExporter.js
BufferGeometryExporter.js
MaterialExporter.js
function exportScene(save, type) {
exporter = new THREE.ObjectExporter;
var obj = exporter.parse(scene);
var json = JSON.stringify(obj);
log(json);
}
save json to file ext .json Library taken from https://github.com/mrdoob/three.js/tree/master/examples/js/exporters Loader taken from https://github.com/mrdoob/three.js/tree/master/editor default import in editor menu->file->import I'm working on that to add the ability to export texture