Varying transparency of star & galaxy labels

The place to discuss creating, porting and modifying Celestia's source code.
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #41by ElChristou » 15.05.2007, 10:30

chris wrote:
Cham wrote:I agree totally with neo albireo. The new fading effect is very nice. However, the last orbits are still disappearing abruptly.

I don't see this effect of the last orbits disappearing abruptly . . .


I also confirm this behavior...
Image

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

Post #42by chris » 15.05.2007, 10:36

ElChristou wrote:
chris wrote:
Cham wrote:I agree totally with neo albireo. The new fading effect is very nice. However, the last orbits are still disappearing abruptly.

I don't see this effect of the last orbits disappearing abruptly . . .

I also confirm this behavior...


It seems very much like a Mac-only issue :?

--Chris

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

Post #43by chris » 15.05.2007, 10:40

ElChristou wrote:
chris wrote:
Cham wrote:I agree totally with neo albireo. The new fading effect is very nice. However, the last orbits are still disappearing abruptly.

I don't see this effect of the last orbits disappearing abruptly . . .

I also confirm this behavior...


Strange question: do you see this no matter what angle you zoom out from the solar system? That is, does the same thing happen whether you're looking at the solar system either edge-on or from above?

--Chris

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #44by Cham » 15.05.2007, 10:40

chris wrote:It seems very much like a Mac-only issue :?

--Chris


Well, the rest is working. No problems with the labels, and the other orbits are fading correctly. The moons orbits are all working correctly too. If it's a Mac problem, I wonder why it affects only the last orbits. I suspect it's related to the screen size/ratio.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #45by Cham » 15.05.2007, 10:44

chris wrote:Strange question: do you see this no matter what angle you zoom out from the solar system? That is, does the same thing happen whether you're looking at the solar system either edge-on or from above?

--Chris


I just made a test : the last orbits are disappearing abruptly in all cases, no matter what is the viewing angle.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #46by ElChristou » 15.05.2007, 10:58

Cham wrote:
chris wrote:Strange question: do you see this no matter what angle you zoom out from the solar system? That is, does the same thing happen whether you're looking at the solar system either edge-on or from above?

--Chris

I just made a test : the last orbits are disappearing abruptly in all cases, no matter what is the viewing angle.


Confirmed!
Image

neo albireo
Posts: 68
Joined: 03.02.2005
With us: 19 years 9 months
Location: Switzerland

Post #47by neo albireo » 15.05.2007, 12:04

Cham wrote:
chris wrote:Strange question: do you see this no matter what angle you zoom out from the solar system? That is, does the same thing happen whether you're looking at the solar system either edge-on or from above?

--Chris

I just made a test : the last orbits are disappearing abruptly in all cases, no matter what is the viewing angle.


I do not fully confirm this. I think that the behaviour IS different at various angles. I'm at work now and can't check this now, but the distance of the disappearing was different if edge-on or from above.

[edit]Mac users, just go to a distance where the orbits just disappeared and move around the sun - on my computer, the orbits will appear again in some positions that are related to the viewing angle. Just try with different distances and you will probably see the same effect.[/edit]

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

Post #48by chris » 15.05.2007, 16:00

Thanks for the test. I think that I may have a grasp on what the problem is. I should have a fix coming shortly.

--Chris

neo albireo
Posts: 68
Joined: 03.02.2005
With us: 19 years 9 months
Location: Switzerland

Post #49by neo albireo » 15.05.2007, 16:13

It is really hard to reproduce the behaviour of this bug. Sometimes you can make a full turn around the sun with the orbits visible and the next turn will be without orbits. Sometimes you are very far and can make a full turn around the sun (complete with edge-on and view from above) with orbits and sometimes you are nearer and the orbits disappear for a whole turn.

One thing happens quite often, though: The orbits pop out again when you reach view from above, or zenith. They seem more likely to disappear near edge-on view.

Avatar
dirkpitt
Developer
Posts: 674
Joined: 24.10.2004
With us: 20 years

Post #50by dirkpitt » 16.05.2007, 12:52

neo albireo wrote:Mac users, just go to a distance where the orbits just disappeared and move around the sun - on my computer, the orbits will appear again in some positions that are related to the viewing angle. Just try with different distances and you will probably see the same effect.


I am a Mac user, and indeed I can confirm this angle-dependence.

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #51by ElChristou » 16.05.2007, 14:48

