Doom gravity metrics

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Doom gravity metrics

Post by Matt »

After 1 second of falling from a standstill, a typical gravity 1.0 actor will be falling at a speed of 35 units per tic.

This translates to 35x35 units per second - 1225.

On Earth, ignoring air resistance, an object after falling one second will be falling at a speed of 9.8 metres per second.

If we suppose Doomguy's 56 units to be a little less than 2m, we can rough out 60 units to be 2m - or 30 units as 1m.*

This means that if Doom's gravity were made similar to IRL, after 1 second of falling a gravity 1.0 actor would be going at 30x9.8 units per second - 294.

Am I missing something? Is Doom's gravitation acceleration really up to four times what we see in real life!?


*(The current dev version of HD sets this at 37 but that's only because it emphasizes horizontal distances and multiplies the relevant formula by 1.2 while also presupposing a much shorter doomguy.)
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Doom gravity metrics

Post by Gez »

The first tic of freefall, you fall at a speed of 2, instead of just 1. So after a full second, you reach a speed of 36. Does it make sense? No, but that's how it works.

See [wiki]falling damage[/wiki] for a lot of nerdery about it, including a chart and a table.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: Doom gravity metrics

Post by Matt »

My point is trying to figure out how much the end result corresponds or not with its IRL equivalent.

Anyway, I'm messing around with reduced gravity here and I think I get why it looks so weird - in normal play everything's just this tiny little action figure in a box in front of us and the faster falling speed just makes more sense for something that we intuit is very small.

I think I'll be going ahead with this change in HD.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Doom gravity metrics

Post by Gez »

Yeah, the proportions in Doom are all out of whack (a well-known fact) so there's a lot of stuff that isn't really realistic. Like famously the torso-level view height, or Doomguy's jet-powered running speed.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Doom gravity metrics

Post by Enjay »

And the fact that every map unit is 1.2 times taller than it is wide.

Yet somehow it all comes together to create one of the most addictive gaming experiences ever because it feels so right, despite being so very wrong.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Doom gravity metrics

Post by Graf Zahl »

Trying to do IRL in Doom is either doomed to fail or failed to Doom, choose whatever makes more sense. :P
User avatar
Rachael
Posts: 13561
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Doom gravity metrics

Post by Rachael »

Doom Guy is just Superman in disguise. Except without the laser eyes and the flying.

And his kryptonite is bad level design and sadistic/evil/both gameplay modders. ;)

That is my story and I am sticking with it!
User avatar
InsanityBringer
Posts: 3386
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Doom gravity metrics

Post by InsanityBringer »

I once made a mod for novelty purposes where the walk speed was fixed to roughly 1 m/s (using 8MU as one foot) and realistic gravity (accounting for the 1.2 aspect ratio scaling on the z axis) and it was on that day I realized how large Doom levels truly are. I also made one with realistic Phobos gravity, which required basically loading a grappling hook mod or something to actually stay attached to the floor.
User avatar
NeuralStunner
 
 
Posts: 12326
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Doom gravity metrics

Post by NeuralStunner »

As far as metric scaling, I had settled on the grid-friendly 32u to 1m. Works best for new projects, at 56u Doomguy comes out to 1.75m or 5'9". If you apply aspect correction unfortunately makes it utterly ridiculous, he'd be pushing 7ft. Maybe he comes from Death Valley.
User avatar
determin1st
Posts: 57
Joined: Wed Oct 06, 2021 11:23 am
Contact:

Re: Doom gravity metrics

Post by determin1st »

i did some bullet speed calculations recently, it's assumed to fly horizontally but i figured out some numbers..

assuming 32 units = 1 vertical meter,
the doomguy as 1.75m tall (56 units)

acceleration is 9.8m/s, so, let's calculate the velocity at 2nd second

v = 9.8 * 32 = 313.6 units/sec

so generally you're right, but in manual of the speed https://zdoom.org/wiki/Actor_properties it says that ticks are about projectiles, not the monster/player, so, i suppose some tests should be done to log actual velocity, maybe there is another formula, because speed=1225 is faster than my calculated muzzle velocity speed=510 of the 440 m/s .357 magnum bullet :shock:
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Doom gravity metrics

Post by Caligari87 »

Ultimately anything attempting to use "real world" units in Doom must make some concessions because the maps, physics, and visuals were definitely not designed to meet real world specifications in any way. Aspect ratio scaling, viewheight, and player speed all muck with this.

As one might expect, Hideous Destructor seems to have gotten things as close as it's possible to get within the confines of standard Doom levels and graphics.

Obviously for standalone projects it's less of a concern as you can set up the metrics however you want, disable aspect scaling, etc. Personally I went with 64mu / meter and then set up a bunch of constant values so I can do stuff like (175*CM) and have it Just Work™ without too much thought.



8-)
User avatar
Reactor
Posts: 2091
Joined: Thu Feb 03, 2011 6:39 pm
Location: Island's Beauty, Hungary

Re: Doom gravity metrics

Post by Reactor »

Well don't forget that the first Doom took place on Phobos, Deimos and eventually Hell...gravitational pull might be a tad different there ;)
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Doom gravity metrics

Post by Caligari87 »

Doesn't really track, because by any reasonable metric that assumes Doomguy is close to human size (even with warped and inconsistent sizes), gravity in Doom is stronger than Earth gravity by a lot ... Which is the whole point of this thread. Hell is a fictional place so it doesn't count, but Phobos and Deimos are definitely much smaller than Earth so gravity would be a lot weaker.

Alternatively, it's a game and they designed something that plays well, realism be damned.

8-)
User avatar
determin1st
Posts: 57
Joined: Wed Oct 06, 2021 11:23 am
Contact:

Re: Doom gravity metrics

Post by determin1st »

you only have to track 35 ticks, maybe twice, to determine the velocity obtained by Y axis, so you'll get the magic number of 1.0 gravity. then you may tune it to the real world value or to the unreal world value. the Q is that number, maybe ill measure it later.. have to make bullet ballistics first :P
User avatar
TheRailgunner
Posts: 1556
Joined: Mon Jul 08, 2013 10:08 pm

Re: Doom gravity metrics

Post by TheRailgunner »

So, idea: what if someone scaled almost everything down - levels, actors, projectile speeds, the player's viewheight, and so on - to a ratio that allows Doom's gravity (probably also adjusted) to approximate the real-world acceleration of 9.8m/s?

Would roughly 1/4th scale work here? Working from the "32u=1m,56u=1.75m Doomguy" ratio, would a 8u meter with a 14u-tall Doomguy at a viewheight of 10 or 11 be usable as a more realistic starting point (with DG normally being 56u tall with a viewheight of 41)?

Sorry if there's something I'm missing here, I just woke up.
Post Reply

Return to “General”