Examining Portal's Teleportation Code 278
Gamasutra is running a story deconstructing the mechanics of Portal's teleportation programming. They present a snippet of Portal's code and a downloadable demo. They ran another article in this series earlier this year with an analysis Mario Galaxy's unique take on physics. We've discussed the development of Portal in the past.
"Teleport mechanics in video games are nothing new. Puzzles from the original Gauntlet were memorable -- and more than likely, that wasn't the first game to use teleportation as a gameplay mechanic. The difference between Portal and all those that came before it is that Portal's teleportation acts as a frictionless tube between point A and point B. Physics are still hard at work inside the frictionless tube. Instead of simply repositioning an object from point A to point B, the player enters point A with full velocity and exits point B with the same speed, but moving in a new direction."
Update: 8/26 at 19:37 by SS: Dan notes that the code was not directly from Portal; it was written to approximate Portal's physics.
Frictionless tube? (Score:5, Funny)
Your mom has a frictionless tube.
First post?
Portal (Score:5, Funny)
Re:Frictionless tube? (Score:5, Funny)
For friction to be present, the object being inserted into the tube must be large enough to touch the sides. That must be your problem.
But... (Score:5, Funny)
But... can they telefrag?
I just love the sound of 2 bodies trying to occupy the same space at the same time in the morning... or afternoon... or evening...
Too verbose (Score:5, Funny)
>>Physics are still hard at work inside the frictionless tube. Instead of simply repositioning an object from point A to point B, the player enters point A with full velocity and exits point B with the same speed, but moving in a new direction."
Should be "Speedy thing goes in; speedy thing comes out."
Ahoy, GlaDOS! (Score:5, Funny)
The code (Score:2, Funny)
Ok, sorry...
Re:Ahoy, GlaDOS! (Score:5, Funny)
I'm waiting on the hot grits version, Portman
Re:M.C.Escher has good OLD examples of the concept (Score:1, Funny)
Next step? (Score:4, Funny)
Porting Portal's portal code?
Re:Frictionless tube? (Score:5, Funny)
For friction to be present, the object being inserted into the tube must be large enough to touch the sides. That must be your problem.
THAT'S WHAT SHE SAID! -er, shit. *self pwn*
Re:Ahoy, GlaDOS! (Score:3, Funny)
Re:WTF (Score:5, Funny)
It must be using some kind of vector mathematics for mapping acceleration onto velocity, and velocity onto position, but I'll be damned if I can figure out how they expressed that in an algorithm.
Re:It would have been more fun (Score:1, Funny)
We need a Pratchett based online FPS! Dwarf Bread for weapons; you can play as a Gollum; Discworld based physics.
That would be super-sweet!
Re:Ahoy, GlaDOS! (Score:5, Funny)
-Rowley Birkin, QC
Re:Ahoy, GlaDOS! (Score:5, Funny)
Re:Next step? (Score:5, Funny)
I'm a portal porter's son
And i'm only porting portal
Till the portal porter comes
Re:Portal (Score:5, Funny)
First thought: "Hey, if it can work within or near the event horizon of a black hole we could time travel!".
Second thought: "Wound this violate one of the laws of thermodynamics?"
Third thought: "I need a life."
Re:It would have been more fun (Score:2, Funny)
Re:It would have been more fun (Score:5, Funny)
multi-hundred pound canon
Omnianism has loads of holy books, but I don't think even those collected amount to several hundred pounds.
Re:Too verbose (Score:5, Funny)
Re:M.C.Escher has good OLD examples of the concept (Score:5, Funny)
Speaking of, whens he gonna put a new album out?
Are you talking about M.C. Escher who designed the crazy staircase house? Or David Bowie, who lives there?
Re:Ahhh (Score:1, Funny)
I got a great blow-job last weekend. It was like she was making out with my dick.
It was wonderful.
And when you were done, did you type 'afk' and light a cigarette?
Re:Ahoy, GlaDOS! (Score:5, Funny)
I'm waiting on the drunken lawyer version, Port
I'm waiting for the Wii version, P.
Re:WTF (Score:3, Funny)
Re:Portal Physics 101 (Score:3, Funny)
Asteroids anyone? (Score:4, Funny)
Didn't Asteroids have prior art on this..? :)
Re:Ahoy, GlaDOS! (Score:2, Funny)
I'm waiting for the Wii version, P.
I'm waiting for the Scrabble version, Portmanteau.
Re:But... (Score:1, Funny)
I just love the sound of 2 bodies trying to occupy the same space at the same time in the morning... or afternoon... or evening...
And stop peeking into our windows, you're creeping my wife out.
Re:Portal (Score:3, Funny)
Note that, in Portal, execution and cake seem to be linked...
Re:Portal (Score:3, Funny)
It's not the execution, it's the cake.
I didn't want him to think of me as a liar.
Re:Ahhh (Score:2, Funny)
+1, Touche.
Re:Frictionless tube? (Score:2, Funny)