openBVE logo
Project Status (21st April 2019)
Welcome to the Railsimroutes.net Blog, where I'll be posting progress updates, work-in-progress screenshots, information about the progress I'm making with active projects, as well as anything else I feel is worth mentioning. Hopefully more frequent updates here will make the wait for upcoming releases more bearable! News from 2008, all the way back to 2001, can be found in the News Archive.

Railsimroutes.net YouTube Channel My openBVE videos and other comments from users and myself can also be found via my YouTube channel.



Blog and Progress Updates


Platform Generator utility released

Posted by admin on April 19, 2009 at 7:45 am

Alan Wheeler’s new Platform Generator (Plat Gen) tool was released recently; head over to » eezypeazy.co.uk « to download this handy utility. The program creates a variety of photo-realistic customised platform segments, allowing route developers to choose the surface and side textures, create platform ramps, curved platform lengths at various radii, and more. The generated objects are placed via the .Freeobj command rather than the .Form commands. Here’s a screenshot of one of the resulting platforms at University station on the Cross-City South v1.4 route:

openBVE/Cross-City South v1.4 screenshot--click to enlarge
openBVE / Cross-City South v1.4 plus 323 screenshot

Tags: , , , ,
Posted in openBVE | 2 Comments »



openBVE v1.0 is here!

Posted by admin on March 24, 2009 at 12:26 am

openBVE LogoAfter 347 days of development, openBVE version 1.0 has now been released! Personally I think this is an incredible achievement–not only that openBVE has been created in the first place, but that it’s been created in such a short space of time, considering the complexity and difficulties inherent in undertaking such a project, some of which I’ve become familiar with while following the development of the program and helping to understand some aspects of BVE Trainsim’s behaviour. Congratulations michelle. Emoticon Smile

Head over to the » official openBVE homepage « to download the latest in the stable branch of openBVE releases. Whether you’re a developer or a user, if you only use BVE Trainsim at the moment, now would be a good time to enter the world of openBVE.

michelle has also added some additional documentation to help you find your way around the program, which you can read here: » Using openBVE «. For BVE Trainsim, I found myself having to create help pages to guide newcomers through the installation and use of BVE, so hopefully I won’t need to go to such lengths any more, as these are very comprehensive, step-by-step instructions. However, if any of you still have problems installing openBVE, or using the Cross-City South with the program, let me know and I’ll see if I can assist. Depending on feedback over the coming weeks, I’ll see if I still need to work on the “openBVE Help” section of this site with regard to add-on installation, although I’ll certainly update my Driver’s Guide and Class 323 Tutorial soon.

Tags: ,
Posted in openBVE | No Comments »



Animated Exterior Car Objects

Posted by admin on February 26, 2009 at 10:00 pm

openBVE / X-City South screenshot - see video belowAs most of you will likely know already, » openBVE « now enables developers to use animated exterior car objects. I was pleasantly surprised by all the positive feedback and comments regarding my last video which I uploaded to YouTube (thank you!), but one criticism which was pointed out several times was the disparity between the quality of the scenic visuals, and the rather simplistic objects used to represent the class 323 EMU–the objects were fine for BVE’s passing trains, but less so when you can move the camera up close and look at the details, or lack thereof. I didn’t think it was worth spending much time on this latter aspect until animation could be applied to the exterior car objects, but now this is possible, I’ve been working on some far better 3D models for the class 323. I had hoped to get this task finished sooner, but it’s taken longer than I originally expected unfortunately–the main difficulty was getting the rounded cab looking right, and texturing it correctly. However, I’m now happy with the appearance, and so I present the work-in-progress fully 3D exterior car objects for openBVE and Cross-City South v1.4. Incidentally, as with all my openBVE/BVE objects, these models are entirely hand coded, with no “help” from 3D modelling software.

Currently the objects are rather more complex than I originally intended (so far, the entire three coach EMU contains around 8200 vertices/4900 faces), and there is a performance penalty that comes with using them; on a fairly typical BVE route, framerates should be okay, but when paired with a very highly detailed and intensively animated route such as Cross-City South v1.4, a fast PC will likely be required to enjoy both extensively detailed animated scenery and detailed external car objects with reasonable framerates. What I intend to do, for those of you with slower hardware, is release alternative versions of the exterior car objects with lower polygon counts, and because of the way I’ve created the textures, the end result should still look good despite less complex geometry. Even these lower detail versions will be rather better than the previous objects though. Emoticon Smile So ultimately, if framerates are a problem, you can simply choose either richly detailed scenery, or richly detailed train objects, depending on which is more important to you.

