|
Q Light objectNote: if you want light quickly in a scene, try the Camera Light. What is a Light ?A Light is required to illuminate a scene. Surfaces in the 3D scene will not be visible unless lit, or it emits light (set by the Shader's emissive color). A Light has a color, which is blended with the surfaces' diffuse color. Be careful when using this - e.g. a surface with a pure red diffuse color will appear black when lit with a blue light as it will not reflect any blue light. A Light has a radius; only surfaces within the radius will be lit. It also has an intensity (brightness) which reduces as you get further from the Light. The Light intensity is determined by 3 parameters:
The light intensity then given by:
where
This can be seen more easily by plotting the Light intensity against radius for different sets of values: R=25, Intensity O=6, Intensity R=0.1The IntensityO value of 6 is greater than 1, and therefore extends the light hotspot out from the origin
R=25, Intensity O=1, Intensity R=0.1The IntensityO value is changed to 1 in this example, notice how the hotspot is now localised to the origin.
You can use the lightcalc spreadsheet to view different effects, or better yet, try them in QStudio. Omni and Spot lightsTwo different types of light are supported in QStudio
Spot light illumination is defined by a cone governed by 3 parameters:
What can I do with a Light ?In QStudio you can: If you just want a temporary light, you can easily place one on the active camera. Creating and Destroying LightsIf at least one Q file has been opened read-write then a Light can be created by:
A Light can only be deleted if it is not being used by any Instances. Select Delete from the Light's context menu to do this. Light propertiesThe Light properties can be viewed or modified (if read-write) by:
Capabilities propertiessee here for details. Color and Intensity propertiesColor: this color picker widget sets the light color as discussed above. Radius: this scaled slider widget sets the light's radius of effect in metres. Intensity at Source: this scaled slider widget sets the light's intensity at its origin. Intensity at Radius: this scaled slider widget sets the light's intensity at its cutoff point. Angle propertiesThis tab defines spotlight properties and also determines whether a light is and omni light or spotlight. An omni light will have both angles set to 0. Inner/Outer spot angle: these scaled slider widgets vary the spot light angles. Marking a LightWhen an Instance of a Light is marked the origin of the Light is marked with a wire-frame cube. The cube is the same size for all lights. The edges of the cube will always be displayed in the same color (purple in this case). The faces of the cube are colored the same color as the Light: the colors and size of the marker can be changed by using the Visualisation Preferences. |
| ||||||