video thumbnail 16:06
Coding Adventure: Portals

2020-02-07

[public] 865K views, 68.0K likes, 204 dislikes audio only

channel thumbSebastian Lague

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/


Introduction
/youtube/video/cWpFZbjtSQg?t=0
Figuring out the cameras
/youtube/video/cWpFZbjtSQg?t=25
Test world
/youtube/video/cWpFZbjtSQg?t=101
Texture mapping
/youtube/video/cWpFZbjtSQg?t=189
Trying to understand perspective divide
/youtube/video/cWpFZbjtSQg?t=267
Optimization
/youtube/video/cWpFZbjtSQg?t=350
Making a prettier test world
/youtube/video/cWpFZbjtSQg?t=410
Teleportation, at last!
/youtube/video/cWpFZbjtSQg?t=438
Fixing the flickering
/youtube/video/cWpFZbjtSQg?t=557
Slicing
/youtube/video/cWpFZbjtSQg?t=600
Oblique projection
/youtube/video/cWpFZbjtSQg?t=735
Recursive portals
/youtube/video/cWpFZbjtSQg?t=811
Outroduction
/youtube/video/cWpFZbjtSQg?t=933
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support on Patreon patreon.com
https://www.patreon.com/SebastianLague/
Coding Adventure: Clouds 1,119,732 views
/youtube/video/4QOcCGI6xOU