collapse

Author Topic: Rotating and Scaling sprites - the easy way  (Read 4950 times)

0 Members and 1 Guest are viewing this topic.

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Rotating and Scaling sprites - the easy way
« on: April 17, 2013, 03:42:49 PM »
This info is so useful that needs to be shared with everyone. Thanks to nedflandeurse for finding this gem.

There are some times that we want to scale or rotate sprites to make new ones, and most graphic programs will just ruin the sprites - by blurring then or by messing up the pixels.

The solution is a free program called RotSprite, which have unbelievable results.

What it is?


Quote
RotSprite is a sprite rotation and scaling utility developed by Xenowhirl. It outperforms most professional graphics software (such as Photoshop or Paint Shop Pro) when rotating sprites through an angle other than 90° or one of its multiples. Typically, other graphics editors will apply anti-aliasing or use a primitive nearest-neighbor method when rotating images, which produces results that are ugly or unsuitable for sprites.

As Xenowhirl has himself said, this utility has been released because "the walking and running frames in Sonic 1, 2, and 3 all need 45 degree rotated equivalents" and "making rotated versions of sprites is usually a pain in the butt, because most programs that rotate a sprite will antialias it (which blurs it and messes with the colors)". RotSprite uses a special algorithm instead which tries to preserve the original sprite's feature by "guessing" pixel patterns.

As an additional feature, RotSprite can also resize sprites (and it does a very good job also for this task).

Several major sceners found this utility very useful.

How it works?


The program interface is very simple. You choose which image you will use (accepts many formats), the output name (just outputs BMP) then you will see this:


First box: you will enter the angle of the rotation (if you don't want rotation, just put 0). Try to use integer numbers, and remember graphic programs works better in 15º subdivision, so any multiple (15º, 30º, 45º and so on). Remember that is in counter-clockwise, so if you wanna rotate 45 CLOCKWISE, you need to enter 315º or use a negative value (-45º).

Second box: Its the scale value. If you doesn't wants a scale, leave it alone (do not use 0). Again, the same 15 multipies will work here, but multiples of 10 will work too. 1.000000 means 1 (normal size), 2.000000 doubles it, 0.500000 half size and so on.

Scale down works better than scale up. But the result is better than any other tool.

Third box you can enter how much frames do you want, and the final rotation and it will made as much frames as needed.

Examples

Rotating




Scale (zoomed for better view)


Video Demo





DOWNLOAD here: http://info.sonicretro.org/RotSprite
Alternate host: http://www.sendspace.com/file/xdoeyq
« Last Edit: April 18, 2013, 10:01:12 AM by Rage »



Offline ulisan

  • Initiate
  • **
  • Posts: 150
  • Last Login:July 23, 2019, 03:26:53 AM
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #1 on: April 17, 2013, 03:51:49 PM »
Thanks for share this awesome tol, dude!  :w00t:

 Even PS can screw some pixels when rotate

Offline Hellzone

  • Character Creator Newbie
  • Forum Member
  • ***
  • Posts: 278
  • Country: United States us
  • Last Login:April 11, 2019, 09:08:42 PM
    • Skype - defcon_awesome
    • ItzHellzone Gaming
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #2 on: April 17, 2013, 03:52:41 PM »
Great Find.  ^^(PM)^

Offline ExeLord

  • Smirking mage
  • RMM Contributor
  • ****
  • Posts: 1469
  • Country: Russian Federation ru
  • Last Login:October 16, 2024, 07:55:45 AM
Re: Rotating and Scaling sprites - the easy way
« Reply #3 on: April 17, 2013, 04:17:04 PM »
Looks useful, thanks, will give it a try :thumbsup:
What consumer society is?

"Where greyness prevails, the black always take the power." (c) "Its Hard to be God" - brothers Strugatskie.

Offline Excahm

  • MFFA/C.R.O.M. Stage Maker, Needless Fanboy, Lando's Headache and Rage's GFX Brother and Somewhat a Spriter.
  • Forum Member
  • ***
  • Posts: 485
  • Country: Mexico mx
  • Last Login:April 24, 2019, 05:23:39 PM
  • Ready to shut the f*ck up your mount!
    • Mugen Team Mexico
Re: Rotating and Scaling sprites - the easy way
« Reply #4 on: April 17, 2013, 05:15:09 PM »
Indeed....

Offline dan_aracena

  • Initiate
  • **
  • Posts: 72
  • Last Login:November 21, 2015, 05:38:03 PM
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #5 on: April 17, 2013, 05:24:19 PM »
EXELENT .:O:. ..... YOU CAN'T EVEN IMAGINE HOW HELPFULL THIS IS TO ME .... Right now i am working on Krypto WIP, but i decided to create the sprites from draws and original images (to make it unique) .... But my problem was exactly this one, from one draw i needed to get: head, cape, tail, legs, etc etc, part by part ... and rotate and join them again to create new sprites ..... and with Paint Shop pro the result its a mess .......

Well .... THANKS A LOT MAN!!!!!!  ^:)^

(I tested it .... amazing results!!! ...)

Offline laspacho

  • RMM Project Leader
  • Infinity Administrator
  • *
  • Posts: 5416
  • Country: United States us
  • Last Login:November 11, 2024, 05:47:15 PM
  • Robot Master
    • Infinity Mugen Team
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #6 on: April 17, 2013, 05:25:11 PM »
Nice, I'll have to try this out.  This could be very useful.

Offline .Batzarro.

  • IMT Content Architect
  • *
  • Posts: 2672
  • Last Login:July 10, 2024, 08:42:43 AM
