Elvas Tower: Digital LED Speedometer - Elvas Tower

Jump to content

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

Digital LED Speedometer Rate Topic: -----

#1 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 264
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 10 May 2020 - 07:18 PM

Hello!

Is there any way in Open Rails to animate a digital type speedometer like the one in the image?

Attached Image: digitalspeedometer.jpg

I managed to do it years ago on MSTS, but now I've opened my train and I've seen that in Open Rails my "trick" doesn't work.

Thank you very much.

#2 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 11 May 2020 - 04:41 PM

How is it supposed to work? Like a "ring of lights" around the perimeter of the scale, as in this example (taken in the latest unstable release)?

Attached Image: tmp.jpg
If so, I can go and dig up that CVF file (not my work though) from my mess for reference.
Cheers, Markus


#3 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 264
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 12 May 2020 - 04:34 AM

Hello Markus! First, thanks for your answer.

Yes, that's exactly it. The fact is that I managed to do it already ten years ago for MSTS and it worked, but now it doesn't in OR. This was the code for my old .cvf:

Quote

Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 248 311 9 9 )
Graphic ( "1led598.ace" )
Style ( SOLID )
ScaleRange ( 1 10 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 246 304 9 9 )
Graphic ( "2led598.ace" )
Style ( SOLID )
ScaleRange ( 11 20 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 246 296 9 9 )
Graphic ( "3led598.ace" )
Style ( SOLID )
ScaleRange ( 21 30 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 246 289 9 9 )
Graphic ( "4led598.ace" )
Style ( SOLID )
ScaleRange ( 31 40 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 248 282 9 9 )
Graphic ( "5led598.ace" )
Style ( SOLID )
ScaleRange ( 41 50 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 252 276 9 9 )
Graphic ( "6led598.ace" )
Style ( SOLID )
ScaleRange ( 51 60 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 258 271 9 9 )
Graphic ( "7led598.ace" )
Style ( SOLID )
ScaleRange ( 61 70 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 263 268 9 9 )
Graphic ( "8led598.ace" )
Style ( SOLID )
ScaleRange ( 71 80 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 271 264 9 9 )
Graphic ( "9led598.ace" )
Style ( SOLID )
ScaleRange ( 81 90 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 279 264 9 9 )
Graphic ( "10led598.ace" )
Style ( SOLID )
ScaleRange ( 91 100 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 286 264 9 9 )
Graphic ( "11led598.ace" )
Style ( SOLID )
ScaleRange ( 101 110 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 293 266 9 9 )
Graphic ( "12led598.ace" )
Style ( SOLID )
ScaleRange ( 111 120 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 300 270 9 9 )
Graphic ( "13led598.ace" )
Style ( SOLID )
ScaleRange ( 121 130 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 305 275 9 9 )
Graphic ( "14led598.ace" )
Style ( SOLID )
ScaleRange ( 131 140 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 309 281 9 9 )
Graphic ( "15led598.ace" )
Style ( SOLID )
ScaleRange ( 141 150 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 312 288 9 9 )
Graphic ( "16led598.ace" )
Style ( SOLID )
ScaleRange ( 151 160 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 314 297 9 9 )
Graphic ( "17led598.ace" )
Style ( SOLID )
ScaleRange ( 161 170 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 313 304 9 9 )
Graphic ( "18led598.ace" )
Style ( SOLID )
ScaleRange ( 171 180 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 311 311 9 9 )
Graphic ( "19led598.ace" )
Style ( SOLID )
ScaleRange ( 181 190 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)



Now, in Open Rails in action, this is shown:

Attached Image: Open Rails 2020-05-12 02-25-42.jpg

And in the MSTS Cab Editor (with the A key pressed) this:

Attached Image: MSTSEditor.jpg

#4 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 12 May 2020 - 03:10 PM

View PostVAPOR3D, on 12 May 2020 - 04:34 AM, said:

Hello Markus! First, thanks for your answer.[...]


De nada.

I'm in no way knowledgeable about CVF code, so I cannot help you find out what's wrong with your code. What I know, though, is that it works fine in GE-C44-9W-ATSF.cvf from Charlie Sibaja's high-res photorealistic GE-SAFE1-CAB set (shown above), that is available as shrge-s1.zip on trainsim.com.

¡Espero que eso te ayude!

Adiós, Markus

#5 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 264
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 30 May 2020 - 01:47 PM

Well, this all works more or less well in the 2d cab:

Attached Image: digitalspeedometer.jpg

...but now, working on the 3d cab, I find myself in trouble. I had thought of building some pieces called SPEEDOMETER:1, SPEEDOMETER:2, SPEEDOMETER:3, etc. and give them a 1 frame animation so that they move backwards and appear as the speed increases, but curiously, even having a considerable displacement that in TSM and Shapeviewer is perfectly appreciated, in Open Rails there is no movement at all! This is very strange to me. I've also tried SPEEDOMETER_DISPLAY:0:0, or :0, but there's no translation movement at all. Maybe that's because SPEEDOMETER pieces only support one rotation movement, I don't know. Maybe someone can enlighten me with this new problem...

Thanks!

#6 User is offline   SYogurt 

  • Fireman
  • Group: Status: Active Member
  • Posts: 136
  • Joined: 29-March 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 12 July 2020 - 09:30 PM

View Postmarkus_GE, on 12 May 2020 - 03:10 PM, said:

De nada.

I'm in no way knowledgeable about CVF code, so I cannot help you find out what's wrong with your code. What I know, though, is that it works fine in GE-C44-9W-ATSF.cvf from Charlie Sibaja's high-res photorealistic GE-SAFE1-CAB set (shown above), that is available as shrge-s1.zip on trainsim.com.

¡Espero que eso te ayude!

Adiós, Markus



I just had a thought that you might find insightful.

What about setting your speedometer as a 'donut' shape - basically a ring that covers the speedometer underneath. Take out a chunk of the ring so it's more of a half ring shape, and then animate your keyframes so that the opening in your ring will allow your entire speed range to show through at its max, but at min speed the ring rotates around to cover the speed range.

Then, just texture the underlying speedometer with all the necessary dots, and use the same material for both. So as your speed increases, the ring rotates, and the opening allows the dots to show through. Maybe something like that would work.

#7 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 13 July 2020 - 12:23 PM

As I said, I'm in no way knowledgeable about CVFs (I know just enough to be dangerous http://www.elvastower.com/forums/public/style_emoticons/default/tease.gif ), but with that in mind, that approach sounds genius. Still, I'm not the one to tell if it's feasible...

Cheers, Markus

#8 User is offline   Weter 

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

Posted 27 July 2020 - 01:21 PM

I've noted, that ORTS sometimes renders cab elements in very strange manner:
if *.ace, for instance, consist of 3x2 frames, it can be sliced as 2x3, while running MSTS, "numframes" worked as desired.
The Engine Brake lever's *.ace probably couldn't be sliced in more,then one row atall, while we often have *.ace, contained 2 0r 3 rows for it.

First problem possible to solve by swapping digits inside of "num frames" parameter at *.cvf-file, but in the second case, this operation brings no effect.

#9 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 264
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 07 October 2020 - 06:04 AM

View PostVAPOR3D, on 30 May 2020 - 01:47 PM, said:

Well, this all works more or less well in the 2d cab:

Attachment digitalspeedometer.jpg

...but now, working on the 3d cab, I find myself in trouble. I had thought of building some pieces called SPEEDOMETER:1, SPEEDOMETER:2, SPEEDOMETER:3, etc. and give them a 1 frame animation so that they move backwards and appear as the speed increases, but curiously, even having a considerable displacement that in TSM and Shapeviewer is perfectly appreciated, in Open Rails there is no movement at all! This is very strange to me. I've also tried SPEEDOMETER_DISPLAY:0:0, or :0, but there's no translation movement at all. Maybe that's because SPEEDOMETER pieces only support one rotation movement, I don't know. Maybe someone can enlighten me with this new problem...

Thanks!


Hello!

After some time thinking about how it would be possible to do this in the 3d cab, I think I have found the solution!

It can be done with several pieces SPEEDOMETER:0:0 for the needle, with animation in the form of a rotation, with a ring appearance, partly hidden in the lower area and other similar parts SPEEDOMETER:0:1, SPEEDOMETER:0:2, etc. and other pieces with animation in the form of movement that appear and disappear at certain speeds to complete the ring. Same for the outer ring indicator, i.e. SPEED_PROJECTED:0:0, 0:1, etc.

Of course, all the pieces in SolidHlfBrigth. Attached image to show the current result in my new (unfinished) cab3d:

Attached Image: CiviaCab.jpg

#10 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 264
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 20 October 2020 - 01:18 PM

I think I finally did it:


Attached Image: Open Rails 2020-10-20 11-09-43.jpg

  • 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