Thursday, July 07, 2011

Battling the exporter

I managed to get an early draft of the 86 Class into Trainz for testing, and so that I could see what needed to be done to tweak the textures. This picture has a very rough texture on it for the moment.

So I started tweaking and moving things around, re-exported the model, and now it wont show up in any of Surveyor, Railyard, or Driver, in TS2009, despite showing up fine in Asset-X, Pev's Mesh Viewer, and even in CCP. There are no errors in CCP or even in the export process, and this has me stumped. All I can do is keep tweaking the textures and hope that the exporter begins to co-operate. I was even able to drive the one pictured here, but now - nothing.

Each time I've exported a model I've found the exporter to be very picky, especially about materials. At one stage it would just crash Max to the desktop if I renamed one particular texture to the standard .m.onetex naming convention. It exported just fine without that extension. Other times, it has crashed to desktop for no apparent reason, but every time it has been related to the materials.

These exporters have been around for over three years. One would think that Auran (N3V) would, from time to time, update the exporters - patching bugs such as these, but unfortunately Auran seem to be of the impression that you can release a piece of software once, then just forget about it. Not so with their flagship product though - they've released 3 or 4 versions of Trainz since the exporters were last updated. They seem to understand the concept of software development only when its directly connected to making them money, but without the exporters, where do they think the content would come from? Without content, JET is just an engine. It does nothing on its own.

Still, I press on. I keep tweaking the textures on the 86 Class, hoping that I'll hit that elusive magical combination that will cause the exported model to show up in Trainz - after all that's what its all about. In the mean-time, Im fiddling with a few side projects that are still in the modelling phase. I don't need to export them just yet so I can model happily without any problems.

Here is a shot from inside the cab. This is the low-res cab that is a part of the body mesh. You will see it through the windows in DCC mode. I tricked the camera to place it inside the cab on a multiple unit set. I've been trying to get the shiny stainless steel effect the way I want it, and I think its getting pretty close. The first thing that struck me about the real cab was how shiny it was. As you can see, there are still parts of the cab, and body that are untextured at this stage.

I've put the 86 Class aside for now and as I mentioned have been working on other things.  One of those things is a route. I want a route that is a) Unmistakably NSW, and b) appropriate for the 86 Class and the Tangara, so I've started putting something together. Ive always been impressed by the detail in the Wadalbavale line, and the sheer size of Pine Ridge, and Razorback, and I'm hoping to eventually come up with something inspired by all three.

I've started with the mountains - inspired by Lithgow being the former home of the 86 Class locomotives. At the highest point the rail is 600m above sea level, and Im gradually working my way down to sea level with some 2 and 3% grades to give a bit of a challenge, and to make good use of the dynamic regenerative braking in the 86 Class. This will be a coal run, down to the port at sea level.   I havnt started on any other sections but there will be other areas to explore as well, and of course commuter trains, which is where the Tangara comes in.

One major thing Im missing is decent Cityrail stations, so Im currently building one that I can throw in there for the time being. I'd like to expand on that and make a series of stations, but that is for the future.  I'd like to build something generic and have options available through scripting, similar to Andi06's station kit.

The Tangara is waiting to be converted to Max. I figure since TRS2006 is no longer supported there is no reason to keep it in Gmax.  The conversion process is a bit bumpy so I've been putting it off, but I hope to have an update on the Tangara in the next post (and some pics).

I'm not going to bother right now with the poly counts that I used to add to my posts, suffice to say the 86 Class in the pictures is about 18,000 polys and will use LOD by the time its ready for the final export.
Posted by Picasa

Tuesday, June 14, 2011

Updated Buffers on DLS

I've uploaded new versions of the NSW Wooden Buffers to the DLS, and they should be available soon. The good news is the flicker is Totally Gone!... the bad news is I couldn't get my new arrangement of the lamp working the way I wanted, so I went back to the old way (Two separate models).  I'd eventually like to script it and have just a single model portray both versions, with the lamp activated or hidden by a script, but that's a low priority right now.


I had a look at the NSW Train Stop (and the UK one I also did) but cant see whats wrong with it. In TS2009, the script seems like it isnt running at all. Weird.  I noticed that someone else has "fixed" the Train Stops as there is a new version on the DLS, unfortunately I cant download anything due to the servers being busy.  Its so annoying to not be able to retrieve a copy of your own content.


