
Thu, 06/06/2024 - 17:14
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 ;)
Attachments:
Thu, 06/06/2024 - 17:39
You need to set
Graphic3d_Aspects::AlphaMode()
property to desired option - likeGraphic3d_AlphaMode_Blend
,Mask
orMaskBlend
, depending on your scenario.Thu, 06/06/2024 - 18:13
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 ?
Thu, 06/06/2024 - 18:26
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
Thu, 06/06/2024 - 18:51
Yeah, metals usually cannot be made translucent...
Thu, 06/06/2024 - 19:05
OK, I will do with it. Thank you very much for your help.