How do I display speed limits projected by a route inside of a 3D Cab
3 posters
Page 1 of 1
How do I display speed limits projected by a route inside of a 3D Cab
Hello. I would like to create a 3D cab animation where there are two displays. Display 1 shows the speed limit projected by the route, while Display 2 is the speedometer. How exactly would I get this animation to work?
Inamak17- Posts : 9
Join date : 2020-04-01
Re: How do I display speed limits projected by a route inside of a 3D Cab
Well, unfortunately there seems to be no easy way to get the precise speed limit of the route.
You have to either turn on the ATC safety system and use the pluginState[271], or write an ats plugin yourself. Getting speed is fairly easy by using speedometer .
For the displays, you should use rotation animations for needles, and state change animations for digital numbers. Besides that, .animated is nothing but hard math work.
Explaining and understanding how animated models work can both be not quite easy. Just remember you are writing some math formulas that calculates the desired number, angle or position based on vehicle status as variables. I suggest you take a look at https://openbve-project.net/documentation_hugo/en/objects/native/animated.html .
You have to either turn on the ATC safety system and use the pluginState[271], or write an ats plugin yourself. Getting speed is fairly easy by using speedometer .
For the displays, you should use rotation animations for needles, and state change animations for digital numbers. Besides that, .animated is nothing but hard math work.
Explaining and understanding how animated models work can both be not quite easy. Just remember you are writing some math formulas that calculates the desired number, angle or position based on vehicle status as variables. I suggest you take a look at https://openbve-project.net/documentation_hugo/en/objects/native/animated.html .
Re: How do I display speed limits projected by a route inside of a 3D Cab
Easy addition for once
I've added the following to the latest nightly builds:
https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2020-04-08.zip
Will be in the next release (week or two hopefully), and I'll update the documentation on the main site at this point.
I've added the following to the latest nightly builds:
https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2020-04-08.zip
Animated Files:
routeLimit : Returns the current route speed limit in km/h applying to the train. Remember that this limit only increases when the last vehicle in the train has passed the speed limit location.
Panel 2 Files:
routeLimit : Returns the current route speed limit in km/h applying to the train. Remember that this limit only increases when the last vehicle in the train has passed the speed limit location.
Will be in the next release (week or two hopefully), and I'll update the documentation on the main site at this point.
Similar topics
» Station Distance & Speed Limits
» How to display the destination display by switching with one picture using two pluginstates(), and to display both at the bottom at 60 km / h or lowest.
» Wouldn't it be possible to display it in the mirror in the same way as Bve5 in the future?
» Cannot load a route, fails with "The selected route is corrupt: No objects defined."
» New Features: Display of remaining distance to the next station and gradient in ‰
» How to display the destination display by switching with one picture using two pluginstates(), and to display both at the bottom at 60 km / h or lowest.
» Wouldn't it be possible to display it in the mirror in the same way as Bve5 in the future?
» Cannot load a route, fails with "The selected route is corrupt: No objects defined."
» New Features: Display of remaining distance to the next station and gradient in ‰
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum