render.md 2.98 KB
Newer Older
Hui Wang's avatar
Hui Wang committed
1
[[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)
Hesper Yin's avatar
Hesper Yin committed
2

Hui Wang's avatar
Hui Wang committed
3
---
Hesper Yin's avatar
Hesper Yin committed
4
5
# Render

TheNumbat's avatar
TheNumbat committed
6
Welcome! This is Scotty3D's realistic, globally illuminated renderer, capable of creating images of complex scenes using path tracing.
Hesper Yin's avatar
Hesper Yin committed
7

Hesper Yin's avatar
Hesper Yin committed
8
9
10
11
## Render Window

In render mode, click on "Open Render Window", and you will be able to set the parameters to render your model. Enjoy the excitement of seeing the images becoming clearer and clearer ;-)

Hui Wang's avatar
Hui Wang committed
12
![light](./render_mode/window.png)
Hesper Yin's avatar
Hesper Yin committed
13

Hesper Yin's avatar
Hesper Yin committed
14
15
## Moving Camera

TheNumbat's avatar
TheNumbat committed
16
17
18
19
20
21
The render mode comes with its own camera, representing the position, view direction, field of view, and aspect ratio with which to render the scene. These parameters are visually represented by the camera control cage, which shows up as a black wire-frame pyramid that traces out the unit-distance view plane. Note that changing camera settings (e.g. field of view) will adjust the geometry of the camera cage.

To move the render camera to the current view, click "Move to View." This will reposition the camera so that it has exactly what you have on screen in view.

To freely move the camera without updating its field of view/aspect ratio to match the current viewport, click "Free Move," and use the normal 3D navigation tools to position the camera. When you are done, click "Confirm Move" or "Cancel Move" to apply or cancel the updated camera position. Feel free to play around with the field of view (FOV) and aspect ratio (AR) sliders while in the free move mode - they will adjust your current view to use these values, so you can see how exactly the effect the visible region.

Hesper Yin's avatar
Hesper Yin committed
22
23
## Create light

TheNumbat's avatar
merge    
TheNumbat committed
24
To add lighting to the scene, simply go to the menu on the left side, click "New Light", and you will be able to choose from a variety of point objects and infinite environment lights. (To implement support for environment lights, see PathTracer task 7.)
yhesper's avatar
yhesper committed
25

Hui Wang's avatar
Hui Wang committed
26
![light](./render_mode/light.png)
yhesper's avatar
yhesper committed
27

TheNumbat's avatar
merge    
TheNumbat committed
28
Additionally, any object can be made into an emissive area light by changing its material to `Diffuse Light`. Mesh-based area lights can produce much more realistic lighting conditions.
yhesper's avatar
yhesper committed
29

TheNumbat's avatar
TheNumbat committed
30
## Enable Ray Logging for Debugging
Hesper Yin's avatar
Hesper Yin committed
31

Hesper Yin's avatar
Hesper Yin committed
32
In Render mode, simply check the box for "Logged Rays", and you would be able to see the camera rays that you generated in task 1 when you start render.
yhesper's avatar
yhesper committed
33

Hui Wang's avatar
Hui Wang committed
34
![ray](./render_mode/ray_log.png)
yhesper's avatar
yhesper committed
35

Hesper Yin's avatar
Hesper Yin committed
36
37
## Visualize BVH

Hesper Yin's avatar
Hesper Yin committed
38
In Render mode, simply check the box for "BVH", and you would be able to see the BVH you generated in task 3 when you start rendering. You can click on the horizontal bar to see each level of your BVH.
yhesper's avatar
yhesper committed
39

Hui Wang's avatar
Hui Wang committed
40
![ray](./render_mode/bvh.png)
yhesper's avatar
yhesper committed
41

Hesper Yin's avatar
Hesper Yin committed
42
## Materials and Other Object Options
Hesper Yin's avatar
Hesper Yin committed
43

Hesper Yin's avatar
Hesper Yin committed
44
45
You can change the material and other property of your mesh by selecting the object and choose "Edit Pose", "Edit Mesh", and "Edit Material". For example, you can make a colored cow by "Edit Material" -> "Diffuse light", and pick a color that you like.

Hui Wang's avatar
Hui Wang committed
46
![material](./render_mode/material.png)