google / model-viewer

Easily display interactive 3D models on the web and in AR!
https://modelviewer.dev
Apache License 2.0
6.85k stars 810 forks source link

HDR in AR mode brightens the colors #3715

Closed DenisAzarkin closed 2 years ago

DenisAzarkin commented 2 years ago

Description

HDR in AR mode brightens the colors. For example: Blue cube in PC browser and AR. We have different color. On a screenshots was used HDR Neutral.

image_2022-08-18_08-44-12 photo_2022-08-18_08-58-16

Version

Browser Affected

OS

AR

elalish commented 2 years ago

You're using Scene Viewer; if you want consistent lighting, you'll need WebXR (which is our default mode). If you didn't intentionally change it, check your JS console for info. Usually the problem is not serving on HTTPS.

Scene Viewer, Quick Look, and optionally WebXR, use estimated environment lighting to make the object look correct in its current surroundings, so consistency is explicitly not the goal; rather realism is. However, the ML lighting estimation has its own quirks, so it's not always better.