Am 08.03.2012 19:43, schrieb ThorstenB:
> On 08.03.2012 19:21, Curtis Olson wrote:
>> I bet there's a line of code somewhere that looks like:
>>
>> if ( visibility_meter>  1000 ) {
>>      do_sky_dome_stuff();
>> }
>
> Ha, Curt, I know you cheated! You just looked at the code, right? ;-)
> simgear/scene/sky/sky.cxx, SGSky::repaint:
>       if ( effective_visibility>  1000.0 ) {
>           enable();
>           dome->repaint();
>           stars->repaint();
>           planets->repaint();
>           oursun->repaint();
>           moon->repaint();

Thanks for the hint, that was easy enough for me ;-)

Thorsten,

the hardcoded value of 1000.0m is now settable at runtime with
/sim/rendering/minimum-sky-visibility
and defaults to 1000m, so the default behaviour is unchanged.

For the precipitation effect, I'm currently working on exposing most of 
the effect's properties to the property tree and implementing the 
current "magic" using property rules with a disable-switch.
That way you get access to particle speed, -size, -color and many more.

I somehow expect that one day you might want to correctly model the size 
and color of the snowflakes ;-)

Torsten

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to