2D Cabs Wipers Animation
#1
Posted 24 November 2020 - 01:37 AM
Hello everyone!
In recent weeks I have proposed to Carlo an idea about how to develop an animation that reproduces the movement of the wipers in the 2D cabs, independent from the external wipers animation.
The idea is to reproduce a number of frames in a loop in a given time.
Carlo, with patience and dedication, supported my idea and wrote the code to reproduce the result that I show you below. In this video you can see the effect with 9 frames.
https://youtu.be/s6R1cyJ5WJ4
A new visualization called "ORTS_2DEXTERNALWIPERS" has been created, and a new string "ORTSCycleTime ( 1.5 )" has been inserted in the .cvf, capable of managing the loop time in order to reproduce the desired speed according to the rolling stock.
Paolo
In recent weeks I have proposed to Carlo an idea about how to develop an animation that reproduces the movement of the wipers in the 2D cabs, independent from the external wipers animation.
The idea is to reproduce a number of frames in a loop in a given time.
Carlo, with patience and dedication, supported my idea and wrote the code to reproduce the result that I show you below. In this video you can see the effect with 9 frames.
https://youtu.be/s6R1cyJ5WJ4
A new visualization called "ORTS_2DEXTERNALWIPERS" has been created, and a new string "ORTSCycleTime ( 1.5 )" has been inserted in the .cvf, capable of managing the loop time in order to reproduce the desired speed according to the rolling stock.
Paolo
#2
Posted 24 November 2020 - 02:46 AM
Hi Paolo,
This is something that I have long wanted to be included.
Many thanks for yours and Carlo's hard work to make this possible.
When and where will this be available for general use?
Regards,
Stephen
This is something that I have long wanted to be included.
Many thanks for yours and Carlo's hard work to make this possible.
When and where will this be available for general use?
Regards,
Stephen
#3
Posted 24 November 2020 - 06:53 AM
craving for a working example, please!
this couldn't have come at a better time :)
this couldn't have come at a better time :)
#4
Posted 27 November 2020 - 11:23 PM
The feature is now available in OR NewYear MG rev. 82.
#6
Posted 28 November 2020 - 03:55 AM
I really like this. What replaces a clean and rain-spotted windshield?
I would like to ask for a sample sample so we can do it for Hungarian vehicles.
Thanks in advance.
I would like to ask for a sample sample so we can do it for Hungarian vehicles.
Thanks in advance.
#7
Posted 28 November 2020 - 04:17 AM
Hi! Finally this feature is released!
Here you have an example of code to insert in the .cvf file to activate this function.
ORTSAnimatedDisplay (
Type ( ORTS_2DEXTERNALWIPERS MULTI_STATE_DISPLAY )
Position ( 155 0 331.875 236.25 )
Graphic ( ..//..//Common.Cab//CabE464_DMI//e464Tergicristallo9.ace )
ORTSCycleTime ( 1.35 )
States ( 9 3 3
State (
Style ( 0 )
SwitchVal ( 0 )
)
State (
Style ( 0 )
SwitchVal ( 0.11 )
)
State (
Style ( 0 )
SwitchVal ( 0.22 )
)
State (
Style ( 0 )
SwitchVal ( 0.33 )
)
State (
Style ( 0 )
SwitchVal ( 0.44 )
)
State (
Style ( 0 )
SwitchVal ( 0.55 )
)
State (
Style ( 0 )
SwitchVal ( 0.66 )
)
State (
Style ( 0 )
SwitchVal ( 0.77 )
)
State (
Style ( 0 )
SwitchVal ( 0.88 )
)
)
)
Hope you'll like it!
Paolo
Here you have an example of code to insert in the .cvf file to activate this function.
ORTSAnimatedDisplay (
Type ( ORTS_2DEXTERNALWIPERS MULTI_STATE_DISPLAY )
Position ( 155 0 331.875 236.25 )
Graphic ( ..//..//Common.Cab//CabE464_DMI//e464Tergicristallo9.ace )
ORTSCycleTime ( 1.35 )
States ( 9 3 3
State (
Style ( 0 )
SwitchVal ( 0 )
)
State (
Style ( 0 )
SwitchVal ( 0.11 )
)
State (
Style ( 0 )
SwitchVal ( 0.22 )
)
State (
Style ( 0 )
SwitchVal ( 0.33 )
)
State (
Style ( 0 )
SwitchVal ( 0.44 )
)
State (
Style ( 0 )
SwitchVal ( 0.55 )
)
State (
Style ( 0 )
SwitchVal ( 0.66 )
)
State (
Style ( 0 )
SwitchVal ( 0.77 )
)
State (
Style ( 0 )
SwitchVal ( 0.88 )
)
)
)
Hope you'll like it!
Paolo
#8
Posted 28 November 2020 - 05:13 AM
Paolo, on 28 November 2020 - 04:17 AM, said:
Hi! Finally this feature is released!
Here you have an example of code to insert in the .cvf file to activate this function.
ORTSAnimatedDisplay (
Type ( ORTS_2DEXTERNALWIPERS MULTI_STATE_DISPLAY )
Position ( 155 0 331.875 236.25 )
Graphic ( ..//..//Common.Cab//CabE464_DMI//e464Tergicristallo9.ace )
ORTSCycleTime ( 1.35 )
States ( 9 3 3
State (
Style ( 0 )
SwitchVal ( 0 )
)
State (
Style ( 0 )
SwitchVal ( 0.11 )
)
State (
Style ( 0 )
SwitchVal ( 0.22 )
)
State (
Style ( 0 )
SwitchVal ( 0.33 )
)
State (
Style ( 0 )
SwitchVal ( 0.44 )
)
State (
Style ( 0 )
SwitchVal ( 0.55 )
)
State (
Style ( 0 )
SwitchVal ( 0.66 )
)
State (
Style ( 0 )
SwitchVal ( 0.77 )
)
State (
Style ( 0 )
SwitchVal ( 0.88 )
)
)
)
Hope you'll like it!
Paolo
Here you have an example of code to insert in the .cvf file to activate this function.
ORTSAnimatedDisplay (
Type ( ORTS_2DEXTERNALWIPERS MULTI_STATE_DISPLAY )
Position ( 155 0 331.875 236.25 )
Graphic ( ..//..//Common.Cab//CabE464_DMI//e464Tergicristallo9.ace )
ORTSCycleTime ( 1.35 )
States ( 9 3 3
State (
Style ( 0 )
SwitchVal ( 0 )
)
State (
Style ( 0 )
SwitchVal ( 0.11 )
)
State (
Style ( 0 )
SwitchVal ( 0.22 )
)
State (
Style ( 0 )
SwitchVal ( 0.33 )
)
State (
Style ( 0 )
SwitchVal ( 0.44 )
)
State (
Style ( 0 )
SwitchVal ( 0.55 )
)
State (
Style ( 0 )
SwitchVal ( 0.66 )
)
State (
Style ( 0 )
SwitchVal ( 0.77 )
)
State (
Style ( 0 )
SwitchVal ( 0.88 )
)
)
)
Hope you'll like it!
Paolo
Thank you very much.
#9
Posted 28 November 2020 - 08:14 AM
Hi Paolo,
Many thanks for this working windscreen wiper. My only problem is that I don't have a suitable animated wiper to use. Is there any chance that you could provide one or tell me where I can get one?
Thanks in advance,
Stephen
Many thanks for this working windscreen wiper. My only problem is that I don't have a suitable animated wiper to use. Is there any chance that you could provide one or tell me where I can get one?
Thanks in advance,
Stephen
#10
Posted 28 November 2020 - 05:23 PM
I've red in some forum, why each of 3 wiewports (lelt-right-front) is mentioned twice inside of *.cvf-file: as cab view file-reference and as cab view window file;
They assumed, Kuju thougt to use that "mask" to implement snow and raindrops, sticking on windshields - in form of semi-transparent texture.
Actualy only one layer is used now (cab bace itself)
They assumed, Kuju thougt to use that "mask" to implement snow and raindrops, sticking on windshields - in form of semi-transparent texture.
Actualy only one layer is used now (cab bace itself)