virocore
virocore copied to clipboard
Rendering issue in ViroView Scene
Environment
- OS: Mac 10.14.4
- Version: ViroCore version 1.13.0
- Device(s): Samsung Galaxy S7, Honor 8X
- Android studio 3.3.1
Description
Our 3D rendered models appear to have holes and we are unable to render semi-transparent textures in ViroScene. This issue is not happening in virocore AR Scene. Please refer to sceenshots below. Are we missing something in our code?
Sample code
final Object3D obj3D = new Object3D(); ViroContext con = mViroView.getViroContext(); obj3D.setRenderingOrder(0); obj3D.loadModel(con, Uri.parse("file:///android_asset/Body/body.obj"),Object3D.Type.OBJ,new AsyncObject3DListener() { @Override public void onObject3DLoaded(Object3D object3D, Object3D.Type type) {
List<Material> materials = object3D.getMaterials();
for (Material mat:materials) {
mat.getDiffuseTexture().setWrapS(Texture.WrapMode.REPEAT);
mat.getDiffuseTexture().setWrapT(Texture.WrapMode.REPEAT);
mat.setLightingModel(Material.LightingModel.PHYSICALLY_BASED);
}
mViroView.getScene().getRootNode().addChildNode(object3D);
}
@Override
public void onObject3DFailed(String s) {
}
});

Please note, above screenshots were taken from Honor 8X phone (Android version 9)
Hi @Sweenall, thanks for reaching out, apologies for the delay.
Can you try the following below and see if the issue still persists:
- Turning off just Bloom (if enabled)
- Turning off HDR.
Much thanks!