Swing of train. Is it possible?

General discussion about RailWorks, your thoughts, questions, news and views!

Moderator: Moderators

User avatar
Reppo
Established Forum Member
Posts: 308
Joined: Sun Oct 14, 2007 5:38 pm
Location: Santiago de Chile

Swing of train. Is it possible?

Post by Reppo »

Hi!

Swing?
I don't know if this is the correct term to call the moving that train does side to side when runs on the rails.

Is there anyway to anim the body of train to create the "swing" sensation in external view and cab view? Is it possible to "connect" this swing to a AbsoluteSpeed control. Where? How? Any suggestion?

Here in Chile, trains move like a baby cradle, and in RW trains look completly statics, and it's not looks very real. :roll:

Thanks in advance.

Regards.
Image
The man who doesn't follow his vocation betrays himself and condemns himself to unhappiness.
AndyM77
Very Active Forum Member
Posts: 1983
Joined: Tue May 08, 2007 12:16 am

Re: Swing of train. Is it possible?

Post by AndyM77 »

In the original Railsimulator release, (i.e before the Mk1 & Mk2 patches) there was vehicle sway. Unfortunately it looked really unnatural and was just odd, which is why it was subsequently removed.

So, yes it's possible - but if it could be improved upon then I don't know... :)
User avatar
bigvern
Chief Track Welder
Posts: 7705
Joined: Fri Jan 04, 2002 12:00 am
Location: Swindon, England

Re: Swing of train. Is it possible?

Post by bigvern »

Yes in the original release it just looked as if the track was zig-zagging towards the train and in external view slipping side to side with the wheels coming off the rails.

One would hope this is on the "to do" list along with cant, but who knows...
User avatar
Ryosuke
Well Established Forum Member
Posts: 531
Joined: Wed Aug 01, 2007 11:09 pm

Re: Swing of train. Is it possible?

Post by Ryosuke »

Reppo wrote:Hi!

Swing?
I don't know if this is the correct term to call the moving that train does side to side when runs on the rails.

Is there anyway to anim the body of train to create the "swing" sensation in external view and cab view? Is it possible to "connect" this swing to a AbsoluteSpeed control. Where? How? Any suggestion?

Here in Chile, trains move like a baby cradle, and in RW trains look completly statics, and it's not looks very real. :roll:

Thanks in advance.

Regards.
if you look at what ben has achieved with his pendolino tilting-train then i think it should be possible to employ the same principles to create some sort of cab sway motion that depends on the speed of the train and curvature of the track with a lua script.
but i don't know how ben has achieved the tilting motion for his pendolino. i hope he shares this information with us when he has managed to release his train. :)
db schenker rail driver in training :)
BenBlairL
Well Established Forum Member
Posts: 685
Joined: Thu Oct 15, 2009 9:47 pm

Re: Swing of train. Is it possible?

Post by BenBlairL »

Firstly; RS had swing? I bought RS in about 2007 and I don't remember swing.
Secondly; If you need to find some information on how to make car swing, I would suggest finding out how JustTrains plans to make their Tilting Voyager, well... Tilt. Also investigate the TBR (To be released) Pendolino.
Thirdly; A game called World Of Subways manages to have their rolling stock rock and bounce as the stock gets up to high speed. I would suggest purchasing the game to look into how the rolling stock files are set up to create the rock and bounce.
User avatar
Ooveecouk
Very Active Forum Member
Posts: 1002
Joined: Sat Oct 25, 2008 10:35 am
Location: Oovee Game Studio
Contact:

Re: Swing of train. Is it possible?

Post by Ooveecouk »

BenBlairL wrote:Firstly; RS had swing? I bought RS in about 2007 and I don't remember swing..
I believe this feature was hastily removed before release due to in-completion.
BenBlairL
Well Established Forum Member
Posts: 685
Joined: Thu Oct 15, 2009 9:47 pm

Re: Swing of train. Is it possible?

Post by BenBlairL »

Ooveecouk wrote:
BenBlairL wrote:Firstly; RS had swing? I bought RS in about 2007 and I don't remember swing..
I believe this feature was hastily removed before release due to in-completion.
That clears it up for me. Honestly, I think I would have noticed something like that. Thanks.
styckx
Very Active Forum Member
Posts: 3989
Joined: Mon Jul 27, 2009 8:33 pm

