Hi Vincent,

> Thanks for your answer.
> The scene I have is quite simple: this is a cross of 3 planes (one xy, 
> one xz, and one zy, and they are centered with 0,0,0) and on each there 
> is grayscale texture. Every pixel which are originaly black are 
> completely transparent the other have no transparency (is there actually 
> a way to give a grayscale texture without transparency values and that 
> OpenSG automatically gives a transparency value 1 to the black pixels ?).

Try to set the internalFormat of your TextureChunk to "GL_INTENSITY".
In this format the grayscale value should be automatically mapped to
color and alpha by the texture unit of your graphics adapter. No extra
memory for the alpha channel is needed. The external format of the
texture should be set to "GL_LUMINANCE".

        Manfred.

======================================================================
Manfred Weiler              [EMAIL PROTECTED]
Visualisierung und Interaktive Systeme          Telefon: 0711/7816-208
Universitaet Stuttgart, IfI                         FAX: 0711/7816-340


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to