1200p with optional vertical crop in Amiga/Vision core

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

I really love using the Amiga Vision package - recently I upgraded to a 1200p monitor which is perfect for 240p content. A lot of games on Amiga Vision have vertical crop which is great, but it is designed for 1080p displays.

Is it possible to have something similar but for 1920*1200 monitors this way I can use more of the screen estate?

Thanks!

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

There’s currently no trivial way to apply this to 1200p without an intense amount of manual work — which we did for 1080p/4K since that’s the overwhelming majority of displays — but unlikely that we’d do another set of hand-tuned presets for 3000+ games for less common resolutions.

I’ll investigate and see if there’s a way to script something, but not sure we have enough information on the Amiga side to send a different preset to MiSTer’s scaler.

I would love to see auto-crop in MiSTer’s scaler, but that is not something it offers (yet?). To be fair to MiSTer, this is also not properly working in any existing Amiga emulator, but we are currently working with emulator developers to rectify that.

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

Let's say I want to try it for a couple of games, by doing it manually myself. Is this possible? Any instructions I can follow? One game that I tested on 1200p that would really benefit from vertical crop is the bog standard Cannon Fodder (if you want me to test as an example).

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

F12Audio & VideoAdjust Screen Position, then use the arrow keys (I believe Shift is also a modifier) to adjust the scaling.

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

Hi Limi thanks for helping out. Two things:

  1. I followed your instructions, but I only can make the picture very sightly bigger. After I enlarge it but a few pixels the picture starts to "hide" behind an invisible black frame. Is this normal? I was hoping I could go to the edge of my monitor. See attached photos :)

  2. If I save the new picture setting in a game, for example Cannon Fodder, will it be specific for that game or will it overwrite the setting for all games?

Thanks!

Attachments
IMG20241019202156.jpg
IMG20241019202156.jpg (3.56 MiB) Viewed 3619 times
IMG20241019202159.jpg
IMG20241019202159.jpg (5.47 MiB) Viewed 3619 times
User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

Insert Disk Two wrote: Sat Oct 19, 2024 6:28 pm
  1. I followed your instructions, but I only can make the picture very sightly bigger. After I enlarge it but a few pixels the picture starts to "hide" behind an invisible black frame. Is this normal? I was hoping I could go to the edge of my monitor. See attached photos :)

Did you set the resolution for the core to 1920×1200?

  1. If I save the new picture setting in a game, for example Cannon Fodder, will it be specific for that game or will it overwrite the setting for all games?

MiSTer has no concept of a game-specific setting, so it will be global to the core.

Lightwave
Posts: 262
Joined: Sun May 24, 2020 10:06 pm
Has thanked: 137 times
Been thanked: 78 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Lightwave »

limi wrote: Sat Oct 19, 2024 11:31 pm
Insert Disk Two wrote: Sat Oct 19, 2024 6:28 pm
  1. If I save the new picture setting in a game, for example Cannon Fodder, will it be specific for that game or will it overwrite the setting for all games?

MiSTer has no concept of a game-specific setting, so it will be global to the core.

I guess the question is then how is AmigaVision storing this per-game info? Is there an editable file, or is it auto-generated from a spreadsheet/db?

I'm using a 1200p display and am interested in this as well.

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

@Limi
Yes it's set to 1920*1200.

Attachments
IMG20241020093140.jpg
IMG20241020093140.jpg (4.76 MiB) Viewed 3403 times
User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

Lightwave wrote: Sun Oct 20, 2024 2:12 am

I guess the question is then how is AmigaVision storing this per-game info? Is there an editable file, or is it auto-generated from a spreadsheet/db?

For every game, there is a scale, vertical offset and horizontal offset value stored in this CSV file:

https://github.com/amigavision/AmigaVis ... titles.csv

Then that file renders a specific script to run that game and send the corresponding scaler file (vadjust) to MiSTer’s shared folder, which is read every time a resolution changes.

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

limi wrote: Sun Oct 20, 2024 9:21 am
Lightwave wrote: Sun Oct 20, 2024 2:12 am

I guess the question is then how is AmigaVision storing this per-game info? Is there an editable file, or is it auto-generated from a spreadsheet/db?

For every game, there is a scale, vertical offset and horizontal offset value stored in this CSV file:

https://github.com/amigavision/AmigaVis ... titles.csv

Then that file renders a specific script to run that game and send the corresponding scaler file (vadjust) to MiSTer’s shared folder, which is read every time a resolution changes.

I think to modify 1200p properly using the "Adjust Screen Position" option in the menu, it is better to delete titles.csv first that way I don't have 1080p settings running already?

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

No. That’s just a database file used to generate files. You don’t need to do anything special on the AmigaVision side for MiSTer (unless there is a bug in the core), our settings are only applied for 1080p resolutions. You could try deleting Amiga_vadjust from the config/ directory (make a backup!) and see if that makes a difference. If that doesn’t work, you can also try turning off Dynamic Crop in the launcher's Options section to stop the script from setting values at all.

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

