Le dimanche 30 octobre 2005 à 09:15 +0100, Erik Hofman a écrit :
> Dave Culp wrote:
> > Is it possible to make engine sounds quieter when the canopy is closed?
> > 
> > Is it possible to have the engine sound different when you are in front of 
> > the 
> > intake and can hear the compressor, than when you are nearer the exhaust 
> > and 
> > hear the roar of the nozzle more?
> 
> Yes, I did that for the F-16 already:
> 
> <engine>
>     <name>engine</name>
>     <path>Sounds/jet.wav</path>
>     <mode>looped</mode>
>     <property>/engines/engine/running</property>
>     <orientation>
>      <x>0.0</x>
>      <y>0.0</y>
>      <z>180.0</z>
>      <inner-cone>180.0</inner-cone>
>      <outer-cone>360.0</outer-cone>
>      <outer-gain>0.2</outer-gain>
>     </orientation>
>     <volume>
>      <property>/engines/engine/thrust_lb</property>
>      <type>lin</type>
>      <factor>0.000034451</factor>
>     </volume>
>    </engine>
> 
> Note the inner-cone, outer-cone and outer-gain section.
> The inner code defines which section doesn't get affected (so between 0 
> degrees and 180 degrees the amplitude won't change).
> The outer code defines a the section where the amplitude gets faded to 
> "outer-gain".
> 
> Note that this is in the 3d cockpit orientation.
> See FlightGear/docs-mini/README.xmlsound for more information.
> 
> Erik
> 
Hello,

  About next f8 release, and quickly done, to answer here  for cockpit
question:

<!-- external view -->
<engine>
            <name>whine</name>
            <path>Sounds/whine.wav</path>
            <mode>looped</mode>
            <condition>
                    <property>/engines/engine[0]/running</property>
                    <and>
                            <not>
                            <equals>
                                    
<property>sim/current-view/view-number</property>
                                    <value>0</value>
                            </equals>
                            </not>
                    </and>
            </condition>
            <volume>
                    <property>/engines/engine[0]/n2</property>
                    <factor>0.003</factor>
            </volume>
            <pitch>
                    <property>/engines/engine[0]/n2</property>
                    <factor>0.01</factor>
                    <offset>0.15</offset>
            </pitch>
    </engine>
    
    <!-- canopy closed -->
    <engine>
      <name>whine-c</name>
      <path>Sounds/whine.wav</path>
      <mode>looped</mode>
      <condition>
        <property>/engines/engine[0]/running</property>
        <and>
                <equals>
                        <property>sim/current-view/view-number</property>
                        <value>0</value>
                </equals>
                <equals>
                        <property>/fdm/jsbsim/fcs/canopy-pos-norm</property>    
                            
                        <value>0</value>
                </equals>               
        </and>
      </condition>
      <volume>
        <property>/engines/engine[0]/n2</property>
        <factor>0.001</factor>
      </volume>
      <pitch>
        <property>/engines/engine[0]/n2</property>
        <factor>0.01</factor>
        <offset>0.15</offset>
      </pitch>
    </engine>
    
    <!-- canopy opened-->
    <engine>
            <name>whine-o</name>
            <path>Sounds/whine.wav</path>
            <mode>looped</mode>
            <condition>
                    <property>/engines/engine[0]/running</property>
                    <and>
                            <equals>
                                    
<property>sim/current-view/view-number</property>
                                    <value>0</value>
                        </equals>
                            <not>
                            <equals>
                                    
<property>/fdm/jsbsim/fcs/canopy-pos-norm</property>                            
        
                                    <value>0</value>
                            </equals>
                           </not>
                    </and>
            </condition>
            <volume>
                    <property>/engines/engine[0]/n2</property>
                    <factor>0.003</factor>
            </volume>
            <pitch>
                    <property>/engines/engine[0]/n2</property>
                    <factor>0.01</factor>
                    <offset>0.15</offset>
            </pitch>
    </engine>
-- 
Gerard


_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to