Author
|
Topic: Ogre Battle (PSX) Graphics Hacking; Tips on how to handle palettes? (Read 2 times)
|
creaothceann
Guest
|
|
« Reply #30 on: December 16, 2007, 04:31:30 am » |
|
Just try it.
Load the ePSXe savestate into PPV. On the left side there's the VRAM in 16bpp mode, and on the right side is the decoded VRAM (select the decoding options in the box below). Moving the palette selection also updates the decoded image's palette.
(I've deleted my copy of TR some time ago to save disk space, so I can't try it for myself right now.)
|
|
|
|
sb iq
Guest
|
|
« Reply #31 on: December 16, 2007, 01:09:05 pm » |
|
Hmmm, I selected that area (including the black space) and tried saving it as a ZSNES savestate. I tried loading the file into TM while viewing the level file, but it wouldn't load so I had to add .zst at the end. When it did load the colors were completely off. Did I select the correct area?
I can't work on this computer for too long. The power supply short circuited a few weeks ago and it is making buzzing/popping noises right now (especially when I use graphics or CPU intensive programs like epsxe or TM), so I try to use this thing as sparingly as possible.
|
|
« Last Edit: December 16, 2007, 01:27:07 pm by sb iq »
|
|
|
|
creaothceann
Guest
|
|
« Reply #32 on: December 16, 2007, 01:58:59 pm » |
|
Hmmm, I selected that area (including the black space) and tried saving it as a ZSNES savestate.
Did it display the graphics correctly in the right panel? Note that palettes are either 256x1 (if in 8 bpp) or 16x16 pixels (in case of 4 bpp palettes). You can export only 256 colors to a savestate or palette file. I tried loading the file into TM while viewing the level file, but it wouldn't load so I had to add .zst at the end. When it did load the colors were completely off.
Sounds like it wasn't a savestate at all, or something like that. (Simply adding a file extension won't help much.) When you use the "save palette" dialog, PVV looks at the "filter selection". When it's set to "ZSNES savestate" then PVV creates a savestate; when set to "JASC palette" it creates a text file with the colors, and so on. Maybe it wasn't set to the savestate format.
|
|
|
|
sb iq
Guest
|
|
« Reply #33 on: December 16, 2007, 05:48:18 pm » |
|
I'm not sure what to make of this. Am I supposed to select that entire area? I did set it to save a a ZSNES savestate but what came out didn't have an extension.
|
|
|
|
creaothceann
Guest
|
|
« Reply #34 on: December 16, 2007, 06:14:56 pm » |
|
The red rectangle selects the VRAM data to decode. For finding graphics you can set its edges to the topleft and bottomright corners.
The green rectangle selects the palette for the decoded image. Only the first 256 colors are used.
The area in the picture is 64 pixels wide. Set the palette rectangle to a height of 4 pixels (64 * 4 = 256) and move the rectangle through VRAM, either via mouse or via the "ypos" edit control in the palette box. Move the separator between the two panels to the left, and (while you move the palette rectangle) see if you can spot graphics that have the correct colors.
PS: You need to manually add the *.ZST file extension to the filename in the dialog; PVV doesn't append it automatically. (I could add that if it's a nuisance.)
|
|
|
|
sb iq
Guest
|
|
« Reply #35 on: December 16, 2007, 06:44:37 pm » |
|
Correct me if I am wrong, but does the concept work like this: I want to find the palette of a chair texture. I select chair texture in a red box. Now I make a 64x4 green rectangle and place it on the area that is the CLUT. I move this green rectangle down the CLUT until I see the chair texture with the correct colors in the right panel. Wherever this green rectangle is, I save it as a .zst. Am I correct in my reasoning? Also, I know this sounds very script kiddie-ish, but can you somehow make it possible to move the rectangles line by line with the keyboard instead of a mouse? I tried messing around with the "ypos" number in the palette box and the green rectangle kept shrinking. If not, I guess I should work on my mouse handling precision.
|
|
« Last Edit: December 16, 2007, 06:49:40 pm by sb iq »
|
|
|
|
creaothceann
Guest
|
|
« Reply #36 on: December 16, 2007, 07:15:53 pm » |
|
Correct me if I am wrong, but does the concept work like this:
I want to find the palette of a chair texture. I select chair texture in a red box.
Now I make a 64x4 green rectangle and place it on the area that is the CLUT. I move this green rectangle down the CLUT until I see the chair texture with the correct colors in the right panel. Wherever this green rectangle is, I save it as a .zst. Am I correct in my reasoning?
Yes. Also, I know this sounds very script kiddie-ish, but can you somehow make it possible to move the rectangles line by line with the keyboard instead of a mouse? I tried messing around with the "ypos" number in the palette box and the green rectangle kept shrinking.
Just click the "ypos" value and use the "up" and "down" arrow keys. The rectangle should not shrink unless you've reached the bottom/right screen border.
|
|
|
|
sb iq
Guest
|
|
« Reply #37 on: December 25, 2007, 05:54:08 pm » |
|
Sorry to bump this up.
How exactly do I use vSNES to convert raw data into a ZSNES savestate? What menus do I go to, what buttons do I click?
|
|
|
|
creaothceann
Guest
|
|
« Reply #38 on: December 25, 2007, 06:26:40 pm » |
|
If you want to import a palette into a savestate then...
- go into the options, then Palette Viewer options, then select the format - open the Palette Viewer - click the "load" button, choose the file extension filter if necessary, and open the file
You can view raw graphics data in the Memory Viewer by loading it as a cartridge:
- rename the file extension to *.SFC or something like that so that it'll be recognized by the custom cartridge dialog OR use the standard Windows dialog for loading cartridges ("options" -> "cartridge dialog" -> uncheck "use the custom dialog") - open the Memory Viewer and select "ROM" as memory source - you should have a palette loaded, otherwise the colors will be wrong
|
|
« Last Edit: December 26, 2007, 04:05:20 am by creaothceann »
|
|
|
|
sb iq
Guest
|
|
« Reply #39 on: December 25, 2007, 09:12:09 pm » |
|
And can I do the same procedure if I wanted to import a JASC .pal palette into a ZSNES savestate?
|
|
|
|
creaothceann
Guest
|
|
« Reply #40 on: December 26, 2007, 04:03:42 am » |
|
Yes. One of the available palette formats is JASC's palette format. You can see it if you go to the options.
|
|
|
|
Lupus Erectus
Guest
|
|
« Reply #41 on: February 10, 2008, 06:00:14 am » |
|
Am I the only one to have this bug? Left is correct, right is PVV in 4bpp mode in the decoded window Looks like the nibbles are swapped :woot!:
|
|
|
|
creaothceann
Guest
|
|
« Reply #42 on: February 10, 2008, 07:31:15 am » |
|
PVV_v0.3.rarTry this new version; the test checkbox swaps the nybbles before / after the color triplets are converted to the Windows output format. But I don't think it'll work; somehow the pixel order is changed in your picture, not the byte order.
|
|
|
|
Lupus Erectus
Guest
|
|
« Reply #43 on: February 10, 2008, 08:44:12 am » |
|
Both your executables messed up the colors in differrent ways, but the pixel order is still reversed. The pic is fine, agemo's viewer shows it normally. Nice update btw :thumbsup:
|
|
|
|
creaothceann
Guest
|
|
« Reply #44 on: February 10, 2008, 10:39:42 am » |
|
Please download again, it should work now. Could you upload the savestate somewhere? (rapidshare etc.) Just curious.
|
|
|
|
|