Dietrich
09-24-08, 10:18 AM
I'm trying to put a new background onto one of the menus in SH3 (data\Menu\Net\Session.tga). As there is some text on this background, I've noticed that this particular screen has been scaled. Note that I am using GWX-2.1 as a base, here.
To give you an example, here is a small fragment of the screen as it appears in my graphics editor, and then as it appears if I capture it as a screenshot from the game:
http://img133.imageshack.us/img133/7241/sessionclearor3.png http://img530.imageshack.us/img530/3220/sessiondistortedzm1.png
Note how the text on the right is slightly distorted? Well, I know why that is... it is because of the entry in the data\Menu\menu_1024_768.ini file. In particular, the entry is:
[G29 I23]
Name=Background
Type=1030;Static bmp
ItemID=0x290000FF
ParentID=0x29000000
Pos=0,768,1024,768
Materials=1
Display=2
Mat 0=data/menu/net/session.tga
MatFlags=0x1
TexFmt=0x9
Now, I've gone and checked the documentation on this (Reference = http://www.subsim.com/radioroom/showthread.php?t=111832) and the "Display=2" seems to be the problem. This seems to be a stretching option, and by having it set this way, the image is distorted slightly as the game attempts to rescale it.
So, I then tried setting it to "Display=0", which is the "no stretch" option. However, this causes a rather bizarre effect... the background then only occupies the top part of the screen. It is as if it is being squeezed to only use up the top portion of the screen, and the bottom half is left black. It is almost as if the graphic should somehow be normalised to 1024x1024 or something.
I've tried looking for another full screen graphic that has "Display=0", but they are all either small or are stretched.
Can anyone help, or even suggest something I might be able to try?
Many thanks!
To give you an example, here is a small fragment of the screen as it appears in my graphics editor, and then as it appears if I capture it as a screenshot from the game:
http://img133.imageshack.us/img133/7241/sessionclearor3.png http://img530.imageshack.us/img530/3220/sessiondistortedzm1.png
Note how the text on the right is slightly distorted? Well, I know why that is... it is because of the entry in the data\Menu\menu_1024_768.ini file. In particular, the entry is:
[G29 I23]
Name=Background
Type=1030;Static bmp
ItemID=0x290000FF
ParentID=0x29000000
Pos=0,768,1024,768
Materials=1
Display=2
Mat 0=data/menu/net/session.tga
MatFlags=0x1
TexFmt=0x9
Now, I've gone and checked the documentation on this (Reference = http://www.subsim.com/radioroom/showthread.php?t=111832) and the "Display=2" seems to be the problem. This seems to be a stretching option, and by having it set this way, the image is distorted slightly as the game attempts to rescale it.
So, I then tried setting it to "Display=0", which is the "no stretch" option. However, this causes a rather bizarre effect... the background then only occupies the top part of the screen. It is as if it is being squeezed to only use up the top portion of the screen, and the bottom half is left black. It is almost as if the graphic should somehow be normalised to 1024x1024 or something.
I've tried looking for another full screen graphic that has "Display=0", but they are all either small or are stretched.
Can anyone help, or even suggest something I might be able to try?
Many thanks!