Not logged in. · Lost password · Register
Forum: NFGgames NFGgames.com Games (General) RSS
Ripping sprites from MAME - the hard way
Reply
Avatar
Reply · Quote (Administrator) #1
User title: Top Chaos Wrangler
Member since Sep 2007 · 1359 posts · Location: Brisbane, AU
Group memberships: Administrators, Members
Show profile · Link to this post
Subject: Ripping sprites from MAME - the hard way
I like to rip fonts and sprites from games, and I'm occasionally asked how I do it.  Well, here's the guide!

The Intro
The process is not hard, but it can be time consuming.  The short version is, basically, to make all the background pixels a single colour leaving only the sprite, which you can easily grab. 

The Process
[Image: /grafx/games/sprite-rip-6.png] PaintShop Pro makes this very easy, with a colour-replacement tool (icon at left).  Apparently a similar tool exists in Photoshop, called the 'magic eraser'.  According to Twyst, 'it has the option to turn off contiguous pixels, so it'll replace all pixels of the same colour.'

Select one background colour, and a new colour that's not used anywhere in the game, and double-click the image to replace the colours.  After doing this for all the background colours, you'll have nought left but the sprite.

Step 1
First, isolate the sprite you want.  It's easiest to work with a small area, and if you have the luxury of making the screenshot yourself, try and put the sprite on a background with few colours.  Here I've simply dragged a selection around the ThunderForce ship:
[Image: /grafx/games/sprite-rip-1.png]

Step 2
You can see here the results after double-clicking once, turning all of one background colour to a bright, easy to see pink.  You'll often get lucky, and have a game that doesn't use quite the same colour for a background black as a sprite black, and you can whip through this process without trouble.  Occasionally though the sprite will have the same colour as the background, and double-clicking will make pink some pixels you would rather stayed un-pink.  You'll have to watch for this, but it's easiest if you simply put the sprite on a neutral background.  In this case (ThunderForce AC) I had to play to level 3 to find a background that worked.
[Image: /grafx/games/sprite-rip-2.png]

Step 3
It doesn't take long until you've got a pink box with a sprite in it. 
[Image: /grafx/games/sprite-rip-3.png]

Step 4
Using PSP's magic-wand tool (I'm sure there's a photoshop equivalent but I don't know what it is) you simply select the pink area, then invert the selection, and presto: you can copy-and paste that sprite!
[Image: /grafx/games/sprite-rip-5.gif]

Step 5
And here it is, the ThunderForce AC ship, which you can save and enjoy!
[Image: /grafx/games/sprite-rip-5.png]

The Painful Bit
When ripping some sprites you can end up with a huge mess of pink bits that must be selected individually, as they're not adjacent to each other.  This Felicia image was a massive, huge pain in the ass, 'cause every diagonal segment and curl of hair left me with an orphaned pink pixel.  It took forever to select them all (there's no 'select all of this colour' option in PSP, dammit).
[Image: /grafx/games/Felicia-burned.png]
[Image: http://nfggames.com/system/arcade/special.php/b-d/bp-5/y-kof97/z-10/x-40C%20is%20too%20hot%20for%20humans./.png]
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Reply
RSS RSS Feed for this thread
This board is powered by the Unclassified NewsBoard software, 20090606-dev, © 2003-8 by Yves Goergen
Current time: 2010-02-09, 22:36:25 (UTC +10:00)