meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
kclighting [2022/08/22 15:34] steph.jorgensenkclighting [2023/03/29 17:54] (current) steph.jorgensen
Line 1: Line 1:
 ====== Lighting ====== ====== Lighting ======
  
 +Explore options for lighting your model in SpeedTree.
  
- +^**Topic**^**Description**^ 
-=====Directional Lighting===== +|**[[directional-lighting|Directional lighting]]**| Learn about the position, intensity, and color of directional lighting cast by the Light object.| 
- +|**[[ambient-lighting|Ambient lighting]]**Modify a scene'ambient light and ambient occlusion.| 
-There is one global light source in the Modeler, which can be assumed to be the sun since you are modeling a tree.  +|**[[lighting-leaves-and-fronds|Lighting leaves and fronds]]**| Use global or local lighting controls to adjust the vertex normals on leaves and fronds.|    
- +
-===Gizmo=== +
-{{ ::light.png?nolink&200|}} +
-The light object itself sits in the top-right corner of the [[tooltree_window|Tree Window]] and displays the directional light rotation, the light color, and the light intensity. The Light is a screen-space object that rotates with the camera, making light rotation relative to the current view. When you click it, you are presented with a gizmo to rotate it, and thus affect the directional lighting in the scene. +
- +
-Selecting the light will also show the [[light|Light Properties]] in the [[toolpropertybar|Property Bar]], where you can edit all the other lighting information. Right clicking on the light will also present a contextual menu with shortcuts to many lighting options. +
- +
->**Note**: A shortcut for rotating the light gizmo relative to the current view is to hold the 'V' key and click & drag the mouse in the [[tooltree_window|Tree Window]]. +
- +
-===Color/Intensity=== +
- +
-The color and intensity of the directional light can be adjusted in the [[light|Light Properties]] when the light is selected. Lighting presets are also available to quickly switch between lighting scenarios. +
- +
-===Shadows=== +
- +
-Directional light will cast shadows. You may change the quality of these shadows in the [[light|Light Properties]] or contextual menu on the light object, but there is a trade-off in rendering speed.  +
- +
-=====Ambient Lighting===== +
- +
-Ambient light is light that exists in the scene but is not coming directly from the sun / light source. It is light from the environment around the subject. Without any ambient light, shadows would be completely black. +
- +
-===Color/Intensity=== +
- +
-The color and intensity of the ambient light can be adjusted in the [[light|Light Properties]] when the light is selected. Lighting presets are also available to quickly switch between lighting scenarios. +
- +
-Ambient light uses three colors to set up the environment: sky, horizon, and ground. These colors are interpolated to form the sky and ground in the background of the [[tooltree_window|Tree Window]]. +
- +
-===HDRI=== +
- +
-In addition to setting up the lighting environment with 3 colors, you can also import an image that contains the environment. High dynamic range images (HDRI) are sphereically-mapped, floating-point images of an environment, and they are a common way of supplying this information for use in rendering. They often allow for much more interesting lighting in controlled situations. HDRIs may already include the sun in outdoor scenes, so you can often turn down directional lighting (or use both). +
- +
-The Modeler can load an HDRI image (in hdr or exr format) for use in lighting the tree in the [[light|Light Properties]], and for supplying the background of the [[tooltree_window|Tree Window]]. +
- +
-The image below shows the same tree lit with 3-color ambient, HDRI ambient, and HDRI ambient with the image also used for the background. +
- +
-{{ :hdri.jpg?nolink |}} +
- +
- +
-===Ambient Occlusion=== +
-{{ ::ao.png&?300|}} +
-Ambient light comes from all directions at once. But similar to how directional light can cast shadows, parts of the tree should be shadowed from ambient light. This technique is referred to as ambient occlusion (AO).  +
- +
-AO darkens crevices and the interior of a tree, giving it much more realistic lighting. You can also use an [[kcmaterialspbr|ambient occlusion map]] to further refine AO on a per-material basis. +
- +
-Calculating AO is fairly quick, but it is not something that can be done all the time. You can compute it by selecting **Ambient Occlusion:Render** in the [[light|Light Properties]], selecting **Tools** > **Render ambient occlusion**, or by hitting 'O' in the [[tooltree_window|Tree Window]]. Editing the geometry of a tree will invalidate AO until the next calculation, though AO is computed when the tree is first loaded. +
- +
-With default settings, AO will most likely do a good job. However, you can further refine the effects of AO by modifying the Brightness, Contrast, Min, and Max properties. Generally, you want the very outside parts of the tree to be fully white. The interior of the tree should be dark but not black. The depth of the dark interior is up to the artist, depending on how dense and enclosed the tree is. +
- +
->**Note**: Switch to the "AO" render mode to visualize the computed AO on the tree for easy editing. +