Dude, this is amazing! So well explained, so well thought! Awesome work and awesome video, love it! :)
@unityin1minute9623 жыл бұрын
Thanks a ton!
@johadelet48262 жыл бұрын
Always wondered how they made this work, i thought the game rendered a new room everytime
@MystCraft243 ай бұрын
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
@hubertblainewolfeschelgels52952 жыл бұрын
Great video! I think I like your explanation a bit better than the other videos on KZbin. Keep it up!
@jmispace3 жыл бұрын
Very well done! Very clearly broken down and explained, issue by issue!
@unityin1minute9623 жыл бұрын
Thanks, glad it was helpful
@369Sigma2 жыл бұрын
Good explanation. Crazy to think such a seemingly magical effect is just a bunch of camera and collision tricks
@lucii5022 Жыл бұрын
This video is a really big help, and the way you explained it was amazing. Thank you! :D
@unityin1minute9623 жыл бұрын
I will upload the source code soon, just re-organizing the codes a bit :)
@saltix03 жыл бұрын
I'm currently trying to make a VR game with portals so seeing the non-VR implementation would really help!
@ronen62063 жыл бұрын
Will we need to set something other than the script (like a Shader)
@unityin1minute9623 жыл бұрын
Yes, you will have to set up shader in order for the camera to render only part of the whole frame :)
@itay78843 жыл бұрын
@@unityin1minute962 Will you give us the shader?
@unityin1minute9623 жыл бұрын
@@itay7884 Yes, very soon. I am a bit busy so that's why I have not uploaded the project yet :)
@matthewvarpness87653 жыл бұрын
Amazing video and really well explained! Thank you for sharing your knowledge and experience!
@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:
@davids32823 жыл бұрын
Really liked this video. Good job!
@unityin1minute9623 жыл бұрын
Thank you :)
@Seestral3 жыл бұрын
i'm still learning so I don't understand the code perfectly but this was a very interesting watch
@unityin1minute9623 жыл бұрын
Thanks. Once you will get used to unity and game dev related coding, then it's not very difficult to do :)
@RivenbladeS7 ай бұрын
I wish you showed us the clipping of the whole screen to a small rectangle, the math behind or shaders
@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 Жыл бұрын
This just blew my mind. Fuck.
@yarriksauker9932 ай бұрын
thank you so much, this video made me able to build a tardis
@3KLANGMUSIC8 ай бұрын
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.
@fallenhoenix12552 жыл бұрын
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??
@birdlegscass11 ай бұрын
anything in contact with the portal should ignore the collision of the wall and instead respect a rectangle of collision surrounding the portal
@MrMinticuz3 жыл бұрын
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?
@unityin1minute9623 жыл бұрын
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.
@MrMinticuz3 жыл бұрын
@@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 Жыл бұрын
@@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 Жыл бұрын
oh that's actually dope, great to know man@@genericobjectshow3440
@randomcatdude3 ай бұрын
@@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
@axewhite65533 жыл бұрын
I knew how it was made but i still wanted to watch the video
@unityin1minute9623 жыл бұрын
Cool :) Hope it was interesting
@axewhite65533 жыл бұрын
@@unityin1minute962 hell yeah it was
@unityin1minute9623 жыл бұрын
@@axewhite6553 Yeeeeeee :)
@muhammadzubairirshad67242 жыл бұрын
You are Just Amazing Dude
@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 Жыл бұрын
excellent
@EthereanOriginal2 жыл бұрын
Do u have a Github where this project can be found? Thanks.
@ShatabdaRoy1152 жыл бұрын
fantastic
@pantsurevolution2 жыл бұрын
great job
@maxherrmann11822 жыл бұрын
Why did you stop making videos? They're amazing!
@FriesOnYt2 жыл бұрын
Hey can you make this but all 4 walls are portals so the room is infinite?
@llIIllIlIIllX_XIillIIllIIllIll Жыл бұрын
do you have the project on github to try it ourselves?
@impokie_9699 ай бұрын
is there a way to do this without a shader?
@jigarpanchal0 Жыл бұрын
Bro why aren't uploding videos
@bigmancozmo2 жыл бұрын
Channel: "Unity in 1 minute" Video length: 5:08
@exploringabandonedhauntedo65893 жыл бұрын
I think you forgot to post a new video
@BastienStudio3 жыл бұрын
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
@diegogame1213FR4 ай бұрын
i still don't get the math help
@SS-pm3pxАй бұрын
Please share the source code
@tcritt6 ай бұрын
You ripped this off from another channel. Tsk tsk.