# A railway train from Wales

**URL:** <https://forum.babylonjs.com/t/a-railway-train-from-wales/14248>\
**Category:** Demos and projects\
**Created:** [September 17, 2020, 9:20pm UTC](https://forum.babylonjs.com/t/a-railway-train-from-wales/14248 "2020-09-17T21:20:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gryff](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gryff/32/1855_2.png) [@gryff](https://forum.babylonjs.com/u/gryff)\
**Post date:** [September 17, 2020, 9:20pm UTC](https://forum.babylonjs.com/t/a-railway-train-from-wales/14248/1 "2020-09-17T21:20:37Z")

</div>

Well here is a little demo I have worked on during the last few weeks of this virus mess.

[A Little Train](http://www.3dworlds.ca/train/index.html)

Idea based on the old narrow gauge railways that brought slate down from the quarries in Snowdonia to the coast. The locomotive is based on the Fairlie locos produced around the 1830s for the slate quarries. The railways survive as a tourist attraction now

Switch cameras at any time with the “c” key. Goes from an ArcRotate to a camera bound to the engine. Click on the little red signals to start engine (easiest with bound camera - you can just switch back as you want). Signals become active when you stop in front of them.

All created in Blender, the train animation is a baked (every two frames) from an “animate on a curve”

Steam particles and terrain texture created with Babylon.JS code.

Have fun and stay safe all, gryff 🙂

---

<div class="post-metadata">

**Author:** ![Wingnut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/wingnut/32/53_2.png) [@Wingnut](https://forum.babylonjs.com/u/Wingnut)\
**Post date:** [September 17, 2020, 9:25pm UTC](https://forum.babylonjs.com/t/a-railway-train-from-wales/14248/2 "2020-09-17T21:25:01Z")

</div>

EXCELLENT! Gryff, you da man! A rail sweet demo!

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [September 17, 2020, 11:46pm UTC](https://forum.babylonjs.com/t/a-railway-train-from-wales/14248/3 "2020-09-17T23:46:04Z")

</div>

Really cooool!

---

<div class="post-metadata">

**Author:** ![gryff](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gryff/32/1855_2.png) [@gryff](https://forum.babylonjs.com/u/gryff)\
**Post date:** [September 23, 2020, 3:24pm UTC](https://forum.babylonjs.com/t/a-railway-train-from-wales/14248/4 "2020-09-23T15:24:56Z")

</div>

Well, I’ve made a little update - now there is a tunnel for the train to pass through :

[Train #2](http://www.3dworlds.ca/train2/index.html)

Stay Safe All, gryff 🙂

---

<div class="post-metadata">

**Author:** ![gryff](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gryff/32/1855_2.png) [@gryff](https://forum.babylonjs.com/u/gryff)\
**Post date:** [September 23, 2020, 5:29pm UTC](https://forum.babylonjs.com/t/a-railway-train-from-wales/14248/5 "2020-09-23T17:29:32Z")

</div>

The locomotive I used as a model for the engine was the “Fairlie Single”. Now the Fairlie company produced a variety of locos including the one in the image below. It had two boilers, two smokestacks, two sets of driving wheels - but only one cab right in the middle. A single locomotive that was known as the “Fairlie Double” and it is still running today for tourists. The image below shows two of them together !!

Needed quite gradual curves - so could not de done on the demo as curves are too sharp.

 ![double_fairlie01](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/8/8c5c7af97431e75eaad3404ade76c0e47737743c.png)

Stay Safe All, gryff 🙂

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [September 24, 2020, 11:12pm UTC](https://forum.babylonjs.com/t/a-railway-train-from-wales/14248/6 "2020-09-24T23:12:07Z")

</div>

Now all you need is some switches and superelevation. 🙂

_Sorry, I used to work on MSTS 2 (the second attempt) before it got canceled._

---

<div class="post-metadata">

**Author:** ![gryff](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gryff/32/1855_2.png) [@gryff](https://forum.babylonjs.com/u/gryff)\
**Post date:** [October 5, 2020, 5:24pm UTC](https://forum.babylonjs.com/t/a-railway-train-from-wales/14248/7 "2020-10-05T17:24:34Z")

</div>

@bghgary - those are little locomotives (see image below) running on tracks just

 ![double_fairlie01](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/a/a8cb36867b9a98a3a210a18dd77362cb6658df5c.jpeg) about 24 inches apart - not the behemoths of MSTS 😁

Stay Safe, gryff 🙂
