Gamereactor International English / Dansk / Svenska / Norsk / Suomi / Deutsch / Italiano / Español
Log in member
amigo






Forgot password?
I'm not a member, but I want to be

Or log in with a Facebook account
FacebookFacebook

Valve on Portal 2 (part 2)

Text: Petter Mårtensson

In this second interview with the people behind Portal 2, we dig into the more technical side of things and chat with programmer Jeep Barnett.

What do you do?

I'm a programmer. I started at Valve on Portal 1, I was part of the kinda original group that came in, and worked on a bunch of stuff between Portal 1 and 2 - Left 4 Dead, Alien Swarm, all that. And in Portal 2 I've mostly been working on co-op.

So, programming. That's a pretty large field.

[Laughs] True. A lot of people in the gaming industry are pretty specialised, especially at some companies. Like, "I'm the networking guy, I'm the graphics guy" or whatever. I'm more of a generalist programmer, and I'd say that at Valve that's just more common. Everybody kinda does a little bit of everything. The other thing is that in Portal and Alien Swarm and even Portal 2 on the co-op side, there's been very, very few programmers, it's been small teams, and so it's basically whatever needs to be done, I'm your guy. So I have to learn to do whatever needs to be done.

Portal 2

So everything from gameplay mechanics to engine to...

Yeah!

So what do you think the biggest single challenge in making Portal 2 was?

Living up to expectations is the biggest challenge 'cause that's kind of the whole game? But we were trying to figure out... There's a paradox, which is, if we make Portal 2 very similar to Portal 1, we'll feel like it doesn't meet the expectation of doing something new and different, but if we do something completely new and different-

It won't be Portal?

Exactly, it won't be Portal, it doesn't meet the expectations of people wanting a continuing sequel. So there was a challenge in really finding the balance between those two things and essentially being able to do something new, but still making it something that feels like a continuation of what came before. So that was one of the biggest things.

Portal 2

In terms of more of a programming-type task, being able to do multiplayer portals was tricky for a bunch of reasons. Having two sets of portals is insanely intense in terms of the graphics processing that you need to be able to do that. Because with two portals, if you can see a portal through a portal, you end up rendering the world, I think, five times total, in the worst case. But with four portals, your worst case actually becomes sixteen, and in splitscreen it's 32, because you have to render both screens, right? And so we had to do an insane amount of optimisations in trying to make sure that it would run smoothly in what our worst case was.

And in a lot of ways I kind of feel like we've redone the portal rendering technology from the ground up, just so we would be able to pull that off, just rethinking how the pipeline works in terms of rendering all those sets through the different depths of portals.

So that's really tricky, and then the other part of it is that Portal uses a kind of, you could call it a non-euclidean or a non-linear 3D space, it's almost a four dimensional space in that you can move through and move from one place to another that are non-continuous points within the world. And the networking of multiplayer games in general, and especially our games, has a dependency in terms of being able to move players smoothly from one place to another, and accounting for network lag, you have to do all this blending between those positions. You also have to account for discrepancies between what the client thinks happens, and what the server thinks happens, and if they disagree on what's happening in that three-dimensional space, you have to essentially rewind time, decide what really happened, and then move back forward. And so you're jumping kinda backward and forward in the timeline of what exactly is going on and how we're resolving the collisions in the game.

And so when you have people going from one side of the map to the other through portals, that gets even harder?

Exactly. You have this non-linear movement space in this non-linear time, and it not only becomes very difficult to program for, but it becomes insanely confusing to even thing about [laughs]. So I would say that's one of the biggest challenges.

Portal 2

How many engine updates or upgrades have you done compared to previous games?

I would say that we're always moving forward at a pretty even pace in terms of the engine stuff writing. If you look at what we did with Left 4 Dead, where we added color correction and sharpness filters and things like that, as well as being able to render a hundred zombies on the screen. So pushing those sorts of boundaries in Left 4 Dead is ways that did upgrade the engine, and in Portal 2 we've added dynamic lighting, and we've done a lot with that. You can see it really prominently in the sections where Wheatley has his flashlight and those sorts of things, but we kinda use it all over the place in really subtle ways that kinda make the environment pop a little more than it used to.

I was thinking, the geometry in the test chambers is, by design I guess, relatively simple - it's all angular plates and so on - but still the game looks way better than Portal 1, and that's mostly because of the lighting, I think.

