Making Animated Train Objects

Pages: (1/2) > >>

willischong:

Here's how you can animated train objects like the digital information system, the FIND system, etc.

This tutorial will show how to make R143's objects animate.

Step 1
Look for objects for R143 in the Objects folder. It should be in NYCT\cars. From there, copy r143_front.bmp, R143_L.b3d, and R143_SIDE.bmp. Go back to your train folder, make a folder named "car", and paste everything down.

Copy R143_L.b3d, and paste 2 copies into the same folder. Rename all the 3 objects into "front", "middle", and "rear".

After that, your folder will look like this:


Step 2
This step is only required if you want the windows to be transparent.

Open up R143_SIDE.bmp in your favourite image editor. I'll be using Paint here. Recolour all the windows with the darkest shade of blue (0,0,255). After you did everything, your train should look like this:


Step 3
Now we'll do the signboards. Fill black into one of the window's top, and type the information display.


Step 4
After you've done so, save your work. Save it into your train folder and name it R143_SIDE1.


Step 5
Go back to your "car" folder. Copy R143_SIDE1.bmp and paste it 3 times (once if you aren't making the windows transparent). Part of your folder should now look like this.


Step 6
Now, rename one of the images into R143_SIDE2.bmp. Open it up and change the information display to the other ones which is displayed on the train.


Step 7
Once you're done, your folder should look like this.


Step 8
Steps 8-11 are optional if you aren't making the windows transparent.

Now, rename the third copy of "R143_SIDE1.bmp" into "R143_SIDE1int.bmp".


Step 9
Open R143_SIDE1int.bmp. Edit the display to the ones displayed in the train. After that, enlarge the image to the display. Select only the window.


Step 10
Now, invert the window.


Step 11
Rename the 4th copy of "R143_SIDE1.bmp" into "R143_SIDE2int.bmp". Do the same thing as you did in Steps 9 and 10.

Step 12
Now, part of the folder will look like this:


Step 13
Copy the front.b3d and paste them twice. Name one "front1" and the other "front2". The original file will be the backup file, so if anything bad happens, you can redo everything.


Step 14
Open up front1.b3d and change "Load r143_side.bmp" into "Load r143_side1.bmp" for the sides (left and right).


Step 15
Step 15 is optional if you did not make the windows transparent.

Copy the sides (both left and right) and paste them below the original code. Edit the pasted codes into the following.


Step 16
Now you copy both front1 and front2 and paste them 2 times. Rename "front1" into "middle1", "rear1", and "front2" into "middle2", "rear2".


Step 17
Now do the same for front2, middle2, and rear2. Instead of changing it into r143_SIDE1 and r143_SIDE1int, change them to r143_SIDE2 and r143_SIDE2int.

Step 18
Now, using the ObjectViewer (download it here if you haven't), open up a random object "except front, middle, and rear" and see if the object is alright.


Step 19
If everything's ok, you may delete "front", "middle", and "rear".

Step 20
Open up notepad and enter the following values.

In StateFunction, X equals to the time per animation display, and Y equals to the number of objects you have for the animation.


Step 21
For NYC trains, I recommend you to enter 0.4 for X. Y should be 2 since you have 2 objects.


Step 22
Save your file into the "car" folder. Name it front.ANIMATED.


Step 23
Now copy "front.ANIMATED" and paste them twice. Name one of them "middle.ANIMATED" and the other "rear.ANIMATED".

Step 24
Now for the last step. Open up notepad, enter the following values. After that, name the file extensions.cfg and save it in your train folder (not the "car" folder).


And you're done! Open up openBVE and test the train on any route. If it works, congratulations! If it didn't work, find out whats the problem. If you couldn't find out what's the problem, please post here so I can help you.

Cheers,
Willis

error46146:

thanks! very useful info, ill be trying this soon !

pjiang6211:

Thanks for this tutorial! Again, it must have been a great accomplishment for you to have discovered and created this, right?  :D

A big step forward for the BVE trains - and (really!) the credits goes to you! Keep up the good work!!!  ;D

I will be trying this very soon!

willischong:

Quote from: pjiang6211 on May 10, 2009, 11:09:56 PM
--
Thanks for this tutorial! Again, it must have been a great accomplishment for you to have discovered and created this, right?  :D

A big step forward for the BVE trains - and (really!) the credits goes to you! Keep up the good work!!!  ;D

I will be trying this very soon!

--

Not really... I got the idea from the 1995 Stock of the London Underground. When I first tried it I was thinking of it to be implemented on NYC Subway trains, then I made this. :P

pjiang6211:

Oh. I see...

On the other hand, you are the first one to implement this on NYCT trains, so if you look at it that way, the credits do belong to you - for becoming the first one to do so!

Pages: (1/2) > >>