GDC - Physics in Half-Life 2
Their high-level strategy was to invest in gameplay. They decided not to start with a simulator, and to not add features to simulation (until it became necessary). They set out to make HL2 stand apart with the depth and quality of gameplay, as opposed to just 'cool simulation'. This would require a lot of engineering work on tools and design.
A timeline for HL2 Physics:
- They looked into physics demos.
- Demos generated ideas.
- Looked into licensed physics simulators.
- Internalized physics into their design ideas.
- Built a bunch of prototypes and tools.
- Gameplay mechanics experiments.
- Solved technical issues.
- Focused design and tech.
- Solved more problems on the technical side.
- Incremented to deliver a stable system (with valuable features at each deliverable goal).
- A long polish stage before shipping the game.
- Zombie basketball -Satchel charge, trying to explode zombies into nets.
- Watermelon skeet shooting - Watermelons loaded up into an ejector, tossed into the air to be shot.
- Glue Gun - Trying out 'building things' within the game. A gun that placed glue on objects, glue attracted itself to make constructs.
- Danger Ted playset - Glue a model of a designer to a car, glue propane canisters to the car, launch the designer strapped to the car into the air.
- Toilet Crossing - Build a zipline construct with junk to cross a chasm, extra points if you rode on the toilet during the experience.
So, how can they make the gameplay more focused? What ideas are good? How many ideas do they need? How can they measure the difficulty of the gameplay? And, of course, how are the prototypes going to be turned into shippable gameplay?
They reduced design to 'training and testing'. Game design is a set of player experiences that trains the player, allows them to demonstrate a learned skill, and is presented with style. With this criteria, they had an easy way to judge ideas for merit.
Design is also engineering. Defining success, identifying constraints, generating ideas, analyzing solutions, building prototypes, testing results, measuring success, and then re-examining your constraints. Distill out the elements of game design, be creative, but you want a way to analyze your solutions and measure your progress.
This allows you to reverse engineer your experiences. I want them to do 'X'. Okay, what do they need to know before they can do X? Training skills in isolation allows the player to be prepared for future gameplay elements. When something went badly in playtesting, they could look back and see if they'd prepared the player adequately for the experience. If something isn't eventually used, or isn't working, it becomes obvious and can be cut.
Training can have obstacles, though. If the player is in combat or in peril, they're probably not learning. To improve the training experience, you make it clear it's okay to experiment. Sell forced choices tot he player with style. Suggest experiments with the the gameworld. Story should not be an obstacle to training, it should enhance the experience. It's also not distracting like combat. Players can play attention to both. (He uses the example of the sawblades in Ravenholme to chop Zombies in half.) Player value as a metric for skills and knowledge. Each piece of skill must have value, or it gets cut from the game. There is a limit to the total number of things you can teach in a game. You want to cull skills down to the fewest required. Having skills interact makes them both more valuable. Requiring skill from a player makes the skill more valuable to the player. These relationships form a sort of economy, which they refer to as 'design economy'. Allowed a framework for discussion about the process.
Of course, every design has constraints. Objects have to be breakable, with the quintessential crowbar. Physics have to interact with the core combat gameplay. Collisions should cause damage, objects should be used as cover. Physics need to extend the core puzzle gameplay.
Integrating physics turned out to be kind of difficult. Physics are kind of intuitive, but it doesn't "just work". Most designers don't completely understand the technology. Taking the design to the fullest required understanding the simulation. Game logic may place impossible requirements on the simulation. Some elements have to be one part physics and one part game design, fudging the edges.
So, they took on the design interface for the physics. They need to teach the designers about the system (decomposing machines into physics blocks). They needed to become proficient with unfamiliar units and tuning parameters, dealing with a complex set of variables that imply calculations. So, to deal with this they delivered technology incrementally (ramping up the learning curve). They needed a physics expert to support designers.
Some other problems came up, especially in the early days. Many physics engines interact with the game in discrete steps of time. Changes to the state of the system are often queued. Game rules are often discontinuities in state. They also needed to reserve space for 'inventory items' (grenades, etc.) Motion planning is a problem as well (will I hit anything when I go over there?). Collision detection without physics was a required - especially for AI. They ended up building a collision speculator for themselves so the AI would behave intelligently.
This then becomes an over-determined systems, with simulation variables, design variables, and design criteria. The 'Superman problem' - Beating people to death with tin cans. They fixed this by making the mass of gravity gun held items very low, so that you couldn't destroy a car with scrap metal.
Simulation failure also was a problem. Objects get stuck in each other, they don't settle, something that is valid for physics becomes invalid for the design. Simulator 'explosion', game design constraints that can't be satisfied, and creating objects in solid space. Plan for the simulator to fail, and be flexible with your expectations. realize you're going to need to fudge.
To sum up: Engineer to solve gameplay mechanics. Use analysis and design economy to intentionally improve the design. Tech problems remain with phsyics. Some can be solved with design, put plan on investing in the technology. Plan for failure cases and be sure to ask "is this failing as a result of bad design?"
In my Jounral already, but how is it that just about every write-up from the GDC is long and expansive except for the Iwata's keynote? Am I alone in thinking that that was far more important to the gaming industry than what the producer of Battlestar Galactica had to say?
If brevity is the soul of wit, then how does one explain Twitter?
Personally I wasn't a big Doom 3 fan. Yes, my rig could more than handle it. And a couple of times towards the beginning I got the piss scared out of me. But after that it was pretty humdrum.
To put it simply, Half-Life 2 is a moderately well rendered city, that feels vaguely real. Doom 3 is ten thousand miles of beautifully rendered corridor.
I would assume the years leading up to the licensing of the Havoc engine were spent on developing other aspects of the game.
* Audio work does not require the game engine.
* Modelling the objects and maps does not require the game engine per-se.
* Aspects of the engine can be coded without the physics engine - AI, weapons, Player->NPC interaction, etc
* Other things were going on behind the scenes at Valve besides HL2 - Steam, Creating DOD:S, CS:S, HL:S, etc
Of course, we can't deny that they probably took a day or two here or there just to duke it out in an office Counter-Strike tournament.
Frink: Nice try floyd, but you were designed for scrubbing, and scrubbing is what you shall do.
I guess I played a different version of Half Life.
7 November 2006: The day Americans realized corruption and incompetence weren't addressing 11 September 2001
I guess I played a different version of Half Life.
You did. He was talking about Half Life 2.
I quit!
To be honest, Nintendo's keynote was light on any real info. He spent more than half of the keynote going over how the game Brain Age for the DS came about, how they convinced stores to carry it, and had a live demo / showdown of the game with some "friends". The most popular part of this was when he announced that everyone in attendance would be getting a copy of the game (which turned out to be a demo).
:-)
He then talked about Metroid Prime: Hunters, and again had a live deathmatch between some of the developers. He wrapped up the DS segment with a preview of Zelda: Phantom Hourglass (which looks a combination of Link to the Past + Wind Waker).
Finally, he spent a (small) bit of time talking about the Revolution and the Sega / TurboGfx agreements.
His whole keynote stressed that pushing tech for tech's sake wasn't sustainable and that true innovation needed to happen. Nintendo is innovating with their DS, with games like Brain Age, and with the Revolution (controller, content agreements, etc.). All real information + hands-on games will be available at E3.
So, unless you really care about the life of Brain Age, you aren't missing much.
Dan
The maps are all build around physics puzzles. You have to pile up junk, or push junk off ledges, or remove junk blocking a ramp, which then lets you jump over a gate, the long fenced corridors of Ravenholme seems entirely designed around cutting zombies in half with the gravity gun.
And yeah, the gravity gun being a weapon that wouldn't exist without Havok physics.
And, ok, sure. They probably could have done the dialogue without the Havok engine. =)
I liked Doom3 better... I guess.
Like you, the first 10 times you get scared by monsters popping out of the darkness scares you. After that, you start becoming resigned to the fact that the game spawns creatures in areas you've already cleared, making the tactical aspects of the game frustrating.
When I play a FPS, I clear an area, move into that area, and from cover clear the next area, and so forth. Which is worthless when the game just arbitrarily spawns monsters behind you.
I was somewhat disappointed that the physics in HL2 fails realism testing in at least one respect; on the "bridge" level, I had the idea to run a little experiment: I jumped off the bridge, and then used the "toss" fire for a grenade to see if the grenade and "I" would fall at the same rate. That grenade shot up in the air like a balloon, relative to my descent. I wanted SPLAT-->BANG! and all I got was SPLAT. What's up with that? :)
Make me wish, if only a little bit, that I'd gone into programming instead of art/3d modelling/graphic work/etc.
Oh, what a good game programmer could do with an easily scriptable physics engine. Imagine WoW when the spells have effects on the physics, or interact with each other based on their level and element and alignment... I dream of a combination of Mage: the Ascension and Dungeons & Dragons... tell me I'm not the only one.
Ex nihilo nihil fit.
Yeah, that was the joke.
It's 5am, so sue me.
I quit!
If you own Half-Life 2 then you can download the SDK. It comes with quite a few example maps and also the code for the game logic.
e fault.aspx
There's lots more information at the developer wiki.
You can also get a free version of the modeling/animating software they used, which is called XSI.
http://www.softimage.com/community/xsi_mod_tool/d
Hopefully this is still a work in process in game physics and we see marked improvement as time goes on. Also object weights tended to be too light IMO. I really felt that objects' fall rates and throw trajectories reflected not enough weight.
Other than that, I really enjoyed what I felt was a truly innovative method of problem-solving. Way better than those old jump puzzles. +5 to Valve for the gravity gun. I want one!
Doom 3 tried to merge elements of Doom 1's nonsensical-but-fun action-horror and System Shock II's story-instensive, suspenseful survival horror. The result was something that was neither fun nor interesting, nor did it contain a good or and well-developed story.
My favorite part is the beginning, up to about 15 minutes' of play past when everything gets zombified. The rest was mind-numbingly dull. Hell was OK, I guess.
Half Life II, which I never expected to be remotely scary, managed to have more and better scares than Doom 3. What a sad state of affairs.
Someone did for them. ;)
I know, I'm mean.
Convert FLACs to a portable format with FlacSquisher
Even though it takes the same amount of time to do as to post? It's certainly your right to criticize, but if you're not willing to even become part of the community you're critizing, then I can certianly understand why your criticism is consistently criticized.
Plus, if you make an account, you can spend that extra 5 seconds foeing me and never having to see me again. ;-)
If brevity is the soul of wit, then how does one explain Twitter?
Huh. As if in the real world the enemy doesn't try to sneak up behind you, or send scouts and soldiers into areas you've just vacated. I think if you ask the guys in Iraq they'd all agree that an area once cleared should stay cleared. Would make things much easier.
Any sect, cult, or religion will legislate its creed into law if it acquires the political power to do so.
I loved the physics in HL2. My favorite part of the game was shooting down this flying thing (I don't think it was a helicoptor) in the middle of a mud flat. I fired off the last shoot to put the thing out of commission right above me and I enjoyed the moment of a victory of seeing it come back down. Until I realized that the damn thing was going to crash on me! Fortunately, I was able to get out of the way. That was a fine moment when I realized I nearly lost the game because I was rubbernecking the kill.
Read you own link, it says Havok worked with Valve for 3 years to bring about Havok 2. Kind of similar to how Half-Life's engine was built off a licensed Quake engine, no?
Demented But Determined.
the thing that got me was the sound i have a realy nice sound system.. and the EAX was amazing and god the screams that seemed to be coming from the other room of my house scared the shit out of me.. it made me shiver many times.. (i don't play it at night)
i have played it on a freinds computer with normal suround sound.. it isn't the same..
only with quality audio do you realy get that i am scared as shit feeling
'...if only "Jumping to a Conclusion" was an event in the Olympics.'
I don't mind the occasional monster popping up behind me. Especially if I notice some sort of entrance that it made to get there, I.E. crushing a vent cover, or smashing through a locked door, or whatever. I can even tolerate teleporting enemies.
The worst part, and what really killed any suspension of disbelief, were the "monster closets". Rooms whose doors look just like a wall, but which open up when you walk by, revealing a tiny room filled completely with as many monsters as it can hold (in the original Doom games, this was sometimes a dozen monsters. In Doom 3 it was usually one or two.) Not just closets, either--these are rooms that could not possibly serve a purpose, other than to hide things to pop out and scare you. It's like they're trying to remind the player that it's just a game.
Also, every out-of-the-way spot in a room contained a monster. ALWAYS. Walk in to a new area, no enemies. Huh. Oh, there are two pillars on the other side. Two zombies behind them, guaranteed. Might as well fire somethign with an area effect at the walls behind them, and get this room over with, even though I havn't "triggered" them yet. Done, next room, same fucking thing. BORING.
Just enough to throw any sense of suspense or anticipation right out the window, but not enough to give me any of the fun 100-on-1 scenarios that made the original Doom so much fun.
# Watermelon skeet shooting - Watermelons loaded up into an ejector, tossed into the air to be shot.
These remind me of a map I made years ago for the HL1 community project called 'The Spirit of Half-Life'. The map had a number of different 'sport' type activities, including a basketball and skeetshooting games using snarks. Heck I even made it keep score correctly...Ahhh those were the days...
They didn't get sent a free cookie from me.
It's not the Havok physics engine itself that made HL2 stand above the rest. In fact, a dozen more companies license this ridiculously expensive engine. However, it is how they utilize the engine that made them stand out. Many games limit the implementation of the physics engine to how the character will jump, how will the grenade fly, how will the particles of an explosion go and how will the car fly when an explosive is placed under it - of course there are more areas but they are generally limited. HL2 on the other hand, made things a little bit more realistic by implementing the physics engine on every object possible (the environment) and a little bit wackier by implementing a gravity gun.
You can't own Half Life 2.
You can only rent it, using Steam to grant you permission to play it.
Steam sucks.
Being part of the testing process of Physics engine someone else is making is not the same as creating one... sorry.
I gave them about 50 cookies, and it was well worth it, best game I ever played. One of the, if not the only game I've ever finished.
My wife enjoyed it more than I did, she would beg me to play just so she could watch. She said it was like an interactive movie for her, where she could "help me" try to figure things out.
Modesty is one of life's greatest attributes
Any sufficently advanced physics engine is indistinguisible from scripted events.
I actually had this exact same experience... I'm glad I'm not the only one!
It seems that with the low framerate I had to kind of "creep" through the game... which, I think, is what they really wanted you to do.
With the high framerate (pretty much replaced most of my computer) I felt free to kind of "run-and-gun" and it lost a lot of the suspense factor.
Friedmud
It's funny, because this feature is in Quake III.
Projectiles will spawn with the same speed and direction you have when firing them.
It's not on by default though, and I don't think people enable it because it seriously messes up aiming with the rocket launcher.
Yup, you should see my windows login screen, all the logins are the names of games I have.
Change is certain; progress is not obligatory.
Your HEV suit is denser than the grenade?
Don't thank God, thank a doctor!
If memory serves, yes it's scripted that it'll fall and explode the way it does, but the place it falls and the way it settles is done in realtime.
Don't thank God, thank a doctor!
I'm trying to construct a Rube Goldberg device (see http://www.rubegoldberg.com/html/gallery.htm) in Hammer, which is Half-Life's level designer, but I'm running into one major problem. The HL2 physics engine does whatever the heck it wants! I'll load up a map, and the entire device will work fine, but then I'll load up the SAME map again and, for example, all the dominoes will immediately fall over, as though hit by a sudden gust of wind! Even more oddly, objects affected by a trigger will respond variably. A barrel, suspended in midair, that is dropped via a remote trigger, will land with a different orientation each time the trigger is activated! This indeterminateness makes it nearly impossible to create an extensive physics project in Hammer. Garry's Mod, interestingly, seems to be more reliable, but it takes away some of the satisfaction (it's basically like using a wizard).
If anyone has any idea how to fix this problem, or even any more knowledge of the situation, -please- let me know.
My only complaints about half life 2 are the total time spent playing, and the forced puzzel solving. There was one point in the game where I was not allowed to progress due to an invisible wall until I solved the puzzel the "proper" way (as in blow up a storage bin and race up a ramp, vs jumping over the baricades and racing up a ramp.)
;P I enjoyed the game otherwise, short or not.
If you're going to have an environment where physics are supposed to play into the game, you shouldn't prevent the level completion with invisable walls. If they get there they got there!
I'm infinately more sore about the second detail
No, I am not an English major. My posts are subject to typos and incorrect grammar. Do not expect perfection.
"In 1999, world physics was a new technology that hadn't been integrated into the genre before."
That's odd, given that Trespasser was released in 1998.
http://en.wikipedia.org/wiki/Trespasser_(game)
Sadly, about all it was used for was naff box-stacking puzzles, with an interface that made stacking boxes extremely hard.
That's cool if it's done right, like in F.E.A.R., where the enemy actually does flank you (and you can plan accordingly). It's not ok when it's done in an arbitrary fashion like D3, where the monsters appear out of nowhere, for no reason. That just provokes feelings of unfairness (as opposed to 'damn, that was my own fault!') and breaks immersion...which is not a good thing in games.
-- Waht? Tehr's a preveiw buottn?
At least the flashlight is atomic-powered and doesn't need batteries.
The higher the technology, the sharper that two-edged sword.
Ok I am offtopic here (but at little pain for community) I got modded over-rated, how? I haven't even been modded before i got modded overrated. It would suck if i got modded just because my opinion of halflife2 is too high, and the other guy didnt agree.
Mod-points aren't meant for giving your opinion, replying is for that, mod points are just for trying to get the "better" posts to stand out more.
in the faq
Btw I admit this post wasn't so great, but choose the reason for modding me down better!
Yeh but I doubt in realy life you'll clear out a supply closet, walk 5 meters, and turn around to see 10 more living guys appeared in the supply closet out of nowhere and are readdy to mess you up something fierce.
I'm sure the occasional room might have a trap door or something but I doubt that happens often.
Yeah - it made me wonder what possible advantages were seen in the actual corridor lighting which was less reliable than the torches. How come UAC didn't duct-tape torches to the walls every couple of meters? Would have been better uptime.