Adventure Game Studio

Community => General Discussion => Topic started by: Snake on Tue 24/08/2010 22:42:11

Title: Sit on it and rotate...
Post by: Snake on Tue 24/08/2010 22:42:11
I'm wondering if there are any programs out there that I can make a selection (or select the entire image) and rotate it smoothly?

What I mean is, say I make a selection of a character's head and I want to tilt it up slightly. After making the selection, I can "grab" one of the corners and move it around in a circle, resulting in getting the exact (or near exact) degree I visually need.

The only example, and only thing I've ever experienced to do this, is the default program that came with my old Hewlett Packard all-in-one scanner. After scanning the image you could grab one edge of the image and rotate it at will.

Is there any free program out there that can do this? I hate having to manually type in degrees. I want to move the selection/image myself.

For the record, I have not searched for any such program yet. I chose to go directly here because if any one knows a program that can do this, and which one is the best and or most simple, it would be the AGS community.
Title: Re: Sit on it and rotate...
Post by: Ryan Timothy B on Tue 24/08/2010 23:08:19
Photoshop can easily do this by pressing CTRL+T (transform) while on a layer, or selection. Then just rotating the corner.

Obviously though, that once it has been rotated, it will degrade if you tried to rotate again. So you'd have to save the original shape if you wanted to rotate it multiple times.
Title: Re: Sit on it and rotate...
Post by: Alun on Tue 24/08/2010 23:10:05
One popular free program that comes to mind that does this is GIMP (http://www.gimp.org).  It has a rotate tool (which you can get to either by clicking on its icon or by pressing Shift-R) that lets you grab a selection and rotate it arbitrarily the way you describe.

[EDIT: Whoops, wrong key; it's Shift-R, not Control-R like I wrote at first.]
Title: Re: Sit on it and rotate...
Post by: Andail on Wed 25/08/2010 11:04:09
Just rotating an image or a part of it can be done in virtually any image editing program, but the tricky part is to avoid it getting anti-aliased.
So especially for pixel art this is a bit of a hassle.
Title: Re: Sit on it and rotate...
Post by: GreenBoy on Wed 25/08/2010 11:09:56
A handy tip is to index the image before you turn it.  This can lead to a slight change in colours if you've been using the paintbrush tool rather than than pencil tool thou.
Title: Re: Sit on it and rotate...
Post by: ThreeOhFour on Wed 25/08/2010 11:11:52
Quote from: Andail on Wed 25/08/2010 11:04:09
Just rotating an image or a part of it can be done in virtually any image editing program, but the tricky part is to avoid it getting anti-aliased.
So especially for pixel art this is a bit of a hassle.

GraphicsGale does it nicely with pixel perfect-ness.
Title: Re: Sit on it and rotate...
Post by: GarageGothic on Wed 25/08/2010 11:36:37
If it's pixel art, rotsprite (http://info.sonicretro.org/RotSprite) should supposedly have a very good algorithm for it. Doesn't have a preview function, but if you know the angle you can batch convert a bunch of frames at a time.

Edit: This page (http://wiki.wesnoth.org/Rotate_Pixel_Art_Without_Blurring) explains how you can get better rotation results in PhotoShop and other drawing applications by upscaling the sprite before rotating and scaling back to original size. That's also the technique rotsprite uses.
Title: Re: Sit on it and rotate...
Post by: Dualnames on Wed 25/08/2010 11:53:31
Quote from: GarageGothic on Wed 25/08/2010 11:36:37
Edit: This page (http://wiki.wesnoth.org/Rotate_Pixel_Art_Without_Blurring) explains how you can get better rotation results in PhotoShop and other drawing applications by upscaling the sprite before rotating and scaling back to original size. That's also the technique rotsprite uses.

Wonderful technique! I always had this problem with rotating sprites. I would have never guessed that solution. Thanks a lot for that GG! :D
Title: Re: Sit on it and rotate...
Post by: Wonkyth on Wed 25/08/2010 13:26:13
Duals, I've got all the body parts for that nakkid lady I was supposed to be animating rotated at 3 degree intervals with RotSprite if you want them.

OT: I heard somewhere that GraphicsGale uses the RotSprite algorithm for it's rotation, can anyone confirm or refute this?
Title: Re: Sit on it and rotate...
Post by: Snake on Wed 25/08/2010 15:16:59
Thanks for the input, guys. I'll be trying out RotSprite. I've got it downloaded and ready to go when I need it, which will be pretty soon.

"One of the best things about TROICA is the nakkid ladies... if I do say so myself." - JimReed

\\--EDIT--//
Come to find out, RotSprite is not what I'm looking for. I want to rotate the image or part of an image myself in "real-time" by clicking on the corner of the selection and moving my mouse.
I'm not very good at explaining myself, I know.
Title: Re: Sit on it and rotate...
Post by: Dualnames on Wed 25/08/2010 15:46:41
LOL Snake. :D

"TROICA is like porn. Who cares about the plot?!"
Title: Re: Sit on it and rotate...
Post by: Snake on Wed 25/08/2010 16:00:12
Okay, so I searched real quick and found Image Rotator 1.0 (http://mac.softpedia.com/progDownload/Image-Rotator-Download-79186.html). It's free and the closest thing to what I'm talking about. Please download and try it out for a second ;)

\\--EDIT--//
...for some reason I can't figure out how to save. I save to .gif to the desktop, but nothing shows up :(
Title: Re: Sit on it and rotate...
Post by: tzachs on Wed 25/08/2010 17:28:55
Quote from: Dualnames on Wed 25/08/2010 15:46:41
LOL Snake. :D

"TROICA is like porn. Who cares about the plot?!"

Hey! Plot is essential to good porn!
If I don't 'buy' the characters, then I won't buy, period.
Title: Re: Sit on it and rotate...
Post by: Snake on Wed 25/08/2010 18:12:56
Quote from: tzachs on Wed 25/08/2010 17:28:55
Quote from: Dualnames on Wed 25/08/2010 15:46:41
LOL Snake. :D

"TROICA is like porn. Who cares about the plot?!"

Hey! Plot is essential to good porn!
If I don't 'buy' the characters, then I won't buy, period.

I like it when they just get to the point and fuck play adventure games.