Skip to main content
AmigoFish

Coding Adventure: Portals

From Sebastian Lague · · 16 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.

If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.

Watch on YouTube

Not rated yet

Description

Experimenting with portals, for science.

The project is available here: https://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 https://www.patreon.com/SebastianLague

Resources I used: http://tomhulton.blogspot.com/2015/08/portal-rendering-with-offscreen-render.html http://www.terathon.com/lengyel/Lengyel-Oblique.pdf https://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/projection-matrices-what-you-need-to-know-first https://www.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: https://www.turbosquid.com/FullPreview/Index.cfm/ID/1041070 Car: https://www.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 http://creativecommons.org/licenses/by/3.0/

Back to Sebastian Lague · Report a problem