Opacity (White Border)
by TAFESA Adelaide North · in Artist Corner · 10/30/2006 (10:40 pm) · 7 replies
I am trying to create a Jungle type enviroment and have created a Palm tree in Max, then a map for it in Photoshop, I saved the texture out as a PNG with Alpha for the leaves. When it gets into the torque engine and in Max, there is a white border, around the green trees. Any one have this same problem? I would guess it is becuase Photoshop is Anti-Aliasing the Opacity map as it sends it out bluring the white Opacity with the green leaves, causing the white border. Any one found a fix for it?
#2
10/31/2006 (6:53 am)
Or use ping24 so you dont need a mate.
#3
To make a Opacity for a PNG I have to either have a masked out area which is clear, or just a clear background. Both of these are converted to a white background once I save the photoshop file as a PNG for torque.
10/31/2006 (7:07 am)
If I put a Green Background, I can't save the opacity map inside the PNG, and torque only does the opacity if it is put inside the PNG I was told. If I can put a seprate Opacity PNG/JPEG in for the Opacity that would be great.To make a Opacity for a PNG I have to either have a masked out area which is clear, or just a clear background. Both of these are converted to a white background once I save the photoshop file as a PNG for torque.
#4
Photoshop CS PSD example
-- edit
Don't show the background layer just the layer (s) you want to save but if there isn't any color at the edge of the image it will be white so if there is color at the edge of your mask then it will take that color.. I always make one layer the color I would like around the edge of it and merge it with the image that needs masked.
10/31/2006 (7:25 am)
Not the background but the images itself have some bleeding of the edges Photoshop CS PSD example
-- edit
Don't show the background layer just the layer (s) you want to save but if there isn't any color at the edge of the image it will be white so if there is color at the edge of your mask then it will take that color.. I always make one layer the color I would like around the edge of it and merge it with the image that needs masked.
#5
Nope. .png has its own alpha channel (you can create it manuialy or not, read on..). Png and Png-24 will use whatever is transparent in Photoshop as your transparent areas.
Png will require a matte (small 1 pixel area around the edge of your object using some color). Png-24 will not.
Alternatively make one Image.jpg and one image.Alpha.jpg (Look in the data tree for examples) and you will have your two textures making an alpha.
Best bet, use a Png-24
10/31/2006 (7:52 am)
Quote:If I put a Green Background, I can't save the opacity map inside the PNG, and torque only does the opacity if it is put inside the PNG I was told.
Nope. .png has its own alpha channel (you can create it manuialy or not, read on..). Png and Png-24 will use whatever is transparent in Photoshop as your transparent areas.
Png will require a matte (small 1 pixel area around the edge of your object using some color). Png-24 will not.
Alternatively make one Image.jpg and one image.Alpha.jpg (Look in the data tree for examples) and you will have your two textures making an alpha.
Best bet, use a Png-24
#6
10/31/2006 (8:23 pm)
Finally Figure out a way to do it, I tried what you said Adam Wilson, and it did the same thing. I found 2 ways of doing it, either in Photoshop go [Layer > Matting > Defringe > 1pixel]. Or [File > Save for Web] then I could change it to a PNG-24 or a PNG-8 and change the mate color there. Which is pritty much what you guys have been saying, I just missed the 'Save for Web' button lol. My 3D teacher and my self were trying to work this out for like 3 hours yesterday and it was so easy, sigh =). Thx for all the help guys.
#7
Oh, thank goodness! You guys are lifesavers! I've been looking for something like this forever! I kept finding solutions in coding or the game engine or some other software. Someone even suggested Image > Trim for getting rid of the transparent pixels. It seemed to work for other people, but not me. :( This is the first solution I could make sense of and do simply and easily AND actually worked! :D Thank you so much.
06/23/2010 (2:40 pm)
Layer > Matting > Defringe > 1pixelOh, thank goodness! You guys are lifesavers! I've been looking for something like this forever! I kept finding solutions in coding or the game engine or some other software. Someone even suggested Image > Trim for getting rid of the transparent pixels. It seemed to work for other people, but not me. :( This is the first solution I could make sense of and do simply and easily AND actually worked! :D Thank you so much.
Adam Wilson