XMB Layouts

From PS3 Developer wiki
Revision as of 17:15, 26 November 2014 by Sandungas (talk | contribs)
Jump to navigation Jump to search

Description

This files contains a list of numeric values that defines the positions, sizes, etc of most/all the items displayed in XMB. Are divided in 4 resolution modes, most specifically by his heigths: (272, 480, 720, and 1080), and 2 types: (factor, and grid).

Factor ones contains around 143 values, and Grid ones contains around 4545 values (grid ones are much bigger). As a reference for known pixel sizes... all the values of the Content Information Files images appears in one or more of the "XMB Layout Tables"

XMB Layout Tables
Path Filename Usage Resolution Aspect Ratio
dev_flash/vsh/etc/ layout_grid_table_1080.txt
layout_factor_table_1080.txt
1080p and 1080i for Full HD displays 1920x1080 16/9
layout_grid_table_720.txt
layout_factor_table_720.txt
720p for HD displays 1280x720
layout_grid_table_480.txt
layout_factor_table_480.txt
480p and 480i for ED and SD displays 640x480 4/3
layout_grid_table_272.txt
layout_factor_table_272.txt
PSP/PSV/PC Remote Play 480x272 non standard
  • 576p and 576i (the ED and SD displays for PAL regions) sems to be managed with the same XMB Layouts than 480p and 480i (the ED and SD displays for NTSC regions)


http://manuals.playstation.net/document/en/ps3/current/settings/videooutput.html

http://manuals.playstation.net/document/en/ps3/current/imgs/videooutput004.jpg

Speculation

scalation factors?

Others values are decimal (scalation factors?), e.g:

The first 8 lines of layout_factor_table_720.txt
1
0
0
1280   <--- width
720    <--- heigth
0.6667 <--- scalation factor ?
0.6667 <--- scalation factor ?
0.6923 <--- scalation factor ?

Other images ?

In case of an standard image usually appears the width and the heigth in 2 consecutive lines, e.g:

In line 77 of: layout_factor_table_1080.txt
486
405
320
176
...320x176 is the size of ICON0.PNG and ICON1.PAM
...486x405 is the size of ICON2.PNG and ICON3.SWF (used in PS3_EXTRA disc structure)
...Is the only place inside this "layout tables" files where appears a 320 and in the next line a 176 consecutivelly

Some of the images are defined with 4 values, where the last one (unk2) is negative (width, heigth, unk1, unk2), e.g:

In line 2210 of layout_grid_table_1080.txt
1000
560
290
-157
310
250
115
-69
... 1000x560 is the size of PIC0.PNG... the value 290 (unk1) and -157 (unk2) seems to be associated with this image
... 310x250 is the size of PIC2.PNG... the value 115 (unk1) and -69 (unk2) seems to be associated with this image

Notes

  • Some of the items in XMB are defined by a central point (not by an square composed by width and heigth where the image must fit)... like the main category icons of the XMB that uses a central point to scalate the icon proportionally in all directions when the cursor is focused on his column. Actually this icons are originally 128x128 pixels, but when displayed in XMB are reduced to half his size (64x64 or so), and when focused are displayed a bit bigger (100x100 or so)
  • The most easy values to recognize are the resolution of the screen, always at top of the list (in the first lines)
  • Sizes and positions of main XMB category icons should be at top of the lists because are something generic and the rest of XMB items is built around them
  • When making tests with this files keep in mind the safest ones are the modes your TV doesnt uses by default and/or remoteplay layouts because after a reboot the PS3 doesnt loads them (only loaded when enabling remote play from XMB, not at boot time)... also keep in mind that the other layouts should be common with the "recovery menu" and "service mode" display modes... and you can change your TV resolution in the options in XMB settings column, then return to default resolution with a button combo at boot time