An attempt at re-implementing Sebastian Lague's Coding Adventures: Portals.
- Rendering of portals (only) when in view, and
- Teleportation between portals.
- Recursive portal rendering,
- Momentum, a function of mass and velocity, is conserved between portals; in layman's terms: Speedy thing goes in, speedy thing comes out.
- So far, rendering the portals works eratically, with the player being either not relocated at all or being moved too far. In essence, while "ownership" of the player is transferred to the linked portal, the location isn't updated. This might be an issue with the FPS controller used, and further investigation is needed.
- Portals are being rendered too late which results in a lagged update. This can be observed by moving the view quickly when close to a portal; the portal's "screen" then seems to wander around.
- Limiting the portal's own cameras to only rendering the scene visible through the portal. Right now, the whole view is rendered and then projected onto the portal; instead, fiddling with the camera's frustum or using clipping by fiddling with the Z buffer may improve performance.
- dantogno's First Person Character Controller, an FPS controller based on Cinemachine.