32 Sprite Angles

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
mancoil
Posts: 7
Joined: Wed Jan 08, 2020 3:39 am
Graphics Processor: nVidia with Vulkan support

32 Sprite Angles

Post by mancoil »

I would like to create characters with 32 sprite angles. Does anyone know of a way to do this currently using ZScript or would there need to be a change in the engine code to allow for it?

Thanks in advance for any info... and for not questioning my sanity :)
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: 32 Sprite Angles

Post by Marisa the Magician »

At that point wouldn't it be better to just use models? This sounds kind of overkill.

It can be done with ZScript, using the SPRITEANGLE flag and adjusting the spriteangle variable on tick, with the sole limitation that it would break with mirrors and whatnot.
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: 32 Sprite Angles

Post by Gez »

If the engine did add native support for 32 sprite angles, how long before someone asks for 64 sprite angles?
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: 32 Sprite Angles

Post by Edward-san »

Moreover, how long before someone actually asks for support to sprite angles in the longitudinal direction? (a top and a bottom sprite image sounds cool, tho)
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: 32 Sprite Angles

Post by Gez »

I legit would love a top image so I could play robotron on the automap. :p
User avatar
Enjay
 
 
Posts: 26533
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: 32 Sprite Angles

Post by Enjay »

Top angles have been asked about before. In fact, I think that someone managed an ACS/DECORATE implementation of some sort a few years back.
Gez wrote:robotron
I loved Robotron. Both my local pub and my local arcade had a machine. I swear I just about dislocated both shoulders hauling on those twin joysticks. :lol:
mancoil
Posts: 7
Joined: Wed Jan 08, 2020 3:39 am
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Post by mancoil »

Marisa Kirisame wrote:At that point wouldn't it be better to just use models? This sounds kind of overkill.

It can be done with ZScript, using the SPRITEANGLE flag and adjusting the spriteangle variable on tick, with the sole limitation that it would break with mirrors and whatnot.
Ok cool - from what I've read about SPRITEANGLE everything seems to refer to actually reducing the number of rotations an actor has. I assume there's a way to get a sprite image name outside of the built-in rotations from the WAD and pass that to SPRITEANGLE?
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: 32 Sprite Angles

Post by Matt »

Gez wrote:I legit would love a top image so I could play robotron on the automap. :p
A bit off topic, I think it would already be playable if the actor triangles were all colour coded whether it's an inventory item, a projectile, a monster, a player, another kind of shootable, or none of the above (drawn at bottom, lower contrast if not marked as solid).
mancoil
Posts: 7
Joined: Wed Jan 08, 2020 3:39 am
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Post by mancoil »

Marisa Kirisame wrote:At that point wouldn't it be better to just use models? This sounds kind of overkill.

It can be done with ZScript, using the SPRITEANGLE flag and adjusting the spriteangle variable on tick, with the sole limitation that it would break with mirrors and whatnot.
I've been reading up on Zscript but I still can't figure out how I could use spriteangle to increase rather than decrease the number of rotations. Are you able to give me a bit more detail on how it would work? I'd really appreciate any help you can give :)

As for using models - I'm afraid that simply would not work. There is a very specific look I'm aiming for and increasing the angles beyond 16 is an absolute necessity.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: 32 Sprite Angles

Post by Marisa the Magician »

Actually, about that, I just realized that spriteangle is still limited to the max number of rotations supported by the engine (16), it's just there for setting the angle manually (which I used to hack up a sprite with 4 rotations). I'm dumb.
mancoil
Posts: 7
Joined: Wed Jan 08, 2020 3:39 am
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Post by mancoil »

Lol yeah that's what I figured. So I guess the only option at this point to patch the engine itself?
mancoil
Posts: 7
Joined: Wed Jan 08, 2020 3:39 am
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Post by mancoil »

Anyone able to confirm this? That it would take an engine code change to achieve this? My further fiddling with zscript has not turned up anything sadly. :(
Post Reply

Return to “General”