Night Texture in Eclipse Bug

Report bugs, bug fixes and workarounds here.
Avatar
Topic author
Sirius_Alpha
Posts: 213
Joined: 21.03.2019
With us: 5 years 1 month

Night Texture in Eclipse Bug

Post #1by Sirius_Alpha » 08.03.2020, 04:48

While testing some functionality for short-period exomoons around hot planets, I noticed the following problem:

In situations where a body with a night-texture has an eclipse-shadow on it, the night-texture is not rendered in the eclipse, creating rather odd visual effects. After the eclipse has progressed a certain amount, the night-texture on the opposite hemisphere of the body then vanishes.

Sample .ssc file:

Code: Select all

"KAP And b" "KAP And"
{
   Class "planet"
   Texture "browndwarf.*"
   Emissive true
   Color [1 0.5 0.5]
   Radius 68854
   Oblateness 0.06
   EllipticalOrbit
   {
      Period 420
      SemiMajorAxis 80
      Eccentricity 0.74
      Inclination 12.247017
      AscendingNode 156.053294
      ArgOfPericenter 75.188749
   }
   UniformRotation
   {
      Period 2.603896
      Inclination 12.247017
      AscendingNode 156.053294
   }
   LunarLambert 0.5
}

"I" "KAP And/KAP And b"
{
   Class "moon"
   Texture "venuslike.*"
   NightTexture "venuslikenight.*"
   Radius 12742
   OrbitFrame { EclipticJ2000 { Center "KAP And/KAP And b" } }
   BodyFrame { EclipticJ2000 { Center "KAP And/KAP And b" } }
   EllipticalOrbit
   {
      Period 0.125
      SemiMajorAxis 169449.222677007
      ArgOfPericenter 122.070392643132
      MeanAnomaly -6.70552253723145E-07
   }
   LunarLambert 0.5
}


NightShadowBug.jpg
Lack of night-texture in eclipsed area.

NightShadowBug2.jpg
Now the night-texture disappears on part of the anti-star hemisphere.
Exoplanet nerd. I maintain a monthly-updated exoplanet catalogue here:
https://celestia.space/forum/viewtopic.php?f=23&t=18705

Avatar
John Van Vliet
Posts: 2940
Joined: 28.08.2002
With us: 21 years 8 months

Post #2by John Van Vliet » 08.03.2020, 05:15

I think i can reproduce the bug

it is in "multitexture" and "OpenGL+nvidia" BUT NOT in OpenGL2 rendering

using IO as an example

this first one is gl1+nvidia
OGL.Nvidia.png


this one is OpenGL2 shader
OGL2.png

Avatar
SevenSpheres
Moderator
Posts: 820
Joined: 08.10.2019
With us: 4 years 7 months

Post #3by SevenSpheres » 08.03.2020, 17:27

I can reproduce the first bug in all render paths (including OpenGL 2.0), but I can't reproduce the second bug in any render path. Specifically, in "Multitexture", "OpenGL vertex program", and "OpenGL 2.0", no night texture is shown on the eclipsed part of the moon, but the night texture on the anti-starward side is always visible.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED


Return to “Bugs”