Use arrow keys and WASD to look and move around the environment. Walk through the arches to transport yourself to the oppositely colored platform.

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 to make this run stable in VR for me to use in future projects, but I've run into some issues with Godot's rendering.

After running into more issues and diving into how Godot renders viewports, it seems portals are not possible in VR with the previous methods. I plan to try some workarounds to fake a similar effect in VR.

 If you want the source code for your own use, let me know!

StatusPrototype
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorDungenRobot
Made withGodot
TagsGodot, portals, Prototype
Average sessionA few seconds
LanguagesEnglish
InputsKeyboard, Mouse

Leave a comment

Log in with itch.io to leave a comment.