How do you have an arbitrary body mesh (like your hand or feet) occlude a 3D scene object?
How do you have an arbitrary body mesh (like your hand or feet) occlude a 3D scene object?
Answers
-
Hi @yc
There currently isn't a hand or foot occluder available in Lens Studio, however you could try using the '3D Hand Tracking' and the 'Foot Tracking' templates for your project and see if it meets the requirements for what you're trying to achieve.
3D Hand Tracking:
https://docs.snap.com/lens-studio/references/templates/object/3d-hand-tracking/?utm_source=lensstudio#guidesFoot Tracking:
https://docs.snap.com/lens-studio/references/templates/object/foot-tracking0 -
There are two main ways to occlude a 3D scene object with an arbitrary body mesh: depth testing and stencil testing. Depth testing is more common and efficient, but can lead to artifacts. Stencil testing is less common but can be more precise, but it is also more expensive computationally. The best choice for your needs will depend on the complexity of the body mesh, performance requirements, and desired visual effect.
0