Yeah, there's the lighting and there's a lot we did with what we call detailed textures, which is, as you approach a surface we kinda have textures within that texture, that adds a lot of detail to it so it doesn't get all blurry when you stand right against it. And we also have added an impostor-technology, that's basically a system of rendering an object and then repeating it in a similar way, many times in a single scene, and you see that in some of the later parts of the game, where there's sort of these very large spaces with lots and lots of objects in them. So that's kinda how we did that effect of having just so much stuff, and it almost seems like it would be impossible to render something with so much detail, but we're able to do that through that new system.

Portal 2

I remember Half-Life 2 did this thing where you're outside and you have that big Citadel in the background, and it's actually a miniature model that's in a different room with a camera that gets projected. Do you do any sort of stuff like that in Portal 2?

That's called the 3D skybox, and the way that works, the way visually it works, is that the 3D box that you're in is essentially considered at a kinda infinite render depth, and the parts within it can move because we slide the camera within that three-dimensional box. But it really only works for objects that are considered to be essentially not in the way or very far away. And a lot of the stuff we do in Portal doesn't really have that distance. We do a little bit with skyboxes, but it doesn't give us a lot of the effect that we want, so that's why we had to do a lot of things that are actually in the same space as you, but again we're using that impostor-technology to render really highly detailed and repetitive objects straight in the scene.

When you're out on the walkways and looking down or looking up, some of the distances seem a lot bigger than I remember seeing in other Source games.

I think it's definitely kind of a mental trick that might be happening, in that those objects are actually closer than other objects you find in Source games, but because they're not within the skybox and not at that infinite distance, they seem more real in a certain sense, so they actually do seem farther. It's really weird how that works out.

You're doing this new thing with co-op Steam cross-platform play. How did that come about?

Basically, it's an evolving thing, in terms of, we've been doing Steam Play with PC and Mac, where we essentially want to treat our customers and fans who've bought the game as, basically they can play the game on any platform that they choose. And so when we say any platform, the PS3 is now an extension of that. We don't consider them PS3 players and PC players, they're all just the same players and they all want to play Portal 2, and they want to play it together. So that's basically what it is, it's trying to take what was once separate universes and just call them one big happy family.

Portal 2

But usually, multiplayer on consoles is sort of like a gated community. I think Id Software tried it with Quake III on the Dreamcast, but other than that, PC-console crossplay isn't that common, so you must have figured out something that the other guys haven't.

I see what you're saying, like that's our philosophy, but how did we actually make it happen? I think that, you know, we talked to Sony and I guess that they saw the value we were trying to get out of that sort of situation, and we were saying, "we think that customers will find value in this, not just ours but yours as well". And they agreed with us and said, let's do an experiment. Just like everything we do, we try something out, we see how it goes and then we go from there. But hopefully it will be a success, I think that it's gonna work out. But essentially this is just testing the water to see if it's really a feature that people find important.

Portal 2

How much of it is down to Steam? I think I heard someone saying that with Steam you can push updates to the game faster than would normally happen through the usual console manufacturer ecosystem.

We still go through a certification process. The main thing we do with Steam is that it uses our matchmaking systems in terms of understanding who's playing what game, being able to chat to each other, persistent storage of your save games, those sorts of things all use Steam features. The PSN features are basically the friends list and being able to connect with them as well, and also some of your multiplayer progress is saved through PSN and not Steam. So it uses a little bit of both, it's kinda Frankenstein, but what we're trying to do is make that as seamless to the players as it possibly can be, like they don't need to worry about which system it's in, we're kinda gluing them together and saying it's really all one big system.

Related links:
Comment on text

You must be logged in to comment. If you are not yet a member - join now!

:D :) :( :-o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: ;-) :idea: :arrow: :| :mrgreen: :clap: :dance: #-o =; :^o [-X :pray: 8-[ :sick: :-# [-( :-k :--


Would you like to post this action to Facebook ?
Comments
  • Written by: pinkled5
    2011-04-22 13:18
    "if we do something completely new and different-It won't be Portal."

    Wrong! To me, Portal was the epitome of innovation. The more you innovate the more 'portal-like' it is. And in my opinion, Valve failed at this part. Portal Two should should have been called "Portal - Episode 1"
     
 