limi wrote: Sun Oct 20, 2024 9:55 am

No. That’s just a database file used to generate files. You don’t need to do anything special on the AmigaVision side for MiSTer (unless there is a bug in the core), our settings are only applied for 1080p resolutions.

Hmm.... Not sure. I can still see cropping coming from 1080p settings while using a 1200p display. In fact I cannot really resize the picture as I want as it goes behind an invisible frame like I posted further up.

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

You could try deleting Amiga_vadjust from the config/ directory (make a backup!) and see if that makes a difference. If that doesn’t work, you can also try turning off Dynamic Crop in the launcher's Options section to stop the script from setting values at all.

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

limi wrote: Sun Oct 20, 2024 10:01 am

You could try deleting Amiga_vadjust from the config/ directory (make a backup!) and see if that makes a difference. If that doesn’t work, you can also try turning off Dynamic Crop in the launcher's Options section to stop the script from setting values at all.

Thanks will do! Will report later :)

Edit: I looked for Dynamic Crop in the options and I don't see it? Is this where they are the options to force PAL, NTSC, etc?

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

Yeah, that’s where it’s supposed to be. Maybe we removed it for a reason I am unaware of — I will check later.

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

Yeah, it was removed when we introduced the binary that produces the vadjust file programmatically — I will see if we can put back a script that disables it.

I had misunderstood when these settings are applied, and thought the vadjust file would not be applied when you are not in 1080p, which is not the case — it seems to be applied no matter what.

So if you want to put in the work to tune it to your display manually:

  • Delete the C:ags-vadjust file on the Amiga side for now, until we can ship a release that has the option to disable it (you will have to deal with it throwing an error for now — if it breaks the scripts, maybe do something like making a duplicate of the echo command and name it ags-vadjust to have a command that completes but just prints the values)
  • Delete the config/Amiga_vadjust.dat file
  • Delete the games/Amiga/shared/Amiga_vadjust.dat file

Then you can adjust the values for scaling from the MiSTer OSD as mentioned earlier, and we won’t interfere.

This is not a trivial task, though — so make sure you have backups and a sufficient amount of motivation to deal with the manual adjustment. I recommend loading up a 1×1 pixel checkerboard pattern to ensure that you can see when scaling isn’t even.

Welcome to how the Amiga core operated before AmigaVision 😅

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

Thanks for getting back to me with all these details. It seems pretty hardcore :shock:

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

Update:

I have deleted (renamed actually) the files as you suggested. Most games i have tried fill my 1200p panel nearly completely, so I am very happy with the result. It is not worth going further with it.

One thing I noticed with the game Woody's World, is that despite the launcher saying the game runs in PAL, it is in fact running in NTSC. I assume this is a bug or a mistake?

Thanks!

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

Woody’s World is listed as a PAL game running at 5×PAL scale with a -2 vertical offset in the current database, so I assume it should be OK? Not sure why your version would be running in NTSC. Your version of AmigaVision would be useful information in this case.

Lightwave
Posts: 262
Joined: Sun May 24, 2020 10:06 pm
Has thanked: 137 times
Been thanked: 78 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Lightwave »

Insert Disk Two wrote: Mon Oct 21, 2024 5:40 pm

I have deleted (renamed actually) the files as you suggested. Most games i have tried fill my 1200p panel nearly completely, so I am very happy with the result.

Thanks for testing, I'm going to try deleting these files as well; hopefully a setting can be put back in place to disable auto v-adjust.

Have you noticed any issues with errors being thrown from C:ags-vadjust, as mentioned by limi?

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

Lightwave wrote: Mon Oct 21, 2024 11:18 pm
Insert Disk Two wrote: Mon Oct 21, 2024 5:40 pm

I have deleted (renamed actually) the files as you suggested. Most games i have tried fill my 1200p panel nearly completely, so I am very happy with the result.

Thanks for testing, I'm going to try deleting these files as well; hopefully a setting can be put back in place to disable auto v-adjust.

Have you noticed any issues with errors being thrown from C:ags-vadjust, as mentioned by limi?

I tried without deleting C:ags-vadjust to see if it works. It did so left it there to avoid displays of any errors.

Just wondering, what monitor model are you using?

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

limi wrote: Mon Oct 21, 2024 7:54 pm

Woody’s World is listed as a PAL game running at 5×PAL scale with a -2 vertical offset in the current database, so I assume it should be OK? Not sure why your version would be running in NTSC. Your version of AmigaVision would be useful information in this case.

Ok I double checked and you are right it's not running in NTSC mode, but I think the behavior is still strange.

So, if I just run the game, it will look like this:

IMG20241022063851.jpg
IMG20241022063851.jpg (3.97 MiB) Viewed 2535 times

If I force PAL, it looks like this - looks like it goes from X5 to X4?

