Skip to content

data atmospheres

LD edited this page Aug 26, 2020 · 2 revisions

The atmosphere object is used to create the atmosphere layer of the body but also to configure the scattering of light on the various layers of the body.

Currently only 3 types of atmosphere are supported : oneil-simple, oneil and celestia.

O'Neil Simple Atmosphere

O'Neil simple atmosphere is the direct implementation of the atmospheric scattering from Sean O'Neil.

Parameters

  • type: oneil-simple
  • shape: Shape of the atmospheric layer, optional, default is icosphere with subdivisions set to 5.
  • mie: Mie coefficient, optional, default value is 0.0015
  • g: Mie phase asymmetry, optional, default value is -0.99
  • rayleigh: Rayleigh coefficient, optional, default value is 0.0025
  • power: Sun power, optional, default value is 15.0
  • samples: Number of iterations when raymarching through the atmosphere, optional, default value is 5
  • hdr: Use HDR when rendering the surface, optional, default value is false
  • atm-hdr: Use HDR when rendering the atmosphere, optional, default value is true
  • exposure: HDR exposure, optional, default value is 0.8

Example

- planet:
    name: Earth
    radius: 6378.137
    ...
    atmosphere: oneil-simple

O'Neil Atmosphere

O'Neil atmosphere is the direct implementation of the atmospheric scattering from Sean O'Neil using lookup table.

Parameters

  • type: oneil
  • shape: Shape of the atmospheric layer, optional, default is icosphere with subdivisions set to 5.
  • height: Maximal height of the atmosphere layer in Km, mandatory, default value is 160
  • rayleigh: Rayleigh coefficient, optional, default value is 0.0025
  • rayleigh-scale-height: Rayleigh scale height in Km, optional, default value is 40.0
  • rayleigh-absorption: Absorption coefficients of the Rayleigh, optional, default value is (0.0, 0.0, 0.0)
  • mie: Mie beta coefficient, optional, default value is 0.0015
  • mie-alpha: Mie alpha coefficient, optional, default value is 0.0
  • mie-scale-height: Mie scale height in Km, optional, default value is 16.0
  • g: Mie phase asymmetry, optional, default value is -0.85
  • power: Sun power, optional, default value is 15.0
  • samples: Number of iterations when raymarching through the atmosphere, optional, default value is 32
  • hdr: Use HDR when rendering the surface, optional, default value is false
  • atm-hdr: Use HDR when rendering the atmosphere, optional, default value is false
  • exposure: HDR exposure, optional, default value is 0.8

Example

- planet:
    name: Earth
    radius: 6378.137
    ...
    atmosphere: oneil

Celestia atmosphere

Celestia atmosphere is the direct implementation of the atmospheric scattering from Celestia.

Parameters

  • type: celestia
  • shape: Shape of the atmospheric layer, optional, default is icosphere with subdivisions set to 5.
  • height: Maximal height of the atmosphere layer in Km, mandatory.
  • mie: Mie coefficient, optional, default value is 0.0
  • mie-scale-height: Mie scale height, optional, default value is 0.0
  • mie-asymmetry: Mie phase asymmetry, optional, default value is 0.0
  • rayleigh: Rayleigh coefficients, optional, default value is (0.0, 0.0, 0.0)
  • rayleigh-scale-height: Rayleigh scale height, optional, default value is 0.0 (Not used).
  • absorption: Absorption coefficients, optional, default value is (0.0, 0.0, 0.0)