* Melchior FRANZ -- Friday 09 January 2004 15:33:
> I could live with dot lights for runway/taxiway, but vasi/papi look
> ridiculous without 'enhanced-lighting'.

And here's the remedy: put the attached file into $FG_ROOT/Nasal/.
It turns enhanced_lighting on at day (for beautiful VASI/PAPI),
but off as soon as runway lighting goes on (i.e. when sun_angle > 85deg
or visibility < 5000m; for faster rendering).

There's nothing you can't do with nasal.  :-)

m.
# $Id: enhanced-lighting.nas,v 1.1 2004/01/09 16:16:03 m Exp m $
#
# turn off enhanced_lighting when runway lighting is on
# i.e. when visibility < 5000m or sun angle > 85 deg;
# see tileentry.cxx: FGTileEntry::prep_ssg_node

visibility_node = props.globals.getNode("/environment/visibility-m");
sun_angle_node = props.globals.getNode("/sim/time/sun-angle-rad");
enhanced_lighting_node = props.globals.getNode("/sim/rendering/enhanced-lighting");

handle_enhanced_lighting = func {
        if (visibility_node.getValue() < 5000 or sun_angle_node.getValue() > 
1.483529864) {
                enhanced_lighting_node.setValue(0);
        } else {
                enhanced_lighting_node.setValue(1);
        }
        settimer(handle_enhanced_lighting, 1);
}

settimer(handle_enhanced_lighting, 1);

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to