I made moving portals

Avatar
espen180
307 Posts
Posted Dec 21, 2007
No joke.

I'll show you when I've bothered to make a showcase map. As of now, I'm having some mapper's block.

Advertisement
Registered users don't see ads! Register now!
Avatar
youme
937 Posts
Posted Dec 21, 2007
Replied 43 minutes later
I was going to experiment with this, I think it may be if the portals move relative to each other they dissconnect, I was going to try it out last night but time overcame me at 2:30am.

Am I right? to save me time
Edit: I am not right...Screens/videos/example maps or it didn't happen!

Avatar
msleeper
4,095 Posts
Member
Posted Dec 21, 2007
Replied 5 hours later
Parent daisy chain?

Does shit freak out?

Avatar
iamafractal
272 Posts
Posted Dec 21, 2007
Replied 2 hours later
can't moving portals just be like pointer variables? going to each other no matter where they are?
Avatar
volt
104 Posts
Posted Dec 21, 2007
Replied 56 minutes later
Instead of making a portal on a surface move, have the rest of the map move and the surface stay still.

Simple, and effective.

Avatar
youme
937 Posts
Posted Dec 21, 2007
Replied 4 minutes later

volt wrote:
Instead of making a portal on a surface move, have the rest of the map move and the surface stay still.

Absolutely friggin imposible with a finished map, but if you could get it working then it might just be effective. Oh wait, there are some things that can't be parented. Oh well, it was a nice idea.

Fixed

Avatar
iamafractal
272 Posts
Posted Dec 21, 2007
Replied 3 hours later
even if you could move the whole map, what if you wanted two moving portals? (not moving parallel to each other? i guess you could tear spacetime up in some extra dimensions
Avatar
Hober
1,180 Posts
Posted Dec 22, 2007
Replied 7 hours later
Yawn.
Avatar
youme
937 Posts
Posted Dec 23, 2007
Replied 1 day later
Get on with explaining it before I press the huge 'Espen is a big fat BSer' button
Advertisement
Registered users don't see ads! Register now!
Avatar
CodemasterJD
11 Posts
Posted Dec 24, 2007
Replied 16 hours later
From listening to the developer notes, portals are 2 things:

1) A modification of the view buffer, such that when you look at a portal, you see a stencil (decal) on the surface, that just happens to be the view through the portal itself.

I would see nothing wrong with this being moving; it's just a view buffer.

2) A modification to the physics code. Pretty tricky.

Things that stick through the portal may have different gravity, etc. The physics code had to be hacked up to do this. The initial build was 500ms to calculate everything; they trimmed it down to 10ms.

At a guess, I think it's possible that MOVING portals would violate an optimization they used to get the physics calc's faster.

also, 3:

3) Paraphrased, "the player shouldn't be afraid of portals" - they deliberatly made them so that you can't get cut in half from going through a portal. If a portal was on a moving surface, and you stuck your head through at a bad time, you could be hit. So maybe they wanted to disallow this

Now, after having said all of that, Espen says he has it working, so ...

and a moving floor would obviously work and have all the attendant issues with 3). It also makes me think it would be fun to put a portal under a box while standing next to a head hight portal. Would your head get crushed? I guess so.

Time to go play

== John ==