Re: [Flightgear-devel] Moonlight reloaded

2012-11-11 Thread Renk Thorsten
I suspect the difference in light intensity (dynamic range) doesn't fit in an 8-bit 3-component color. It sure doesn't, but I think you're thinking way too complex. We don't want to render physical light intensity, we want to render perceived light intensity, and there the Weber Fechner law

Re: [Flightgear-devel] Moonlight reloaded

2012-11-11 Thread Tim Moore
On Sun, Nov 11, 2012 at 1:41 PM, Renk Thorsten thorsten.i.r...@jyu.fiwrote: I suspect the difference in light intensity (dynamic range) doesn't fit in an 8-bit 3-component color. It sure doesn't, but I think you're thinking way too complex. We don't want to render physical light

Re: [Flightgear-devel] Moonlight reloaded

2012-11-11 Thread Renk Thorsten
You need to do High Dynamic Range rendering to accurately capture these differences and the eye's ability to adapt to them. Basically, you do all the rendering in floating point and at the end convert the values to RGB colors with a mapping operator. We don't do that yet. I'm currently

Re: [Flightgear-devel] Moonlight reloaded

2012-11-10 Thread Renk Thorsten
If you need any information about the moon's position and/or phase, just let me know. It should be trivial to extract these values from the ephemeris code. Thanks, that was what I was hoping for :-) It depends a bit on if Fred wants to do anything with the moon - my scheme would be fine

Re: [Flightgear-devel] Moonlight reloaded

2012-11-10 Thread Frederic Bouvier
Hi Thorsten, De: Renk Thorsten thorsten.i.r...@jyu.fi À: FlightGear developers discussions flightgear-devel@lists.sourceforge.net Envoyé: Samedi 10 Novembre 2012 13:34:30 Objet: Re: [Flightgear-devel] Moonlight reloaded If you need any information about the moon's position and/or phase

[Flightgear-devel] Moonlight reloaded

2012-11-09 Thread Renk Thorsten
I was toying with this for a while, but now I have a reasonably cheap solution to render moonlight effects: http://www.flightgear.org/forums/viewtopic.php?f=47t=14755start=195#p170250 Now, all I need is the info about the current moon phase and if the moon is above the horizon which is

Re: [Flightgear-devel] Moonlight reloaded

2012-11-09 Thread Lachlan Bruce
Interesting, looks good. So effectively it glows... On Fri, Nov 9, 2012 at 9:19 PM, Renk Thorsten thorsten.i.r...@jyu.fiwrote: I was toying with this for a while, but now I have a reasonably cheap solution to render moonlight effects:

Re: [Flightgear-devel] Moonlight reloaded

2012-11-09 Thread Arnt Karlsen
On Fri, 9 Nov 2012 10:49:30 +, Renk wrote in message e495a106ff5f31448739e79d34138c191e161...@mbs1.ad.jyu.fi: I was toying with this for a while, but now I have a reasonably cheap solution to render moonlight effects:

Re: [Flightgear-devel] Moonlight reloaded

2012-11-09 Thread Renk Thorsten
Interesting, looks good. So effectively it glows... Not really - unlike glowing stuff, it is actually obscured by cloud cover for instance. * Thorsten -- Everyone hates slow websites. So do we. Make your web apps

Re: [Flightgear-devel] Moonlight reloaded

2012-11-09 Thread Durk Talsma
Just a quick note for now, because I've got a lecture coming up in about 30 minutes... If you need any information about the moon's position and/or phase, just let me know. It should be trivial to extract these values from the ephemeris code. Cheers, Durk On 09 Nov 2012, at 13:25, Renk

Re: [Flightgear-devel] Moonlight reloaded

2012-11-09 Thread Curtis Olson
Hi Thorsten, One more tidbit of info on phase of the moon. The phase of the moon is proportional to the relative location of the sun and the moon in the sky; more specifically the angle between them. For example, a full moon will be rising precisely when the sun is setting -- in this case they

Re: [Flightgear-devel] Moonlight reloaded

2012-11-09 Thread Frederic Bouvier
Hi Curt, But now with Rembrandt maybe we can begin to cast the earth's shadow onto the moon? What do you think Fred? :-) It should be just a matter of rendering two spheres inside an FBO and using the resulting shadow map when rendering the moon sphere to show moon eclipses, or altering