This section shows how to introduce lights and shadows to your scenes.
Creating Light Sources
NUBIGON features three types of light sources, which are available through the Main Menu under Create > Lights and as icons on the Toolbar.
Create > Lights > Directional Light
Creates a new directional light source. The created directional light will point along the negative z-axis by default.
Create > Lights > Point Light
Creates a new point light source. The default position of the created point light will be located one unit in front of the camera.
Create > Lights > Spot Light
Creates a new spotlight source. The created spotlight will appear one unit in front of the camera and point along the negative z-axis.
Every light source in the scene is treated as a distinct object. You can use manipulators to move and rotate them around. For the light sources to affect your scene, activate the lighting mode by clicking the Lighting icon on the Viewbar.
|If you have disabled the computation of normal vectors during opening point clouds, lighting will not work!|
Follow the steps below so that a light source casts shadows onto your scene:
- Activate the lighting mode. Otherwise, shadows won’t be computed!
- Open the Lighting Editor by selecting Windows > Lighting Editor.
- Verify that the automatic updating of shadows is disabled ( not selected).
- For an enhanced shadow quality, temporarily increase GPU cache under Edit > Preferences > Performance when working with octrees. See here on how to do this.
- Select a light source to view its parameters in the Object Inspector. Below we show the parameters of a point light source:
- Choose Hard shadows or Soft shadows from the Shadow type dropdown menu.
- Compute shadows by clicking in the Lighting Editor.
- Restore the previous GPU cache value.
It might be necessary to recompute shadows when changes to the scene are made. There are two ways to update shadows:
- To manually update (recompute) shadows cast from all visible light sources, click .
- To enable automatic updating of shadows affected by the changes in the scene, click .
|TIP: We suggest recomputing shadows with the first approach when the scene set up has been completed.|
|TIP: NUBIGON save files (*.na) do not record the state of the lighting mode or the shadows. After re-launching NUBIGON and loading a scene, activate lighting and recompute the shadows.|