The Ghostly Teapot!

Now one of the “small” contributions I made to the Train Sim community was a little program I wrote called Shape Viewer.
This was made up from a few modular components, a 3D viewport, MSTS model loader and Trainz Model loader. These were then embedded in a standard windows form which added extra functions such as loading consists, display stands, grass etc.
This worked quite well and the modules were used by several other Train sim utilities to display models.
The program was written using Visual Basic 6 which restricted me to using DirectX8.1. Both are now well out of date and the program needed a bit of an overhaul to upgrade.
I finally bit the bullet last week and converted the 3D viewport module to .NET 2, using the SlimDX library (after Microsoft saw fit to remove .NET 2 support for DirectX)
The conversion was relatively smooth, I was almost able to copy and paste the code with a few small changes. The result was a ghostly teapot rendered using DirectX9.
I have nearly completed my FSX MDL file reader, it should only be a matter of time before I have FSX models viewable without having to start up FSX.
If I can work out how to use the shaders, they may even look exactly like they do in the simulator!
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: