Model Pitch Across GZDoom 2.x <-> 3.x

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
Xabis
Posts: 63
Joined: Wed Mar 06, 2013 7:15 pm

Model Pitch Across GZDoom 2.x <-> 3.x

Post by Xabis »

Hello,

A project I am working is making use of models, some using USEACTORPITCH to angle them, however it seems that how the pitch value is interpreted between 2.x and 3.x is different.

In 2.x, the pitch rotates backwards:
v2.4.0
v2.4.0
in 3.x, the pitch rotates forwards:
v3.5.1
v3.5.1
We are trying to support as low a version as possible to keep mod compatibility as high as possible.

Is there a property I am missing to keep the pitch in sync across versions, or will we have to make a decision on which version family to support?
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: Model Pitch Across GZDoom 2.x <-> 3.x

Post by Caligari87 »

I cannot speak for the problem at hand, but on a related note: You should not target old versions unless you plan on also supporting old bugs. If a mod cannot run in newer GZDoom, then report it, because it might be a regression bug! While 100% backwards compatibility may not always be possible, compatibility regressions are taken seriously and GZDoom tries very hard not to break old mods.

8-)
Xabis
Posts: 63
Joined: Wed Mar 06, 2013 7:15 pm

Re: Model Pitch Across GZDoom 2.x <-> 3.x

Post by Xabis »

It has been... difficult to make the jump to 3.x, because the performance of the 3.x family is abysmal on older hardware, which a team member is currently stuck with.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Model Pitch Across GZDoom 2.x <-> 3.x

Post by Graf Zahl »

The model pitch had several serious bugs in older versions. This is what you are experiencing. The main problem was that one function returned an inverted pitch. (ZDoom uses negative-up and positive-down, the model code was written for the inverse) And instead of doing it right there were several workarounds being added to make it look "right" for the inverted value but really only hid the problem for the narrow use cases that were considered.

When this was finally fixed it was inevitable that some stuff would break because it was just dead wrong in the engine's context.
So sorry, there is no way to make pitched models look right in 2.x.
Xabis
Posts: 63
Joined: Wed Mar 06, 2013 7:15 pm

Re: Model Pitch Across GZDoom 2.x <-> 3.x

Post by Xabis »

understood, thanks for the explanation.
Post Reply

Return to “Assets (and other stuff)”