Tag Archive for 'subtransit_trainsim'

Subtransit train simulator (oldpost)

Repost from old blog!

Here is what I have been doing several days ago:

This is a train simulator project, which is follow up to my previous attempt of making train sim using XPhysics:

It was pure XPhysics, but it was kind of sucky, and you could launch your train up to 20000KPH easily (no engine friction or track friction, whoops). You can try it here:
http://fileserver.forest-tm.com/soft/subtransit_alpha.rar (205 kb)

Main problems:

  • Track would only go in one direction (world Z axis here, yes, Y is up in OpenGL)
  • Physics model of trains did not allow turning, they would literally explode when approaching curve
  • Very FPS dependant, and speed updates only with constant rate
  • So I rewrote it. This time I used several of my shaders (look up old posts about shader fun), namely parallax ones. This is used on walls and floor, and ceiling. For example floor shaders were meant to create visually visible train track, but I didn’t get to configure it properly yet (wrong height).

    One more screenshot:

    This version right now is just a prototype, it features:

  • New train simulation engine, running on top of XPhysics for now…
  • Shaders and new graphics
  • Infinite tunnel
  • Sound!
  • I will switch to another render engine though, and remove all XPhysics stuff, and use new engine, kind of like in train simulator.

    See prototype here (included 2 versions of shaders, low and high, also mode without simulation off, all in separate EXE’s):
    http://users.d2k5.com/Black Phoenix/files/subtransit.rar (1.8MB)
    Continue reading ‘Subtransit train simulator (oldpost)’