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: Posts: Dispatcher
  • Posts: 22
  • 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: Posts: Active Member
  • Posts: 46
  • 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 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner Group
  • Posts: 663
  • 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: Posts: Elite Member
  • Posts: 7,443
  • 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: Posts: 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 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,131
  • 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: Posts: Dispatcher
  • Posts: 22
  • 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 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,131
  • 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: Posts: Active Member
  • Posts: 46
  • 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 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 8,859
  • 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)

#11 User is offline   Borislav 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 98
  • Joined: 30-July 17
  • Gender:Male
  • Location:Gunzburg, Germany
  • Simulator:ORTS
  • Country:

Posted 29 November 2020 - 12:13 PM

This is wonderful news! I had exactly the same idea but never thought about suggesting it here. I will try to make wipers for Evolution Series locomotives and add them to my cabs. Thank you very much, guys!

#12 User is offline   Paolo 

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

Posted 29 November 2020 - 01:23 PM

View PostStephen, on 28 November 2020 - 08:14 AM, said:

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


Hi! I haven't got a suitable animation because every locos have specific one. I suggest to use Photoshop to recreate some frames, minimun 9 to have a fluid animation.

#13 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 8,859
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 29 November 2020 - 01:59 PM

I even seen the shape like wiper.s within some of default locos - don't remember, was it acela, hhp or dash9...
Thought at that time: well, they (Kuju) planned, but not done.

#14 User is offline   Alessandro 

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

Posted 30 November 2020 - 01:48 AM

Can it use a sound trigger also?

#15 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,443
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 30 November 2020 - 03:00 AM

You can use the sound triggers 6 (WiperOn) and 7 (WiperOff).

  • 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