Re: Rotating and Scaling sprites - the easy way
« Reply #7 on: April 17, 2013, 05:52:18 PM »
I thought this tool was already well known, been using it since I can remember. Forgot who linked me to it originally but was out in the open.

We stopped checking for monsters under our bed when we realized they were inside of us.
(click to show/hide)

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #8 on: April 17, 2013, 05:53:40 PM »
Not, it wasn't. There are two topics (one here and one at MFG) but both wasn't showing everything the tool could offer, plus the topics tittles was very generic.

Something so cool need to have a more explicit tittle :)

Offline DEMONKAI

  • The Visionary and IMT's
  • Contributor
  • ****
  • Posts: 8335
  • Country: United States us
  • Last Login:October 11, 2022, 09:44:18 PM
  • Never limit your vision as a creator!!
    • DTHECHEMIST
    • D THE CHEMIST
    • Demonkai's Mugen
Re: Rotating and Scaling sprites - the easy way
« Reply #9 on: April 17, 2013, 07:09:57 PM »
Yeh i had this for a hot while now...the old old CVG mugen site had it up at the time a year ago er so...
that sh*t is a great tool..ived used it on my wip numerous times and it doesnt jack up your sprite when it does it

I believe all spriters and creators should have it in the stash
Lots and lots of supers so f*ckin what

HAIL CROM!!

Offline Rage

  • IMT Princess
  • IMT Content Architect
  • *
  • Posts: 7307
  • Country: United States us
  • Last Login:November 21, 2024, 12:47:47 PM
  • The trend setter
Re: Rotating and Scaling sprites - the easy way
« Reply #10 on: April 17, 2013, 08:46:08 PM »
 ^^(PM)^ useful indeed

I AM THE PRINCESS. LOVE ME!!!     
Proud supporter of CROM                 DONT CLICK THIS LINK...

Offline Beto

  • MUGEN Content Architect
  • *****
  • Posts: 1353
  • Country: Brazil br
  • Last Login:July 07, 2024, 02:31:41 PM
  • Action!!
    • My Youtube page
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #11 on: April 17, 2013, 09:24:01 PM »
Isso pode facilitar muito minha vida em breve :)

Offline Tha Lando ( Le CROM )

  • The coming return of the Omega Erro Sennin of CROM!
  • IMT Content Architect
  • *
  • Posts: 6415
  • Country: United States us
  • Last Login:October 18, 2024, 02:58:07 AM
  • The King Crom. Sprite HD Artist
    • Crom Interactive
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #12 on: April 17, 2013, 09:33:36 PM »
Yeh i had this for a hot while now...the old old CVG mugen site had it up at the time a year ago er so...
that sh*t is a great tool..ived used it on my wip numerous times and it doesnt jack up your sprite when it does it

I believe all spriters and creators should have it in the stash

hey is this the same program you told me about last year ? if so i think i never got to get it but i totally forgot the name of it.  o.O#

Now i see the deeper explanation of it Big O , i can now see i have needed this tool for a long dang time! now i can actually resize some sprite rips i have to be what i need and finally rotate crap the way i need! Thanx for the link and i am gonna bookmark this page up soi can see i do that resize right.    :thumbsup:


ok Kai, you can smack me in the back of the head and say...I TOLD YOU SO! lol

Offline altoiddealer

  • New Member
  • *
  • Posts: 7
  • Last Login:January 31, 2019, 09:53:45 PM
  • Hi! I'm new!!
Re: Rotating and Scaling sprites - the easy way
« Reply #13 on: April 18, 2013, 12:29:35 AM »
THANKS!!!  ^^(PM)^

I'm logged in and for some reason it still wouldn't show the link  :-??

I did a Google search and found it of course... but also came across a program that the developer claimed to produce even better results: SolarStrings Sprite Rotater

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #14 on: April 18, 2013, 08:36:44 AM »
hum, you mean this? https://github.com/salmonmoose/SpriteRotator
The results are great too



nice find!

Offline nedflandeurse

  • Initiate
  • **
  • Posts: 23
  • Last Login:October 31, 2024, 08:34:52 AM
Re: Rotating and Scaling sprites - the easy way
« Reply #15 on: April 18, 2013, 09:10:43 AM »
Thanks for speading it Ilu, Since I'm to lazy to do it :P

Hope it will help all of you to make sprite work far easier.

This is an exemple of the kind of edit I've done in the past weeks.
When upscalling, I highly recomand you to edit small details like face to have descent results.
« Last Edit: April 18, 2013, 09:18:43 AM by nedflandeurse »

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Rotating and Scaling sprites - the easy way
« Reply #16 on: April 18, 2013, 10:06:51 AM »
Thanks for the video, Princess.

Offline Rage

  • IMT Princess
  • IMT Content Architect
  • *
  • Posts: 7307
  • Country: United States us
  • Last Login:November 21, 2024, 12:47:47 PM
  • The trend setter
Re: Rotating and Scaling sprites - the easy way
« Reply #17 on: April 18, 2013, 10:19:47 AM »
Thanks for the video, Princess.
What Olu is saying is the first post was updated with a demo video

I AM THE PRINCESS. LOVE ME!!!     
Proud supporter of CROM                 DONT CLICK THIS LINK...

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


D2TD VS Showcase Thread by D2TD
[November 17, 2024, 08:36:39 AM]


Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]

* IMT Calendar

November 2024
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
[24] 25 26 27 28 29 30

SimplePortal 2.3.5 © 2008-2012, SimplePortal