Coding Adventure: Portals @SebastianLague
Coding Adventure: Portals  @SebastianLague
Uploaded February 2020 | Updated September 2026, 3 weeks ago
Experimenting with portals, for science.

The project is available here: github.com/SebLague/Portals/tree/master
If you'd like to get early access to new projects, or simply want to support me in creating more videos, please visit patreon.com/SebastianLague

Resources I used:
tomhulton.blogspot.com/2015/08/portal-rendering-with-offscreen-render.html
terathon.com/lengyel/Lengyel-Oblique.pdf
scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/projection-matrices-what-you-need-to-know-first
turiyaware.com/a-solution-to-unitys-camera-worldtoscreenpoint-causing-ui-elements-to-display-when-object-is-behind-the-camera

Chapters:
0:00 Introduction
0:25 Figuring out the cameras
1:41 Test world
3:09 Texture mapping
4:27 Trying to understand perspective divide
5:50 Optimization
6:50 Making a prettier test world
7:18 Teleportation, at last!
9:17 Fixing the flickering
10:00 Slicing
12:15 Oblique projection
13:31 Recursive portals
15:33 Outroduction

3D Models:
Plane: turbosquid.com/FullPreview/Index.cfm/ID/1041070
Car: turbosquid.com/FullPreview/Index.cfm/ID/1101519

Music:
"Twisting", "Lightless Dawn", "Frost Waltz", "Heart of Nowhere", "At Rest", "Spellbound", "In Your Arms", "Rynos Theme", and "The Builder" by Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
creativecommons.org/licenses/by/3.0
Coding Adventure: PortalsNeural Networks | E03: data and evaluation (unfinished series)[Unity] 2D Curve Editor (E05: evenly spaced points)Coding Adventure: Coding a Coding GameUnity Create a Game Series (E16. weapon effects)Coding Adventure: Hydraulic ErosionMy First 10 Years of Game DevelopmentUnity Shape Editor Tool (2/4)Procedural Landmass Generation (E08: Threading)[Ludum Dare #38] Space Turtle: Behind the ScenesIntroduction to Game Development (E18: raycasting)Coding Adventure: Rubiks Cube
Sebastian Lague |

Coding Adventure: Portals

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER