Login  Register

j3d problem. transparent texture + light

Posted by mmcrosb on Apr 05, 2015; 11:20pm
URL: https://forum.jogamp.org/j3d-problem-transparent-texture-light-tp4034240.html

I have a shape with appearance and materrial.
I load a texture from a png file. The png contains rgba pixels. Pixels can be between 0 and 1 alpha. This is a clouds texture.
I apply the texture to the shape.
I add a ambientlight to the scene.

I tried a lot of configurations but can not take light and thexture both, correctly.
Some configurations make the shape always texture visible.
Some configurations make the shape always invisible.
But allways the light can not affect the transparent texture.

Which configuration in textureattributes, transparencyattributes, and other attributes, should i configure to make the transparent texture affected correctly by light.