Currently, the models include the following standard animated features:

  • Rotating wheelsets including wheelslip effects (with provision for animated suspension, and bogie rotation should such functionality be possible in future)
  • Bi-parting, sliding plug doors (some issues with door open/close sound synchronisation–see below)
  • Moving window reflections (twin-layered with transparency, to create a parallax effect)

The models also include the following animated features linked to plugin (UKMUt.dll) variables:

  • Windscreen wipers (left/right sweep, plus arc motion; the wipers aren’t perfect–see below)
  • Head and tail lights (both ends of train)
  • Interior lights (on or off via pantograph up/down button)
  • LED destination display with flicker (on or off via pantograph up/down button)
  • Working pantograph (all illuminated features also extinguish when pantograph is lowered)

I’ve also prepared another video to show these features. Please note, the 3D objects aren’t finished yet; some textures need updating, and I’ve yet to add interior fittings. Developers might want to continue reading on, as I’ll explain how some of these animations have been implemented, and share some sample code from the .ANIMATED objects.

Horizontal Rule
Video: Demonstration of class 323 animated exterior car objects (work-in-progress)

» Link to YouTube page (HD – best quality) «
» Link to YouTube page (High Quality) «

Horizontal Rule

I also thought you might like to see a high resolution image of Cross-City South v1.4 and the new high detail class 323; in this screenshot, I’m running openBVE fullscreen at a resolution of 1280×1024, with 8x anti-aliasing and 16x anisotropic filtering enabled (on a Radeon HD 2600 Pro graphics card). Bilinear interpolation was enabled in openBVE’s settings, with the Transparency mode set to Sharp. I was getting around 16-19 fps at the time; the framerates in the next version of openBVE will hopefully be a little higher due to performance optimisations where animated object normals are concerned, although this gain may be offset by the addition of more animated scenery objects to the route:


openBVE/Cross-City South v1.4 screenshot--click to enlarge

openBVE / Cross-City South v1.4 plus 323 screenshot–click to enlarge

Horizontal Rule

Horizontal Rule
Rotating Wheelsets
Horizontal Rule
openBVE / Class 323 screenshot - please see video above

The first things I tried to animate were the wheelsets. Initially I had difficulty getting this to work as anticipated, and observed unexpected results while using the Speedometer variable, i.e. the resulting wheelset rotation appeared as though it were based upon acceleration rate rather than an actual velocity value (and » Ron « found the same when he first tried to animate wheelsets, it would seem). I usually like to try and figure out solutions to such problems myself, but sadly I’m not the reincarnation of Pierre de Fermat, and as such, my mathematical knowledge was insufficient. Fortunately, a way forward could be found over at the » openBVE Japanese « site, which includes some helpful material covering animated objects and functions. The following function can be used to rotate each wheelset:

RotateXFunction = value + mod [(speedometer * delta), 2.765] / 2.765 * 3.14 * 2

Incidentally, 2.765 is the circumference of the wheel. The above formula works perfectly, but initially I wondered if it was more complicated than it needed to be, so I attempted to find a more simple alternative, and somehow arrived at the following formula, where the value 0.05949986086344 results from (pi / 0.88) / 60, where 0.88 is the diameter of the wheel:

Not goodRotateXFunction = value + speedometer * 0.05949986086344

Initially this seemed to work well, but on closer examination, the end result wasn’t as good as the more complex formula because the rate of rotation varies with the framerate, and I observed no difference in performance between the two anyway.

CorrectUpdate

Thanks to a certain mathematically adept someone, I now have a new formula which is better in terms of performance and ease of use:

CorrectRotateXFunction = value + delta * speedometer / WHEEL_RADIUS_IN_METRES
Horizontal Rule
Animated Doors
Horizontal Rule
openBVE / Class 323 screenshot - please see video above

The bi-parting sliding plug doors are comprised of a pair of 3D door objects, which slide forwards and backwards via a translation along the Z axis, with values supplied via the left/rightdoors[i] variables, e.g:

Right door animation (Updated):

[Object]
Position = 0.002, 0, -5.552
States = Class323_Door_2_R_Dark.csv, Class323_Door_2_R.csv
TranslateZFunction = rightdoors[0] + 0.864
TranslateXFunction = min[power[10 * (rightdoors[0] – 0.1), 3] + 1, 1] * 0.05
StateFunction = pluginstate[31]

