How were the portals in Portal Game created?

  Рет қаралды 25,202

Unity in 1 minute

Unity in 1 minute

Күн бұрын

Пікірлер: 61
@Proghix
@Proghix 3 жыл бұрын
Dude, this is amazing! So well explained, so well thought! Awesome work and awesome video, love it! :)
@unityin1minute962
@unityin1minute962 3 жыл бұрын
Thanks a ton!
@johadelet4826
@johadelet4826 2 жыл бұрын
Always wondered how they made this work, i thought the game rendered a new room everytime
@MystCraft24
@MystCraft24 3 ай бұрын
i thought of it too but then i thought no way it could do that, the amount of lag while doing portal jumps would be insane
@hubertblainewolfeschelgels5295
@hubertblainewolfeschelgels5295 2 жыл бұрын
Great video! I think I like your explanation a bit better than the other videos on KZbin. Keep it up!
@jmispace
@jmispace 3 жыл бұрын
Very well done! Very clearly broken down and explained, issue by issue!
@unityin1minute962
@unityin1minute962 3 жыл бұрын
Thanks, glad it was helpful
@369Sigma
@369Sigma 2 жыл бұрын
Good explanation. Crazy to think such a seemingly magical effect is just a bunch of camera and collision tricks
@lucii5022
@lucii5022 Жыл бұрын
This video is a really big help, and the way you explained it was amazing. Thank you! :D
@unityin1minute962
@unityin1minute962 3 жыл бұрын
I will upload the source code soon, just re-organizing the codes a bit :)
@saltix0
@saltix0 3 жыл бұрын
I'm currently trying to make a VR game with portals so seeing the non-VR implementation would really help!
@ronen6206
@ronen6206 3 жыл бұрын
Will we need to set something other than the script (like a Shader)
@unityin1minute962
@unityin1minute962 3 жыл бұрын
Yes, you will have to set up shader in order for the camera to render only part of the whole frame :)
@itay7884
@itay7884 3 жыл бұрын
@@unityin1minute962 Will you give us the shader?
@unityin1minute962
@unityin1minute962 3 жыл бұрын
@@itay7884 Yes, very soon. I am a bit busy so that's why I have not uploaded the project yet :)
@matthewvarpness8765
@matthewvarpness8765 3 жыл бұрын
Amazing video and really well explained! Thank you for sharing your knowledge and experience!
@joshuaokokpujie1521
@joshuaokokpujie1521 Жыл бұрын
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:
@davids3282
@davids3282 3 жыл бұрын
Really liked this video. Good job!
@unityin1minute962
@unityin1minute962 3 жыл бұрын
Thank you :)
@Seestral
@Seestral 3 жыл бұрын
i'm still learning so I don't understand the code perfectly but this was a very interesting watch
@unityin1minute962
@unityin1minute962 3 жыл бұрын
Thanks. Once you will get used to unity and game dev related coding, then it's not very difficult to do :)
@RivenbladeS
@RivenbladeS 7 ай бұрын
I wish you showed us the clipping of the whole screen to a small rectangle, the math behind or shaders
@kjIbacon
@kjIbacon Жыл бұрын
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
@Dallas4090
@Dallas4090 Жыл бұрын
This just blew my mind. Fuck.
@yarriksauker993
@yarriksauker993 2 ай бұрын
thank you so much, this video made me able to build a tardis
@3KLANGMUSIC
@3KLANGMUSIC 8 ай бұрын
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.
@fallenhoenix1255
@fallenhoenix1255 2 жыл бұрын
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??
@birdlegscass
@birdlegscass 11 ай бұрын
anything in contact with the portal should ignore the collision of the wall and instead respect a rectangle of collision surrounding the portal
@MrMinticuz
@MrMinticuz 3 жыл бұрын
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?
@unityin1minute962
@unityin1minute962 3 жыл бұрын
There is a trigger right in front of the portal which moves the player from one part of the portal to the other. So, when the player moves towards the portal, it never collides with the wall collider because the player hits the trigger first and then the position of the player is changed to the other part of the portal in a smooth way. So it seems that the player is crossing the portal through a hollow wall but in reality, trigger is changing the position of the player to the other part of the portal smoothly.
@MrMinticuz
@MrMinticuz 3 жыл бұрын
@@unityin1minute962 oh, hmm. That’s cool, but I get the triggers moving the player position when the player has moved halfway through the portal, but you can’t do that incrementally. So I still don’t get it how it does that
@genericobjectshow3440
@genericobjectshow3440 Жыл бұрын
@@MrMinticuz I figured out a way to do it in Godot Engine. Basically, using the shape, you can basically cut a hole in another object using a CSG shape. This is for Godot 3 only :/
@MrMinticuz
@MrMinticuz Жыл бұрын
oh that's actually dope, great to know man@@genericobjectshow3440
@randomcatdude
@randomcatdude 3 ай бұрын
@@unityin1minute962 this is not correct. if this were the case, you wouldn't be able to stand inside a portal. the portal games actually create a copy of the nearby collision and cut a hole into it. then any objects close to the portal will only collide with this copy, rather than the actual map collision
@axewhite6553
@axewhite6553 3 жыл бұрын
I knew how it was made but i still wanted to watch the video
@unityin1minute962
@unityin1minute962 3 жыл бұрын
Cool :) Hope it was interesting
@axewhite6553
@axewhite6553 3 жыл бұрын
@@unityin1minute962 hell yeah it was
@unityin1minute962
@unityin1minute962 3 жыл бұрын
@@axewhite6553 Yeeeeeee :)
@muhammadzubairirshad6724
@muhammadzubairirshad6724 2 жыл бұрын
You are Just Amazing Dude
@frogtheneonsaber
@frogtheneonsaber Жыл бұрын
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
@TAELSDOLL
@TAELSDOLL Жыл бұрын
excellent
@EthereanOriginal
@EthereanOriginal 2 жыл бұрын
Do u have a Github where this project can be found? Thanks.
@ShatabdaRoy115
@ShatabdaRoy115 2 жыл бұрын
fantastic
@pantsurevolution
@pantsurevolution 2 жыл бұрын
great job
@maxherrmann1182
@maxherrmann1182 2 жыл бұрын
Why did you stop making videos? They're amazing!
@FriesOnYt
@FriesOnYt 2 жыл бұрын
Hey can you make this but all 4 walls are portals so the room is infinite?
@llIIllIlIIllX_XIillIIllIIllIll
@llIIllIlIIllX_XIillIIllIIllIll Жыл бұрын
do you have the project on github to try it ourselves?
@impokie_969
@impokie_969 9 ай бұрын
is there a way to do this without a shader?
@jigarpanchal0
@jigarpanchal0 Жыл бұрын
Bro why aren't uploding videos
@bigmancozmo
@bigmancozmo 2 жыл бұрын
Channel: "Unity in 1 minute" Video length: 5:08
@exploringabandonedhauntedo6589
@exploringabandonedhauntedo6589 3 жыл бұрын
I think you forgot to post a new video
@BastienStudio
@BastienStudio 3 жыл бұрын
Pretty cool but there's a lot of things you forgotten : -The portal can be placed on white walls but not on black ones -Is the momentum preserved between the portals? (players and object) -Can we shoot portals ? (cuz they are on the wall when you start the game) -Is there some particles that can make the portals more realistic ? -If we do a co-op game, all the players can go through portals, shoot different portals and others things like this ? Otherwise the video is great, I can't wait to have the code to use it :D
@diegogame1213FR
@diegogame1213FR 4 ай бұрын
i still don't get the math help
@SS-pm3px
@SS-pm3px Ай бұрын
Please share the source code
@tcritt
@tcritt 6 ай бұрын
You ripped this off from another channel. Tsk tsk.
How were the portals in Portal created? | Bitwise
8:28
DigiDigger
Рет қаралды 1 МЛН
Nobody Cares About AI Anymore
19:22
KnowledgeHusk
Рет қаралды 52 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 58 МЛН
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 27 МЛН
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Passing A Portal Through Itself
4:05
minutephysics
Рет қаралды 11 МЛН
Non-Euclidean Worlds Engine
5:15
CodeParade
Рет қаралды 11 МЛН
I Made Portal 3 Because Valve Wouldn't
8:53
CodyCantEatThis
Рет қаралды 2,9 МЛН
How I made my seamless portals in Unity
36:06
Clonkex
Рет қаралды 2 М.
Portal's Weird Beta Maps
17:58
Ossy Flawol
Рет қаралды 215 М.
Bringing GLaDOS to life with Robotics and AI
13:04
Dave's Armoury
Рет қаралды 951 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,4 МЛН
How Mario Kart 8’s Checkpoints Were Finally Broken
19:53
How I Beat The Password Game
39:53
Bog
Рет қаралды 2,1 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 58 МЛН