Elvas Tower: 2D Cabs Wipers Animation - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2D Cabs Wipers Animation Rate Topic: ***** 3 Votes

#1 User is offline   Paolo 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 20
  • Joined: 26-February 18
  • Gender:Male
  • Simulator:Open Rails
  • Country:

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

#2 User is offline   Stephen 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 19
  • Joined: 31-October 14
  • Gender:Male
  • Location:Bicester, UK
  • Simulator:Open Rails
  • Country:

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

#3 User is offline   Aldarion 

  • Conductor
  • Group: Status: First Class
  • Posts: 258
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 24 November 2020 - 06:53 AM

craving for a working example, please!
this couldn't have come at a better time :)

#4 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 5,659
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 27 November 2020 - 11:23 PM

The feature is now available in OR NewYear MG rev. 82.

#5 User is offline   Alessandro 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 9
  • Joined: 10-July 20
  • Gender:Male
  • Simulator:OpenRails
  • Country:

Posted 28 November 2020 - 12:17 AM

thank you both Carlo and Paolo :sign_thanks:

#6 User is offline   Laci1959 

  • Hostler
  • Group: Status: Active Member
  • Posts: 60
  • Joined: 01-March 15
  • Gender:Male
  • Simulator:Alföld
  • Country:

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.

#7 User is offline   Paolo 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 20
  • Joined: 26-February 18
  • Gender:Male
  • Simulator:Open Rails
  • Country:

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

#8 User is offline   Laci1959 

  • Hostler
  • Group: Status: Active Member
  • Posts: 60
  • Joined: 01-March 15
  • Gender:Male
  • Simulator:Alföld
  • Country:

Posted 28 November 2020 - 05:13 AM

View PostPaolo, 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

Thank you very much.

#9 User is offline   Stephen 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 19
  • Joined: 31-October 14
  • Gender:Male
  • Location:Bicester, UK
  • Simulator:Open Rails
  • Country:

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

#10 User is offline   Weter 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,000
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

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)

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users