Portal Prototype
About
This is a project I spent the last two weeks working on.
I used this tutorial for the general concept and math for the transformation matrices:
I also used this one for rendering the camera to a texture in Godot:
Some Notes: The portals have issues with occlusion (objects in front of the portals get projected weirdly) the workaround I ended up doing was to just have both cubes in the same place. The arrow key camera controls are a result of HTML not allowing mouse capture. A piece of legacy code from when this was running as a standard .exe means that when you press escape it crashes the game.
I'm currently planning making this run stable in VR for me to use in future projects. If you want the source code for your own use, let me know!
System requirements for Web
Last Modified: Jan 17, 2022
Where to buy
itch.io