Game Development Community

transparent .png issues

by Rhye · in Artist Corner · 02/14/2002 (6:43 pm) · 8 replies

i've created a simple tree with a transparent .png. When I bring it into the -show tool, the tree is there but the transparency is not.

I'm using Photoshop 6 with the .png update. Here is the link to my files, including the texture and .max files.

Any help would be greatly appreciated.

www.sketchedout.com/images/tree.zip

#1
02/14/2002 (11:04 pm)
Rhye, the link is broken on my end.

Did you check the checkbox in the opacity channel of the material?

Joe
#2
02/15/2002 (1:35 am)
And set it too use the alpha channel as transp.
Which is not the default so you will have to change it.

// Clocks out
#3
02/15/2002 (4:56 am)
sorry for the broken link. my server host has been very buggy lately.

I did check the checkbox for opacity in the maps rollout.

However, i cannot check the appropriate alpha boxes in the diffuse map subpanel. They are grayed out...

My source image is a 256x256 texture with alpha saved in the png-24 format.

I'll email the .zip file to you Karsten and Joe. Thanks for your help.
#4
02/15/2002 (5:48 am)
You should check the alpha channel in the opacity slot and not in the diffuse slot.

// Clocks out
#5
02/15/2002 (5:59 am)
I just looked at the file you send me and found the error.
You need to load the texture in both the diffuse AND the opacity slot.

You did NOT load it in the opacity slot at all.

Simply drag in from teh diffuse slot to teh opacity slot and copy it.
Then open opasity sudmenu and click the alpha channle in there.

Export and it should work.

Also maing trees like this you should name the leaves with SORT:: infront to get teh texture layered the right way.
This will however double the poly count of that part of the model but it will look better.

Hopefully it will all work now :)

I have made many trees in this way and they all work so....

// Clocks out
#6
02/15/2002 (7:41 am)
Actually a material does not need to be dragged into the Opacity channel.

As long as the diffuse channel's texture has an Alpha channel and provided that you have activated the Opacity channel within your material, Torque will read use the Alpha information from the Diffuse channel to calculate the texture's transparency within the engine.

Logan
#7
02/15/2002 (5:45 pm)
guys, thanks for all of the help. It turns out that my texture, which I created in Pshop, wasn't saving out the alpha channel. I had to open it in a binary reader to find that out. sheesh.

Anyway, I deleted the .png plugin, reloaded it,and then recreated the file. It worked. Sometimes it's the small problems that drive ya crazy. =)
#8
04/13/2002 (10:35 pm)
I had this same problem. But I found that my base image was created as 16.mil colors so I did a cut and past to a new image with 256 color base. Worked.

Randy...