optozorax
optozorax
  • 1
  • 30 317
What happens if you put a portal in a portal? Simulation and explanation
This video shows the solution to the most complex portal riddle: "What will happen if we put one portal into another?". I explained how this works and how I programmed this.
------------------------------------------------------
Chapters:
0:00 Intro
0:44 Portal Explorer program
1:02 Formulating the problem
1:30 About portal movement
1:59 What a portal is
2:59 Riddle about portal movement
3:28 My version of that riddle
4:16 Two portal pairs
5:40 Why portal must have the same shape on input and output
6:24 Why split portal looks continuous
7:10 How split portal will teleport object
7:55 Why two portal pairs scene is important
8:16 Common information about the "portal in portal"
8:43 What if look inside "portal in portal"
9:03 What if put object into "portal in portal"
9:33 Teleportation degrees
10:41 Rotating portal in portal animation
11:01 Base of the discrete approach
12:01 Solution of "portal in portal" by discrete approach
14:10 Base of the analytical approach
17:17 Solution of "portal in portal" by the analytical approach
18:55 What if move next, ignoring limitations
19:48 About my program
20:45 Base of the program
21:21 Outro
------------------------------------------------------
Links:
DEMO: optozorax [dot] github [dot] io [slash] portal
(don't run demo from your phone, this program has very heavy shaders, it may lay down your phone or weak computer).
For now, other links are unavailable, because my channel is new, TH-cam forbids me :( I will update this one later.
------------------------------------------------------
Music:
"Furious Freak", "Beauty Flow", "Galactic Rap", "Breakdown" by Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
Cheel - Sunday Rain
Jukebox - Patrick Patrikios
มุมมอง: 32 141

วีดีโอ

ความคิดเห็น

  • @zedmanul7472
    @zedmanul7472 2 ชั่วโมงที่ผ่านมา

    круто :)

  • @GriffinForte
    @GriffinForte 8 ชั่วโมงที่ผ่านมา

    Coool vid

  • @alexbaughman9404
    @alexbaughman9404 10 ชั่วโมงที่ผ่านมา

    wow! this is amazing!

  • @leshiy_nd
    @leshiy_nd 11 ชั่วโมงที่ผ่านมา

    Someone: Portals can't move! Meanwhile Portal 2 for Playstation Move: 😈

  • @leshiy_nd
    @leshiy_nd 11 ชั่วโมงที่ผ่านมา

    Me upon seeing the video in my recommendations: Hey, I've already been one guy to describe everything on the topic brilliantly. Me upon starting the video: Wait a minute... He watched it? Me one minute later: No way!

  • @Catalyph
    @Catalyph 13 ชั่วโมงที่ผ่านมา

    I disagree with you @4:00 the conservation of momentum is missing when the portal is moving and the object is stationary. when the object is moving it exists the other side portal WITH conservation of it's momentum, which is NOT 0. however if the object has 0 momentum and the portal is moving all pieces of the object will exit the other side with 0 momentum and basically cash into eachother at the edge of the exit portal because the have no momentum and not was imparted on them by the portal.

  • @JoshMutia
    @JoshMutia 13 ชั่วโมงที่ผ่านมา

    criminally underrated channel. excited to see what you have for us next!

  • @MagicGonads
    @MagicGonads 14 ชั่วโมงที่ผ่านมา

    In the game portal, since objects cannot be subdivided (there can only be one linear and rotational force each acting on the center of mass), and there is a universal reference frame (the hammer grid), the situation of a moving portal must always be A. I understand not wanting to use the mechanics from portal, but that is what makes the question interesting (since a 'physical' interpretation must either be B with mutable portals (not the kind in the game) or impossible). To me introducing relativity is erroneous because that's a law of our world, not portal's, and certainly not all potential games with portals. The portal games already intentionally display infinite gravitational energy due to the displacement of falling objects, so conservation of energy/momentum is irrelevant.

  • @Абдулло-щ3е9э
    @Абдулло-щ3е9э 15 ชั่วโมงที่ผ่านมา

    3:50 I'm screaming in horror at the idea of a portal being able to move a stationary object outside of itself. I mean it mathematically makes sense, but my brain and eyes don't want to accept it. Kind of like how light travels at the same speed in every frame of reference.

    • @optozorax_en
      @optozorax_en 14 ชั่วโมงที่ผ่านมา

      interesting, I never had that reaction and didn't think that someone intuition would work like that

  • @kabobawsome
    @kabobawsome 15 ชั่วโมงที่ผ่านมา

    The issue I still have with moving portals moving an object is that you are creating energy from nothing. There is no equal reaction. A moving portal MUST be slowed by an equal amount of energy to that imparted on the object.

    • @optozorax_en
      @optozorax_en 14 ชั่วโมงที่ผ่านมา

      That's exactly what I tried to express on 3:20

  • @Wrenosaur_
    @Wrenosaur_ 18 ชั่วโมงที่ผ่านมา

    Im here before 1k subs !

  • @TABZ_TBEN
    @TABZ_TBEN 19 ชั่วโมงที่ผ่านมา

    Респект

  • @GamersErdemYT
    @GamersErdemYT 20 ชั่วโมงที่ผ่านมา

    tam da böyle bişey arıyordum 4 yıldan beri

  • @Cone_Channel
    @Cone_Channel วันที่ผ่านมา

    I would argue that an object staying still and a portal moving into it would not affect it's speed. If we are assuming the definition of a portal as a doorway, and that a portal should work the same as a normal doorway, when you have a doorframe and move it through an object, the object does not magically change in speed, it keeps the same speed despite appearing on the other side. A portal simply teleports matter and energy through space, therefore it should not add kinetic energy to an object. If we think about this using newton's first law, an object that is at rest should stay at rest unless it's acted upon by external force. because a regular doorway would not produce force onto an object, by your definition a portal shouldn't either.

  • @74Gee
    @74Gee วันที่ผ่านมา

    Wow! If you have the entrance to a portal facing the exit of the same portal and 2D object in between them. Where does the object go when you bring the portals together and then move both portals away? Like bringing two slices of bread together around some jam and then moving the sandwich away.

  • @BenedictGS
    @BenedictGS วันที่ผ่านมา

    Now i also see that bounded portal plane are a hulahoop of extreme sharpness. I love the video, amazing works.

  • @coder0xff
    @coder0xff วันที่ผ่านมา

    I'm very skeptical that each of the 11 degrees has to be more copies of essentially the same code. See if you can turn it into an unbounded loop that terminates when no more intersections remain.

    • @optozorax_en
      @optozorax_en วันที่ผ่านมา

      In my new version I wrote this as a for loop with ability to set any amount of teleportation degrees

  • @m4rt_
    @m4rt_ วันที่ผ่านมา

    Hopefully someone at Valve sees this. Then if we get a Portal 3, we may get some very cool portal physics.

  • @ELF_Productions
    @ELF_Productions วันที่ผ่านมา

    did something kinda like it in Superliminal wheeee. broke reality

  • @dapcuber7225
    @dapcuber7225 วันที่ผ่านมา

    I've visualised this in my head before but I could never imagine what happens if you ignore the fact that the portals knock into eachother, what happens if you keep pushing? Edit: Nevermind, I didn't watch far enough. Thank you for showing it :D

    • @optozorax_en
      @optozorax_en วันที่ผ่านมา

      I show exactly that later in the video

    • @dapcuber7225
      @dapcuber7225 วันที่ผ่านมา

      @@optozorax_en I know, I didn't watch far enough, thank you for showing it :]

  • @ruleofnine
    @ruleofnine วันที่ผ่านมา

    such a good video! keep it up

  • @nn-zp4ig
    @nn-zp4ig วันที่ผ่านมา

    Dude, in 100 years, when there are portals in RL, this will be considered groundwork.

  • @tarapataha8625
    @tarapataha8625 วันที่ผ่านมา

    21:37 Polska GOROM Kochani 🎉

  • @friedrichfreigeist3292
    @friedrichfreigeist3292 วันที่ผ่านมา

    The big question is: Is this Lorentz Invariant?

  • @0xF81
    @0xF81 วันที่ผ่านมา

    Damn ur Russian accent is so strong

    • @optozorax_en
      @optozorax_en วันที่ผ่านมา

      Does it hurt your ear?

    • @0xF81
      @0xF81 วันที่ผ่านมา

      @@optozorax_en nah, just surprised. And I'm surprised "links are unavailable", I thought I'd be able to play with this cool tool on my own

    • @optozorax_en
      @optozorax_en วันที่ผ่านมา

      demo link is written in plaintext (youtube doesnt allow me normal links yet), here's for you: optozorax.github.io/portal/ (it allows links in comments btw)

  • @laymonage
    @laymonage วันที่ผ่านมา

    Impressive, thanks for sharing the explanation *and* code!

  • @godofspid
    @godofspid วันที่ผ่านมา

    Этот акцент просто имба!

    • @optozorax_en
      @optozorax_en วันที่ผ่านมา

      В плохом или хорошем смысле?

    • @godofspid
      @godofspid วันที่ผ่านมา

      @optozorax_en Если честно, его не помешало бы чуууточку подтянуть)

  • @hyperox7601
    @hyperox7601 วันที่ผ่านมา

    What happens if you shoot a portal on someone and have them jump into the other one?

  • @GoldenH
    @GoldenH วันที่ผ่านมา

    Very interesting but I think the output shape should be distorted when different shapes are used as portals. So you might be able to put a square Into a triangle and get a circle. Idk but also it's probably different shapes coming out depending on which one is bigger

  • @gsestream
    @gsestream วันที่ผ่านมา

    of course the second portal is an object, and is placed in the space of the first portal, and then works normally. no time/space loop issues.

  • @CalamityStarForce
    @CalamityStarForce วันที่ผ่านมา

    So I have to be cut a seemingly infinite number of times to pass through a portal? Sounds more like a Star Trek teleporter to me lol

  • @AllExistence
    @AllExistence วันที่ผ่านมา

    Is this a reupload? I think i saw this video before.

  • @AllExistence
    @AllExistence วันที่ผ่านมา

    The REAL portals should NOT be movable. Not because of some abstract rule, but because portals are connecting different points in the same space. If portal is moving relative to another, it would mean space itself would be moving relative to itself, which would mean either deformation of space or overlap and holes in space. For example, in your visualisation, one portal moves past the object, but without touching it, and object keeps moving on other side after passing through. It means that it's spatially anchored to original portal. Space that it takes moves through the stationary space in the other side of the portal. In that case, there should be hole in space behind the moving portal, or space should be stretched and compressed around it. Either way, in static space, portals are fixed. After all, you cannot move a hole in the paper without deforming the paper. P.S. In that case, portal entering portal would mean simply folding the space inside portal, making it concave; the portals will never actually intersect.

    • @NauzRem
      @NauzRem วันที่ผ่านมา

      and the portals will have to not move relative to what? The universe is always in motion

    • @AllExistence
      @AllExistence 21 ชั่วโมงที่ผ่านมา

      @NauzRem As I SAID, to each other.

  • @wolfkermek
    @wolfkermek วันที่ผ่านมา

    2 portals moving at the same speed in opposite directions is weird to think about if they preserve momentum

  • @noamtashma617
    @noamtashma617 วันที่ผ่านมา

    Interesting. I think another con of the analytical method is that adding more than one portal will be very difficult. Now, Instead of just "how many times did this get teleported", you have to consider "this got teleported through A, then B, then A twice, then B inverted". This might be too many "levels"

  • @chameleonedm
    @chameleonedm 2 วันที่ผ่านมา

    I love how you start with the example of a door. You are absolutely correct, it is a portal. The sign of a good teacher is being able to immediately connect their students to a familiar concepts. You, sir, are very good at this indeed. I wish you the best and am happy to be here under 1k subs

  • @artyom_rogalik
    @artyom_rogalik 2 วันที่ผ่านมา

    У меня какое-то дежавю...

  • @oamp2003
    @oamp2003 2 วันที่ผ่านมา

    8:27 just make the portals a circle instead of a ellipse

    • @optozorax_en
      @optozorax_en 2 วันที่ผ่านมา

      Lol, open my demo for this scene and try this, there is a circle option. This will not help.

  • @CMDRunematti
    @CMDRunematti 2 วันที่ผ่านมา

    I feel like there's no problem in reality, not math, if you break portals. It's just called entanglement. A big portal is just many spacial points being entangled in an ordered way. When you cut the portal you still have 2 portals and you can keep cutting them until atomic scales

  • @idontwantahandlethough
    @idontwantahandlethough 2 วันที่ผ่านมา

    This is great work bro! Instant-subscribe. and can't wait to see what else you can do :)

  • @abstract_duck
    @abstract_duck 2 วันที่ผ่านมา

    5:57 What if we deformed anything that comes out of the other end so it maps perfectly to other shape? Say we have O shape portal side and L shaped end... If I stick a stick in O I should get hockey stick coming out of L

  • @MM-tx3im
    @MM-tx3im 2 วันที่ผ่านมา

    This is awesome

  • @catappercat9439
    @catappercat9439 2 วันที่ผ่านมา

    QR код? Или ютуб и его не любит?

  • @nanoyaki
    @nanoyaki 2 วันที่ผ่านมา

    Amazing video

  • @differentone_p
    @differentone_p 2 วันที่ผ่านมา

    what about Gravity? what if you put the portals on the ceiling and will be half in one, and half in another? you'll be suspended in the air? what if you put the portals on different heights?

  • @perodactyl490
    @perodactyl490 2 วันที่ผ่านมา

    algorithm go brrr

  • @Unofficial_sonic_channel
    @Unofficial_sonic_channel 2 วันที่ผ่านมา

    We can't move portals because they are not wormholes but rather quantum tunneling. And because it is quantum tunneling it needs to be really cold and since temperature is just the movement of atoms it means you can't move a portal.

  • @siteation15
    @siteation15 2 วันที่ผ่านมา

    :D

  • @the_real_Kurt_Yarish
    @the_real_Kurt_Yarish 2 วันที่ผ่านมา

    Here's a question about portals I've never received a satisfying answer to: Let's say that two portals are facing each other at a set distance. You take a metal pole of a particular length and insert it halfway into one portal such that it's other half is in-line with the first. You hold it in this position. Then, you take a separate pole of sufficient length to join the two tips of the first, and weld the ends together. What happens to the pole? Is it now of infinite length? Is it recursive/a loop? Is it still possible to change the pole's orientation? Could it be removed from the portal? What happens if you stop holding it in position?

    • @googooblabla100
      @googooblabla100 2 วันที่ผ่านมา

      Well, it couldn't be infinite length, because there is no such thing as 'inside' a portal. In the video, we saw how as soon as one part of a triangle entered one portal it came put the other, meaning that even though it looks like it would go on forever, the only parts that would exist are the two rods. I *think* that trying to change the pole's orientation would be impossible without bending it. I imagine that as soon as one end moves down, the other end is yanked down too, making it stay perpendicular to the portals. That means that if you tried to remove the pole from the portals by pulling it out, it would just bump against the side of the portals. Finally, I really have no idea what would happen if you let go.

    • @the_real_Kurt_Yarish
      @the_real_Kurt_Yarish 2 วันที่ผ่านมา

      @googooblabla100 I think these are reasonable responses, but for the first I have to ask, then: how long would the pole now be, if not infinite? You're right that a portal has no "inside", but from an outside observer's perspective the pole would appear to strech on in infinite length through the portals. It would no longer have an identifiable terminus, and thus would have to be infinite in length, I imagine. You could feed it in either direction through the portal and never run out of pole, simply arriving back at the point you started. Which I suppose makes it recursive like a loop or a Mobius strip, but physically it would still be a perfectly straight pole. I suppose you could answer that it's only the length of the original pole in addition to the connecting piece, but would that still technically be measurably accurate if the pole never actually terminates? I agree that the pole would now be impossible to reorient out of plane, it just wouldn't be dimensionally possible given the constraints of the portals and the bar without somehow bending it (if doing so is even possible while keeping the bar whole). But I feel like this has ramifications on determining the "length" of the bar, in a way I can't quite articulate at the moment. I suppose gravity would take affect and the bar would just drop, but I don't know if it is possible for an object to rest on the "rim" of a portal. Perhaps it would become perfectly and cleanly severed such that it is now the exact length between the two "surfaces" of the portals. What's more troubling is considering what would happen if the same was done while the portals were orientated such that the pole was vertical from the observer's perspective. I imagine the pole would "fall" forever, constantly feeding itself between the two portals seamlessly until it eventually drifted near the portals edge.

    • @googooblabla100
      @googooblabla100 วันที่ผ่านมา

      @@the_real_Kurt_Yarish to answer your first question, imagine for a second that the pole turns into rubber, so that it can be bent while keeping it's original length. Now, move one of the portals so that it is on the backside of the other portal, like it has become a door. The rubber pole would bend into a ring, which passes through the doorway. I imagine that in the same way that the ring has no definite 'start' or 'end' but can still have it's length measured, the bar does not have a start or end but can still be measured. If you want I'll try to make an animation to explain. (I'll probably make it either way, just for fun) The other questions i really think depend on how the portals work, especially when taking about hitting the portals sides. Hope my explanations help you!

    • @WindsorMason
      @WindsorMason วันที่ผ่านมา

      Moving one of the portals further apart while the rod connects them, I imagine would require the other portal to get drug along in the same direction. Forces acting on one portal would have to also act on the other, or else you really would get infinite rod, duplicating X units of material for just moving one of the portals X units further away.

    • @the_real_Kurt_Yarish
      @the_real_Kurt_Yarish 23 ชั่วโมงที่ผ่านมา

      @@googooblabla100 I understand the visualization you're giving, and indeed the pole would have to work similarly if it is actually recursive. Problem is, is that that the pole isn't actually curved; every point of the pole is parallel with itself. If you were to draw a ray from any point on the pole emanating in any direction other than directly along the pole, it would never come into contact with the pole again. An axiom which isn't true for your looped pole. Meaning it can't actually be a true loop, yet it behaves like one.

  • @zigge4531
    @zigge4531 2 วันที่ผ่านมา

    Whell in the portal univers so whould it not work becps of it bihing a quantum tuneling portal and they can't be moved. Meow. hi, hej, helo, hola, a-hoj, goten tag, halo, konnichiwa, bonjour ♤] ¡$ #€£