[Resolved] Model pitch & roll work in UDM, not GZDoom (USEACTORPITCH & USEACTORROLL used)

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom 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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
violgamba
Posts: 41
Joined: Wed Apr 10, 2024 4:53 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10

[Resolved] Model pitch & roll work in UDM, not GZDoom (USEACTORPITCH & USEACTORROLL used)

Post by violgamba »

I'm hitting an odd issue, and haven't found a solution to in the forums, wiki or ZScript references. After adding USEACTORPITCH and USEACTORROLL to a model, I can successfully rotate instances of it on all axes within Ultimate Doom Builder. However, when running the map in GZDoom, the model instances are all rendered as if their actor's Pitch and Roll values were at 0. I've confirmed that the model actor's Pitch and Roll in GZDoom are the same as in UDM. I've also set NOGRAVITY for the model's actor, just in case.

Does anyone have any idea why this might be happening?


I'm attaching a PK3 demonstrating what I'm seeing. If you open the PK3's map in UDM, you can see that the instances of the chair model are rotated to different values along all 3 axes, but in GZDoom, the chairs are rendered as if the Pitch and Roll were 0. ALSO, I set it up so that if you "use" any of the chairs in GZDoom, a console output will tell you what the Actor's Angle, Pitch and Roll values are set to.
Attachments
ModelRotationDemo.pk3
(28.54 KiB) Downloaded 7 times
Last edited by violgamba on Mon May 20, 2024 4:14 pm, edited 1 time in total.
violgamba
Posts: 41
Joined: Wed Apr 10, 2024 4:53 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10

Re: Model pitch & roll work in UDM, not GZDoom (USEACTORPITCH & USEACTORROLL used)

Post by violgamba »

I posted this issue to both the ZDoom forum and the DoomWorld forum. I received a solution on the DoomWorld forum and wanted to post it here for others with the same issue.

Any settings applied in a Model definition only apply to the "Frame" lines that come after them. When you use USEACTORPITCH and/or USEACTORROLL make sure these lines are above any "Frame" lines. If they aren't then they won't have any effect on the way that GZDoom renders the model. UDB tries to mimic GZDoom, but in this regard it simply doesn't match.
Post Reply

Return to “Scripting”