Page 2 of 2
Re: Sprite rotated in 16 positions
Posted: Mon Jun 05, 2023 11:51 am
by Sol_HSA
R-Tape wrote: ↑Sun Jun 04, 2023 7:45 pm
Nice one Sol. I don't know how much work it would take, but if anyone fancies turning this into a utility for non-coders*, I'd owe them a pint!
*or perhaps rather people like me that can code z80 asm and speccy BASIC, but never took C beyond the fahrenheit to celsius converter, and then swiftly forgot even that.
It's a commandline tool. Give it a picture and how many frames the rotation should take, it pukes out .png files (and a .gif animation). I can put a windows binary somewhere if that helps? =)
Re: Sprite rotated in 16 positions
Posted: Mon Jun 05, 2023 12:03 pm
by Einar Saukas
Sol_HSA wrote: ↑Mon Jun 05, 2023 11:51 am
I can put a windows binary somewhere if that helps? =)
In your own Github page, you can click on "Releases", "create a new release", then upload the binary.
This way, your compiled binary will be available together with the source code that generated it, with a proper tag.
This will be the easier way for users to find it.
Re: Sprite rotated in 16 positions
Posted: Mon Jun 05, 2023 1:04 pm
by R-Tape
Yes please to the binary @Sol_HSA. It might help.
I really must learn about useful computers one day...
Re: Sprite rotated in 16 positions
Posted: Tue Jun 06, 2023 4:33 pm
by Sol_HSA
Sorry for the delay
@R-Tape , I added a few features =)
https://github.com/jarikomppa/spriterot ... al_release
Re: Sprite rotated in 16 positions
Posted: Tue Jun 06, 2023 6:37 pm
by R-Tape
Re: Sprite rotated in 16 positions
Posted: Fri Jun 09, 2023 4:16 pm
by highrise
very interesting. I also didn't know you could rotate an area in zx paintbrush - which tool is that?
Re: Sprite rotated in 16 positions
Posted: Fri Jun 09, 2023 5:15 pm
by Sol_HSA
Tweaked it a bit, the output looks a bit more stable now.
https://github.com/jarikomppa/spriterot ... _stability
Re: Sprite rotated in 16 positions
Posted: Sat Jun 10, 2023 10:54 am
by R-Tape
highrise wrote: ↑Fri Jun 09, 2023 4:16 pm
very interesting. I also didn't know you could rotate an area in zx paintbrush - which tool is that?
It's near the bottom left of the screen on the icon bar. The little red dot with the arrowed circle around it - when hovered over it's the 'rotate points mode'. When selected, you draw a shape freehand, then when you release the mouse, you can freely rotate it.
Re: Sprite rotated in 16 positions
Posted: Thu Jun 29, 2023 6:45 pm
by Joefish
Interesting - I just noticed that R-Type sprite demo is getting a full 180° range of rotation from one original image. It only needs two source images, rotated 180°, to do the full rotation. It doesn't require 90° pre-rotations of the original sprite. So if your shearing process can reverse the order of horizontal and vertical slices (a vertical and horizontal mirroring together gives you a 180° rotation), then you only need the one original source image.
https://cohost.org/tomforsyth/post/8918 ... with-three