How not to fall into the model by clicking at maximum zoom? #3386
Replies: 4 comments 5 replies
-
Cool use case! I think your best bet would be something like:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response)) Now I don't fall into the floor if I move the camera. But if the camera has stopped, then I still fail on click. Uploaded a new video bandicam.2022-04-22.23-34-38-315.mp4 |
Beta Was this translation helpful? Give feedback.
-
there is one moment left. How to restrict passage through walls? |
Beta Was this translation helpful? Give feedback.
-
There is 1 more bug. If I first use the scroll to zoom in, then when I click on the floor, I fall through. If I initially use the button, then when I click on the floor, I do not fall through. bandicam.2022-04-23.00-07-37-972.mp4 |
Beta Was this translation helpful? Give feedback.
-
Hello!
I want to end up with something like this
https://view3d.pik.ru/?url=https://0.db-estate.cdn.pik-service.ru/layouts/35463/panorams/1EM4_6_3-1_S_A.gltf.zip
Please tell me how I can limit the camera-target by height? I need that by pressing on the floor of the apartment I do not fall under it.
Panning is used
I do it based on this https://modelviewer.dev/examples/annotations/index.html#cameraViews
I specify data-orbit="auto auto 0%">
I need something like min-camera-target="auto 1m auto"
bandicam.2022-04-22.22-38-14-598.mp4
My code
<model-viewer id="flat" touch-action="auto" src="1.glb" camera-controls oncontextmenu="return false;" min-camera-orbit="auto 0deg 0%" max-camera-orbit="auto 140deg 2m" min-field-of-view="75deg" max-field-of-view="auto">
Beta Was this translation helpful? Give feedback.
All reactions