Joseph Demarest

Projects / Mods and game tools

Compute Portals

A Minecraft mod that renders true see-through portals, so you can look into the other side and walk straight through.

Status
Paused
Year
2026
Built with
Java, Fabric, Minecraft, Blaze3D
Source
Private
Player Portal A Virtual camera Portal B, clip plane Clipped Seen through A
A virtual camera renders the far side, clipped at the portal plane.

Compute Portals adds see-through portals to Minecraft, in the spirit of Portal. You see the other side live through the frame and walk through without a loading screen.

For each visible portal the mod renders the world a second time from a virtual camera placed behind the paired portal, into an offscreen texture. An oblique near-plane clip cuts that render at the portal surface, so blocks between the virtual camera and the far portal don't leak into the view. Anything crossing the plane, players and mobs alike, is moved through the same rigid transform the camera uses.

The hardest bugs came from geometry being defined in three places that slowly drifted apart. Now one shared frame class is the only source for rendering, clipping, teleporting, collision and pathfinding. It's a Fabric mod for Minecraft 26.2.