Author
|
Topic: Invert all the colors in a file? (Read 770 times)
|
sb iq
Guest
|
|
« on: November 11, 2007, 07:16:09 pm » |
|
Let's say I ripped the textures out of a game and saved it as raw data in a separate file. And then I loaded it up in Tile Molester.
I want to change the colors on these textures so that all the colors are inverted. Perhaps blue becoming red, red becoming blue, etc. All the colors changing to it's opposite color.
Is there a way to do this? Also, I want to change all the colors in that file all at once. I don't want to pick out every dot and attempt to deduce what it's opposite would be. That would take forever.
|
|
|
|
akadewboy
Guest
|
|
« Reply #1 on: November 11, 2007, 10:38:33 pm » |
|
Color Replacer in Tile Molester
red->unused color blue->red unused color->blue
|
|
|
|
sb iq
Guest
|
|
« Reply #2 on: November 11, 2007, 11:18:01 pm » |
|
Yeah, I've been using that the entire time, but I want to invert the colors of ALL colors.
For example, all the dots that are a certain dark shade of blue to become its opposite color, all the dots of certain light shade of blue to become its opposite color, etc. without me having to pick out every single dot and then figure out the opposite color because that would take forever.
In essence, I want to know if something can do that automatically for me.
lol 200th post.
|
|
« Last Edit: November 11, 2007, 11:28:59 pm by sb iq »
|
|
|
|
creaothceann
Guest
|
|
« Reply #3 on: November 12, 2007, 02:53:22 pm » |
|
What system?
|
|
|
|
Ryusui
Guest
|
|
« Reply #4 on: November 12, 2007, 04:44:56 pm » |
|
You could export your textures into a paint program, use the Invert tool (even MSPaint has one of these), then reimport using Tile Molester...
|
|
|
|
sb iq
Guest
|
|
« Reply #5 on: November 12, 2007, 06:10:46 pm » |
|
What system?
PlayStation You could export your textures into a paint program, use the Invert tool (even MSPaint has one of these), then reimport using Tile Molester...
How do I do this in Jasc Paint Shop Pro 9? The data is raw data (.raw, or no extension at all), so it won't load up in MSPaint.
|
|
|
|
creaothceann
Guest
|
|
« Reply #6 on: November 12, 2007, 09:54:02 pm » |
|
You need to apply binary inversion to the lower 15 bits of each 16-bit word that contains the color information, i.e. the palette(s) or the gfx data itself. (Inverting all bits might work, too.)
You still need to find the size & location of each graphic though, which is probably very hard, and a tool that does the work.
|
|
|
|
Kitsune Sniper
Guest
|
|
« Reply #7 on: November 12, 2007, 09:54:59 pm » |
|
How do I do this in Jasc Paint Shop Pro 9? The data is raw data (.raw, or no extension at all), so it won't load up in MSPaint.
PSP 7 has RAW as an available format in the Open File dialog. I don't see why PSP 9 wouldn't. *shrugs*
|
|
|
|
Ryusui
Guest
|
|
« Reply #8 on: November 12, 2007, 09:56:19 pm » |
|
By "export" I meant "open in Tile Molester and Copy To File".
|
|
|
|
sb iq
Guest
|
|
« Reply #9 on: November 13, 2007, 12:35:21 am » |
|
Ah, I think I see what you mean now. And by reimport you mean the "Paste From..." command?
The textures I wish to rip out are 8-bit. What is the best format to export it to? I want to preserve as much of it as possible if I have to save it in a different format.
|
|
« Last Edit: November 13, 2007, 02:38:54 am by sb iq »
|
|
|
|
Gemini
Guest
|
|
« Reply #10 on: November 13, 2007, 10:27:06 am » |
|
If you have 8 bit textures, forget to use Tile Molester's import/export function: it's useless. Do as creaothceann told you: find all the palette data and invert the first 15 bits for each color.
|
|
|
|
sb iq
Guest
|
|
« Reply #11 on: November 13, 2007, 09:06:59 pm » |
|
Hmmm. Is there an existing program or maybe some function in a hex editor that can do this? Going through the palette and changing the first 15 bits of every color from 0 to 1 (and vice versa) sounds like even more work than just messing around with the color replacer. Especially since the palette I found was 32 kb (ugh, because of sub-palettes).
|
|
« Last Edit: November 13, 2007, 09:15:24 pm by sb iq »
|
|
|
|
Gemini
Guest
|
|
« Reply #12 on: November 13, 2007, 11:03:40 pm » |
|
Translhextion can. Select the clut you want to invert, Selection->Fill selection with, set the assign operator to ^= and input FF7F.
|
|
|
|
der Warst
Guest
|
|
« Reply #13 on: November 14, 2007, 09:30:46 pm » |
|
I had a similar problem with tile molester a while ago. I was pretty close to giving up, But after searching around a little more, I found the VeeBee Rom Data inserter which worked pretty well for my needs. It's a little command line tool to insert any Data into a Rom at the offset of your choice. Was SNES, though, but if you have a way of converting your inverted picture to the right format, I'd say give it a try.
It must be somewhere around (I think i got it with some starterpack for SNES hacking, but I'm not really sure about that). It might be in the Utilities Database as well. On my Computer, It is in a folder named ROM_GRAPHIX, so the Zip file may have the same name. If you don't find it, send me a Pm.
der Warst
|
|
|
|
|