#212 Atmosphere drawn for un-illuminated planets

v1.6
closed-fixed
5
2009-02-14
2008-12-05
Selden Ball
No

When one visits a planet which is orbiting a Barycenter
and which has no Star illuminating it, glowing Atmosphere is drawn as if it were being illuminated. It should not.

This only happens if the deprecated Atmosphere parameters are specified. It does not happen if only Mie parameters are specified.

I was using the following stc file:

================================
Barycenter "T47"
{
RA 6.021 # degrees = 0.4014 # [hours]
Dec -72.0808 # [degrees]
Distance 1.4681e+04 # [ly]

SpectralType "G2V"
AbsMag 30
Radius 1
}
================================
and the following ssc file:
================================
"t47_b" "t47"
{
Texture "mars.*"
# Texture "mars8k.dds"
BumpMap "marsbump.*"
BumpHeight 2.5

Color [ 1 0.75 0.7 ]
HazeColor [ 1 1 1 ]
HazeDensity 0.45
Radius 3396 # equatorial
# Oblateness 0.0069

Atmosphere {
Height 30
Lower [ 0.8 0.6 0.6 ]
# Upper [ 0.7 0.3 0.3 ]
# Sky [ 0.83 0.75 0.65 ]
# Sunset [ 0.7 0.7 0.8 ]
# Slightly bluish sunset, as seen in true color pictures
# from Pathfinder

Mie 0.0024
MieAsymmetry -0.15
Rayleigh [ 0.0010 0.0006 0.0003 ]
Absorption [ 0 0 0 ]
MieScaleHeight 20
}

CustomOrbit "vsop87-mars"
BodyFrame { EquatorJ2000 {} }
CustomRotation "iau-mars"
Albedo 0.150
}
================================

Discussion

  • Chris Laurel

    Chris Laurel - 2009-02-14

    I've attached a fix for this bug. It also corrects a bad shader (i.e. 'bright red ball') bug that occurs when using scattering atmosphere when there is no light source. There's one slight defect: even without a light source, atmospheres can still have a visible darkening effect. The patch just causes atmosphere rendering to be skipped completely. This is an improvement over a shader error, but we should address the problem properly after 1.6.0. I'll open a separate bug.

     
  • Chris Laurel

    Chris Laurel - 2009-02-14
    • milestone: 870581 --> v1.6
     
  • Selden Ball

    Selden Ball - 2009-02-14
    • status: open --> closed-fixed
     
  • Selden Ball

    Selden Ball - 2009-02-14

    This patch does prevent unlit atmospheres from being drawn.

    However, this patch and the one for the marker/solar-system visibility problem cannot be applied simultaneously. I'll leave it to you to make sure they work together.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks