Chapter 08- 04-load-save-json-scene
Codes don't work since THREE.SceneExporter isn't supported.
"Attempted import error: 'SceneExporter' is not exported from 'three' (imported as 'THREE')"
Is there any way to replace THREE.SceneExoprter? Thanks
I found the replacement if someone faced the same issue. GLTFExporter. GLTFExporter works exactly the same as SceneExporter or ObjectExporter, depends on what you want to export.
exporter.parse( [ scene1, object1, object2, scene2 ], ... )
var exporter = new THREE.GLTFExporter();
// Parse the input and generate the glTF output exporter.parse( scene, function ( gltf ) { console.log( gltf ); downloadJSON( gltf ); }, options );
Hope it help.
https://threejs.org/docs/#examples/en/exporters/GLTFExporter