Tutorial: How to remove cab numbers

Discussion of rolling-stock creation & re-painting.

Tutorial: How to remove cab numbers

Unread postby ATSF3814 » Fri Aug 05, 2011 10:06 pm

Earlier I made mdurdan a tutorial on how to alpha out cab numbers on locomotives using GIMP and I decided to put it up here in case anyone else finds it useful. I'm going to assume you already know how to export textures as DDS files and what bin files need to be edited.

This tutorial will show you how make the cab numbers completely transparent. Your numberboards will still work fine however. This is useful if the locomotive you're repainting has the cab numbers in the wrong place and you have to paint your road numbers on. i.e. my Boston and Maine GP9 repaint:

Image

Here are the tools you'll need:

GIMP
GIMP DDS Plugin

Now first you need to get the number textures exported. You'll find them in the textures folder:

Image

Although they won't always be named as such, it will likely be something similar.

Open up your number texture in GIMP. You'll see that it's divided in two (or in some cases three) pieces:

Image

Please note that your cab number will not always be on the left side. It all depends on how the locomotive was set up. But it shouldn't be too hard to figure it out.

Next, use the Rectangular Select Tool to select the cab number:

Image

Up in the toolbar, got to Layer-->Transparency-->Threshold Alpha:

Image

This will open a new window with a slider labeled Threshold. Move the slider all the way to the right so the value is 255:

Image

And like magic, the cab number has vanished:

Image

Finally, when you save it, make sure to use DXT3 compression and select Generate Mipmaps:

Image

Now just repeat the process on all the other numbers and import them back in over the old textures.

And that's it. Now your cab numbers will be completely transparent but the numberboards will still work fine.
Last edited by ATSF3814 on Sun Aug 07, 2011 1:21 am, edited 2 times in total.
User avatar
ATSF3814
 
Posts: 583
Joined: Fri Sep 17, 2010 2:15 pm
Location: San Marcos, CA

Re: Tutorial: How to remove cab numbers

Unread postby Hawk » Fri Aug 05, 2011 10:13 pm

This should probably be stickied, so I did. *!greengrin!*
Hawk
 

Re: Tutorial: How to remove cab numbers

Unread postby ATSF3814 » Sat Aug 06, 2011 3:39 pm

Thanks Hawk. !*salute*!

Might I suggest that you also sticky stycx's tutorials. They're very helpful.
User avatar
ATSF3814
 
Posts: 583
Joined: Fri Sep 17, 2010 2:15 pm
Location: San Marcos, CA

Re: Tutorial: How to remove cab numbers

Unread postby Hawk » Sat Aug 06, 2011 4:26 pm

!DUH! I don't know why I didn't do that to begin with. I guess I'm slipping. !*roll-laugh*!
Hawk
 

Re: Tutorial: How to remove cab numbers

Unread postby Heavy Chevy » Thu Aug 11, 2011 7:59 am

Good morning

I tried to do this but I can not seem to get it to work properly. I can get the numbers to vanish in the GIMP program and then re save as a DDS. When I reload into RW Tools the the number is back. If I then reverrse the number back into temp DDS and open in GIMP it is still gone in GIMP. When I load the engine into the sim the numbers are present.

Any thought/

Thanks in adavnce for the help.
Heavy Chevy
 

Re: Tutorial: How to remove cab numbers

Unread postby ATSF3814 » Thu Aug 11, 2011 9:47 am

Perhaps it's a problem with RW_Tools? !*don-know!*

I'm not really sure because I use RSBinTool to import and export all of my textures. But it is perfectly normal that the number will still be present when you import the texture back in.

The only suggestions I can think of are make sure you've saved the changes to the texture and cleared your blueprint cache before starting RW. If you don't clear the cache, new changes you've made to textures will not show up.

Also, make sure that the bin file for the number textures is pointing at the numbers in your repaint folder. If it's still pointing at the numbers in a different locomotive's folder, it won't be using your new textures.

Like I said at the beginning of this tutorial, I'm assuming you know what bin files need to be edited but if you don't, I can add that part to the tutorial as well.
User avatar
ATSF3814
 
Posts: 583
Joined: Fri Sep 17, 2010 2:15 pm
Location: San Marcos, CA

Re: Tutorial: How to remove cab numbers

Unread postby PapaXpress » Thu Aug 11, 2011 10:55 am

Not sure if you ran into the other thread where we spoke about using RW_Tools for textures:
viewtopic.php?f=29&t=2926

Also see if this thread helps any:
viewtopic.php?f=9&t=2017

And lastly, MadMike and I just ran into something with Gimp and the alpha layer where it was not behaving again. I talk about it here:
http://thegradecrossing.blogspot.com/20 ... ayers.html
If this is the same problem you are seeing I am afraid that I don't have a solution for you because you need to cover the alpha over half the image and not the whole image (which I did for Mike).
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone

Re: Tutorial: How to remove cab numbers

Unread postby Heavy Chevy » Thu Aug 11, 2011 12:34 pm

Thanks for the info guys. I will play around with it. If it has been done before it can be done again, I think.
Heavy Chevy
 

Re: Tutorial: How to remove cab numbers

Unread postby Kali » Tue Jul 08, 2014 7:40 am

BTW, if you can script:
Code: Select all
Call("SetText", "", 0 )


That somewhere in the script - in Update() probably *but only run once* should also work. The last number is the texture set, iirc it's 1 for the secondary set.

Lastly you can point all the entries in a texture set to the same texture, so you only need to export one.
Kali
 
Posts: 1600
Joined: Mon Mar 14, 2011 1:00 am
Location: England-by-Sea

Re: Tutorial: How to remove cab numbers

Unread postby Chacal » Tue Jul 08, 2014 11:33 am

I'll copy this to the tutorials section on the web site.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6462
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada


Return to Rolling-Stock Design

Who is online

Users browsing this forum: No registered users and 1 guest