August 2018
Intermediate to advanced
528 pages
10h 58m
English
If you want to save a complete scene, you use the same approach as we saw in the previous section for the geometry. 04-load-save-json-scene.html is a working example showing this. The following screenshot shows this example:

In this example, you've got three options: exportScene, clearScene, and importScene. With exportScene, the current state of the scene will be saved in the browser's local storage. To test the import functionality, you can remove the scene by clicking on the clearScene button and loading it from local storage with the importScene button. The JavaScript needed for this is trivial: ...
Read now
Unlock full access