google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

Transprent .png image texture appeared as black #111

Open atul109 opened 6 years ago

atul109 commented 6 years ago

Converting a obj file with multiple textures in which some are of png format with transparent areas, these areas appeared black after conversion to sfb using Android Studio.

AdrianAtGoogle commented 6 years ago

Hi @atul109 Thank you for submitting this issue. Our .obj import tries to interpret material data per the MTL spec which predates the convention of using diffuse alpha to encode opacity. Our FBX and GLTF import handles this convention; in the short term it may be worthwhile to export your asset via Blender to fbx or gltf.

In future releases we plan for OBJ import to get 'smarter' about current usage conventions (e.g. many assets use Ka and Ks to name the normal and roughness-metallic textures)

ivstka95 commented 4 years ago

In future releases we plan for OBJ import to get 'smarter' about current usage conventions (e.g. many assets use Ka and Ks to name the normal and roughness-metallic textures)

any progress on it?

or maybe there is some workaround to make a part of renderable translucent?