Graphics for new UK locomotives
Moderator: Locomotion Moderators
I'll take over!!!!
You see, a month ago I downloaded v1.00A but never installed it. I just did. (I understood development has progressed since, but I don't know where to download the latest version). This tool is absolutely bloody brilliant and I now officially love you.
When Locomotion was first released I downloaded a zillion of MSTS models, thinking it would be easy to convert them. It wasn't. And now it is.
You see, a month ago I downloaded v1.00A but never installed it. I just did. (I understood development has progressed since, but I don't know where to download the latest version). This tool is absolutely bloody brilliant and I now officially love you.

When Locomotion was first released I downloaded a zillion of MSTS models, thinking it would be easy to convert them. It wasn't. And now it is.
So long and thanks for all the fish.
V1.10A is on this thread - the prerequisites are to download and install Shapeviewer 1.4 first then install V1.00a (you might not need it) and then use the EXE in V1.10A.scrat wrote:I'll take over!!!!
You see, a month ago I downloaded v1.00A but never installed it. I just did. (I understood development has progressed since, but I don't know where to download the latest version). This tool is absolutely bloody brilliant and I now officially love you.![]()
When Locomotion was first released I downloaded a zillion of MSTS models, thinking it would be easy to convert them. It wasn't. And now it is.
Steve N
Thanks. Email received. I'll set up a project folder and sourcesafe it. I also have a spare 10MB of webspace on my site so it has a home as well. 
ChrisCF: Would you mind terribly if I ask you to assume the project manager role for the project? (EDIT: I'll fix the rendering sequence first; it's a little off. Then I want to work on integrating PNG/palette export into the program).
EDIT: Below some samples that I just generated.

ChrisCF: Would you mind terribly if I ask you to assume the project manager role for the project? (EDIT: I'll fix the rendering sequence first; it's a little off. Then I want to work on integrating PNG/palette export into the program).
EDIT: Below some samples that I just generated.
- Attachments
-
- 3.png (5.33 KiB) Viewed 4781 times
-
- 2.png (5.56 KiB) Viewed 4780 times
-
- 1.png (5.37 KiB) Viewed 4780 times
So long and thanks for all the fish.
- chevyrider
- Tycoon
- Posts: 3285
- Joined: 16 Sep 2004 09:52
- Location: Amersfoort The Netherlands
Sigh. Do I *have* to? Very well, I'll add it to my listscrat wrote:ChrisCF: Would you mind terribly if I ask you to assume the project manager role for the project? (EDIT: I'll fix the rendering sequence first; it's a little off. Then I want to work on integrating PNG/palette export into the program).

Those do look beautiful ...
I'm going to give ImageMagick a shot soon, but I'll need a few reference inages to check to see if it does the whole palette mapping thing correctly. More details when I'm in a better position to test.
Thanks. Just plot the course and I'll just row and stuff, captain.ChrisCF wrote:Sigh. Do I *have* to? Very well, I'll add it to my list![]()

Nice innit? It's from a compilation of user made MSTS models. Each one contains readmes (handy for reuse permission emails). I've also eh... acquired some commercials models (fell from a virtual truck via eMule) that I shan't be bothering with for the moment... yet.Those do look beautiful ...
Let me know how that pans out please. I'm going to familiarise myself with Steve's code first, but after that the PNG conversion should be the number one priority. If a (freeware) third party tool can be automated, so much the better, but if need be I can probably do the conversions through custom code, though I do admit my graphics manipulation skills are a little rusty.I'm going to give ImageMagick a shot soon, but I'll need a few reference inages to check to see if it does the whole palette mapping thing correctly. More details when I'm in a better position to test.
EDIT: Code is easy to read through and well documented. I've also fixed the rendering sequence.
So long and thanks for all the fish.
@scrat great that you develope the program now further. you wrote that you've updated the render-sequence too. were you able to fix the lightning-problem too? I'm just wondering if it's possible to fix that. i'm using painted shadows on my models now but a lightsource with real shadows would look better
I think the problem is I started off rotating the model in the Y axis and then doing the sloping images I got stuck rotating the model in the X/Z plane - so I changed it so that the Y axix rotation is achieved by spinning the camera around the model so that the uphill/downhill tilt can be easily down by rotating the model in the X (or Z) axis only. You've got some useful bits of code there - the trainlib.ocx, tsfileutil.dll and the tsview/viewobject.cls files provide all the bits you need to play with MSTS models in 3D to your hearts content - those 3 bits form the basis of my own evolving model-railway version of MSTS, TSCMscrat wrote:The lighting had already been fixed. There's also a slight tilt when the vehicles are in elevation that I need to fix before I release.
If anyone is wondering where they can get Shape Viewer 1.4 from to use with LocoTSGfx, try http://steam4me.railpage.org.au/trainsim/sviewr.html
Steve N
You know what my biggest handicap here is? (You're gonna laught).
My brain isn't geared to do 3d in a 2d environment. I never could quite cope with it; three dimensional trigonometry almost did me in in secondary school.
I cope by using short strings of rope on my desk to simulate camera angles, while using a pack of cigarettes as my would be train.
Your code is a great help btw. I'm confident I'll have this sorted over the weekend.
My brain isn't geared to do 3d in a 2d environment. I never could quite cope with it; three dimensional trigonometry almost did me in in secondary school.
I cope by using short strings of rope on my desk to simulate camera angles, while using a pack of cigarettes as my would be train.

Your code is a great help btw. I'm confident I'll have this sorted over the weekend.
So long and thanks for all the fish.
what brand d'you smoke?scrat wrote:using a pack of cigarettes
"Your mother was a lobster, and your father... was also a lobster" -- The rascal formerly known as astath -- Last.fm -- Official TT-Dave Worley Fan Club

<orudge> make love to me while I surf, dear lobster

<orudge> make love to me while I surf, dear lobster
- Shifty Powers
- Director
- Posts: 629
- Joined: 04 Nov 2004 10:12
- Location: The Netherlands
Since trains never tilt in Locomotion (or shouldn't!) think of 3D trig as two sets of 2D trig. Spin the model around the Y axis (trig in the surface plane) and separately think about elevation, tilt the model uphill or down. I wrote a function (in the code I sent) to translate simple elevation into the 3D trig you need - of course it could be this bit that's broken and causing the tilt on some elevations.scrat wrote:You know what my biggest handicap here is? (You're gonna laught).
My brain isn't geared to do 3d in a 2d environment. I never could quite cope with it; three dimensional trigonometry almost did me in in secondary school.
I cope by using short strings of rope on my desk to simulate camera angles, while using a pack of cigarettes as my would be train.![]()
Your code is a great help btw. I'm confident I'll have this sorted over the weekend.
Steve N
- Illegal_Alien
- Tycoon
- Posts: 7824
- Joined: 29 Sep 2004 20:07
- Location: Kingdom of Far Far Away
- Contact:
The latest sources I send to scrat have this restriction turned off - but it does when you'll have to play with the sizing whereas when it was 240x240, I had autosizing (44m viewing distance as I recall)Illegal_Alien wrote:! thin i miss in the TNF program: Making pictures of the size I want to make. Not automatic 240x240.
Steve N
Who is online
Users browsing this forum: No registered users and 41 guests