03-13-2025 06:20 PM
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 area when in vr. The app Fluid has this feature where you can toggle pass thru, vr or a partial pass thru and see your feet. It is similar to some that let you see your real keyboard in vr. Anyone have any thoughts of this?
03-20-2025 01:46 PM
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
03-21-2025 11:27 AM
03-30-2025 09:38 AM
Thank you