You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide the following information about your environment:
OS: Windows
Version: ViroCore version : v1.17.0
Device(s): What device(s) are you are seeing the issue on (i.e. Samsung Note 8, Pixel 2 XL, etc) - Nokia 6.2
Description
I am having trouble making a 3D model of a glass transparent. The obj is getting placed but it's not transparent. How do I do that?
Here is the code that I am using to add the materials to the object👇 Am I missing something?
object3D.loadModel(mViroView.getViroContext(), Uri.parse("file:///android_asset/wine-glass.obj"), Object3D.Type.OBJ, new AsyncObject3DListener() {
@Override
public void onObject3DLoaded(final Object3D object, final Object3D.Type type) {
final List<Material> materials = object3D.getMaterials();
for (Material material : materials) {
material.setShadowMode(Material.ShadowMode.TRANSPARENT);
material.setLightingModel(Material.LightingModel.PHYSICALLY_BASED);
material.setTransparencyMode(Material.TransparencyMode.A_ONE);
}
object3D.getGeometry().setMaterials(materials);
}
@Override
public void onObject3DFailed(String s) {
Toast.makeText(ViroActivityHelloAR2.this, "Error Loading Object", Toast.LENGTH_SHORT).show();
}
});
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, screen capture, video recording. The more information you provide, the better we can support you.
The text was updated successfully, but these errors were encountered:
Environment
Please provide the following information about your environment:
Description
I am having trouble making a 3D model of a glass transparent. The obj is getting placed but it's not transparent. How do I do that?
Here is the code that I am using to add the materials to the object👇 Am I missing something?
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, screen capture, video recording. The more information you provide, the better we can support you.
The text was updated successfully, but these errors were encountered: