google / model-viewer

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

Material and enviroment is not good in AR mode IOS #4817

Closed shahbaziparisa closed 1 week ago

shahbaziparisa commented 1 week ago

I use this code:

 <model-viewer  
                  src={model} 
                  ref={modelViewerRef}
                  shadow-intensity="1"
                  xr-environment
                    camera-controls 
                    environment-image="christmas_photo_studio_07_1k.hdr"
                    exposure="1"
                    scale="0.02 0.02 0.02" 
                    tone-mapping="neutral"
                    loading="eager"
                disable-tap 
                    onProgress={handleProgress()}
                    ar ar-modes=" scene-viewer quick-look  webxr"
                >
                    <button slot="ar-button" id="ar-button">
                    </button>
                </model-viewer>

But the result in ios is not good: How Can I fix it? IMG_2034 IMG_2033

elalish commented 1 week ago

Let's keep the discussion centralized where I've already answered: https://github.com/google/model-viewer/discussions/4289#discussioncomment-9797604

Also, can you please be more specific than "not so good"? For all I know you could be complaining that your AR office building is sized for ants. 😄

shahbaziparisa commented 1 week ago

Let's keep the discussion centralized where I've already answered: #4289 (reply in thread)

Also, can you please be more specific than "not so good"? For all I know you could be complaining that your AR office building is sized for ants. 😄

I mean the color and environment is not activated in Ar mode. It is clear that in 3Dview and ARmode they have different appearance. About Scale it is ok I changed it manually for testing.