Light Sources

Previous pageReturn to chapter overviewNext page

A light source is an element serving for rendering three-dimensional objects and helping controlling the lighting of the three-dimensional scene. Light sources are snapped to 3D nodes. Their directions are also defined by 3D nodes. There are three types of light sources - point, directional and projector.

Spot light source emits the light from one point in all directions over the whole 3D scene.

Directional light source emits the light in a certain direction over the whole 3D scene.

Projector light source emits a light cone from a given point in a certain direction with the specified drop-off rate.

A light source is displayed as a small "radiant" sphere.

clip7253

3D window rendering uses simplified lighting calculations: the lightness (and, respectively, the color) of the surface depends only on the angle of the incident light to the surface. The effects of shadowing, reflecting, refracting and scattering of light are not present. To create more realistic scene rendering, use the command "3VY: View Ray Tracing" (see the chapter "Ray tracing").

A light source can be hidden from display while maintaining the lighting effect. By default, lighting of the 3D scene also involves a light source (one or multiple) on the camera, oriented along the viewing direction. The parameters of those light sources are set by the command "3VP: Set View Parameters" (see the chapter "3D View").

One scene allows creation of an arbitrary number of light sources. However, the number of light sources affecting the resulting rendering of the 3D window depends on the type of a video card installed on the computer.

Lately, the number of light sources handled by video cards varies from 8 to 16.

 

Creating light source

To create a light source, use the command "3L: Create Light Source". The command is called by one of the following ways:

Icon

Ribbon

View → 3D Model → Light source

Keyboard

Textual Menu

<3L>

Construct > Light source

 

After calling the command, the following options will appear in the automenu, along with the general system options:

<1>

Select position of Light Source

<2>

Select direction of Light Source

<L>

Point Light Source

<D>

Directional Light Source

<S>

Projector

To define a light source, you need to use a special manipulator.

User may also select a 3D node or point of an object in the scene to define position for the light source. For this purpose activate the option .

 

Use the option to define the direction of light propagation for the directional light source or projector . You should select a 3D node or point of an object in the scene to define the direction.

 

The initial color of the light source is white.

 

Point light source

Point light source has no direction of light propagation. You should specify only position of the light source for its creation.

You should call the following option for the point light source creation:

<L>

Point Light Source

clip7261        clip7262

Diagram of light propagation from a spot source

 

Directional light source

To create a directional light source call the option:

<D>

Directional Light Source

You should specify a position of the light source and direction of the light propagation for a directional light source creation. Then press .

clip7265        clip7266

Diagram of light propagation from directional source

 

Projector

Select the following option for the projector creation:

<S>

Projector

You should specify a position of the light source and direction of the light propagation for a projector creation. Then press .

 

clip7269        clip7270

Diagram of propagation of light from projector        

 

An example of all types of the light sources usage can be found in “Flying around object” and “Room” prototypes.

The drawings with sample constructions of all types of light sources can be found in the library “Examples” located in the folder: “Additional resources/Light sources”.

 

Light source parameters

To define parameters of a light source, bring up the dialog box. This is done by the option:

       <P>        Set entity parameters        

s1303

Type. This parameter indicates the type of the light source (spot, directional, projector). It is defined automatically during the construction.

Intensity. Defines the intensity of the light source. The higher the light intensity, the more it affects the image in the 3D window, and the higher is lightness of the resulting image.

Drop off rate. Defines the projector's drop-off angle.

Cut off rate. This rate defines the smoothness of transition from light to dark across the boundary of the projector's light spot. The diagram on the right clearly shows the effect of this parameter with the values 0 and 1 respectively.        

clip7273        clip7274        

The "Visibility" group of parameters is common across the system functionalities and define the modes of displaying a light source on the screen:

Color. The color of the light source. The light source is drawn in this color in the 3D window, and also emits light in this color.

Show Image in 3D View. Checking this parameter makes visible the image of a light source existing in the 3D scene. If the parameter is cleared, the light source will be hidden, but the lighting effect remain. To select, or modify properties of, a light source made invisible in the 3D window, use the model tree.

Show on Fragment. If a model is used as a 3D fragment, then the light source with this parameter set will be exported into an assembly model.

POV Instructions. You can enter instructions in this parameter's field, that will be appended to the end of the description of the light source upon exporting the given file into POV for creating a photorealistic image.