Editing GimConv
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
=Description= | =Description= | ||
'''GimConv. | '''GimConv v1.20h''' was released with '''p3tcompiler v2.00''' as part of the [http://uk.playstation.com/ps3/support/settings/detail/linked235336/item85346/Download-PlayStation-3-Custom-Theme-Guidelines/ PS3 Custom Theme Toolbox] | ||
It manages the [[Multimedia Formats and Tools | 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 | |||
{{Boxcode|content=<syntaxhighlight lang="c"> | |||
{{Boxcode| | |||
//================================================================ | //================================================================ | ||
// gimconv configuration | // gimconv configuration | ||
Line 289: | Line 257: | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
The | 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 | ||
{{Boxcode|content=<syntaxhighlight lang="c"> | |||
option -ps3 { | |||
{{Boxcode| | |||
option - | |||
format_style = psp | format_style = psp | ||
format_endian = big | format_endian = big | ||
pixel_order = normal | pixel_order = normal | ||
} | } | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
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) | |||
{{Keyboard|content='''gimconv.exe tex_psn.png -o tex_psn.gim --ps3'''}} | |||
{{Keyboard|content= | |||
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 | |||
{{Keyboard|content='''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''' | |||
{{Keyboard|content=rcomage.exe ...}} | |||
<!-- rcomage.exe compile explore_plugin_full.xml explore_plugin_full.rco --pack-hdr zlib --zlib-method default --zlib-level 9 ...INCOMPLETE_IS_MISSING_GIM_SETTINGS--> | |||
<!-- and i cant make this 2 options work, is driving me nuts, grrr --> | |||
*Other stuffing | |||
* | **speculation about animated images support http://endlessparadigm.com/forum/showthread.php?tid=5054 | ||
** | **note the option '''-viewer (start gimview.exe when process ends)''' points to an official gim viewer that doesnt exists in the public release | ||
** | **[http://us.playstation.com/support/manuals/psp/pspguides/ PSP Custom Theme Toolbox] admits .GIM files as input, but doesnt includes a gim converter | ||
** | |||
*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 ? | ||