vanheinonen Posted June 14, 2023 Share Posted June 14, 2023 (edited) Hi! I have used the example "ClearAlpha" material to mask out things when using passthrough. For example use it for transparent walls to hide everything that is behind it.I updated my firmware to the latest (1.3.999.352) and now the clearAlpha material "leaks" the object behind the masking object. Any ideas what material function should be used to "poke a hole" on scene when in passthrough mode? - using the latest OpenXR for mobile plugin - using UE 5.1.1 - Vive XR Elite with 1.3.999.352 "ClearAlpha" material is used on the top most vertical cube in this picture, it was used to be full passthrough, now the face is "ghosting" light. Edited June 14, 2023 by vanheinonen typo Link to comment Share on other sites More sharing options...
Aidan Leung Posted June 14, 2023 Share Posted June 14, 2023 Hello, I am from the plugin development team, also the one who made the ClearAlpha and ClearColor materials for the Underlay Passthrough feature. Am I understanding your goal correctly by saying that you are trying to use the passthrough image to occlude virtual objects, by using the materials we provided for "poking a hole"? In that case, using the "ClearAlpha" material alone will not be enough to achieve what you want. In addition to what you have already done, You will have to duplicate the object and apply the "ClearColor" material to it, as different materials are needed for writing the necessary RGBA values for a complete passthrough. Hope this helps. Link to comment Share on other sites More sharing options...
vanheinonen Posted June 14, 2023 Author Share Posted June 14, 2023 Dear Aidan Leung, you are a lifesaver! I feel happy and stupid at the same time, but now it works! I have implemented a "poke a hole" for Varjo XR3 and Meta Quest Pro headset, all with slightly different ways of doing this in Unreal Engine. Thanks a lot! 1 Link to comment Share on other sites More sharing options...
vanheinonen Posted June 14, 2023 Author Share Posted June 14, 2023 SOLVED Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now