Project Overview
I had just read House of Leaves and the concept of a house that changes shape on the inside was interesting to me. This demo uses 2 sets of portals to connect the entrances of a house to a larger interior space.
The portals themselves are inside out boxes with a camera texture mapped onto them. The portal camera for a particular portal is positioned to match the player camera position transformed to be relative to the output of the portal.
In the demo the player is holding a flare and has the ability to throw flares. In order to have the flares seamlessly pass through the portal a matching copy has to be made on the destination portal side to hide the clip line as the flare object passes through the portal. Each portal has a zone around it where it tracks objects that can pass through, for each of those objects it creates a duplicate object on the destination side. Once an object passes through the duplicate is destroyed and the destination portal now creates a duplicate at the source portal to maintain continuity.
The demo is built for keyboard and mouse control and so is not controllable from a phone.