32 Sprite Angles

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

32 Sprite Angles

Postby mancoil » Tue Jan 14, 2020 3:15 am

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 :)
mancoil
 
Joined: 08 Jan 2020
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Postby Marisa Kirisame » Tue Jan 14, 2020 5:33 am

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.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Postby Gez » Tue Jan 14, 2020 1:31 pm

If the engine did add native support for 32 sprite angles, how long before someone asks for 64 sprite angles?
Gez
 
 
 
Joined: 06 Jul 2007

Re: 32 Sprite Angles

Postby Edward-san » Tue Jan 14, 2020 2:53 pm

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)
Edward-san
Mathematics is the language with which God has written the universe. (Galilei)
 
Joined: 17 Oct 2009

Re: 32 Sprite Angles

Postby Gez » Tue Jan 14, 2020 4:56 pm

I legit would love a top image so I could play robotron on the automap. :p
Gez
 
 
 
Joined: 06 Jul 2007

Re: 32 Sprite Angles

Postby Enjay » Tue Jan 14, 2020 5:34 pm

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:
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: 32 Sprite Angles

Postby mancoil » Tue Jan 14, 2020 5:50 pm

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?
mancoil
 
Joined: 08 Jan 2020
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Postby Matt » Wed Jan 15, 2020 1:52 pm

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).
User avatar
Matt
Putting the XD into *xdeath since 2007
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: 32 Sprite Angles

Postby mancoil » Fri Jan 17, 2020 6:32 pm

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.
mancoil
 
Joined: 08 Jan 2020
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Postby Marisa Kirisame » Sun Jan 19, 2020 5:04 am

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.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Postby mancoil » Sun Jan 19, 2020 3:31 pm

Lol yeah that's what I figured. So I guess the only option at this point to patch the engine itself?
mancoil
 
Joined: 08 Jan 2020
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia with Vulkan support

Re: 32 Sprite Angles

Postby mancoil » Sun Jan 26, 2020 1:26 am

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. :(
mancoil
 
Joined: 08 Jan 2020
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia with Vulkan support


Return to General

Who is online

Users browsing this forum: Caligari87, DotBot, Semrush [Bot] and 5 guests