New Sky Holes

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

New Sky Holes

Post #1by t00fri » 22.11.2006, 22:12

Here is a cel://url of recent new holes in the sky.

Example: Mars:

cel://SyncOrbit/Mars/2006-11-22T22:11:3 ... 11&lm=2576

I've seen these holes also on Earth, recently.

Bye Fridger
Image

danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 4 months

Re: New Sky Holes

Post #2by danielj » 23.11.2006, 23:38

What??s a sky hole?I can??t find anything unusual in this cel://url...


t00fri wrote:Here is a cel://url of recent new holes in the sky.

Example: Mars:

cel://SyncOrbit/Mars/2006-11-22T22:11:3 ... 11&lm=2576

I've seen these holes also on Earth, recently.

Bye Fridger

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #3by t00fri » 23.11.2006, 23:48

A skyhole is a hole in the sky ;-). It's usually due to floating
point inaccuracies that the sky appears to open up along
certain wedges as you can see on this screendump from
Mars:

Image

Usually it requires sufficiently big-scale textures, like this
32k one. You probably use too small Mars textures in
order to see the bug.

The point is that these black wedges in the sky
appeared only recently after one of Chris' many
updates...

Bye Fridger
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #4by chris » 24.11.2006, 02:53

I believe that the holes are caused by the fix to reduce the number of virtual texture tiles that get loaded. I need to change the calculation of the far plane to account for the way the new atmosphere code works.

--Chris

danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 4 months

Post #5by danielj » 24.11.2006, 12:25

Ah,THIS sky hole.I saw it,but not only with VT textures.When you get very near the planet,this hole appears.Problem was that your cel://url GET ME to a point 200 AU FROM MARS.I didn??t understand...


t00fri wrote:A skyhole is a hole in the sky ;-). It's usually due to floating
point inaccuracies that the sky appears to open up along
certain wedges as you can see on this screendump from
Mars:

Image

Usually it requires sufficiently big-scale textures, like this
32k one. You probably use too small Mars textures in
order to see the bug.

The point is that these black wedges in the sky
appeared only recently after one of Chris' many
updates...

Bye Fridger

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #6by t00fri » 24.11.2006, 17:12

danielj wrote:Ah,THIS sky hole.I saw it,but not only with VT textures.When you get very near the planet,this hole appears.Problem was that your cel://url GET ME to a point 200 AU FROM MARS.I didn??t understand...
...


Do you perhaps use an older version that produces incompatible cel://urls?

With the latest Celestia-CVS (that I always use) a click on my above cel://url get's me right to the view I have shown one post up.

I always tend to check things that I publish.

Bye Fridger
Image

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #7by selden » 24.11.2006, 18:07

Fridger,

Your URL places my viewpoint 39 km above Mars and the sky is entirely black. I have to go down to an altitude of less than about 15 km to see atmospheric effects.

What atmosphere definition are you using? Apparently it is not in CVS yet: I built from CVS this morning.
Selden

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #8by t00fri » 24.11.2006, 18:28

selden wrote:Fridger,

Your URL places my viewpoint 39 km above Mars and the sky is entirely black. I have to go down to an altitude of less than about 15 km to see atmospheric effects.

What atmosphere definition are you using? Apparently it is not in CVS yet: I built from CVS this morning.


Selden,

that sounds strange. I use the cel://urls from within Linux-KDE. I might check later for Windows. There might well be a difference, who knows ;-)

Find below my complete Mars .ssc. It's identical to Chris' latest submit apart from my 32k tiles for the base and normalmap textures.

Bye Fridger

Code: Select all

"Mars" "Sol"
{
    Texture "mars.ctx"
    NormalMap "mars-normal.ctx"
    Color   [ 1 0.75 0.7 ]
    HazeColor [ 1 1 1 ]
    HazeDensity 0.45
    Radius 3396 # equatorial
 
   
   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"
    EllipticalOrbit
    {
        Period                     1.8809
        SemiMajorAxis        1.5237
        Eccentricity              0.0934
        Inclination                1.8506
        AscendingNode     49.479
        LongOfPericenter 336.041
        MeanLongitude    355.453
    }

    RotationPeriod          24.622962
    Obliquity                    26.72
    EquatorAscendingNode     82.91
    RotationOffset      136.005

    Albedo            0.150
}
Image

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #9by t00fri » 24.11.2006, 18:49

Selden,

