Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In AR view, meshes vanish when camera is too close. #1130

Closed
FuzzyWobble opened this issue Apr 6, 2020 · 9 comments
Closed

In AR view, meshes vanish when camera is too close. #1130

FuzzyWobble opened this issue Apr 6, 2020 · 9 comments
Labels
flag: not model-viewer Problems that are related to our project but are ultimately some other project's issue

Comments

@FuzzyWobble
Copy link

FuzzyWobble commented Apr 6, 2020

When you move your camera too close to a model in AR some parts of the model mesh may disappear. This seems to be a common issue with more complex 3D models. This is usually fixed in threejs by setting frustumCulled to false.
https://threejs.org/docs/#api/en/core/Object3D.frustumCulled

Any idea how this can be fixed for model-viewer?

Thanks!

Browser Affected

  • [x ] Chrome

OS

  • [x ] Android
@elalish elalish added the flag: not model-viewer Problems that are related to our project but are ultimately some other project's issue label Apr 6, 2020
@elalish
Copy link
Collaborator

elalish commented Apr 6, 2020

@FuzzyWobble If you're on Android in AR (and haven't flipped any flags in Chrome), then you're looking at SceneViewer, which is a separate app that doesn't use threejs at all. If you could give us a specific model to repro with (perhaps a Glitch?), I'll happily pass it along to that team, @tpsiaki. We will be supporting AR inside of Chrome shortly via webXR, so that should also fix this issue.

@FuzzyWobble
Copy link
Author

Oh :( I see.
I didn't realize scene-viewer and model-viewer were completely separate.
Thanks for your reply.

I can't share this exact model right now but let me try and find one that also has this bug and share a glitch link.

@FuzzyWobble
Copy link
Author

FuzzyWobble commented Apr 20, 2020

@elalish Hello. I can't find a git repo for scene-viewer or anywhere to post issues. Is it possible you can put me in touch with someone from there? I have a number of issues and strange behaviors. Thanks!

@elalish
Copy link
Collaborator

elalish commented Apr 20, 2020

@FuzzyWobble Yes, we commonly take scene-viewer issues here for that reason. Feel free to continue the discussion and I'll loop in @tpsiaki from the scene-viewer team.

@FuzzyWobble
Copy link
Author

Oh thanks so much!

  1. Meshes are disappearing on AR scene-veiwer when the camera is close to model. Typically this is solved with frustumculled in threejs. How would this be solved for scene-viewer?

  2. Using the fallback url approach I cannot get any gltf AR to work on iOS-Chrome as documented here. Is it possible?

@FuzzyWobble
Copy link
Author

bumpity bumpity

@tpsiaki
Copy link
Contributor

tpsiaki commented Apr 27, 2020

Hi @FuzzyWobble - The issues you describe seem to indicate that the bounds in your glTF don't match the content (bounds are specified in the "accessors" list as "min"/"max" for each accessor). This would explain why the model would disappear under certain circumstances in Scene Viewer, and require frustumculled in threejs.

Are you exporting these gltfs with a particular pipeline that might not be calculating bounds correctly?

@elalish
Copy link
Collaborator

elalish commented Apr 27, 2020

@FuzzyWobble As for question 2, on iOS we launch QuickLook instead of SceneViewer (which is Android), so those directions do not apply.

@FuzzyWobble
Copy link
Author

Ah nice. Got it. Thanks so much!

@elalish elalish closed this as completed Apr 1, 2021
@google google locked and limited conversation to collaborators Apr 1, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
flag: not model-viewer Problems that are related to our project but are ultimately some other project's issue
Projects
None yet
Development

No branches or pull requests

3 participants