layout.md 3.23 KB
Newer Older
Hui Wang's avatar
Hui Wang committed
1
2
[[Home]](/docs/index.md)  [[User Guide]](/docs/guide/guide.md) [[Mesh Edit]](/docs/meshedit/overview.md) [[Path Tracer]](/docs/pathtracer/overview.md) [[Animation]](/docs/animation/overview.md)

TheNumbat's avatar
TheNumbat committed
3
---
TheNumbat's avatar
TheNumbat committed
4

TheNumbat's avatar
video?    
TheNumbat committed
5
6
# Layout

allai5's avatar
allai5 committed
7
This is the main scene editing mode in Scotty3D, and does not contain tasks for the student to implement.
TheNumbat's avatar
TheNumbat committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
This mode allows you to load full scenes from disk, create or load new objects, export your scene (COLLADA format), and edit transformations that place each object into your scene.

## Creating Objects

There are three ways to add objects to your scene:
- `Import New Scene`: clears the current scene (!) and replaces it with objects loaded from a file on disk.
- `Import Objects`: loads objects from a file, adding them to the current scene.
- `New Object`: creates a new object from a choice of various platonic solids.

To save your scene to disk (including all meshes and their transformations) use the `Export Scene` option.

Scotty3D supports loading objects from the following file formats:
- dae (COLLADA)
- obj
- fbx
- gltf / glb
- 3ds
- stl
- blend
TheNumbat's avatar
TheNumbat committed
27
- ply
TheNumbat's avatar
TheNumbat committed
28
29
30
31
32

Scotty3D only supports exporting scenes to COLLADA.

## Managing Objects

allai5's avatar
allai5 committed
33
Left clicking on or enabling the check box of your object under `Select an Object` will select it. Information about that object's transformation will appear under `Edit Object` beneath the "Select an Object" options.
TheNumbat's avatar
TheNumbat committed
34

allai5's avatar
allai5 committed
35
Under `Edit Object`, you may directly edit the values of the object's position, rotation (X->Y->Z Euler angles), and scale. Note that clicking and dragging on the values will smoothly scale them, and Control/Command-clicking on the value will let you edit it as text.
TheNumbat's avatar
TheNumbat committed
36
37
38
39
40
41
42
43
44
45
46
47

You can also edit the transformation using the `Move`, `Rotate`, and `Scale` tools. One of these options is always active. This determines the transformation widgets that appear at the origin of the object model.
- `Move`: click and drag on the red (X), green (Y), or blue (Z) arrow to move the object along the X/Y/Z axis. Click and drag on the red (YZ), green (XZ), or blue (XY) squares to move the object in the YZ/XZ/XY plane.
- `Rotate`: click and drag on the red (X), green (Y), or blue (Z) loop to rotate the object about the X/Y/Z axis. Note that these rotations are applied relative to the current pose, so they do not necessarily correspond to smooth transformations of the X/Y/Z Euler angles.
- `Scale`: click and drag on the red (X), green (Y), or blue(Z) block to scale the object about the X/Y/Z axis. Again note that this scale is applied relative to the current pose.

Finally, you may remove the object from the scene by pressing `Delete` or hitting the Delete key. You may swap to `Model` mode with this mesh selected by pressing `Edit Mesh`. Note that if this mesh is non-manifold, this option will not appear.

## Key Bindings

| Key                   | Command                                            |
| :-------------------: | :--------------------------------------------:     |
TheNumbat's avatar
TheNumbat committed
48
49
50
51
| `m` | Use the `Move` tool. |
| `r` | Use the `Rotate` tool. |
| `s` | Use the `Scale` tool. |
| `delete` | Delete the currently selected object. |
TheNumbat's avatar
TheNumbat committed
52
53
54

## Demo

Hui Wang's avatar
Hui Wang committed
55
<video src="./layout_mode/layout.mp4" controls preload muted loop style="max-width: 100%; margin: 0 auto;"></video>
Hui Wang's avatar
Hui Wang committed
56
![](./layout_mode/layout.mp4)