[Object]
Position = 0.002, 0, -6.417
States = Class323_Door_2a_R_Dark.csv, Class323_Door_2a_R.csv
TranslateZFunction = -rightdoors[0] + 0.864
TranslateXFunction = min[power[10 * (rightdoors[0] – 0.1), 3] + 1, 1] * 0.05
StateFunction = pluginstate[31]

Left door animation:

[Object]
Position = -0.002, 0, -5.552
States = Class323_Door_2_L_Dark.csv, Class323_Door_2_L.csv
TranslateZFunction = leftdoors[0] + 0.864
TranslateXFunction = -min[power[10 * (leftdoors[0] – 0.1), 3] + 1, 1] * 0.05
StateFunction = pluginstate[31]

[Object]
Position = -0.002, 0, -6.417
States = Class323_Door_2a_L_Dark.csv, Class323_Door_2a_L.csv
TranslateZFunction = -leftdoors[0] + 0.864
TranslateXFunction = -min[power[10 * (leftdoors[0] – 0.1), 3] + 1, 1] * 0.05
StateFunction = pluginstate[31]

The StateFunction command is there to switch between illuminated and non-illuminated versions of the door objects, and pluginstate[31] is equivalent to the ats31 subject in the class 323’s panel2.cfg file (when used with Simon Gathercole’s UKMUt.dll), i.e. the Line Light indicator (so the lights appear to go out when the pantograph is lowered). The objects are also translated along the X axis so they “plug” into the bodyside when fully closed. Unfortunately the door open and close sounds aren’t fully synchronised with the door motion; with UK trains, warning beeps are heard before the doors actually start to close, but the beeps are contained within the door closing audio file, and of course the visible doors start to close as soon as the beeping starts. The duration of the door opening motion is also shorter than the duration of the door opening audio files. I haven’t tried having door animation controlled via plugin variables yet; when I have time I’ll look into this further.

Horizontal Rule
Animated Window Reflections
Horizontal Rule
openBVE / Class 323 screenshot - please see video above

The window reflections are made from two semi-transparent surfaces, which have texture shifting functions applied, based upon the current speed of the train, e.g:

Window reflection animation:

[Object]
Position = 0, 0, 0
States = ..\Class323_DMSO_1_WindowReflections.csv
TextureShiftXFunction = value + speed * 0.001

[Object]
Position = 0, 0, 0
States = ..\Class323_DMSO_1_WindowReflections_bg.csv
TextureShiftXFunction = value + speed * 0.0001

There’s a foreground reflection texture with transparency, showing near-track bushes, and there’s also a background reflection texture, showing a low resolution version of the backdrop (ground and sky) texture, and this surface’s texture is shifted more slowly than the foreground texture, creating a rather nice parallax effect when the train is in motion. The overall effect looks rather good in my opinion, but of course, if the reflection textures depict a Summer scene, but the train is used on a Winter route with snow, it looks a little silly…

Horizontal Rule
Interior Illumination
Horizontal Rule
openBVE / Class 323 screenshot - please see video above

Interior lighting strips, along with interior fittings and additional semi-transparent yellow surfaces to lighten the windows when viewed from outside at night (allowing adequate night-lighting effects while still being able to have daytime window reflections), are displayed when the pantograph is raised, and swapped for non-emissive versions when the pan is lowered, so it’s possible to turn the carriage lights on and off. When the pantograph is lowered, all exterior lights are also state-changed or translated so they appear to extinguish, and won’t illuminate until the pantograph is raised again. This is achieved using if[pluginstate[31] ... ] commands, as demonstrated in the next section.

Horizontal Rule
Animated Pantograph
Horizontal Rule
openBVE / Class 323 screenshot - please see video above

The pantograph itself can be visibly raised and lowered, with the head having a Y axis translation applied, and the upper and lower arms having X axis rotation, along with Y and Z axis translation applied. The pantograph animation is conditional upon the state of the value of plugin variable 31, or the ats31 subject in the class 323’s panel2.cfg. The code I’ve written which enables this is as follows (since updated on the 5th July 2009, thanks to a post by michelle herself):

Pantograph animation (updated 5th July 2009):

