by Kali » Sun Nov 13, 2011 10:21 pm
The caboose panel can handle 5 or 6 digit numbers only; I can easily bang out one that'll take less or more ( I can explain how to make your own too ) but until then if you need less than 5, you'll have to use blanks to fill the gaps in temporarily. The boxcar panel doesn't have the built-in CN prefix if you want to get rid of that.
Quick & dirty guide to autonumber panels, lets assume it's for 5 digits
* make an object of 5 quads, spaced where you want your numbers
* call the object 1_1000_primarydigits_5
* somehow, I don't know how 3dc does it, you need to assign a different material to each quad - dig out someone's guide to numbering their engine, it's the same. Use TrainDecal as the shader, the important bit is that each quad has to be assigned a texture called primarynumber_0 ( and 1, 2, 3 4 ). What's on the textures doesn't matter. The docs for TrainDecal say to call the *material* decal_blahblah, but I didn't know that when I first started using it and it doesn't seem to make the slightest bit of difference anyway; I'd quite like to know what that special material name is meant to enable. Of course I don't think whoever created traindecal was expecting people to use it in child objects...
To reduce the number of textures you can just name the textures in your texture set "primarynumber_x" so they get used as placeholders *and* actually displayed digits - I didn't do this, sorry :p
If you want to handle numbers of variable length, you need to make more objects of variable numbers of quads, and call them 1_1000_primarydigits_2 or however many you want. They must be all exported in the same shape file. You might also not want your numbers visible to 1000m, obviously, I just picked that as a number :)
That's all the important parts of the shape - the most important are the name of the whole object, and the name of the texture files. You can reuse a texture set from some other model if you want, otherwise there's no surprises making one of those.
Yesterday's caboose somehow reverted to looking in the wrong place for the number panels, if anyone downloaded it yesterday at all. New one that works proper-like went up a few hours ago.
Last edited by
Kali on Sun Nov 13, 2011 10:26 pm, edited 1 time in total.