Re: Animated Objects
Posted: Tue Oct 31, 2017 1:04 pm
by michaelny
also in die animatedObjects.xml der Map habe ich es wie unten folgt eingefuegt ..... ergebnis ?! NICHTS
<?xml version="1.0" encoding="utf-8" standalone="no" ?> <animatedObjects> <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation> <!-- LIGHT SWITCH --> <!-- index must match given i3d attribute --> <animatedObject index="lightSwitch"> <!-- if only posyKey is given animated has a toggle state behavior --> <controls posKey="LIGHTSWITCH_CLICK" triggerNode="0" posText="input_LIGHTSWITCH_CLICK" negText="input_LIGHTSWITCH_CLICK" /> <sound file="$data/sounds/blinker.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> <animation initialTime="0" duration="0.01"> <!-- duration -> total time of animation in seconds --> <part node="1"> <!-- time must be in range between 0 and 1 --> <keyFrame time="0.00" visibility="false" /> <keyFrame time="1" visibility="true" /> </part> </animation> </animatedObject> <animatedObjects> <!-- DOORS --> <animatedObject index="doorRight"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" /> <!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> --> <animation initialTime="0" duration="4"> <part node="1"> <!-- node -> child index --> <keyFrame time="0.05" translation="0 0 0" /> <!-- translation, rotation, scale, visibility --> <keyFrame time="1.00" translation="5 0 0" /> </part> <animatedObject index="doorRightSmall"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" /> <!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> --> <animation initialTime="0" duration="4"> <part node="1"> <!-- node -> child index --> <keyFrame time="0.05" translation="0 0 0" /> <!-- translation, rotation, scale, visibility --> <keyFrame time="1.00" translation="5 0 0" /> </part> </animation> </animatedObject> <animatedObject index="oneDoorRight"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" /> <!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> --> <animation initialTime="0" duration="4"> <part node="1"> <!-- node -> child index --> <keyFrame time="0.05" translation="0 0 0" /> <!-- translation, rotation, scale, visibility --> <keyFrame time="1.00" translation="5 0 0" /> </part> </animation> </animatedObject> <animatedObject index="doorLeft"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" /> <!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> --> <animation initialTime="0" duration="4"> <part node="1"> <keyFrame time="0.00" translation="0 0 0" /> <keyFrame time="0.95" translation="-5 0 0" /> </part> <animatedObject index="doorLeftSmall"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" /> <!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> --> <animation initialTime="0" duration="4"> <part node="1"> <keyFrame time="0.00" translation="0 0 0" /> <keyFrame time="0.95" translation="-5 0 0" /> </part> </animation> </animatedObject> <animatedObject index="oneDoorLeft"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" /> <!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> --> <animation initialTime="0" duration="4"> <part node="1"> <keyFrame time="0.00" translation="0 0 0" /> <keyFrame time="0.95" translation="-5 0 0" /> </part> </animation> </animatedObject> <animatedObject index="doorBothMedium"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_DOOR" negText="input_ANIMATED_OBJECT_CLOSE_DOOR" /> <!-- <sound file="SOUNDFILE.wav" pitchOffset="1.00" volume="0.20" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> --> <animation initialTime="0" duration="4"> <part node="1"> <keyFrame time="0.00" translation="0 0 0" /> <keyFrame time="0.95" translation="-5 0 0" /> </part> <!-- you can add an unlimited number of parts here --> </animation> </animatedObject> </animatedObjects> <!-- Rolltor 1 --> <animatedObject index="BergehalleRolltor1"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ROLLDOOR" /> <sound file="maps/sounds/OpenDoorSound.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> <animation initialTime="0" duration="4"> <part node="1"> <!--index of left door node--> <keyFrame time="0" translation="0 0 0" /> <keyFrame time="0.75" translation="-4.5 0 0" /> <keyFrame time="1.00" translation="-4.5 0 0" /> </part> <part node="2"> <!--index of right door node--> <keyFrame time="0" translation="0 0 0" /> <keyFrame time="0.25" translation="0 0 0" /> <keyFrame time="1.00" translation="-4.5 0 0" /> </part> </animation> </animatedObject> <!-- Rolltor 2 --> <animatedObject index="BergehalleRolltor2"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ROLLDOOR" /> <sound file="maps/sounds/OpenDoorSound.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> <animation initialTime="0" duration="4"> <part node="1"> <!--index of left door node--> <keyFrame time="0" translation="0 0 0" /> <keyFrame time="0.25" translation="0 0 0" /> <keyFrame time="1.00" translation="-4.5 0 0" /> </part> <part node="2"> <!--index of right door node--> <keyFrame time="0" translation="0 0 0" /> <keyFrame time="0.75" translation="-4.5 0 0" /> <keyFrame time="1.00" translation="-4.5 0 0" /> </part> </animation> </animatedObject> <!-- Rolltor 3 --> <animatedObject index="BergehalleRolltor3"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ROLLDOOR" /> <sound file="maps/sounds/OpenDoorSound.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> <animation initialTime="0" duration="4"> <part node="1"> <!--index of left door node--> <keyFrame time="0" translation="0 0 0" /> <keyFrame time="0.25" translation="0 0 0" /> <keyFrame time="1.00" translation="0 0 2.25" /> </part> <part node="2"> <!--index of right door node--> <keyFrame time="0" translation="0 0 0" /> <keyFrame time="0.75" translation="0 0 -2.25" /> <keyFrame time="1.00" translation="0 0 -2.25" /> </part> </animation> </animatedObject> <!-- Rolltor 4 --> <animatedObject index="BergehalleRolltor4"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" negKey="ANIMATED_OBJECT_CLOSE_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ROLLDOOR" /> <sound file="maps/sounds/OpenDoorSound.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> <animation initialTime="0" duration="4"> <part node="1"> <!--index of left door node--> <keyFrame time="0" translation="0 0 0" /> <keyFrame time="0.25" translation="0 0 0" /> <keyFrame time="1.00" translation="0 0 2.25" /> </part> <part node="2"> <!--index of right door node--> <keyFrame time="0" translation="0 0 0" /> <keyFrame time="0.75" translation="0 0 -2.25" /> <keyFrame time="1.00" translation="0 0 -2.25" /> </part> </animation> </animatedObject> <!-- Licht--> <animatedObject index="BergehalleLichtIndoor1"> <controls posKey="LIGHTSWITCH_CLICK" triggerNode="0" posText="input_LIGHTSWITCH_CLICK" negText="input_LIGHTSWITCH_CLICK" /> <sound file="maps/sounds/switch01_0.wav" pitchOffset="1.00" volume="0.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" /> <animation initialTime="0" duration="0.25"> <part node="1|0"> <!--index of Lever of the Lightswitch--> <keyFrame time="0.00" rotation="0 0 0" /> <keyFrame time="1" rotation="90 0 0" /> </part> <part node="2|0"> <!--index of TG with realLights and emmisive shape--> <keyFrame time="0.5" visibility="false" /> <keyFrame time="0.55" visibility="true" /> </part> <part node="3|0"> <!--index of Lever of the Lightswitch--> <keyFrame time="0.00" rotation="0 0 0" /> <keyFrame time="1" rotation="90 0 0" /> </part> </animation> </animatedObject> <animatedObject index="slidingDoor"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR" /> <animation initialTime="0" duration="6"> <part node="1"> <keyFrame time="0.00" translation="0 0 0" /> <keyFrame time="0.5" translation="0 0 -4.8" /> </part> </animation> </animatedObject> <animatedObject index="slidingDoor1"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR" /> <animation initialTime="0" duration="6"> <part node="1"> <keyFrame time="0.00" translation="0 0 0" /> <keyFrame time="0.5" translation="0 0 4.8" /> </part> </animation> </animatedObject> <animatedObject index="slidingDoor2"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR" /> <animation initialTime="0" duration="6"> <part node="1"> <keyFrame time="0.00" translation="0 0 0" /> <keyFrame time="0.5" translation="0 0 -6" /> </part> </animation> </animatedObject> <animatedObject index="slidingDoor3"> <controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPEN_ELECTRICROLLDOOR" negText="input_ANIMATED_OBJECT_CLOSE_ELECTRICROLLDOOR" /> <animation initialTime="0" duration="6"> <part node="1"> <keyFrame time="0.00" translation="0 0 0" /> <keyFrame time="0.5" translation="0 0 6" /> </part> </animation> </animatedObject> </animatedObjects> | ||