Skip to content

Portals Not Working In VR #9

@VoltTMC

Description

@VoltTMC

So I have tried using the portals with android for the Oculus Quest as I'm trying to get these portals to work in VR. The portals seem to work fine in the editor but after building to android and placing the build on the Oculus Quest whenever I try to enter a portal, I am teleported to a random location and left to fall through the map. All the scripts are the same as the default ones except for a render script that I changed to work on android but this should not affect teleportation as all I changed was the following,

portalCam.Render();

to

RenderTexture buffer = RenderTexture.GetTemporary(Screen.width, Screen.height, 24);
portalCam.targetTexture = buffer;
portalCam.Render();
Graphics.Blit(buffer, viewTexture);
RenderTexture.ReleaseTemporary(buffer);

I have been trying to fix this for a couple of weeks if anyone has any ideas help would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions