Understanding Transparency

Hello,



If I want to make a material transparent, I have to do…



[java]

myMaterial.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);

myMaterial.setcolor(new ColorRGBA(1.0f,1.0f,1.0f,0.5f));

myGeometry.addMaterial(myMaterial);

myGeometry.setQueueBucket(Bucket.Transparent);

[/java]



1.) What is the method

[java]



myMaterial.setTransparent(boolean transparent);



[/java]

good for?



2.) Is it possible to add transparency to all materials or just to solidColorMaterial?



Thanks.



Regards,

Equi

That is pretty much it. If your texture has alpha on it it would take effect as well.



The material.setTransparent() is usually used by material loaders to indicate the material is using transparency, it doesn’t really do anything outside of the loaders.