IMG20241022064015.jpg
IMG20241022064015.jpg (3.9 MiB) Viewed 2535 times

Version:

IMG20241022063802.jpg
IMG20241022063802.jpg (2.51 MiB) Viewed 2535 times
Lightwave
Posts: 262
Joined: Sun May 24, 2020 10:06 pm
Has thanked: 137 times
Been thanked: 78 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Lightwave »

Insert Disk Two wrote: Tue Oct 22, 2024 4:07 am

I tried without deleting C:ags-vadjust to see if it works. It did so left it there to avoid displays of any errors.

Just wondering, what monitor model are you using?

Thanks, good to know it works without deleting that file.

My main monitor is an Asus PA248QV (I'm also using one of the 2048x1536 iPad screens for a secondary MiSTer).

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

Lightwave wrote: Tue Oct 22, 2024 4:49 am
Insert Disk Two wrote: Tue Oct 22, 2024 4:07 am

I tried without deleting C:ags-vadjust to see if it works. It did so left it there to avoid displays of any errors.

Just wondering, what monitor model are you using?

Thanks, good to know it works without deleting that file.

My main monitor is an Asus PA248QV (I'm also using one of the 2048x1536 iPad screens for a secondary MiSTer).

I have the Asus too :)

laurens
Posts: 7
Joined: Tue Aug 22, 2023 9:10 am
Has thanked: 10 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by laurens »

limi wrote: Sun Oct 20, 2024 3:49 pm

Yeah, it was removed when we introduced the binary that produces the vadjust file programmatically — I will see if we can put back a script that disables it.

I had misunderstood when these settings are applied, and thought the vadjust file would not be applied when you are not in 1080p, which is not the case — it seems to be applied no matter what.

So if you want to put in the work to tune it to your display manually:

  • Delete the C:ags-vadjust file on the Amiga side for now, until we can ship a release that has the option to disable it (you will have to deal with it throwing an error for now — if it breaks the scripts, maybe do something like making a duplicate of the echo command and name it ags-vadjust to have a command that completes but just prints the values)
  • Delete the config/Amiga_vadjust.dat file
  • Delete the games/Amiga/shared/Amiga_vadjust.dat file

Then you can adjust the values for scaling from the MiSTer OSD as mentioned earlier, and we won’t interfere.

This is not a trivial task, though — so make sure you have backups and a sufficient amount of motivation to deal with the manual adjustment. I recommend loading up a 1×1 pixel checkerboard pattern to ensure that you can see when scaling isn’t even.

Welcome to how the Amiga core operated before AmigaVision 😅

Quite new to Mister (I'm a Taki-board owner), 100% new to amiga, looking to explore :)

I'm running a 1600x1200 screen over HDMI out; would the above steps be the best way for me to explore the collection? Or should I adept what it says in the manual, and go for something like:

Code: Select all

video_mode_ntsc=1600,1200,60
video_mode_pal=1200,1200,50

in the .ini file?

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

I don’t recommend doing the manual steps mentioned above since it requires a lot of Amiga and scaler knowledge. Use the MiSTer.ini settings for now, and we will automate this in the near future.

laurens
Posts: 7
Joined: Tue Aug 22, 2023 9:10 am
Has thanked: 10 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by laurens »

Great, thanks! Indeed, only adding those 2 lines, seems to work extremely well! My great thanks for all involved in making this! Am having a blast!

Only noticed on VERY few games that the screen seems slightly off center, for my usecase. 100% usable!

User avatar
limi
Top Contributor
Posts: 776
Joined: Sun May 24, 2020 6:53 pm
Has thanked: 180 times
Been thanked: 570 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by limi »

If it’s left/right off-center, that seems to be an issue somewhere in how the core or scaler handles the output (of course, may be true to how the original hardware handled it — doesn’t mean we shouldn’t try to find a fix).

If it’s top/bottom off-center or cropped, that’s the custom AmigaVision offsets.

laurens
Posts: 7
Joined: Tue Aug 22, 2023 9:10 am
Has thanked: 10 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by laurens »

The bit I noticed, was left-right; Not sure if there was also a vertical offset; is there value in me checking this, and / or providing screenshots? Is this beneficial for you? As I'm happy to use it as-is, but if you want to have more info for this use-case, I'm more than happy to provide it.

Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: 1200p with optional vertical crop in Amiga/Vision core

Unread post by Insert Disk Two »

I found a way to "Delete" C:ags-vadjust file without getting errors.

  1. Load Amiga.Vision
  2. Press Escape to load into Workbench
  3. Load DOpus
  4. Go to c: and rename ags-vadjust to something else like ags-vadjust.backup
  5. Make a copy of c:cls and rename it to ags-vadjust
  6. This means that everytime you launch a game and it runs ags-vadjust there will be no errors and the game will just load

While the above works well, games which don't use a lot of screenspace will look quite small on a 1200p, the reason is that there is no cropping option for the Amiga core.

Post Reply