:o) .... Hi all! more than a question, this is what I have learned and I want to share it since others may have this problem too (specially Java3D beginner as I am):

 

I had the problem that even by specifying the texture of an object as RGBA and modifying the byte corresponding to the Alpha channel of some of the pixels in order to make them transparent, nothing happened.  So far, I did what was addressed (or at least what I understood) in the tutorials and some web sites, but nothing happened and even worse, no error/exceptions were thrown.  But finally I realize that it is not enough to alter the information related to the Alpha channel in the bytes of the texture, it most also have to be specified the transparency properties in the material, through the “setTransparencyAttributes” method which also specifies that Alpha information MUST be used ... otherwise it is ignored  ;o)

 

Thanks to Wolfgang, Florin, Alessandro and Greg who helped sharing their knowledge and/or addressing other information sources. ... Thanks guys! :o)

 

Cheers,

 

Risto.

Reply via email to