AGI STK Graphics 11 Send comments on this topic.
IAgStkGraphicsLighting Interface
Windows






Windows & Linux

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

Control the Lighting of the 3D scene
[MATLAB]Copy Code
% 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
[Python]Copy Code
# 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 
 
 
© 2018 Analytical Graphics, Inc. All Rights Reserved.