Stars and Earth from the lunar event

I am making a map of the Moon and I am wondering if there is a way to add stars and Earth to my map against the background of space. Is it possible to do this?



8 Likes

Wow! Nice!
Well… I think you can do it in skies_settings entity (thanks to schyrikami).
Anyways here is code from Moon map code that still in game.

envi_probe_render_settings

  envi_probe_use_geometry --- yes
  envi_probe_sun_enabled --- yes

globe_entity

  globe__posOffset --- 72233.0, -25000.0, -20000.0
  globe__sunSize --- 0.01

skies_settings

  sky_atmosphere__atmosphere_scale --- 12.0
  sky_atmosphere__multiple_scattering_factor --- 3.0
  sky_atmosphere__average_ground_albedo --- 0.2
  sky_atmosphere__multiple_scale --- 5.0
  sky_atmosphere__ozone_scale --- 0.1, 0.1
  sky_atmosphere__rayleigh_scale --- 0.1, 0.1
  sky_atmosphere__mie_scale --- 0.2, 0.2
  sky_atmosphere__planet_scale --- 1.5

shaderVars

IN "shader_vars__vars:object"

    hmap_displacement_up --- 0.3
    ocean1 --- 142, 137, 71, 0
    ocean0 --- 76, 63, 5, 0
    ocean_density --- 0.1
    land_selfillum_worldscale --- 0.9
    river1 --- 142, 137, 71, 0
    river0 --- 76, 63, 5, 0
    hmap_displacement_down --- -0.15
    puddle_flat_hmap_reduce --- 0.03
    autodetect_land_selfillum_color --- 0.53, 0.0, 0.0, 0.16
    paint_details_tex --- "germany_wall_color_tex_palette*"
    puddle_increase --- -1.0
    land_selfillum_strength --- 32.0
    water_color_noise_size --- 71.0
    river_density --- 0.3

But yeah… I’m not 100% sure that these settings will show Earth.
Because it maybe be special feature for Moon map.

Clean code:

entity{
  _template:t="envi_probe_render_settings"
  envi_probe_use_geometry:b=yes
  envi_probe_sun_enabled:b=yes
}

entity{
  _template:t="globe_entity"
  globe__posOffset:p3=72233.0, -25000.0, -20000.0
  globe__sunSize:r=0.01
}

entity{
  _template:t="skies_settings"
  sky_atmosphere__atmosphere_scale:r=12.0
  sky_atmosphere__multiple_scattering_factor:r=3.0
  sky_atmosphere__average_ground_albedo:r=0.2
  sky_atmosphere__multiple_scale:r=5.0
  sky_atmosphere__ozone_scale:p2=0.1, 0.1
  sky_atmosphere__rayleigh_scale:p2=0.1, 0.1
  sky_atmosphere__mie_scale:p2=0.2, 0.2
  sky_atmosphere__planet_scale:r=1.5
}

entity{
  _template:t="shaderVars"

  "shader_vars__vars:object"{
    hmap_displacement_up:r=0.3
    ocean1:c=142, 137, 71, 0
    ocean0:c=76, 63, 5, 0
    ocean_density:r=0.1
    land_selfillum_worldscale:r=0.9
    river1:c=142, 137, 71, 0
    river0:c=76, 63, 5, 0
    hmap_displacement_down:r=-0.15
    puddle_flat_hmap_reduce:r=0.03
    autodetect_land_selfillum_color:p4=0.53, 0.0, 0.0, 0.16
    paint_details_tex:t="germany_wall_color_tex_palette*"
    puddle_increase:r=-1.0
    land_selfillum_strength:r=32.0
    water_color_noise_size:r=71.0
    river_density:r=0.3
  }
}
4 Likes