[Object]
Position = 0, 4.24, 9.071
States = ..\Pantograph_BWHS_Head.csv
TranslateYFunction = if[pluginstate[31] == 0, if[value > -0.97, value – delta * 0.49, -0.97], if[value < 0, value + delta * 0.49, 0]]

[Object]
Position = 0, 4.24, 9.071
States = ..\Pantograph_BWHS_UpperArm.csv
TranslateYFunction = if[pluginstate[31] == 0, if[value > -0.45, value – delta * 0.225, -0.45], if[value < 0, value + delta * 0.225, 0]]
RotateXFunction =     if[pluginstate[31] == 0, if[value > -0.29, value – delta * 0.145, -0.29], if[value < 0, value + delta * 0.145, 0]]
TranslateZFunction = if[pluginstate[31] == 0, if[value < 0.06, value + delta * 0.03, 0.06], if[value > 0, value – delta * 0.03, 0]]

[Object]
Position = 0, 4.24, 9.071
States = ..\Pantograph_BWHS_LowerArm.csv
TranslateYFunction = if[pluginstate[31] == 0, if[value > -0.45, value – delta * 0.225, -0.45], if[value < 0, value + delta * 0.225, 0]]
RotateXFunction = if[pluginstate[31] == 0, if[value < 0.27, value + delta * 0.135, 0.27], if[value > 0, value – delta * 0.135, 0]]
TranslateZFunction = if[pluginstate[31] == 0, if[value < 0.06, value + delta * 0.03, 0.06], if[value > 0, value – delta * 0.03, 0]]

Horizontal Rule
Animated Wipers and Working Headlights
Horizontal Rule
openBVE / Class 323 screenshot - please see video above

The windscreen wipers aren’t as good as I’d like them to be yet; when the if[pluginstate[i] ... ] conditions are satisfied and the truevalue formulae are executed, the wipers can jump to a position mid-sweep rather than starting to move from their currently held position. The same problem can happen when switching the wipers off as well, although the way I’ve implemented it, the wipers will stop in whatever position they are in when the wipers are turned off. More work needed here… Each wiper is comprised of two arms, and a wiper blade. The code so far, is as follows:

Wiper animation (code for left wiper only; reverse the signs of each occurrence of ‘power[]’ for the right wiper, excluding the one in the last TranslateYFunction command):

[Object]
States = ..\Class323_DMSO_Wiper_L_1.csv
Position = -0.56, 2.27, 0
RotateZFunction = if[pluginstate[198] > 0, power[1 – abs[cos[time]], 0.5] * 1.3, value]

[Object]
States = ..\Class323_DMSO_Wiper_L_1a.csv
Position = -0.5, 2.27, 0
RotateZFunction = if[pluginstate[198] > 0, power[1 – abs[cos[time]], 0.5] * 1.3, value]

[Object]
States = ..\Class323_DMSO_Wiper_L_1b.csv
Position = -0.55, 2.28, 0
TranslateXFunction = if[pluginstate[198] > 0, -power[1 – abs[cos[time]], 0.5] * 0.73, value]
TranslateYFunction = if[pluginstate[198] > 0, power[sin[time * 2], 2] * 0.13, value]

The last TranslateYFunction command moves the wiper blade up and down at the correct speed, which when combined with the X axis translation, creates the overall effect of an arc movement rather than a simple left-right motion.

Horizontal Rule

The head (and tail) lights are linked to the proving lights in the cab (the ats20 and ats21 subjects in the class 323’s panel2.cfg). Each headlight configuration has it’s own csv object. The headlights will only be illuminated when the pantograph is also raised (dependent on the state of plugin variable 31, or the ats31 subject in panel2.cfg). When the tail lights at one end of the train are on, they automatically turn off at the other end of the train. For the rear of the train, the headlights can only illuminate if the tail lights are also off. The code which enables all of this is as follows (please note, I’m presenting two alternative ways of implementing the lights on the leading vehicle, the reason why can be found below):

Head and tail lights:

Class323_DMSO_1.animated (lead vehicle) OPTION 1

[Object]
States = ..\null.csv, ..\Class323_Headlights_0.csv, ..\Class323_Headlights_1.csv, ..\Class323_Headlights_2.csv
Position = 0, 0, 0
RotateYFunction = 3.1416
StateFunction = if[pluginstate[31] == 1, pluginstate[20], 0]

[Object]
States = ..\null.csv, ..\Class323_Taillights_1.csv
Position = 0, 0, 0
RotateYFunction = 3.1416
StateFunction = if[pluginstate[31] == 1, pluginstate[21], 0]

