feat(viewer): the hand in front hides the model, and the model stays while a hand covers the marker #55
Loading…
Reference in a new issue
No description provided.
Delete branch "hand-occlusion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Occlusion. While hand tracking is on, your hand hides the model where it's in front of it.
buffer only. It's invisible, but the model's pixels behind it aren't drawn, so the real hand
shows through.
its image points by linear least squares. That gives the hand's offset from the camera,
taking its size and turn into account.
into a model the hand is only next to.
?occlusion=0turnsocclusion off.
Keeping the model. A hand reaching for the model usually covers the marker, and the model
used to go after 0.3 s.
stays where it was, up to 4 s.
WebXR depth sensing was considered and left out: it's Chrome-only on ARCore phones, absent from
the Android app's WebView and iPhones, takes over the camera, and is tuned for half a meter and
more. The reasons are recorded in
docs/dev/interaction.md.Tests: new
test/occlusion.test.mjs(hand placement within 0.5 mm, hand-over-marker check,hold and glide). Viewer tests pass (77 of 77). Not tried with a real hand in front of a camera
yet; the device test should check the margin and the hold.