Game info
  • System:
    Mac, PC, PS3, Xbox 360
  • Genre:
    Puzzle
  • Developer:
    Valve
  • Publisher:
    EA
  • Offline players:
    1-2
  • Online players:
    1-2
  • Age limit:
    From 12 years
  • Release date:
    19 April 2011
Portal 2
Your collection
Similar games

The 20 latest programs:
(Interviews, reportages, reviews)

Watch Dogs - Lead Game Designer Interview
2013-05-21

Gamereactor’s Matti Isotalo was in Paris to talk to Ubisoft Montreal’s Danny Belanger about the hugely anticipated open-world adventure, Watch Dogs.

Jacob Jones and the Bigfoot Mystery - Gameplay
2013-05-21

We filmed the first few minutes of gameplay of this cute Vita game.

GDC: Magicka: Wizard Wars - Interview
2013-05-21

John Hargelid and David Nisshagen from Paradox North, a new development team, talks about their first project - a PvP focused Magicka title called Mag..

Turbo Super Stunt Squad - Global Gamer's Day Interview
2013-05-21

We caught up with Dreamworks' Andrea Frechette and senior producer of the game Brian Etheridge to discuss Turbo Super Stunt Squad - the film and the v..

PAX: Edge of Space - Interview
2013-05-21

We caught up with Handyman Studios' Jack Crane to discuss the upcoming indie title Edge of Space. He talks about influences from various games includi..

GDC: Dreamfall Chapters - Interview Dag Scheve & Martin Bruusgaard
2013-05-18

We caught up with Red Thread Games' Dag Scheve (writer) and Martin Bruusgaard (lead designer) to discuss the recently kickstarted Dreamfall Chapters.

Call of Duty Championships Special - Celebrities
2013-05-17

Are the top COD players turning into superstars? We asked the players at the Call of Duty Championships in Hollywood.

Spin the Bottle: Bumpie's Party - iDÉAME interview & live demo
2013-05-17

KnapNok Games' Lau and Dajana share their vision about motion controls and no-TV games. They also define their imminent Wii U party game Spin the Bott..

GDC: Anomaly 2 - Interview
2013-05-17

We had a chat with 11 Bit Studios' senior writer Pawel Miechowski about the recently released tower offense game Anomaly 2.

Press Start: Sanctum 2
2013-05-17

We captured just under half an hour of the early action in tower defence/first person shooter Sanctum 2 for your viewing pleasure. Enjoy!

GDC: Wargaming - Victor Kislyi Interview
2013-05-16

We sat down with Wargaming.net CEO Victor Kislyi in a boardroom of sorts to discuss their global expansion - the additions of new studios Gas Powered ..

GDC: Big Bite Soccer - Interview
2013-05-16

It's not every day we cover a Facebook game on GRTV, but Big Bite Soccer is a little different - and it should appeal to fans of classic football offe..

GDC: Nvidia Shield - Interview
2013-05-16

Jason Paul, director of product marketing at Nvidia, gives us a brief overview of the lay of the land with the upcoming Shield handheld, that offers a..

PAX: Wildstar - Mike Donatelli Interview
2013-05-15

We caught up with content director Mike Donatelli on the PAX East showfloor to learn more about the intriguing new MMORPG Wildstar.

Trailershow - 15 May
2013-05-15

Are you ready for the Trailershow?!

PAX: Dungeon Defenders II - Interview
2013-05-15

Trendy Entertainment's Josh Isom talks to us about the new competitive mode in Dungeon Defenders II (or MOBA mode if you will), as well as some of the..

GDC: Age of Wulin - Interview
2013-05-15

We took a limo ride with Gala Networks' Claas Wollter in order to find out more about some of the more unique features of Age of Wulin - a free-to-pla..

GRTV: Indiepub - Interview
2013-05-15

Gillen McAllister meet Indie Pub content manager and resident turkey impersonator PJ Hruschak at the Namco Bandai Global Gamers Day where Indie Pub pr..

PAX: Sanctum 2 - Lead Designer Interview
2013-05-15

We caught up with Sanctum 2 lead designer Oscar Jilsén at PAX East to discuss the sequel to the innovative tower defence slash first person shooter.

Full Mojo Rampage - interview and exclusive gameplay demo
2013-05-14