Class323_DMSO_1.animated (lead vehicle) OPTION 2

[Object]
States = ..\Class323_Headlights_0.csv
Position = 0, 0, 0
RotateYFunction = 3.1416
TranslateYFunction = if[pluginstate[31] == 1, if[pluginstate[20] == 1, 0, -600], -600]

[Object]
States = ..\Class323_Headlights_1.csv
Position = 0, 0, 0
RotateYFunction = 3.1416
TranslateYFunction = if[pluginstate[31] == 1, if[pluginstate[20] == 2, 0, -600], -600]

[Object]
States = ..\Class323_Headlights_2.csv
Position = 0, 0, 0
RotateYFunction = 3.1416
TranslateYFunction = if[pluginstate[31] == 1, if[pluginstate[20] == 3, 0, -600], -600]

[Object] States = ..\Class323_Taillights_1.csv
Position = 0, 0, 0
RotateYFunction = 3.1416
TranslateYFunction = if[pluginstate[31] == 1, if[pluginstate[21] == 1, 0, -600], -600]

Class323_DMSO_3.animated (rear vehicle)

[Object]
States = ..\null.csv, ..\Class323_Headlights_0.csv, ..\Class323_Headlights_1.csv, ..\Class323_Headlights_2.csv
Position = 0, 0, 0
StateFunction = if[pluginstate[31] == 1, if[pluginstate[21] == 1, pluginstate[20], 0], 0]

[Object]
States = ..\Class323_Taillights_1.csv, ..\null.csv
Position = 0, 0, 0
StateFunction = if[pluginstate[31] == 1, if[pluginstate[31] == 1, pluginstate[21], 0], 1]

In Option 1 above, the lead vehicle’s headlights are changed using StateFunction commands alone. This method works fine, but the first time each state is changed to, you’ll see the object’s texture isn’t loaded until a fraction of a second after the object is displayed, leading to a flash of colour which is a little distracting. Using Option 2 gets around this issue however, because the headlight objects and textures are always loaded upon swtiching to an external view, and are displayed by translating the relevant object along the Y axis instead, conditional upon the value read via the pluginstate[i] variable. As these textures are always loaded in an external view, StateFunction commands alone can be used in the rear vehicle.

Incidentally, the RotateYFunction = 3.1416 lines simply rotate the relevant objects 180° around the Y axis (the value is in radians, rather than degrees).

What I need to do next, is add interior fittings such as seats, luggage racks, LCD TV screens, and so-on. I might make some more progress with the route itself instead though, as to be honest I could do with a break from modelling the minutiae of train objects for a while. Emoticon Smile

Tags: , , , , , ,
Posted in openBVE | 42 Comments »



Superelevation, Flashing Aspects, Animated Points, and Station Signs

Posted by admin on December 23, 2008 at 10:00 pm

I’ve been continuing with some more cosmetic updates for Cross-City South v1.4, and I’m in the process of adding superelevated track, transition curves and lead-in/lead-out track objects to enable smooth changes from level to canted track. With » Watford Junction to Rugby «, which already includes superelevated track objects and lead in/out objects, I’d adopted a system where curved track objects with 35mm, 70mm and 125mm cants were modelled, with a set of lead-in/out transition objects going from 0-35mm, 35-70mm and 70-125mm at varying curve radii, which enabled a nice, gradual increase or decrease in cant within a curve. These lead in/out objects are placed not as .Rail objects, but as .FreeObjects, and are used in conjunction with one of several invisible null rails which each have a different run sound, such that I don’t need to add too many new railtypes to cover all the possible combinations of run sound and required canted transition curve objects. This technique still results in quite a number of FreeObjects however.

While looking at the » ATS-Sn/P Test Route «, I was impressed by the appearance of the superelevated track and transition curves, which I felt were better than my attempts, and while looking at how the author achieved such a good result, I was pleasantly surprised to find that the technique used is actually more straightforward and efficient than that which I’d adopted, with just a simple pair of straight, left/right lead-in and lead-out objects used. I’ve trialled this on the Cross-City South, and I’m pleased with the results on the sharper curves, although for larger radius, higher speed curves, I’ll retain graduated 0-70mm and 70-125mm canted transition curve objects:

openBVE screenshot (Cross-City South v1.4 WIP) openBVE screenshot (Cross-City South v1.4 WIP)
– Please note that the grass and terrain textures are only temporary

