RotSprite - better pixel art rotation

A place for people with an interest in developing new shmups.
Post Reply
User avatar
worstplayer
Posts: 861
Joined: Sun Jun 17, 2007 6:48 pm
Location: Slovakia

RotSprite - better pixel art rotation

Post by worstplayer »

There was recently some discussion here about rotating pixel art, reached conclusion that it's not possible, and guess what I just found:
RotSprite
...and it works really well.
You still need to do some manual cleanup, but it's way better than rotation in other apps, which fucks up sprites beyond any repairs.
"A game isn't bad because you resent it. A game is bad because it's shitty."
User avatar
wondersonic
Posts: 253
Joined: Wed May 12, 2010 3:55 pm

Re: RotSprite - better pixel art rotation

Post by wondersonic »

Incredible! :shock:

I've tried it as I'm currently in a major up-scale phase of my sprites and guess what, the result is astonishing:

Image

THANKS!!!
User avatar
Udderdude
Posts: 6294
Joined: Thu Feb 16, 2006 7:55 am
Location: Canada
Contact:

Re: RotSprite - better pixel art rotation

Post by Udderdude »

Nice tip, thanks. Now only if I could get the source code and make it generate the rotate sprites at runtime. :P
User avatar
worstplayer
Posts: 861
Joined: Sun Jun 17, 2007 6:48 pm
Location: Slovakia

Re: RotSprite - better pixel art rotation

Post by worstplayer »

I can't find source either, but here's a high level overview
http://forums.sonicretro.org/index.php? ... 8848&st=16

TL;DR: expanding sprite with Scale2x to 8 times the original size, rotating it, shrinking it again, and replacing flat areas of wrong color with "dumb" rotation.

Doesn't sound like something you'd want to do in realtime. Maybe if you stored sprites in already expanded form...but then it'd take up as much memory as just using prerendered rotations.
"A game isn't bad because you resent it. A game is bad because it's shitty."
User avatar
Udderdude
Posts: 6294
Joined: Thu Feb 16, 2006 7:55 am
Location: Canada
Contact:

Re: RotSprite - better pixel art rotation

Post by Udderdude »

worstplayer wrote:Maybe if you stored sprites in already expanded form...but then it'd take up as much memory as just using prerendered rotations.
That's what I meant, it would save on having to store dozens of extra .png files for no paticular reason. Only have to generate them once at run-time.
User avatar
null1024
Posts: 3823
Joined: Sat Dec 15, 2007 8:52 pm
Location: ʍoquıɐɹ ǝɥʇ ɹǝʌo 'ǝɹǝɥʍǝɯos
Contact:

Re: RotSprite - better pixel art rotation

Post by null1024 »

Oh wow. The results of this are absolutely great!
Rotation is almost flawless, but scaling is noticeably off [but still looks better than a doing just a straight hq2x filter [and it does arbitrary sizes, yay]].

This is easily one of the coolest little tools I've seen, shame there's no Linux version, it dies in Wine on the actual conversion step, had to run it in a VM.
Come check out my website, I guess. Random stuff I've worked on over the last two decades.
Post Reply