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

Sceneform SFB Opacity Issue #67

Open chiaolinghong3d opened 6 years ago

chiaolinghong3d commented 6 years ago

The opacity in Material parameter does not seem to change anything when I set it to 0 or 0.5. I've tried on both obj and fbx, both don't seem to change anything. reference

Thanks!

tpsiaki commented 6 years ago

@chiaolinghong3d - In the current release, for objs, there is a bug where the opacity is only functional if your underlying obj asset is not fully opaque.

As a workaround, if you switch the "d" value for the StingrayPBS1SG material in your mtl file such that it's not 1 or 0, you should be able to modify the opacity value in your sfa and it should control how opaque your model is.

edencorbin commented 6 years ago

For me doing this "d" value made my transparency work, setting to .99 instead of 1 it is mostly perfect.

efthemiosprime commented 5 years ago

@edencorbin where exactly is the "d" value?