I’ve also been experimenting with the signalling functionality recently introduced into openBVE’s » animated object format «. I’ve now implemented flashing aspects which are used on the approaches to the 60 mph and 70 mph crossovers between the fast and slow lines on the WCML’s New Ledburn and Hanslope Junctions, respectively. I’ve also incorporated lens hoods which become illuminated according to the aspect displayed by these new signal objects, and these look better than the standard flat bitmaps usually used to represent signal aspects in BVE.

Jason Morgan, one of the people we can thank for introducing BVE to Western railsim users several years ago, asked me whether or not it would be possible to have animated points linked to a signal, such that the blades moved to the correct position prior to the signal clearing, for example, while the player’s train is waiting in a passing loop before being cleared to rejoin the main line. Indeed this is possible, either by making the point blade position depend upon the state of a section, or by making the animation functions conditional, for example, by basing them upon the distance from the set of points to the player’s train. When basing the point blade position upon a section state, this can be done simply with the aid of a .Pretrain command, such that the point blades move as the signal changes from red. However, by using a .Section 0;2;3;4;5 command (UK routes with 4 aspect signals usually use .Section 0;2;3;4), and a specially modified animated signal object which displays an aspect sequence of Red > Red > Yellow > Double Yellow > Green, the point blades can move prior to the signal aspect appearing to change from red, which looks more prototypical. This is only suitable when the player arrives at the signal while it’s associated section state is still 0 (red), however.

As part of the experiment, I created some fully animated point objects, which include moving point blades, stretcher bars, backdrive assemblies, linkages and levers. » openBVE’s « rotation damping functions also enable a rather nice motion of the point blades, which looks quite realistic. Both conventional and High Performance Switch System (HPSS) points are modelled.

Important note: Currently, trains in openBVE follow a single path throughout a route as with BVE Trainsim (based on Rail 0), with this one path coded in the route file which cannot be changed en-route. Therefore, these points are cosmetic only!

Download openBVE / Watford Junction to Rugby video - please use the YouTube links to the rightVideo: Demonstration of working 3D bulb and LED signals, flashing apects, and animated pointwork

Note: this video is now included as part of a compilation on YouTube.

« [YouTube “High Quality” version] | [YouTube “High Definition” version]

Stephen Cross has also kindly created a set of station sign textures for use in Cross-City South v1.4, so I’ll be creating a new set of objects allowing the actual station names to be displayed on signs at each station on the route:

openBVE screenshot (Cross-City South v1.4 WIP)

I’ll also create some new lampost objects for the stations, as the existing ones look, well lets be honest, terrible. Emoticon Smile If I have time, I’ll update the route to include London Midland textures as well, although this isn’t a priority for me at the moment.

Finally, I’d like to wish visitors to Rail Sim Routes UK a very Happy Christmas! Emoticon Smile

Tags: , , , , , ,
Posted in openBVE | 4 Comments »



More Animated Objects

Posted by admin on December 1, 2008 at 10:00 pm

While my favourite games are naturally openBVE and BVE Trainsim, another game which has also made a great impression on me is the first-person shooter Half-Life 2 and it’s follow-on episodes. I love this series of games because of the unfolding sci-fi story arc, mythology, characters, exotic technology, blend of elements of past, present and future, interactive environments and physics modelling; but they also feature some exceptionally high quality photo-realistic textures, lighting, atmospheric scenes, visual effects and a variety of nice touches which help to bring Half-Life 2’s dystopian world to life. Now that openBVE’s animation capabilities can be experimented with, I thought I’d bring a couple of the things I’ve noticed in Half-Life 2 to my own routes–no, not portal storms, teleportation devices or xenomorphic creatures wreaking havok in the streets of Birmingham, tempting though that is; rather animated birds and cables. Okay, maybe not quite as exciting, but anyway, Half-Life 2 features birds which fly past in places, and cables which sway in the wind:

Screenshot (Half-Life 2) Screenshot (Half-Life 2 Episode 2)

Using openBVE’s animated object translation and rotation functions, similar effects can be created. I downloaded a Reverse Polish Notation calculator to assist me in understanding what some of the translation values being calculated actually are, and this helped me to create birds which move at the right speed at the right time, and have flapping wings to add a little life to them, although I haven’t figured out how to increase the speed of the flapping yet. The return conductor cables sway back and forth as though buffeted by strong gusts of wind, and I exchanged the sine and cosine functions in alternating objects so each cable length doesn’t sway at the same time as the next, making the overall movement look rather more natural. I’ve amended my previous video with some extra shots of these features:

