GimConv

From PS3 Developer wiki
Revision as of 17:47, 2 March 2015 by Sandungas (talk | contribs) (moved from "Multimedia Formats and Tools" page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

GimConv v1.20h was released with p3tcompiler v2.00 as part of the PS3 Custom Theme Toolbox

It manages the GIM image conversions to use inside Resource Container (RCO) files, PlayStation 3 Theme (P3T) files, etc...

Usage

Config file

And this is the original configuration file, not modifyed

Code Sample

The option -ps3 seems to be wrong, the images inside explore_plugin_full.rco from firmware 4.70 has been made by using this 3 options

Code Sample

You can edit the GimConv.cfg file and use GimConv.exe to load the group of options by the option -ps3 in command line this way (or let rcomagegui.exe decide, but im not sure what it does)

Type This
'''gimconv.exe tex_psn.png -o tex_psn.gim --ps3'''

Another way is by specifying the options strictly from command line (using the names that appears inside the GimConv.cfg file)

This is the most accurate way to specify options for GIM conversion, it doesnt uses groups but the result is the same, in this example is a command for gimconv.exe directly

Type This
'''gimconv.exe tex_psn.png -o tex_psn.gim --format_style psp --format_endian big --pixel_order normal'''

But there is other way, by "redirecting" GIM settings from rcomage.exe ---to---> gimconv.exe at compiling time (see the "compile" help in rcomage page). There are 2 options in rcomage specific for this task, named: --gimconv-cmd and --gimconv-flags

Type This
rcomage.exe ...
  • To identify the settings that was used to build a GIM file:
    • Use rcomage to make an extraction of the contents without conversion of images (this way the GIM are extracted raw)
    • Use rcomage to make another extraction of the contents with conversion of images (this way the images are converted to PNG when extracted)
    • Use gimconv to convert the PNG ---to---> GIM by the old method of test-error by trying some of the options availables that appears in gimonv.cfg
    • Use a hexeditor to compare the original GIM extracted in step 1 with the rebuilt GIM from your test, there is no need to make accurate comparisons, just an overview of how the data is ordered
    • When the data seems similar, make a hash comparison of both, original and rebuild should be exactly the same data (is posible to create a GIM exactly like the original)

GIM formats used in PS3

  • In PS3 it seems to be at least 2 types of GIM images, both included inside rco's, and in some cases both types in the same rco
    • explore_plugin_full.rco (and other explore_plugin_***.rco ?): (--format_style psp --format_endian big --pixel_order normal)
    • xmb_plugin_normal.rco (and other xmb_***.rco ?): (uses some variant of dxt5)
    • more ?