cancel
Showing results for 
Search instead for 
Did you mean: 

partial pass tru ?

pfh.22954
Member

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?

3 REPLIES 3

NotBadB
Meta 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

Ok. So what I want to do is be able to watch a 360 video on You Tube but the only thing in the "real world" that I want to see is the area around my feet. I have made 360 videos of a walk on the beach, walk in the woods etc. Its a pretty good experience to walk on a treadmill while watching these. It is however a little tricky to watch a 360 video while on a treadmill especially for a senior. I actually bought and modified a facepiece so I could peek down and see my feet which works pretty good. I am not a game developer myself but in researching what's available It does seem pretty doable for someone with the skills needed. I was putting this out there as a suggestion for the creators out there. 
 
I was on freelancer in contact with looking for someone about putting together an app for this but have not found anyone yet. Thanks for the info. Does not seem like it would be too hard to do. If you know anyone who wants a project send em my way.
 
Thank you for responding to my post. 
 

Thank you