Download openBVE / X-City South video - please use the YouTube links to the rightVideo: openBVE v0.9.1.7 and X-City South v1.4 (textures and scenery not finished yet)

Animated clouds, flying birds, falling rain, swaying cables, moving water, and a passing train

Note: This video is now included as part of a compilation on YouTube.

« [YouTube “High Quality” version] | [YouTube “High Definition” version]

Class 150 objects from » Network West Midlands «

I hope you like the effects. Emoticon Smile

Note: Just to reiterate, openBVE will have built-in rainfall in future, so using animated objects to create this effect won’t be required eventually; but I was curious to see if such effects were possible with animated objects alone. The passing train is just a fun experiment, and animated objects aren’t really suited for this purpose as the animated object doesn’t follow any track, but rather a direction defined in the animated object file; I probably won’t include it in the final release route as there’s no sound accompanying the train.

Tags: , , , ,
Posted in openBVE | 1 Comment »



openBVE’s Object Animation

Posted by admin on November 26, 2008 at 10:00 pm

If you’ve visited the » openBVE Homepage « recently, you’ll know that Michelle has released openBVE v0.9.1.5 and DemoRoute1, and these introduce animated objects to the community for the first time. While the new animation capabilities are just a preview, aren’t supported yet and are subject to change, I’ve been playing with the new functionality to see what might be possible. As the animation capabilities may be altered in future versions of openBVE, none of these X-City demonstrations should be considered final.

In Michelle’s DemoRoute1 we can see an animated departure screen, clock, an A320 flying overhead, flashing level crossing light, moving cars and simulated interaction, and an escalator. These are the kinds of features I’d like to add to Cross-City South v1.4 as well, as they’re just brilliant–but rather than show you what Michelle has already demonstrated, I thought I’d start with something a little different. In the video below, I’ve used .PointOfInterest commands, and placed animated sheets of rain to create the effect of precipitation (achieved via texture shifting), moving clouds achieved via the same method, and animated water on the canal.

Note: openBVE will have built-in rainfall in future, so using animated objects to create this effect won’t be required eventually; but I was curious to see if such effects were possible with animated objects alone.

Download openBVE / X-City South video - please use the YouTube links to the rightVideo: openBVE v0.9.1.7 and X-City South v1.4 (textures not finished yet)

Animated clouds, falling rain, moving water, and a passing train

Note: This video is now included as part of a compliation on YouTube.

« [YouTube “High Quality” version] | [YouTube “High Definition” version]

Class 150 objects from » Network West Midlands «

A note on the passing train–this is just a fun experiment, and animated objects aren’t really suited for this purpose as the animated object doesn’t follow any track, but rather a direction defined in the animated object file; I probably won’t include it in the final release route as there’s no sound accompanying the train. However, the technique is suitable for trains passing over or under bridges for example, like in the » IIYAMA Line 2060 « route, where the train is some distance from the player, moving across the screen (Lichfield Trent Valley on the Cross-City North route could also be a suitable location for such an effect):


openBVE screenshot

The moving water in the above X-City South v1.4 video also needs some work, but involves a static canal object with ordinary texture, and then two animated, texture shifted alpha-enabled surfaces overlaid; one moving left to right (to match the cloud’s direction of movement), and the other moving along the Z-axis. When combined, they make the water appear to ripple slightly if you look closely for a few seconds, particularly where the tree reflections are visible on the right.

Tags: , , , , ,
Posted in openBVE | No Comments »



Cross-City South v1.4 Update

Posted by admin on November 26, 2008 at 9:00 pm

The Cross-City South v1.4 update has been in progress for the past few days. To start with, I’ve rearranged all the files into a less complicated directory structure, and removed the seasonal variations for the time being, with just Summer remaining for now. I’ve also removed all but two route files from the package, which I’ll work on to create a new foundation on which other route files can be created in future; this makes maintenance much easier and the updated route quicker to check for problems. I’ve also been removing all .X format objects, which I’ll replace with .CSV versions, with surface illumination achieved via openBVE’s new extended commands instead, along with day/night texture transitions achieved using single objects rather than seperate day and night objects, as was the case in Cross-City South v1.3 for BVE4. This helps to save some disk space, along with making the route much easier to maintain.

