googlecodelabs / model-viewer-codelab

Apache License 2.0
4 stars 7 forks source link

Model floating in air #11

Open Jibin-John opened 4 years ago

Jibin-John commented 4 years ago

The 3D model in AR Scene appears to be floating on air.

sonalmahendru commented 3 years ago

Yes, even for me. My dancing model is floating in air; even when I explicitly provide ar-placement to be floor. Were you able to get solution for this problem?

Jibin-John commented 3 years ago

On Fri, 4 Dec 2020 at 5:38 PM, sonalmahendru notifications@github.com wrote:

Yes, even for me. My dancing model is floating in air; even when I explicitly provide ar-placement to be floor. Were you able to get solution for this problem?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/googlecodelabs/model-viewer-codelab/issues/11#issuecomment-738749271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH62BVCLGNJ4ONFIXFC5BGLSTDGNVANCNFSM4OFR2TSQ .

Are you facing the same problem with the new update? My problem got solved by new update. Also, if you copied some codes from other bloggers make sure that you are using latest libraries.

sonalmahendru commented 3 years ago

Hmm, I am not sure if I am using latest libraries but I started with the code that is present on dev site of model-viewer (src: https://modelviewer.dev/examples/augmentedreality/)

This is my code file: https://github.com/sonalmahendru/modelviewer/blob/main/index.html.

I am trying to load animations on clicking an image and then render animations in ar view. But these animations are floating in air :-(

Can this be related to the anchoring given to animations while making them? like in cinema4d?

If you want to try this app (on android), the link is: https://sonalmahendru.github.io/modelviewer/

sonalmahendru commented 3 years ago

Hey Jibin,

I checked your code and can see the car model floating in that one too. Maybe, it is the latest version of model-viewer that is throwing this bug. Can you tell me which version to use which places model only when surface is scanned and on the surface?

Jibin-John commented 3 years ago

Hi,

Sorry for the late reply. I was in the middle of some urgent works. Let me check this and come back to you.

On Sun, 6 Dec 2020, 12:15 sonalmahendru, notifications@github.com wrote:

Hey Jibin,

I checked your code and can see the car model floating in that one too. Maybe, it is the latest version of model-viewer that is throwing this bug. Can you tell me which version to use which places model only when surface is scanned and on the surface?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/googlecodelabs/model-viewer-codelab/issues/11#issuecomment-739463789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH62BVB5IDVWSMPJRL4UVXTSTMSAPANCNFSM4OFR2TSQ .