Model lighting in AR mode #3525
Replies: 2 comments 3 replies
-
Use https://modelviewer.dev/docs/index.html#entrydocs-lightingandenv-attributes-environmentImage to change the lighting for both 3D and WebXR AR. If you want AR mode to use dynamic lighting estimation from your camera, use https://modelviewer.dev/docs/index.html#entrydocs-augmentedreality-attributes-xrEnvironment, but it'll only work in WebXR mode and it doesn't always look good. I believe Scene Viewer and Quick Look do this always. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick response. I recently installed an AR plugin in WordPress that uses model-viewer to render AR models. When the model is shown in AR mode, it seems that the lighting is affected by the distance of the camera from the model instead of natural lighting. I have recorded a video regarding this which is present in the below link. https://drive.google.com/file/d/1EpXBZxYkbXcdflq-Gmxu_anVlE4E_HYH/view?usp=sharing Also I tried the dynamic lighting estimation examples from the link that you sent me and none of them seem to be working. I used the canoe 3d model instead of the astronaut model because the model seemed to have better lighting as well as reflection so thought that it would work better. I would like to know if dynamic lighting estimation works as what I have recorded. I am new to 3D and AR that's why I have so many doubts. Many thanks, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any method of controlling the lighting of the model when the 3D model is in AR mode. Suppose part of the model is in sunlight, can that part have a lighter shade than the rest of the model?
Beta Was this translation helpful? Give feedback.
All reactions