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
[Python - STK API]
# IAgSatellite satellite: Satellite object
lighting = satellite.Graphics.Lighting
# Settings for vehicle in sunlight
sunlight = lighting.Sunlight
sunlight.Visible = True
sunlight.Color = Colors.Yellow
sunlight.LineWidth = AgELineWidth.e4
# Settings for vehicle in penumbra
penumbra = lighting.Penumbra
penumbra.Visible = True
penumbra.Color = Colors.Orange
penumbra.LineWidth = AgELineWidth.e3
# Settings for vehicle in umbra
umbra = lighting.Umbra
umbra.Visible = True
umbra.Color = Colors.Red
umbra.LineWidth = AgELineWidth.e2

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
[Python - STK API]
# 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

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


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.