Forum Discussion
pfh.22954
11 months agoStart Member
partial pass tru ?
I would like to build a feature that would let you use your vr headset in "partial" pass thru. In other words, I would like the option to be able to see my real feet and a little of the surrounding a...
NotBadB
11 months agoMeta Employee
Hi, there are some ways you can do this. Here's an implementation using hole punching to create a box at (0,0,0) that can act as partial pass through when passthrough is enabled:
Entity.create(
Box(Vector3(-0.5f, 0f, -0.5f), Vector3(0.5f, 0.01f, 0.5f)),
Mesh(Uri.parse("mesh://box")),
Transform(),
Material().apply {
alphaMode = AlphaMode.HOLE_PUNCH.ordinal
shader = SceneMaterial.HOLE_PUNCH_SHADER
})
You can edit the size of the box and create a system that makes the box's transform always 2m below the player's head or something similar to achieve what you need. Hopefully this helps
pfh.22954
11 months agoStart Member
Thank you
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 11 months ago