Repository navigation
Saving Your Work
SceneEditor keeps nothing between visits. Reloading the page returns it to the default lights and materials with an empty scene, so save anything you want to keep. Files go to your browser's downloads folder.
| To keep | Save | From | Can SceneEditor load it again? |
|---|---|---|---|
| The finished scene, with assigned materials | scene.gltf |
Scene tab | Yes, with Open files or by dropping it on the view, but its lighting changes (see below) |
| The scene, for use in your own three.js code | scene.json |
Scene tab | No |
| Your lights | <library name>.ltslib |
Lights tab | Yes, with Load light set |
| Your materials | <library name>.matlib |
Materials tab | Yes, with Load material set |
Library files don't record which object uses which material. Only saving the scene keeps that.
- Open the Scene tab.
- Choose a format in Select output format: GL Transmission (gltf) or Three scene (json).
- Click Save Scene.
- Textures are embedded in the file, so it's the only file you need to keep.
- The current directional, spot and point lights are saved too. If you reload the file, they become part of the model. They don't appear on the Lights tab, so you can't edit them, and they add to the lights already in the editor.
-
A reloaded scene looks brighter than when you saved it, and switching to an empty light set doesn't restore the original look. To keep working on a scene with control of its lighting, keep your original model and your
.ltsliband.matlibfiles, and treat the glTF as the finished output. - Ambient and hemisphere lights aren't saved, because glTF has no equivalent.
scene.json is the output of three.js's Scene.toJSON(), for loading with three.js's ObjectLoader. SceneEditor can't open it. Keep a glTF copy of anything you want to edit again.
Use the down arrow on the library toolbar to save. To load, use the up arrow, or drop the file on the view. Each file holds the whole library, however its tooltip is worded. Material libraries include their textures, so they can be large: the default library is about 14 MB.
Loading adds the file's sets to your library. It doesn't replace them, so loading into the default library leaves you with two copies of each default set. The exception is an empty library, which the file replaces. For a clean result, click X (Remove all) on the toolbar first.
Next: Known issues