Night Texture in Eclipse Bug

Report bugs, bug fixes and workarounds here.
Topic author
Posts: 97
Joined: 21.03.2019
With us: 1 year 6 months

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
      Period 420
      SemiMajorAxis 80
      Eccentricity 0.74
      Inclination 12.247017
      AscendingNode 156.053294
      ArgOfPericenter 75.188749
      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" } }
      Period 0.125
      SemiMajorAxis 169449.222677007
      ArgOfPericenter 122.070392643132
      MeanAnomaly -6.70552253723145E-07
   LunarLambert 0.5

Lack of night-texture in eclipsed area.

Now the night-texture disappears on part of the anti-star hemisphere.
Exoplanet nerd. I maintain a monthly-updated exoplanet catalogue here:

John Van Vliet
Posts: 2749
Joined: 28.08.2002
With us: 18 years 1 month

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

this one is OpenGL2 shader

Posts: 462
Joined: 08.10.2019
With us: 1 year

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 • Contributing to development as much as I can • Discord server admin
PC specs: HP desktop, Windows 10 Home 64-bit, Intel Core i7-7700 (3.60 GHz), 16 GB RAM, 1 TB HDD + 128 GB SSD, Intel HD Graphics 630
Celestia versions: 1.5.1, 1.6.1, 1.6.2 (primary), 1.7.0 (latest build + some older ones)

Return to “Bugs”

Who is online