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.

Directional Light

Create > Lights > Directional Light

Creates a new directional light source. The created directional light will point along the negative z-axis by default.

Point Light

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.

Spot Light

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!

Adding Shadows

Follow the steps below so that a light source casts shadows onto your scene: 

  1. Activate the lighting mode. Otherwise, shadows won’t be computed!
  2. Open the Lighting Editor by selecting Windows > Lighting Editor.

  3. Verify that the automatic updating of shadows is disabled ( not selected).
  4. For an enhanced shadow quality, temporarily increase GPU cache under Edit > Preferences > Performance when working with octrees. See here on how to do this.
  5. Select a light source to view its parameters in the Object Inspector. Below we show the parameters of a point light source:

  6. Choose Hard shadows or Soft shadows from the Shadow type dropdown menu.
  7. Compute shadows by clicking  in the Lighting Editor.
  8. Restore the previous GPU cache value.

Updating Shadows

It might be necessary to recompute shadows when changes to the scene are made. There are two ways to update shadows:

  1. To manually update (recompute) shadows cast from all visible light sources, click 
  2. 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.

Was This Article Helpful?

Related Articles

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *