Skip to main content
Skip table of contents

Moon Control

Moon Control Overview


The purpose of the moon control feature is to allow manual control of the Moon object in Nova. Utilizing this feature will override the moon position and phase (from the Celestial Sphere Control).

Visual Examples

The moon being casted over a body of water.

The moon appearing in daytime.

The moon over a town.

Moon Control Configuration


No special data configuration is needed to control the moon.

Moon Control Usage


Moon Control ICD Interface

Nova VariableDescription

tofday.celestial_data.moon.position[0]

Moon heading in degrees

tofday.celestial_data.moon.position[1]

Moon elevation in degrees

tofday.celestial_data.moon.position[2]

Moon roll in degrees

tofday.celestial_data.moon.magnitude

Moon phase as percentage.  0.0 is new moon and 1.0 is full moon.


Moon Control Runtime Operation

Runtime Scenario - Set and see a Full Moon

  • Scenario:

    Visual Example

    Setting the time:

    1. Get the variable ios2ig.dat.tofday.hours and add it to Spy.

    2. Locate this variable's request type column and click "SPY"; it will change to "OVRD".

    3. Locate this variable's value and change it to 23.

    NOTE: Variables will be addressed without the "h2ig.dat.ownship." for simplicity after step 1.

    Setting the position (for viewing):

    1. Get the following variables and add them to Spy:
      • h2ig.dat.ownship.orient.pitch
      • h2ig.dat.ownship.orient.yaw

    2. Select all of the variables and click "Override all selected variables" to override all of the variables at once.

    3. Locate orient.pitch and change the value to 20.

    4. Locate orient.yaw and change the value to 270.

    NOTE: Variables will be addressed without the "ios2ig.dat.tofday.celestial_data.moon." for simplicity after step 1.

    Manually controlling the moon:

    1. Get the following variables and add them to Spy:
      • ios2ig.dat.tofday.celestial_data.moon.position[0]
      • ios2ig.dat.tofday.celestial_data.moon.position[1]
      • ios2ig.dat.tofday.celestial_data.moon.magnitude

    2. Select all of the variables and click "Override all selected variables" to override all of the variables at once.

    3. Locate position[0] and change its value to 270.

    4. Locate position[1] and change its value to 20.

    5. Locate magnitude and change its value to 1.0 or -1.0 (this will display a full moon).

Moon Control (Manual)  AeHost Usage

AeHost Scenario - Set and Enable the Moon (full)

  • Scenario:

    Visual Example

    Setting the Ownship to see the moon:

    1. Locate "Position and Orientation".

    2. Locate and click the "Edit" button.

    3. Locate the heading label and change its value to 270.

    4. Locate the pitch label and change its value to 20.

    Setting the time:

    1. Locate the "Date and Time" section.

    2. Uncheck "Use system date and time".

    3. Change the time to 20:30:00

    Setting up the moon:

    1. Locate the "Moon and Ephemeris Controls" section.

    2. If not already selected, select "IG Controlled Ephemeris".

    3. Locate the Moon Azimuth line and change the value to 270.

    4. Locate the Moon Elevation line and change the value to 20.

    5. Locate the Moon Phase line and change the value to 1.0.

Moon Control CIGI Packets

Celestial Sphere Control Packet to Control Time of Day and Ephemeris

CIGI ClassCigiCelestialCtrlV3
CIGI Base ClassCigiBaseEnvCtrl
Packet ID9
Packet Size (bytes)16
SpyClient Lookuphost2pcnova → ios2ig.dat.tofday
ParameterTypeDescriptionRange
hourcharSpecifies the current hour of the day within the simulation.

0 - 23

minutecharSpecifies the current minutes of the day within the simulation.

0 - 59

ephemeris enable1-bit field

Controls whether the time of day is static or continuous.


0 = Disable (Static time of day)

1 = Enable (Continuous time of day)

0 - 1

dateunsigned int

Specifies current date within the simulation.

format: MMDDYYYY

0 - MAX UINT

Component Control Packet for Manual Moon Control

Component Class CelestialSphereV3 (11)
Comp IDFieldICD MappingControl Parameter
1

Magnitude


celestial_data.moon.magnitude

CompData (0) as float

Azimuth

celestial_data.moon.position[0]

CompData (1) as float

Elevation

celestial_data.moon.position[1]

CompData (2) as float

Roll

celestial_data.moon.position[2]

CompData (3) as float

Moon Control FX Tuning

FX Tuning for Moon Control

Token NameDefault ValueAccepted ValuesDescriptionToken Source File
SKY_NOISE_ENABLEDTRUE
Sky noise enabled flag.

Sky.fx

SKY_NOISE_TEXTURE_COORD_SCALE0.004
Sky noise shader parameter.
SKY_NOISE_TEXTURE_INTENSITY0.033
Sky noise shader parameter.
GLOW_NOISE_TEXTURE_COORD_SCALE2.0
Glow noise shader parameter.
GLOW_NOISE_TEXTURE_INTENSITY0.582
Glow noise shader parameter.
STARS_REFLECTION_GAIN0.5
Stars / Planets reflection gain.
SKY_OBJECTS_SCALE6.0
Sun / Moon scalar.
SKY_RADIUS10000.0
Sky radius.
HORIZON_SKY_SCALE_FIXED0.33
Controls the sky and horizon border.
HORIZON_SKY_SCALE_DYNAMIC0.4
Controls the sky and horizon border.
LOWER_SKY_SCALE_FIXED0.6
Controls the horizon and mid sky border.
LOWER_SKY_SCALE_DYNAMIC0.8
Controls the horizon and mid sky border.
HORIZON_GND_SCALE_FIXED1.0

Controls the horizon and ground border.

HORIZON_GND_SCALE_DYNAMIC1.0
Controls the horizon and ground border.
HORIZON_RANGE250000.0
Horizon range.
HORIZON_OFFSET1.7
Horizon offset.
LAYERED_FOG_SCALE_FACTOR2.0
Layered fog scale factor.
LOBE_GLOW_VALUE1.0
Controls lobe glow.
LOBE_GLOW_SIZE1.0
Controls lobe glow.
LOBE_GLOW_OFFSET7.0
Controls lobe glow.
CUMULUS_LOBE_ATTEN_SCALE0.03, 0.035, 0.0003
Controls lobe glow.
LOBE_ATTEN_SCALE0.03, 0.6, 0.003
Controls lobe glow.
SKY_ENV_MAP_MAX_LEVELS-1

Max num mips to generate for dynamic sky cube env map.

Less than or equal to 1: No mipmaps

1000: All mipmaps


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.