Anyway, when I get the updated Train Stop, I'll first see if I can fix its Trainz Build. These were intended for TRS2006, but someone has set it up for TC or above. Then I'll see if I can figure out why the script isn't running. Strangely enough, the object I modelled the script from, still runs fine with its original script.


I don't have any pics right now, but Ive spent some time texturing the 86 Class.   Its *so* close to being ready for export, but there is a lot of work to be done after that (scripting) so dont think that means its due for release any time soon.   I have the body about 70% textured, with just the small fiddly bits left to map.   Once its in Trainz, I can concentrate on the Tangara while I start putting the scripts together.


The 86 Class and Tangara will share much of the script (They're both Electric Multiple Units, so share similar functions) so both models will benefit. I expect the 86 Class will be on my test track for some time, while it gets all its scripting and other planned goodies. I anticipate the Tangara will be ready before it.


With the Tangara, Ive been thinking its time to upgrade it to 3DS Max. It was originally intended for TRS2006, but here we are at TS12.   I still have to catch up on my Trainz versions but I will get TS12 as soon as I can and probably aim the Tangara at TS2009 now.  At this stage, I havent started to convert it, but I have a fairly good process for exporting from Gmax to 3DS Max, so when I get started that part of it shouldnt take long.


I'll see if I can have some pictures of the latest work ready for next time.

Friday, June 03, 2011

Slow Progress

Well, its been some time since my last update. The last couple of years have taken me in different directions, but all the while, this project has been in the back of my mind.  I know I have (or had) a lot of people watching, and by now some of them may have given up, and I dont blame them, but the wheel has turned and I've found myself back here again.


For many years I've wanted to build a model railway, but never had the space for it. It occurred to me recently that these days, with the various rail simulators available, younger people would probably just build a virtual railway than use up an entire room for their hobby. Virtual railways have a big advantage when it comes to space. you can easily create a layout that is much bigger than anything you could build in a room, and a lot more interactive. I still plan on filling a room with trains one day, but recently I've started building my own virtual railway in Traiinz TS2009.

There are a couple of existing routes that I like. They're big. They're Australian, specifically New South Wales. They're full of NSWGR and SRA content, and they look and feel quite good, but they all have similar problems.  I considered updating one of them with better content, replacing thousands of signals with the NSW ones available on the DLS, replacing all the stations with better ones, etc, etc. About the only thing I didnt have to change was the scenery.

Add to that the problem of older content not working properly, or failing to load entirely, I came to the conclusion that I would have to build much of it myself, from scratch, right down to the 3D models, since a lot of the classic NSW content are progressive meshes which are no longer supported.

So I've decided to make this a long term project, like a physical model railway, that I work on when I have the time. Anything I produce will be available in some form or other, and I may even consider making them available for other rail simulators as well.

The first thing I need to do is fix my own content. The buffers have always flickered, and I have a new version without any flicker that I am putting some final touches on. I changed it a little and now attach the lamp to the buffer, and then the corona to the lamp, but Im having a little trouble getting the corona to attach to the right point. I'm not even sure at this stage that its possible. I'll figure it out eventually.


The Train Stop will be next. I only just realised that stopped working, and even worse, causes other signals on the route to fail.  Its a scripting problem, and I'll have that sorted out, and updated on the DLS as soon as I can.


Then its back to the Tangara and the 86 Class.  I really miss the real 86 Class and finishing off the model will at least let me see it running again.  I have another side project as well, but I cant talk about that. Im updating someone elses content, and will have to waiit until its done and I contact them again before I can announce it. Its not a big job, just a little time consuming.


Finally theres my route. That will be put together over time. Since the 86 Class were built for hauling coal and container trains through the mountains, naturally it features mountains. At the highest point the rail is 600m above sea level, and I plan to have a port at sea level too, so it's going to be big, with lots of gradients, and will have a city area for the Tangara and other commuter trains.

It sounds like Im taking a lot on, when its already taken me a long time to produce what I've already started, but I'm hoping that by combining it all together, and adding a route that I'll have the full package and that will motivate me to work on some part of it or other. One of the problems of just working on the 3D models is that when I get stuck, or need a break from modelling, I just stop. This way I'll have other things, like the route to go on with.

So thats the plan.  As soon as I have the buffer and Train Stops fixed, I'll add an update on my progress here. I also have some Tangara and 86 Class updates to write as well.