Re: Swing of train. Is it possible?

Post by styckx »

Train sway is very easy to create yourself and will only set you back about $9-$12

Step 1. Purchase 12 pack of your favorite beer

Step 2. Consume entire 12 pack in less then 2hrs

Step 3. Play Railworks

Enjoy your train sway.
User avatar
Reppo
Established Forum Member
Posts: 308
Joined: Sun Oct 14, 2007 5:38 pm
Location: Santiago de Chile

Re: Swing of train. Is it possible?

Post by Reppo »

Hi!
I killed 24 beers in 30 minutes and I feel more clear than a fish.... :drinking:

After it, I built this video:

http://www.youtube.com/watch?v=lX9agXqxIn4

Apologies for the so ugly train...

Thanks.

Cheers.
Image
The man who doesn't follow his vocation betrays himself and condemns himself to unhappiness.
Trainguy76
Very Active Forum Member
Posts: 2053
Joined: Mon May 25, 2009 3:28 pm
Location: Dreamland, USA.
Contact:

Re: Swing of train. Is it possible?

Post by Trainguy76 »

It's a start, looks like it would make me sick though. :P
The Most Astounding Fact

... .-.-.- - .-.-.- .- .-.-.- -.-- .-.-.-
User avatar
Ryosuke
Well Established Forum Member
Posts: 531
Joined: Wed Aug 01, 2007 11:09 pm

Re: Swing of train. Is it possible?

Post by Ryosuke »

the next step would be to add some randomness and speed factor with the help of lua scripts. :)
db schenker rail driver in training :)
User avatar
Reppo
Established Forum Member
Posts: 308
Joined: Sun Oct 14, 2007 5:38 pm
Location: Santiago de Chile

Re: Swing of train. Is it possible?

Post by Reppo »

Ryosuke wrote:the next step would be to add some randomness and speed factor with the help of lua scripts. :)
The whole car is animated like rods of a steam loco so this animation is already linked to speed. The randomness depends how complex the animation is. An animation with 100 frames has 100 possible movements. The step of animation are given by the wheel radius configured in an invisible bogie.

We will keep probing.

Cheers
Image
The man who doesn't follow his vocation betrays himself and condemns himself to unhappiness.
User avatar
Ryosuke
Well Established Forum Member
Posts: 531
Joined: Wed Aug 01, 2007 11:09 pm

Re: Swing of train. Is it possible?

Post by Ryosuke »

Reppo wrote:
Ryosuke wrote:the next step would be to add some randomness and speed factor with the help of lua scripts. :)
The whole car is animated like rods of a steam loco so this animation is already linked to speed. The randomness depends how complex the animation is. An animation with 100 frames has 100 possible movements. The step of animation are given by the wheel radius configured in an invisible bogie.

We will keep probing.

Cheers
as far as i understand this means that the cycle of the animation is repeated over and over again in the same fashion?

thats a good step in the right direction. however, if a lua script would control the animation and put even more factors into account like the radius of curves and other controllers that could enter some sort of randomness, then the result could be extremely live like.
imagine going over a set of points whith the train rocking back and forth even more than usually...
sadly i don't know very much about animations and absolutely nothing about lua scripts or scripting in general, otherwise i would have experimented with these already.
db schenker rail driver in training :)
BenBlairL
Well Established Forum Member
Posts: 685
Joined: Thu Oct 15, 2009 9:47 pm

Re: Swing of train. Is it possible?

Post by BenBlairL »

Looks great. I'm glad that you found a way to make it work. I would suggest having the sway motion move side to side instead of moving back and forth strait across. (In case if that sounds weird, I mean that the top swings the farthest out whereas the bottom stays in the center pivot point, see images)

Image
Without Swing
Image
What I'm talking about
User avatar
Ryosuke
Well Established Forum Member
Posts: 531
Joined: Wed Aug 01, 2007 11:09 pm

Re: Swing of train. Is it possible?

Post by Ryosuke »

you mean tilt to the inside?


if a train would swing that much to the outside i'd get off as soon as possible. :D
db schenker rail driver in training :)
Locked

Return to “[RW] General RW Discussion”