The Doom Physics Code

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

The Doom Physics Code

Post by Slasher »

I wasn't sure if this should go in general or in Off-Topic. It has to do with ZDoom but it's generally useless at this time.

So apparently the physics code in Doom is extremely complicated or otherwise really difficult to work with. So my question is, supposing the developers could either suddenly figure it out and be able to alter it, or if they could build their own physics code from scratch while still being able to support vanilla maps and other important features, what kind of things would be different? What might be added, what limits would be removed, what problems or annoying things would be corrected?

I've always been curious about where things could go with this.

Imagine ZDoom with a full ragdoll physics engine...
User avatar
jallamann
Posts: 2271
Joined: Mon May 24, 2004 8:25 am
Location: Ålesund, Norway
Contact:

Re: The Doom Physics Code

Post by jallamann »

it'd probably be way easier to customize hl2 to resemble doom.
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: The Doom Physics Code

Post by Slasher »

But that would be HL2, not ZDoom.
User avatar
esselfortium
Posts: 3862
Joined: Tue Sep 19, 2006 8:43 pm
Contact:

Re: The Doom Physics Code

Post by esselfortium »

I think you may have missed jallaman's point by a little bit.
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: The Doom Physics Code

Post by Slasher »

He's saying it would be really hard to create that kind of engine capabilities in Doom, right? I got that much, the point of this thread was what kind of things could be done to improve the physics in Doom, if the physics code was able to be fixed up.

The ragdoll engine was just a silly example, I wouldn't expect anything like that would happen for a long time if at all.
User avatar
Da_maniaC
Posts: 106
Joined: Sun Sep 05, 2004 3:56 pm
Location: The Netherlands

Re: The Doom Physics Code

Post by Da_maniaC »

Even though its an example you do realise that ragdoll physics actually need a ragdoll (read: 3d model) to work right? :)
User avatar
Lioyd_Irving
Posts: 427
Joined: Fri Dec 07, 2007 1:47 am
Location: Southtown

Re: The Doom Physics Code

Post by Lioyd_Irving »

Da_maniaC wrote:Even though its an example you do realise that ragdoll physics actually need a ragdoll (read: 3d model) to work right? :)
Maybe not. By linking some actors so they keep strictly the same distance between each other, you could get something pretty close...i guess.
User avatar
phi108
Posts: 976
Joined: Sat Dec 01, 2007 6:28 pm

Re: The Doom Physics Code

Post by phi108 »

It could use a sprite, if the engine could detect what part of the sprite was closest to the force, it would rotate accordingly, if sprites could rotate. Hypothetically.

And I guess it would be easier to do a rewrite than an entire cleanup, though a rewrite may miss some features. Though what the hell do I know? :P
User avatar
Lioyd_Irving
Posts: 427
Joined: Fri Dec 07, 2007 1:47 am
Location: Southtown

Re: The Doom Physics Code

Post by Lioyd_Irving »

phi108 wrote:It could use a sprite, if the engine could detect what part of the sprite was closest to the force, it would rotate accordingly, if sprites could rotate. Hypothetically.
It isn't forced to rotate... :p
He also wrote: And I guess it would be easier to do a rewrite than an entire cleanup, though a rewrite may miss some features. Though what the hell do I know? :P
Well, in fact this thread is useless...since Randy and Graf (Graf for sure, Randy is too dead to tell us what he thinks :p) will never redo the entire work just for FOUR guys, :lol:.
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: The Doom Physics Code

Post by Slasher »

It's not just for us, it's for everyone.

And the ragdoll idea was a joke. Seriously, it wouldn't happen in Doom. However I'm sure there are many things about the game physics that could be improved, if the devs knew how to work with the physics code. I've never seen it and wouldn't understand it anyway, so I don't know just how difficult it may be.
bungholio
Posts: 29
Joined: Sat Mar 22, 2008 9:08 pm

Re: The Doom Physics Code

Post by bungholio »

Da_maniaC wrote:Even though its an example you do realise that ragdoll physics actually need a ragdoll (read: 3d model) to work right? :)
Ever played with Phun? All 2-Dimensional, lots of physics (It's fun with physics). http://phun.cs.umu.se/wiki/News
skadoomer
Posts: 1026
Joined: Fri Sep 05, 2003 12:49 pm

Re: The Doom Physics Code

Post by skadoomer »

the doom physics code has been describes by the developers as a black box you feed information into and information comes back out. nobody dares touch the contents of said black box, and so it has stayed for a decade. in all seriousness, its a pain to figure out. Since doom code 'works', why spend months/years breaking and fixing something so big for minimal change (aside from all the odd instances with slopes and such)?
User avatar
Slasher
Posts: 1160
Joined: Sun Mar 16, 2008 11:17 pm
Location: California

Re: The Doom Physics Code

Post by Slasher »

It'd be one more aspect that makes zdoom more advanced than doom.
User avatar
Penguinator
Posts: 625
Joined: Mon May 22, 2006 6:55 pm
Location: Hell

Re: The Doom Physics Code

Post by Penguinator »

bungholio wrote:Ever played with Phun? All 2-Dimensional, lots of physics (It's fun with physics). http://phun.cs.umu.se/wiki/News
That is different, but yes, Phun rocks(could be a bit more complex though).
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Re: The Doom Physics Code

Post by TheDarkArchon »

bungholio wrote:
Da_maniaC wrote:Even though its an example you do realise that ragdoll physics actually need a ragdoll (read: 3d model) to work right? :)
Ever played with Phun? All 2-Dimensional, lots of physics (It's fun with physics). http://phun.cs.umu.se/wiki/News
Conversly, not all 3D models can be ragdollised: Ragdoll physics generally need skeletally animated models and not vertex animated ones (e.g MD2/3).
Post Reply

Return to “General”