I’m using a raytracedsphere node in a material to to mask out and slowly reveal the inside of a box that is otherwise invisible. So in the room the player is standing they see a 2d sphere centered on a world location through wich all objects with the material are visible.
and the result looks like this:
Now if a player get’s inside the box the sphere suddenly exists on two locations. The original world position I fed it and what appears to be directly opposite the traced rays.
It looks like this:
This screenshot is taken from the location marked in the second image in this post. The camera is outside the sphere radius and inside the box.
Is there some way to prevent this from happening?
I tried using a sphere gradient 3d instead of a ray traced sphere but that only looks good from a distance.
Is there some way I can use a different shape instead of a sphere to do this ray trace mask thing? maybe squeeze it along a vector to get an oval somehow? or have it use a 3d object in the world maybe?
What Im trying to do is to create a one time use portal effect in VR. Portal appears, player sees magical place, steps through and is trapped followed by shenanigans to escape.
A static interior cube map is to obviously a cube and doesn’t feel like a gateway when stepping through it.
A scenecapturecube whose movement is tied to the hmd works really well but costs way to much performance.
A 2d scenecapture based material I think needs screenaligneduv’s, but there’s two screens in VR and the screenposition trick to send different images to the different screens does not work when using instanced stereo.
Any and all assistance is greatly apreciated