I cannot determinate this angle dependence on my config, the behavior is quite chaotic... Perhaps it's my card...
Image

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

Post #52by t00fri » 17.05.2007, 12:16

Chris wrote:...
Do I understand correctly that the fading is based on apparent magnitude and not distance?

--Chris


It may be useful if I explain some of my label-fading code here. It is basically simple and very similar for galaxies and stars. The label transparency 'distr' (and thus the label visibility) ranges between 0 and 1.

Code: Select all

float distr = 3.5f * (labelThresholdMag - appMag)/labelThresholdMag;


It only depends on the ratio appMag/labelThresholdMag

The more tricky variable is labelThresholdMag. It is basically constructed following my automag philosophy. For a given sky brightness, it essentially depends on the field of view(FoV) or equivalently, the "effective screen distance" of the user. In a way this emulates the magnification of a telescope and keeps the density of visible labels on the screen about constant.

When the FoV decreases ( <=> increasing magnification) the labels of the brighter objects move out of the field while the labels of dimmer ones appear.

This crucial trick avoids overcrowded/overlapping labels!

labelThresholdMag and thus FoV is typically altered via SHIFT + mouse-LEFT movements.

The rest is easy. The scaling factor in my current implementation is indeed apparent magnitude (appMag) rather than a function of distance alone. The latter would easily be possible as well, by defining and using above --instead of appMag-- a modified apparent magnitude, referring to some suitable constant absolute magnitude for all stars, say.

Using appMag, however, has the advantage that all prominent stars in the constellation patterns are mostly labelled initially, since here apparent magnitude and NOT distance is the relevant quantity.

Bye Fridger
Image

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

Post #53by t00fri » 17.05.2007, 13:01

I have committed my fading star label code to CVS (render.cpp)

Bye Fridger
Image

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

Post #54by chris » 17.05.2007, 17:18

dirkpitt wrote:
neo albireo wrote:Mac users, just go to a distance where the orbits just disappeared and move around the sun - on my computer, the orbits will appear again in some positions that are related to the viewing angle. Just try with different distances and you will probably see the same effect.

I am a Mac user, and indeed I can confirm this angle-dependence.


I believe that I may have fixed the problem. I committed the fix to CVS, but I haven't had a chance to test it on my MacBook yet. I'd be interested in hearing reports from Mac users who've updated from the CVS (after 10am PDT).

--Chris

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #55by ElChristou » 17.05.2007, 18:37

chris wrote:...I'd be interested in hearing reports from Mac users who've updated from the CVS (after 10am PDT).


Build 3 minutes ago, the orbits are just fine for me. Tx Chris!

The stars labels are also very well, one can appreciate a full during a star tour... nice work Fridger! :D
Image

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

Post #56by chris » 17.05.2007, 19:45

ElChristou wrote:
chris wrote:...I'd be interested in hearing reports from Mac users who've updated from the CVS (after 10am PDT).

Build 3 minutes ago, the orbits are just fine for me. Tx Chris!


Thanks for testing the fix!

--Chris

tech2000
Posts: 258
Joined: 14.02.2006
Age: 52
With us: 18 years 9 months
Location: Skepplanda, Sweden

Post #57by tech2000 » 17.05.2007, 20:45

There seems to have been alot of fixes and ofcourse Fridger's new fading star labels gone into the CVS.

Sorry for breaking into this thread like this but are we close to pre3 release?

Cheers, Anders

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #58by ElChristou » 17.05.2007, 21:34

Sorry for the noob question; while playing with the fading orbits (and labels btw nice!) I was wondering if Venus with it's 0.77 albedo is so bright to see it's dot disappearing after Mars orbit... is that correct?

Edit: Indeed seems odd to me. At this distance the Sun is rendered with one pixel and Venus 4... ok Venus is not pure white like the Sun, but still very present (too much to my taste)...
Last edited by ElChristou on 17.05.2007, 22:05, edited 2 times in total.
Image

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

Post #59by chris » 17.05.2007, 21:46

tech2000 wrote:There seems to have been alot of fixes and ofcourse Fridger's new fading star labels gone into the CVS.

Sorry for breaking into this thread like this but are we close to pre3 release?

Cheers, Anders


Yes, very close.

--Chris

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #60by ElChristou » 17.05.2007, 21:57

Still playing with the orbits, but now it's about the planet's dots; at aprox 7 ua of distance, they disappear abruptly... someone confirm?
Image


Return to “Development”