Derivation of DSO brightness versus distance in FT1.2

The place to discuss creating, porting and modifying Celestia's source code.
Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Derivation of DSO brightness versus distance in FT1.2

Post #1by t00fri » 30.10.2005, 14:09

Well I thought some of you might be interested in the way the galaxy brightness is implemented as function of the observer distance from the galaxy border in the forthcoming Celestia-1.4.0pre-FT1.2. It also incorporates the smooth day-night blending that FT1.1 was still lacking.

Here is the extensively commented PDF file of the Maple worksheet that I used to derive the resulting behaviour. You can also look at the plots if you are not interested in the mathematics.

Derivation of DSO brightness versus observer distance in FT1.2

Of course you need a standard PDF plugin in your browser...

Bye Fridger
Last edited by t00fri on 19.11.2005, 14:35, edited 1 time in total.

Boux
Posts: 435
Joined: 25.08.2004
With us: 20 years 2 months
Location: Brittany, close to the Ocean

Post #2by Boux » 30.10.2005, 14:23

Well, I am a bit rusted on the math side but your great work demonstrates again that Celestia is not simply a toy but something really serious built on a real, rational, scientific approach.
Kudoos :D

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Derivation of DSO brightness versus distance in FT1.2

Post #3by Vincent » 30.10.2005, 16:38

t00fri wrote:It also incorporates the smooth day-night blending that FT1.1 was still lacking.

I've been waiting for a new day-night blending function for monthes, so this is very good news Fridger. Thanks ! :D
Can you also provide explanation about the new day-night blending function ?
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

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

Re: Derivation of DSO brightness versus distance in FT1.2

Post #4by t00fri » 30.10.2005, 17:31

Vincent wrote:
t00fri wrote:It also incorporates the smooth day-night blending that FT1.1 was still lacking.
I've been waiting for a new day-night blending function for monthes, so this is very good news Fridger. Thanks ! :D
Can you also provide explanation about the new day-night blending function ?


Yes, certainly. But I have little time right now.

Are you interested in how this works in the code or more what the background for the blending function is? Or what?

In short: suppose at night you start with a certain value of 'faintestMag' ~7 - 11, say. If you are on a planet with an atmosphere, the values of 'faintestMag' and 'saturationMag' are smoothly /decreased/ for increasing sky-illumination via an atmosphere. This mechanism is already present in Celestia.

So all you got to do is to implement some function(faintestMag) that drives the brightness of the object to be rendered to values <=0 when daylight comes on. How this works for my brightness profile, you may see in my second plot.

Bye Fridger

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #5by Vincent » 30.10.2005, 21:46

Ok, thanks for this short - but effective - explanation Fridger. :D
Is this new function going to modify also the rendering of the day-night limit area as seen from space ? My question was more precisely -not enough, apparently :wink: - about the earth illumination algorithm.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3


Return to “Development”