Portals

My implementation of interactable portals using THREE.js

Demo Scenes

A Portal

A basic scene containing two portals.

Thumbnail
Recursion

A scene with two portals facing each other. Demonstartes portal recursion.

Thumbnail
Tunnels

Two tunnels that demonstrate rendering non-euclidean geometry using portals.

Thumbnail
Scale

Two differently sized tunnels. The left tunnel shrinks while the right tunnel grows.

Thumbnail
House

A multi-room house where something's a bit off...

Thumbnail
Multi-Room

Multiple rooms contained within a single room

Hint: Walk clockwise around the red pole.

Thumbnail
Rotation

Two portals with different rotations. Try walking through the red portal sideways!

Thumbnail
Gallery

A bunch of portals facing each other. Demonstrates portal performance. For the sake of your computer, I don't recommend going past 3 levels of portal recursion...