google / model-viewer

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

Blury / off-focused when zoomed in close, or when model is small in live size #4880

Open ultradyran opened 2 months ago

ultradyran commented 2 months ago

S__17833989

Description

<model-viewer src="mymodel.glb"
                    scale="0.001 0.001 0.001"
                    id="model"
                    ar environment-image="neutral" shadow-intensity="1" shadow-softness="0.5"
                    tone-mapping="neutral"
                    ar-placement="any" ar-modes="webxr scene-viewer quick-look" 
                    auto-rotate camera-controls touch-action="pan-y" exposure="1">

I usually work with small models. When i activate AR mode on iPhone 14, anything smaller than 5-10cm in live-size will start to become blury, as if camera is off-focused.

The reason I use [ scale="0.001 0.001 0.001" ] because if i export models from Blender, they are default 1000times larger than it should be in AR mode. At first, I thought that's the root cause, so I export models from Blender pre-scaled so I can use them at [ scale="1 1 1" ] .

In fact, it doesn't make any differences. The issue is still there, palm sized small models in AR mode at their 100% scale are always blury (anything smaller than 5-10cm), unless the camera is out far enough.

It doesnt seem to be the camera's quality issue given the background looks razor sharp, just the 3D object getting blurred, and more it gets when zoomed in. I have to put the camera really far or pintch enlarge the model triple the original size to get a clear/non-blur 3d render.

Did I miss any attribute i can set to disable auto-blur or something like that? I am thinking there might be depth of field mechenism that blurs the model when it is close to camera.

Version

Browser Affected

OS

AR

elalish commented 2 months ago

I'm glad you included the screenshot because otherwise I wouldn't have believed you. 😁 The only thing I can guess is this is an iOS QuickLook "feature" - @AdaRoseCannon is this some kind of expected behavior? I feel like some engineer would have had to put a lot of work in to make this blur happen, but I cannot fathom why.

elalish commented 2 months ago

@ultradyran I assume this works as expected in AR on Android devices?

AdaRoseCannon commented 2 months ago

This is new to me too (although I am not a quicklook engineer), please file with Feedback Assistant

ultradyran commented 1 month ago

@ultradyran I assume this works as expected in AR on Android devices?

i dont hv an android device so i really am not sure. it's the same issue on my ipad tough.

ultradyran commented 1 month ago

Feedback Assistant

forgive me for being an idot, how do i file for Feedback Assistant?

AdaRoseCannon commented 1 month ago

https://feedbackassistant.apple.com

There are also apps: https://developer.apple.com/bug-reporting/