PBR materials and transparent textures

Forums: 

Hello community.
Is there any way to use transparent textures for PBR materials diffuse and let transparent section be really transparent on shapes where the material is applied ?

I use the texture in the attached picture, but it gives me the result of the other attached picture, pbr_occt.png (emissive is black).

Thank you for your answers ;)

gkv311 n's picture

You need to set Graphic3d_Aspects::AlphaMode() property to desired option - like Graphic3d_AlphaMode_Blend, Mask or MaskBlend, depending on your scenario.

Guillaume CHAFFAROD's picture

Thank you very much.
I still have a problem. I can get the texture alpha when using the shading model Graphic3d_TypeOfShadingModel_Phong, but when using the shading model Graphic3d_TypeOfShadingModel_Pbr, it has no effect (see attached pictures). Do you know how can I apply the behaviour to pbr shading model please ?

Attachments: 
Guillaume CHAFFAROD's picture

Ooh, I just saw that if the PBR material Metallic is lower than 0.49, it's transparent, but greater or equal to this value, it's not... xD

gkv311 n's picture

Yeah, metals usually cannot be made translucent...

Guillaume CHAFFAROD's picture

OK, I will do with it. Thank you very much for your help.