Changes

Jump to navigation Jump to search

Documentation/Engine/Sound/TruckEngine

37 bytes added, 08:38, 18 October 2020
m
no edit summary
Event "engine" plays sound of the engine.<br>
It have has to be 3D event. The event should be routed to the "truck_engine" audio bus.<br>
The event must be looped and its living cycle is controlled by "play" parameter (see bellow).<br>
<br>
Event "exhaust" plays sound of the exhaust.<br>
It have has to be 3D event. The event should be routed to the "truck_exhaust" audio bus.<br>
The event must be looped and its living cycle is controlled by "play" parameter.<br>
<br>
* exhaust/play
* exhaust/rpm
<br>
The purpose of the parameters is the same as for the "engine" event (see Event "engine").
Event "turbo" plays sound of the turbo.<br>
It have has to be 3D event. The event should be routed to the "truck_turbo" audio bus.<br>
The event must be looped and its living cycle is controlled by "play" parameter.<br>
<br>
=== Event "start_bad" ===
Event "start_bad" plays sound of unsuccessful starting of the engine.<br>
It have has to be 3D event. The event should be routed to the "truck_engine" audio bus.<br>
The event is one-shot sound (without loop).<br>
There are no other parameters for the event.<br>
There are configuration files of engines for the "Peterbilt 579" at the folder "\def\vehicle\truck\peterbilt.579\engine".<br>
Each engine include ''@include "sound.sui" '' file which contents indirect definition of the events:
[[User:Lubos.scs|Lubos.scs]] ([[User talk:Lubos.scs|talk]])<pre> sounds:4
sounds[]: "engine|/def/vehicle/truck/peterbilt.579/engine/sound_engine.soundref"
sounds[]: "exhaust|/def/vehicle/truck/peterbilt.579/engine/sound_exhaust.soundref"
sounds[]: "start_bad|/def/vehicle/truck/peterbilt.579/engine/sound_start_bad.soundref"
sounds[]: "turbo|/def/vehicle/truck/peterbilt.579/engine/sound_turbo.soundref"
[[User:Lubos.scs|Lubos.scs]] ([[User talk:Lubos.scs|talk]])</pre>
There are .soundref file (for each event) to specify bank end FMOD event of the sound.
Content of the sound_engine.soundref is:
[[User:Lubos.scs|Lubos.scs]] ([[User talk:Lubos.scs|talk]])<pre>
source="/sound/truck/peterbilt_579.bank#engine/engine"
[[User:Lubos.scs|Lubos.scs]] ([[User talk:Lubos.scs|talk]])</pre>
The record<br>sound: ''"/sound/truck/peterbilt_579.bank"''<br>at the any engine configuration file assigns the sound bank to the engine.
 
== Engine Sound Position ==
 
The 3D position of the engine sound is (by default) 1 m above the first axle of the truck.<br>
This position could be modified by the .soundref file. (see [[Documentation/Engine/Sound#Sound_reference_file|Sound reference file]])
== Engine Sound Example ==
Visit the [[Documentation/Engine/Sound/Downloads|Downloads]] section to get template project or sound examples.
507
edits

Navigation menu