Game Development Community

Help Needed On Importing Image Files

by Encore · in Torque Game Builder · 12/16/2006 (7:24 pm) · 1 replies

Hi all,

i want to import certain image files in to my project . All the image files have BLACK as their background color and i want BLACK to be my transparent color .When i import them to my game thru' CREATE A NEW IMAGE MAP OPTION the black color stays in the loaded picture and it is not acting as a TRANSPARENT COLOR . I tried to change it to BRIGHT PINK and its the same case .

all i want to know is how to tell TGB to pick certain color as a TRANSPARENT COLOR so that only the image i want stays in .

thanks in advance

encore

#1
01/02/2007 (12:55 pm)
TGB doesn't work in that fashion... In order to have transparency in the image you are importing, you need to save the file in a format that allows for that. The default for Torque engines is PNG. So if you create the image with a transparent background and save it as a PNG file, the transparency will be maintained when imported into TGB...