Using POM for VR portals?

Was looking for sort of a portal solution for VR. Haven’t found anything full proof yet (open to suggestions). However been research Parallax Occlusion Mapping as an option.

Going for something similar to Facebook Spaces’ menu for 360 content. See here

Working on improving my materials skills so bare with me. But if anyone has any tips I thought I’d ask.

POM isn’t very suitable for large depth ranges, you end up with a lot of distortion and disocclusion artifacts, and very high cost. The approach used in Spaces looks like it is just a flat texture (or you could use a stereoscopic texture, selecting which eye image to use based on the viewport X coordinate) with a simple view based offset with a constant distance to shift the perspective. The BumpOffset node will accomplish that. You could also sample a cube map texture using the camera vector to create the impression that you are looking inside a big space.

A more complete and complex solution would be to define clipping planes in your material, and either masking out pixels beyond those planes using alpha, or the clip(x) function in a custom node. You could technically use anything as a mask, which you invert for objects on the other side of the portal. All you need is for that mask to be computed consistently in screen space inside each material. Making that work with lighting is very complicated though.

Thanks a bunch @OwenWP Yea after experimenting and learning more about POM today it’s not the best solution for this. I’ll try some of your suggestions out.