We sneak into Over the Top Games office to get an exclusive first look at Full Mojo Rampage, their first action-RPG. Meet its gameplay mechanics, arts..

RuneScape 3 - Design Director Interview
2013-05-14

We caught up with Jagex design director Mark Ogilvie to learn more about the direction the popular free-to-play MMORPG is taking next.

Cloudberry Kingdom - Pwnee Studios iDÉAME interview
2013-05-14

Co-founder & programmer Jordan Fisher talks us through one of the most difficult platformers we've got to play. The maths-lover explains how difficult..

Press Start: Metro: Last Light
2013-05-14

Watch us play the Metro: Last Light on Xbox 360 from the beginning up until just under the hour mark.

PAX: Luftrausers - Interview
2013-05-14

We caught up with Vlambeer's Rami Ismail at PAX East and learned more about the indie developer's 2D dogfighter Luftrausers.

Watch Dogs - Cinematic Lead Interview
2013-05-13

We caught up with cinematic lead Lars Bonde at a preview event for Watch Dogs to learn more about his contribution to the development process and what..

GDC: Expeditions: Conquistador Interview
2013-05-13

We caught up with creative director Jonas Waever from Logic Artists to discuss the novel turn-based strategy RPG Expeditions: Conquistador.

The Bureau: Xcom Declassified - Senior Producer Interview
2013-05-13

Mike Holmes caught up with senior producer Nico Bihary to discuss the prospects of tactical third person shooter The Bureau: Xcom Declassified and how..

Call of Duty Championships Special - Getting into COD
2013-05-10

In this second episode we talk to the players at the Call of Duty Championships about how they got into Call of Duty.

Runner 2 - Alex Neuse iDÉAME interview
2013-05-10

With Runner 2 already running on many platforms, Gaijin Games' co-founder announces future DLC and talks about reception and making great sequels. Bes..

Young Justice: Legacy - Interview
2013-05-09

Doug Panter, director of marketing at Little Orbit, talks us through their video game adaptation of Young Justice.

GDC: The Drowning - Interview
2013-05-08

Ben Cousins' career spans companies ranging from Lionhead to Sony and DICE, but his next project is DeNA owned Scattered Entertainment that's attempti..

Games To Look For: May
2013-05-08

We take a look at some of the bigger releases due in the month of May including Metro: Last Light, Fuse and Grid 2.

GDC: Ubisoft - Yannis Mallat Interview
2013-05-08

We had the chance to catch up with Ubisoft Montreal and Toronto Chief Executive Officer Yannis Mallat to talk about industry trends during GDC.

PAX: Neverwinter - Jack Emmert Interview
2013-05-08

Cryptic Studios CEO Jack Emmert talked to us about the next MMORPG coming out of the studio - Neverwinter - how it came to be, the state of the MMO sc..

GDC: Infinite Crisis - Executive Producer Interview
2013-05-07

We talked to Turbine's Jeffrey Steefel about their upcoming super hero MOBA - Infinite Crisis - a game that pits various multiverse editions of your f..

GDC: Cloudbuilt - Interview
2013-05-07

We caught up with Johannes Smidelöv from Swedish startup Coilworks to discuss their promising speed run-centric platformer Cloudbuilt.

GDC: Auto Club Revolution - Interview
2013-05-07

Auto Club Revolution is a new free-to-play racing experience for PC from racing veterans Eutechnyx. We caught up with Simon Jones who tolds us more ab..

PAX: J.S. Joust - Douglas Wilson Interview
2013-05-07

We had a chance to talk tocreative designer as he describes the game, the process of trying to find a publisher and the other games in the Sportsfrien..

Pixel Toys - CEO and founder iDÉAME interview
2013-05-07

With Super Little Acorns 3D Turbo just launched, CEO Andrew Wafer and founder Alex Zoro share studio vision on retro style games and mobile vs. consol..

PAX: R.A. Salvatore - Neverwinter & 38 Studios Interview
2013-05-06

Best-selling author R.A. Salvatore talks about his most recent books set in the Forgotten Realms, their ties with Neverwinter, and the unfortunate dem..

Poll Do you want to see more DLC and online game-based content on the site?
  • 43% Yes - all and everything!
  • 21% Only for the bigger, current games
  • 36% Stick to retail/full digital releases, please.
Result
BETA +