I was able, with a few lines of nasal and moving the prop disc to it's own model xml, to make the disc smoothly disapear as the rpm increases. An added advantage is the disc is gone for the rotating AC at start up in fgrun.

Nasal added to pa24-electrical.nas in the ammeter section:
##
#  Save a factor used to make the prop disc disapear as rpm increases
##
   factor = 1.0 - rpm/2400;
   if ( factor < 0.0 ) {
       factor = 0.0;
   }

   # outputs
setprop("/sim/models/materials/propdisc/factor", factor);
model xml that uses this factor:

<?xml version="1.0"?>
<PropertyList>
<path>fastprop.ac</path>
<animation>
 <name>PropVisibility</name>
 <type>material</type>
 <object-name>FastpropDisc</object-name>
 <transparency>
  <alpha>0.2</alpha>
  <factor-prop>/sim/models/materials/propdisc/factor</factor-prop>
 </transparency>
</animation>
<animation>
 <type>select</type>
 <object-name>FastpropDisc</object-name>
 <condition>
   <greater-than>
    <property>engines/engine[0]/rpm</property>
    <value>350</value>
   </greater-than>
 </condition>
</animation>
</PropertyList>

The value <alpha>0.2</alpha> is very nearly the maximum that you see as the rotating prop disappears and the prop disc appears. Then the disc smoothly disappears as the rpm increases. The alpha goes to zero at 2400 rpm and the disc is just barely visible at the engine run-up rpm of 2000 (which is what I see with the real run-up). The prop disc is inot visible for all cruise power and prop settings. At 15 in MP on downwind the prop disc is not visible but becomes more visible as you retard the throttle on base. Once you have full flaps, and increase the MP to 16 in to control the descent, the disc again disappears until you pull the throttle for the flare out. Very realistic!

I will submit the patch tomorrow evening.

Dave Perry ;-)



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to