just checked the above cel://url with my standard 1.4.1 Windows installation. Indeed, there I end up quite a bit away from Mars with the aboce cel://url. So there is obviously a bug either in the Windows cel://url code or in the one for Linux (KDE).

That's all I can say at this point. Unfortunately, in Windows there seems to be no GOTO URL menue entry (?) , hence I cannot test the cel://url with the latest CVS compile that is NOT registered in the registry.

We both know that there might well be a change in cel://url compatibility due to Chris' recent mods.

Bye Fridger
Image

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #10by selden » 24.11.2006, 18:52

Fridger,

I have the same definition for Mars as you posted. The strangeness with the url does seem to be the issue.
Selden

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #11by t00fri » 24.11.2006, 19:19

selden wrote:Fridger,

I have the same definition for Mars as you posted. The
strangeness with the url does seem to be the
issue.


Further tests:

the general view agrees in all cases that I tested: 39km
above Mars, two craters visible in the foreground and
SMC in the sky.


in celestia-gtk and celestia-kde:
------------------------------------
things tend to agree with what you described if I choose
as render path: OpenGL vertex program/NVIDIA combiners!

The sky is ~ black at 39km altitude and becomes quite
yellow-orange when moving to the surface. No black
skyhole visible.


++++++++++++++++++++++
But for the OpenGL 2.0 render path it's the same as in KDE. Including a clearly visible skyhole!
++++++++++++++++++++++

Did you make sure that you used the correct render path???


Bye Fridger
Last edited by t00fri on 24.11.2006, 19:25, edited 1 time in total.
Image

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #12by selden » 24.11.2006, 19:50

Unfortunately, I have no way to know which render path I was using. (I think that needs to be one of the status lines shown on the screen most of the time, perhaps using a Lua feature.)

I was using Basic just now, and might have been using Basic previously. *sigh*

However, although not as sophisticated, many of the atmospheric altitude effects should be similar in all render paths. (I'm not saying that the parameters actually are currently defined with the intent of making the effects similar, but rather that they ought to be, if at all possible.)
Selden

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #13by t00fri » 24.11.2006, 20:00

selden wrote:Unfortunately, I have no way to know
which render path I was using. (I think that needs to be
one of the status lines shown on the screen most of the
time, perhaps using a Lua feature.)

But this is flashed for some seconds after switching!?

I was using Basic just now, and might have been
using Basic previously. *sigh*

However, although not as sophisticated, many of the
atmospheric altitude effects should be similar in all
render paths. (I'm not saying that the parameters
actually are currently defined with the intent of making
the effects similar, but rather that they ought to be, if at
all possible.)



But I just tested that the atmospheric appearance and
the skyhole bugs are QUITE different in the various
render paths, notably OpenGL 2.0. Remember, Chris
made most of his recent changes in OpenGL 2.0!!!

I am also quite sure that Daniel above chose the
WRONG render path
. Guys we need to test OpenGL
2.0. Everything else remained unchanged, recently!

Bye Fridger
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #14by chris » 28.11.2006, 17:33

Fridger--I checked in a fix for a hole in the sky problem. I was seeing the bug even without virtual textures, but I *think* it's the same problem that you've seen.

--Chris

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #15by t00fri » 28.11.2006, 18:25

chris wrote:Fridger--I checked in a fix for a hole in the sky problem. I was seeing the bug even without virtual textures, but I *think* it's the same problem that you've seen.

--Chris


Chris,

unfortunately, the hole in the sky I found is still there, unchanged...

Bye Fridger
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #16by chris » 29.11.2006, 00:31

Oops. The change didn't actually get checked in because I hadn't merged with the latest version of render.cpp in CVS. I resubmitted my change; if you sync again, hopefully the hole in the sky bug will disappear.

--Chris

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #17by t00fri » 29.11.2006, 18:33

chris wrote:Oops. The change didn't actually get checked in because I hadn't merged with the latest version of render.cpp in CVS. I resubmitted my change; if you sync again, hopefully the hole in the sky bug will disappear.

--Chris


Chris,

at first, I was happy to see that the hole in the sky at my above cel://url location has indeed gone. But then I discovered another one at a nearby perspective:

Here it is:

Image

Bye Fridger
Image

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #18by t00fri » 30.11.2006, 22:02

Chris,

wherever I look, still lots of "hole in the sky" bugs!

Note that these vanish if I switch to some render path other than OpenGL 2.0...

Bye Fridger

Image
Image


Return to “Ideas & News”