How were the portals in Portal Game created?

preview_player
Показать описание
How did valve create portals for their game portal. In this video I have discussed how portals work and the fundamental logic they follow. After watching this video, you will be able to create portals yourself and you will also understand the theory behind portals.

Рекомендации по теме
Комментарии
Автор

Dude, this is amazing! So well explained, so well thought! Awesome work and awesome video, love it! :)

Proghix
Автор

Always wondered how they made this work, i thought the game rendered a new room everytime

johadelet
Автор

Good explanation. Crazy to think such a seemingly magical effect is just a bunch of camera and collision tricks

Sigma
Автор

I will upload the source code soon, just re-organizing the codes a bit :)

unityinminute
Автор

Very well done! Very clearly broken down and explained, issue by issue!

JohnMisoyianis
Автор

Great video! I think I like your explanation a bit better than the other videos on YouTube. Keep it up!

hubertblainewolfeschelgels
Автор

Amazing video and really well explained! Thank you for sharing your knowledge and experience!

matthewvarpness
Автор

i'm still learning so I don't understand the code perfectly but this was a very interesting watch

Seestral
Автор

Really good tutorial. Do you know how the collision of the wall is altered depending on the portal position? You can’t walk through a wall, but when there is a portal there, there is no collision in that specific area. Any idea how that is achieved?

MrMinticuz
Автор

I love this so much. I was stuck when it came to creating a portal like that, it just didn't make sense until i cam across your video. It is helping me create a portal step by step, thanks c:

joshuaokokpujie
Автор

Wonderful tutorial! Thank you for the dot product explanation too... But one gaping hole in my understanding is how to handle collisions. Is the portal offset from the wall? Is there some sort of masking wizardry going on here??

fallenhoenix
Автор

This video is a really big help, and the way you explained it was amazing. Thank you! :D

lucii
Автор

There is a mistake at 1:10. You described your code implementation as if the portal-cameras rotation angle depends on the players relative angle to the normal vector of the portal, but actually you implemented it in the way, that the portal-cameras rotation angle depends on the player-cameras rotation angle.

KLANGMUSIC
Автор

I wish you showed us the clipping of the whole screen to a small rectangle, the math behind or shaders

RivenbladeS
Автор

I doubt you will find this but if you do ill tell you how the game renders an object. It renders the covered mesh on the otherside

frogtheneonsaber
Автор

I always thought it was a complicated mechanic. When it was actually a series of simple mechanics that was sewn together which resulted to that seamless outcome. The problem solving skills of devs are really amazing in this regard. Truly masters of deception, in a sense. Hahaha

kjIbacon
Автор

I knew how it was made but i still wanted to watch the video

axewhite
Автор

Do u have a Github where this project can be found? Thanks.

EthereanOriginal
Автор

is there a way to do this without a shader?

impokie_
Автор

Hey can you make this but all 4 walls are portals so the room is infinite?

FriesOnYt