The Daily Click ::. Forums ::. Klik Coding Help ::. Good Rotation in MMF?
 

Post Reply  Post Oekaki 
 

Posted By Message

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
15th August, 2004 at 18:30:04 -

Okay, everybody knows about the horribly pixelly mess that occurs when you try to rotate an active object by an angle that's not divisible by 90 degrees, right? So, are there any legally free graphics programs that can properly create rotated versions of a sprite?

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
15th August, 2004 at 18:53:07 -

You can do it with external GIFs and the active picture object... is that any help?

 
http://www.davidn.co.nr - Games, music, living in America

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
15th August, 2004 at 19:10:23 -

Yeah but you'd still get the horrible pixelly mess. I think what Noyb means is some kind of filtering when rotating, like what you'd get on Photoshop? You could always try using the trial versions of Photoshop or Paint Shop Pro, there isn't any free programs like that that I know of, I just always used Photoshop.

 
Image

_rydin



Registered
  06/06/2004
Points
  317
16th August, 2004 at 00:28:26 -

I think, without money, you're just going to have to learn to like it. Sorry man .

I know when you use a powerfull graphics editor, it doesn't get all messy because it adds anti-aliasing, although I do suppose if you turned the function off, it might come out a bit better than mmf/tgf's picture editor.

 
"Computers in the future may perhaps only weigh 1.5 tons."
-Popular Mechanics, forecasting the development of computer technology, 1949

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
16th August, 2004 at 06:47:42 -

Last time I tried, the Active Picture object had very nice smooth rotation. No pixelly messes...

 
- Tigerworks

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  50116

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
16th August, 2004 at 09:52:50 -

Or the Alpha Channel object that came with MMF Bonus Pack 2

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
16th August, 2004 at 09:55:28 -

Without filtering or interpolation, you're always gonna get pixels going astray when rotating, but with the active picture object, you can rotate in 360 degrees so it's less noticable.

 
Image

Agent_K64



Registered
  17/03/2003
Points
  69
16th August, 2004 at 10:43:16 -

One word: GIMP. (Ok, fine, GIMP is more than one word - it's an abbreviation of GNU Image Manipulation Program...)

http://www.gimp.org/

I'm not 100% sure if it will let you rotate images, but it most likely will. I've been hearing very good things about this program, a friend told me that it is almost as powerful as Photoshop. Oh, and for those who do not know what GNU often means... this program is completely free.

 
Evil omg~!

Long John Kickbag



Registered
  26/08/2002
Points
  148
16th August, 2004 at 13:06:24 -

I've written some code that can do pixel replication, bilinear and bicubic (I'm not sure how much better quality this would give than bilinear (if any) but it was easy to implement) rotation.

Edit: Here's a very simple example of it (doesn't show bicubic because it wasn't implemented when i did the picture). www.clicksplat.com/Image1.jpg

Image Edited by the Author.

 
Resize! - www.clicksplat.com/comparison.html

Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
16th August, 2004 at 14:51:55 -

The alpha channel object works fine for me.

 
n/a

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
16th August, 2004 at 16:27:09 -

Erik, you should make an extension which does it... I'd love to be able to rotate sprites without having to pre-store the animations, and without having to use an alpha channel.

 
http://www.fzgames.com

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
16th August, 2004 at 19:32:40 -

The higher quality your rotate, the slower it will run (at runtime).
But it would be nice for the animation editor in MMF to have a built in high quality rotater for edit time rotating.

 
- Tigerworks

Long John Kickbag



Registered
  26/08/2002
Points
  148
16th August, 2004 at 20:04:55 -

I'd rather not make an extension, I'm not too familar with the MMF extension SDK (but if someone else wants to then I can give them the source, it's not in C++ though). What's wrong with using the Alpha Channel object though?

 
Resize! - www.clicksplat.com/comparison.html
   

Post Reply



 



Advertisement

Worth A Click