Along with openBVE’s error reports, I’ve also been using Oskari’s » BRR.NET « utility to check for other issues, to ensure that the new “template” route files are as trouble free as possible. I’ve also been updating the route with new vegetation textures and track objects, taken from the Watford Junction to Rugby route; here’s how it’s looking so far in the openBVE Route Viewer tool (the reported errors are temporary, due to missing textures which I haven’t relocated yet!):

openBVE screenshot openBVE screenshot openBVE screenshot

The shadow effect used for the bullhead rails is based on an idea which Simon Gathercole came up with a while ago. The next time consuming task will be updating all the pointwork, which I’ll start work on soon. I’ll also be exchanging the terrain and grass textures for new versions, making the scenery look better when using the external views, adding backfaces to various objects so the route can be viewed in the opposite direction without needing to hit F11 in openBVE, and adding soft shadows to various objects, which together with the new textures shown above, should improve the appearance of the route considerably. Due to popular demand I’ll be creating a new diagram which starts from the Longbridge reversal siding rather than Redditch, and I’ll also be looking into more animated object possibilities; I have a few ideas already.

Tags: , , , ,
Posted in openBVE | No Comments »



Rugby Area

Posted by admin on November 20, 2008 at 10:00 pm

I thought I’d show the current state of Rugby station, as I haven’t posted any screenshots of this location yet (due to it being unfinished). I’ve only laid the track and electrified the area so far, but as you can see from the images below, this is a very complex location to model, with numerous tracks, diverging lines, two flyovers, pointwork, curves and so-on. There’s no finished scenery yet, and the supports are missing from beneath the flyover, but once these, and the station buildings and lineside buildings are added, it should look rather good.

Please note that in the overhead shots, a 2400m drawing distance is set with a high level of zoom used, hence the station looks somewhat shorter than it actually is, and the curves sharper than they actually are. The released route will be based on the track layout prior to the recent remodelling work at the real station (I have to draw the line somewhere with a route that’s being constantly upgraded in reality; this way I might actually be able to finish the project!!). The track layout depicted here is a mixture of the layout as it was in the 80s and late 90s, and I’ll remove the relevant tracks in the final route files, depending on the era being depicted in each one:

openBVE screenshot openBVE screenshot openBVE screenshot openBVE screenshot

Tags: , , ,
Posted in openBVE | No Comments »



Lighting, Shading and Contrast

Posted by admin on November 20, 2008 at 9:00 pm

In this first entry, I’m going to talk about shadows, contrast and realism. Recently, I’ve been playing around with improved shadows and lighting effects, which are now possible thanks to » openBVE’s « support for daytime/nightime texture transitions, as well as support for alpha-enabled PNG images which can be used as textures. Michelle and I briefly discussed time-of-day texture transitions and headlight glow effects recently, and it occured to me that not only could a glow effect be achieved with openBVE’s extended commands, but soft shadows could also be created. In these two screenshots of the Class 323 EMU on Cross-City South, you can see how these openBVE capabilities facilitate a rather nice effect in-game, which I feel adds to the visual quality and immersiveness considerably:

openBVE screenshotopenBVE screenshot

A while ago, » Daniel Beardsmore « and I were discussing my Watford Junction to Rugby screenshots, and that while they looked good, there was just something… not quite right about them. He hit the nail on the head when he mentioned contrast–which is simply too low in my textures–resulting in a somewhat washed out appearance to many of the scenes:

openBVE screenshot

While helping with some of the » now resolved « openBVE plugin compatibility issues recently, I spent some time enjoying… sorry, testing… the rather stunning Japanese » ATS-Sn/P Test Route «, and afterwards, the deficiency in my own textures became even more obvious, as the ATS-Sn/P Test route’s textures have greater contrast and more shading, creating a much richer and more realistic and compelling visual experience, despite both routes using photo-realistic textures:

openBVE screenshot openBVE screenshot

The effect of shadows and contrast is also shown to good effect in the Joetsu Border and South routes (available here: » http://gri.s60.xrea.com «):

openBVE screenshot openBVE screenshot

Adding better shadows to Watford Junction to Rugby helps considerably, although I need to up the contrast further still, particularly in the vegetation textures, and add more shading to the track textures:

openBVE screenshot openBVE screenshot openBVE screenshot openBVE screenshot openBVE screenshot openBVE screenshot

Tags: , , , ,
Posted in openBVE | No Comments »