Wondering if there is a way to control the playback speed of a video based on rpm? Basically want to create an animation that speeds up/slows down based on engine rpm. Thanks all
Unfortunately there isn’t. You could create different gif files of the same animation and each file has a different animation speed.
Thanks for your reply, that’s a shame. So have say 6 different video gauges at different speeds and use the fade animation control to make one visible triggered by rpm?
Basically.
You can setup how ever many vieo gauge you would like.
Then have triggers that would play the one needed, pause the other ones and fade in-out as well
btw you can fade instantly if you set both value to 1 1 or 0 0.
Unless there’s a way to control via xml, which I dont believe there is, this is the only way.
Im imagining it like you want to make the road move per say as you drive.
edit: if its for vehicle speed use vehicle speed and not rpm and so forth.
Good to know I was on the right track. Just want a basic engine animation that will reflect the cars rpm. I’ll give this a go, thanks again
I have something similar, its a miniture 4 valve engine GIF. I have a PNG that shows it not moving. The PNG gets hidden and shows the GIF when the trigger detects the engine is running. I think you could try to do something similar. To have a GIF match RPM will proably give you a lot of trouble.
EDIT: Forum is English only.
I don’t mind but heads up, I believe the forum is English only.
From what Google translate said you want triggers or such to perform this action.
Forgive me, but how do I create these triggers? Is there any other forum or telegram that can answer my questions about this issue and so many others about RealDash? I humbly come to ask for guidance because I am new to this RealDash world. Thank you.
I can answer it tomorrow just lmk what you’re tryna do and I’ll give you the best answer I can on actions and triggers.
Would also like more info on triggers of you don’t mind, do I need to use an XML file to make use of them?
Sorry gusy been on vacation and haven’t really been checking.
Devs are also still out on holiday vacation.
For you, triggers and actions can all be done via the RealDash App.
Edit → Triggers
left side are triggers, right side are actions
Triggers and actions are “not” supposed to have the same name or they won’t trigger. I’m debating this as a dev told me this but when you import an animation xml they’ll produce actions with the same name. so a bit contradictory there, but try to keep them different names.
Actions are the physical action. Setting a value, changing text, pause/play, etc. You can either create buttons to tigger and action or make triggers.
triggers are like if statements if youre familar with java. So if the condions are met, perform trigger, and it can loop, have a cool down, or just be a one time thing.
For animations, only fade in/out can be done within the app. You need XML for more advance animation triggers/actions.
Hopefully the devs are also going to bring us the ability to fully import/export triggers and actions via XML the same way they have animations setup.
A basic trigger example would be
trigger condition
- if Vehicle Speed is greater than 0
reset condition - if Vehicle Speed is equal to 0
Actions - Action Type: Speak Text
- Text: The vehicle is in motion now.
This means you’ll have your system verbally notify you each time the vehicle starts going in motion from a complete dead stop.
You can also make a duplicate with some adjustments to do the opposite and tell you when you come to a complete stop.
Please refer to my previous message about basic trigger/action messages.
This one will be a lot more straight foward.
So if you want a trigger to be base on speed
Edit → Triggers → [On Right Side] ADD
Action Name: Play Animation
Action Type: Video Gauge Play
Select Gauge: [Select Gauge that includes animation, only gauges with a video/gif would appear on the list]
DONE-> [On Right Side] ADD
Action Name: Pause Animation
Action Type: Video Gauge Pause
Select Gauge: [Select Gauge that includes animation, only gauges with a video/gif would appear on the list]
DONE
This creates the play/pause animation. Make sure the Gauge selected are the same.
[On Left Side] ADD
Trigger:
- “Play - 25 MPH Animation”
- Cooldown(sec): 0
- enabled
Trigger Condition: - If Vehicle Speed is greater or equal to 25
Reset Condition: - If Vehicle Speed is less than 25
Actions: - Play Animation
[On Left Side] ADD
Trigger:
- “Pause - 25 MPH Animation”
- Cooldown(sec): 0
- enabled
Trigger Condition: - If Vehicle Speed is less than 25
Reset Condition: - If Vehicle Speed is greater or equal to 25
Actions: - Pause Animation
The first trigger will play the animation once youre going 25 mph or more and the second trigger will pause the animation once you drop below 25 mph.
If you have multiple animations for like 0mph, 10mph, 25 mph, 40 mph, 60 mph and 80 mph.
instead of having a pause trigger for each one, simply incorporate the pause triggers into the trigger.
Basically the 25 mph trigger will use the play action for the 25 mph. and it’ll use the pause action for 0, 10, 40,60, and 80. Using a total of 6 actions with the 1 trigger. And so forth with each one where you pause use the pause actions for the ones that dont apply, and the play action for the one that applies.
Hope that makes sense cuz actually typing each one out would be annoying.
btw cooldown isnt alwasy needed, I use it so that way triggers don’t be changing dramatically. for example lets say youre cruising exaclty at 25, you can be between lets say 24.5 to 25.5 due to human/mechanical error with the vehicle.
You’d have your tiggers firing back and forth alot since it’s close to that border line for the trigger. If you set cooldown to lets say 3 seconds, it’ll give you that time gap before that trigger can fire again.
Edit: please let me know if this helped.