STK Graphics PrimitivesSend comments on this topic.
IAgStkGraphicsLighting Interface

Description

Lighting in the 3D scene.

Public Properties

Public Property AmbientIntensityGets or sets the ambient intensity throughout the scene.
Public Property DiffuseIntensityGets or sets the diffuse intensity from the sun.
Public Property EnabledGets or sets whether or not lighting is enabled.
Public Property NightLightsIntensityGets or sets the overall brightness for the night light's image overlay, Night Overlay.

Example

Set Vehicle Lighting Properties
[MATLAB]
% IAgSatellite satellite: Satellite object
lighting = satellite.Graphics.Lighting;
% Settings for vehicle in sunlight
sunlight = lighting.Sunlight;
sunlight.Visible = true;
sunlight.Color = 65535; % yellow
sunlight.LineWidth = 3;
% Settings for vehicle in penumbra
penumbra = lighting.Penumbra;
penumbra.Visible = true;
penumbra.Color = 42495; % orange
penumbra.LineWidth = 2;
% Settings for vehicle in umbra
umbra = lighting.Umbra;
umbra.Visible = true;
umbra.Color = 255;  % red
umbra.LineWidth = 1;


        
Control the Lighting of the 3D scene
[MATLAB]
% IAgScenario scenario: Scenario object
% Modify the lighting levels
manager = scenario.SceneManager;
lighting = manager.Scenes.Item(0).Lighting;
lighting.AmbientIntensity = .20;    % Percent
lighting.DiffuseIntensity = 4;  % Percent
lighting.NightLightsIntensity = 5;  % Percent


        
© 2025 Analytical Graphics, Inc. All Rights Reserved.