Welcome to Jenolan Q&A, where you can ask questions and receive answers from other members of the community.

How to create a Targa/TGA image using Photoshop

0 votes

In order to have transparency you need to create the TGA for Trainz in a specific format. Unless it is exactly right you either end up with a black square or a non-transparent version.

asked Jan 15, 2012 in MiniBrowser by jenolan (3,600 points)

5 Answers

0 votes

From Vulcan (Trainz Forums)

You may find this Photoshop tutorial I did for our local Trainz group useful, it is a simple process.

http://www.ianztrainz.com.au/psalphachannel.zip

answered Jan 15, 2012 by jenolan (3,600 points)
0 votes

From PEV (Trainz Forums)

You might like to try my Images2TGA program.. It's a bit like TGATool but has some added features to allow you to instantly create an alpha mask based on background colour. Then you can open the alpha channel and edit it separately in photoshop or psp.

Get it here
http://members.optusnet.com.au/~villaump/pevsoft.htm

answered Jan 15, 2012 by jenolan (3,600 points)
0 votes

From Dinorius_Redundicus (Trainz forums)

You asked how to do it in Photoshop. Very briefly this is how you add an alpha channel to a normal RGB colour image in TGA format;

- Open the tga image in Photoshop

- Look for a panel to the side of the screen with tabs for selecting 'Layers' and 'Channels'...click on the Channels tab.

- Notice the 4 coloured stripes in that panel. The one labelled RGB represents the overall image, and there are 3 others representing the component Red, Green and Blue channels. Clicking on any one of these stripes will display what that channel looks like.

- To add an alpha channel, mouse along the symbols at the bottom of the panel until you get a balloon message 'create a new channel'. Click that symbol (from memory I think it looks like a square with a smaller square inside it). A white stripe representing the alpha channel will be added under the red, green, blue stripes. Click on the white stripe to see what's in the alpha. At this stage it should be plain white. Click on the garbage bin symbol to delete the alpha channel.


To make certain areas of the colour image transparent using the alpha channel, first click on the RGB stripe to re-display the main image.

- Use one of the selection tools like the Lasso or Magic Wand etc to mark out the areas you want to be transparent. Holding down the Shift key while you do this will allow you to select areas that are in separate parts of the image. You should end up with all the required areas enclosed by dashed lines.

- Now click on the 'create new channel' symbol. It should again be plain white but this time, your dashed lines will be displayed on it.

- Use the 'paint bucket' tool set to pure black and click somewhere within the areas you marked out. They should become black. Pure black areas in the alpha will be completely transparent in the final image. If they are gray they will be partially transparent. White areas will be fully opaque.

Save the file, but make sure to choose '32-bit' since you need 32-bits to hold all the RGB plus alpha channel data. And since we are using the image in Trainz, make sure it is not saved as a compressed image (I think that's correct).


~ Deane

answered Jan 15, 2012 by jenolan (3,600 points)
0 votes

From BPK (Trainz forums)

There is a small tutorial here:
http://tutorials.robbiegee.com/ps_tga.htm

answered Jan 15, 2012 by jenolan (3,600 points)
0 votes

From Sniper 297 (Trainz forums)

I don't know anything about photoshop, but I've had Paint Shop Pro 7 for almost 10 years and never did figure out how to make or edit alpha masks - because I never needed to, there's an easier way.

http://fly.to/mwgfx/

Either TGAtool2 or DXTBmp will create an alpha template from the image, and you can edit the image and alpha separately because the programs split the image into two different bitmaps, main and transparency.

answered Jan 15, 2012 by jenolan (3,600 points)
...