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? =)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.
The latest ZXDB database update will be applied today at 1530 BST. The site goes down for around 30 minutes whilst this happens.
Sprite rotated in 16 positions
Re: Sprite rotated in 16 positions
http://iki.fi/sol - my schtuphh
https://github.com/jarikomppa/speccy/ - 48k speccy dev
https://github.com/jarikomppa/specnext/ - specnext dev
https://github.com/jarikomppa/speccy/ - 48k speccy dev
https://github.com/jarikomppa/specnext/ - specnext dev
- Einar Saukas
- Bugaboo
- Posts: 3161
- Joined: Wed Nov 15, 2017 2:48 pm
Re: Sprite rotated in 16 positions
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
Yes please to the binary @Sol_HSA. It might help.
I really must learn about useful computers one day...
I really must learn about useful computers one day...
Re: Sprite rotated in 16 positions
Sorry for the delay @R-Tape , I added a few features =)
https://github.com/jarikomppa/spriterot ... al_release
https://github.com/jarikomppa/spriterot ... al_release
http://iki.fi/sol - my schtuphh
https://github.com/jarikomppa/speccy/ - 48k speccy dev
https://github.com/jarikomppa/specnext/ - specnext dev
https://github.com/jarikomppa/speccy/ - 48k speccy dev
https://github.com/jarikomppa/specnext/ - specnext dev
Re: Sprite rotated in 16 positions
Cheers! This is great - it makes it easy and quick to get a framework to clean up. Here's an example of a simple and complicated sprite, obvs the latter needs more cleaning up than the former.
Re: Sprite rotated in 16 positions
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
Tweaked it a bit, the output looks a bit more stable now.
https://github.com/jarikomppa/spriterot ... _stability
https://github.com/jarikomppa/spriterot ... _stability
http://iki.fi/sol - my schtuphh
https://github.com/jarikomppa/speccy/ - 48k speccy dev
https://github.com/jarikomppa/specnext/ - specnext dev
https://github.com/jarikomppa/speccy/ - 48k speccy dev
https://github.com/jarikomppa/specnext/ - specnext dev
Re: Sprite rotated in 16 positions
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
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
https://cohost.org/tomforsyth/post/8918 ... with-three