Main > Software Forum

Question on Hardware Stretch and -artworkfilledges (for SirP or others)

Pages: << < (4/9) > >>

SirPoonga:


--- Quote from: Howard_Casto on June 29, 2004, 10:17:13 pm ---16:9 (capcom titles, battletoads and a few others)

--- End quote ---

Hehe, old argument between HC and me.  I think Battletoads is meant for 4:3, at 16:9 the text is squished and other things look fugly.  But HC said he say a 16:9 battle toads, I assume that is a weird prototype.  I played on a real battle toads game quite abit in high school and it was 4:3.

Tiger-Heli:


--- Quote from: SirPoonga on June 29, 2004, 07:55:04 pm ---
--- Quote ---Final Question: Artworkfilledges works perfectly for games where the side art border of the bezel (on each side) is less than 21.875% of the total bezel width.  What would it take (besides more money than I'll earn in my lifetime) to modify (or create a new option) which for artwork larger than 21.875%, would only show the artwork that was on the screen-side edge of the 21.875% limit?
--- End quote ---
I am confused on what you are asking.

--- End quote ---
Ok - Try the following - (assuming 800x600 is set full screen in windows already), set -resolution 800x600, -swithchres=1, -screen_aspect = 4:3, -artworkfilledges on.

Run Galaxian - The game looks perfect because of the bezel proportions mentioned above.

Run Centipede - The game is full screen vertical and proper aspect ratio, but there are black vertical borders on the sides b/c the bezel art is narrow on the sides, but this is acceptable to me.

Run Gyruss - The game and art are displayed at 800x510, and there are 45 pixels of black border above and below the screen.  Presumably the aspect ratio is correct, but b/c -artworkfilledges uses the entire bezel artwork and b/c the artwork is too wide to fit in the remaining 43.75% of the screen width, the game is squished vertically.

Turn off -keepaspect and run Gyruss.  This is closer to what I am after.  The game is full screen vertically, and the artwork fills the screen horizontally.  However, the aspect ratio is wrong (the game is 400x600 pixels instead of 450x600) b/c the artwork renderer extends to the side edge of the bezel artwork.

NOTE:  This effect will be worse as the side border of the bezel image gets wider.

What I would like the function to do is display the Gyruss game image at 450x600, and the artwork at 175x600 on each side of the image (lopping off 25 pixels from the extreme right and left sides of the bezel art, in this case only.)

Tiger-Heli:

Okay, you may not be able to follow this, or it may help.

First - Galaxian is NOT perfect - with no artwork, the game measures 446x600 pixels instead of 500x600, with -artworkfilledges, the game measures approx 476x600, but the proportions seem to be correct so I don't see how this is.

Here is how to manually fix the art to get the same effect.  NOTE: width refers to the horizontal width of the image.  The artwork is rotated, so I am really meaning height in this case.  SirPoonga's calculator relies on the literal image (as it appears, so that is what is used).

Assume:
image is centered horizontally (bezel is same width on either side of image)
Z equals modified artwork width
Y equals game screen width on artwork (and is known)
X equals modified side bezel width on artwork

then

Z=2X+Y

and we want X/Z = .21875 so

X/(2X+Y)=.21875, or

X = .21875*(2X+Y), or

X = .4375*X + .21875*Y or

.5625x = .21875Y or

X = .388888 (repeating) Y  Substituting for Z, then

Z = 2X+Y, or

Z = 2*(.388888*Y) + Y, or

Z = 1.7777777777777777 (repeating) Y

Opening the gyruss art file,

The mask width is 792 pixels, so Z equals 1408 pixels.

The original bezel width is 1635 pixels, so the offset is (1635-1408)/2 or 113 (.5) pixels and the original bezel height is 1188 pixels (unimportant).

We crop both the artwork and the mask files to 1188x1408 with an offset of 113 and save.

Then the values from SirP's calculator for point 4 are 1188,1408
Point 5 is 176,304 and
Point 8 is 1140, 1100

Plugging these is and adding 2 to point 5 and losing 2 to point 8 to keep the image inside the screen, we get an artfile value of:

-0.1854,-0.3864,1.0521,1.3914

This works the same a Galaxian, the image with -keepaspect and -artworkfilledges is full-screen, and the game is 475x600.

I just would like to be able to do this without modding the art files.

FWIW!!!!!!






Howard_Casto:


--- Quote from: SirPoonga on June 30, 2004, 12:31:18 am ---
--- Quote from: Howard_Casto on June 29, 2004, 10:17:13 pm ---16:9 (capcom titles, battletoads and a few others)

--- End quote ---

Hehe, old argument between HC and me.  I think Battletoads is meant for 4:3, at 16:9 the text is squished and other things look fugly.  But HC said he say a 16:9 battle toads, I assume that is a weird prototype.  I played on a real battle toads game quite abit in high school and it was 4:3.

--- End quote ---

Nope, the operator had it adjusted wrong.  Operators don't read manuals so they pretty much adjust everything to 4:3 regardless of if it's the proper aspect.  

SirPoonga:

Ok Tiger, I know all the calculations, I've done them several hundred times.  I still don't get whatyou are trying to do?

Pages: << < (4/9) > >>

Go to full version