weijiaqi
weijiaqi
I tried to modify it, and I changed it to the same as the ar-model-viewer-java provided in the demo, but there will still be a black screen after exiting and...
https://download.redph.cn/meta/ar/shijie1.glb
This is my model, will it have something to do with the material of the model?
How can I turn off the ambient light, when I go to view the model at night, it is dark
ArSceneViewKt.setLightEstimationConfig(this.arSceneView, LightEstimationConfig.DISABLED);
After I turned it off, the model started to turn yellow
this.arSceneView.setFrameRateFactor(SceneView.FrameRate.FULL); ArSceneViewKt.setLightEstimationConfig(arSceneView, LightEstimationConfig.DISABLED); HDREnvironmentKt.loadEnvironmentAsync( HDRLoader.INSTANCE, this, "environments/studio_small_09_2k.hdr", false, LifecycleOwnerKt.getLifecycleScope(this), hdrEnvironment -> { float indirectLightIntensity = SceneViewKt.getEnvironment(arSceneView).getIndirectLight().getIntensity(); SceneViewKt.setEnvironment(arSceneView, new Environment(hdrEnvironment.getSphericalHarmonics(), hdrEnvironment.getIndirectLight(), null)); SceneViewKt.getEnvironment(arSceneView).getIndirectLight().setIntensity(indirectLightIntensity); return Unit.INSTANCE; } );
I saw this part of the code you wrote, and I still have a problem after adding it
After adding the effect 
the effect i want 