Game Development Community

How do you Key out unwanted colors???

by VGMaster · in Artist Corner · 07/09/2009 (8:56 pm) · 1 replies

I drew a picture of a tree and loaded it into torque, but when I try to use it I get a
white box around it.

How do I get just the tree and not the white?



#1
07/10/2009 (7:13 am)
You need to cut the tree out from the background in Photoshop (or similar program) to create an alpha channel.
In Photoshop, you want to be able to see the "checker" background.

Create a new Document with the background set to "Background Contents: Transparent".

Bring your tree into a new layer above that. Cut away the white.

Use "Save for Web", select the PNG-24 format for export, check the Transparency box and save.

If you've drawn your tree on white paper/background, expect some fringing but you can remove most of that when you trim the white off. Use a layer mask on your tree and you can then use black and white to do a non-destructive trimming.

Hope that helps.