layout.md 3.1 KB
Newer Older
TheNumbat's avatar
TheNumbat committed
1
---
TheNumbat's avatar
TheNumbat committed
2
layout: default
TheNumbat's avatar
TheNumbat committed
3
title: "Layout"
allai5's avatar
allai5 committed
4
5
permalink: /guide/layout_mode/
parent: User Guide
TheNumbat's avatar
TheNumbat committed
6
---
TheNumbat's avatar
TheNumbat committed
7

TheNumbat's avatar
video?    
TheNumbat committed
8
9
# Layout

allai5's avatar
allai5 committed
10
This is the main scene editing mode in Scotty3D, and does not contain tasks for the student to implement.
TheNumbat's avatar
TheNumbat committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
30
- ply
TheNumbat's avatar
TheNumbat committed
31
32
33
34
35

Scotty3D only supports exporting scenes to COLLADA.

## Managing Objects

allai5's avatar
allai5 committed
36
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
37

allai5's avatar
allai5 committed
38
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
39
40
41
42
43
44
45
46
47
48
49
50

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
51
52
53
54
| `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
55
56
57

## Demo

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