Problem with textures with alpha channels


(NOP) #1

All my alpha textures have a white outline around the visible part of the texture. It’s not very obvious when you’re standing right in front of the object but as soon as you step farther away or a little to the side you start to see all kinds of white outlines and everything becomes a mess. I’m using photoshop to make the textures and I’m using the same shaders that SD used for their fences in the alpha.shader (I’m basically making a wooden fence). The thing is that the SD alphas don’t have any problems no matter how far you’re standing, and mine look like hell as soon as you look at them from a little to the side. I’m thinking more and more that this is a problem with the way Photoshop saves the textures but any help is greatly appreciated.


(Machine for to kill) #2

yeah I get this problem too. I messed around with the size of the brush and various nodraw type textures for the sides but nothing helped.


(Machine for to kill) #3

I tried making the alphas with 3dmax (don’t know if you use it) and it creates a black border instead of the white. This might be better if your alpha is dark because you don’t notice anything. Max also seems to create a much smaller sized file for the same size picture ( ? ).

Hope this helps


(heeen) #4

simple:

  1. make sure the alpha channel is 1-bit (black or white, no gray)
  2. make sure the unmasked area (transparent parts) is not white

(Machine for to kill) #5

how do you set this in photoshop. :???:

I tried the transparency settings under preference but still no results


(heeen) #6

usually i’d open the tga, invert the alpha channel (or the mask, as in corel photo paint) and paint everything in black and invert the mask again.
anyways the first step to do is to make the alpha channel “1-bit” (fully transparent or solid).