transparency of a texture


    Jul 14 2008 | 3:29 pm
    hello,
    i'm using a pixelated image as a texture to a gridshape (opencylinder). i use the alpha channel of the texture to achieve transparency , so that one can see inside or even through the cylinder if the pixel values are dark.
    this works fine with blend enable etc. but only if i look at the cylinder in a certain angle. e.g. if i look from above down on the cylinder it works, but not if i look from below. i noticed these "planes" appearing inside the cylinder that finally "kill" my wonderful transparency. they are obviously connected to the dimension count - but i don't get it where/why they come from?
    yes, my understanding of openGL is quite limited and i could use a hint for the right direction.
    attached is a patch that hopefully demonstrates what i mean. give it a slight shove up or down to rotate the cylinder.
    thanks. volker.

    • Jul 14 2008 | 5:27 pm
      turning off depth_enable and setting the blend_mode to 6 5 or 6 1 seems to do the trick. unless i misunderstand...
    • Jul 15 2008 | 1:37 pm
      On 14 Jul 2008, at 19:27, Robert Ramirez wrote: > > turning off depth_enable and setting the blend_mode to 6 5 or 6 1 > seems to do the trick. unless i misunderstand... > ______________________________________________
      thanks, robert. i tried that and it works. however, what i liked about mod 6 4 is that the original shape of the cylinder is still present. but this obviously is not possible. volker.