Page 1 of 2
1200p with optional vertical crop in Amiga/Vision core
Posted: Sat Oct 19, 2024 8:58 am
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!
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sat Oct 19, 2024 3:09 pm
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sat Oct 19, 2024 5:39 pm
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).
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sat Oct 19, 2024 5:58 pm
by limi
F12
→ Audio & Video
→ Adjust Screen Position
, then use the arrow keys (I believe Shift
is also a modifier) to adjust the scaling.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sat Oct 19, 2024 6:28 pm
by Insert Disk Two
Hi Limi thanks for helping out. Two things:
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 ![Smile :)](./images/smilies/icon_e_smile.gif)
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!
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sat Oct 19, 2024 11:31 pm
by limi
Insert Disk Two wrote: ↑Sat Oct 19, 2024 6:28 pm
- 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
![Smile :)](./images/smilies/icon_e_smile.gif)
Did you set the resolution for the core to 1920×1200?
- 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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 2:12 am
by Lightwave
limi wrote: ↑Sat Oct 19, 2024 11:31 pm
Insert Disk Two wrote: ↑Sat Oct 19, 2024 6:28 pm
- 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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 7:34 am
by Insert Disk Two
@Limi
Yes it's set to 1920*1200.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 9:21 am
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 9:53 am
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?
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 9:55 am
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 10:00 am
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 10:01 am
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 10:06 am
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 ![Smile :)](./images/smilies/icon_e_smile.gif)
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?
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 11:34 am
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 3:49 pm
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 ![😅](//twemoji.maxcdn.com/2/svg/1f605.svg)
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Sun Oct 20, 2024 4:49 pm
by Insert Disk Two
Thanks for getting back to me with all these details. It seems pretty hardcore ![Shocked :shock:](./images/smilies/icon_eek.gif)
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Mon Oct 21, 2024 5:40 pm
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!
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Mon Oct 21, 2024 7:54 pm
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Mon Oct 21, 2024 11:18 pm
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?
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Tue Oct 22, 2024 4:07 am
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?
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Tue Oct 22, 2024 4:43 am
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](./download/file.php?id=11124&sid=7db880878c3cad6e04f33c5624925e6f)
- IMG20241022063851.jpg (3.97 MiB) Viewed 4513 times
If I force PAL, it looks like this - looks like it goes from X5 to X4?
![IMG20241022064015.jpg](./download/file.php?id=11125&sid=7db880878c3cad6e04f33c5624925e6f)
- IMG20241022064015.jpg (3.9 MiB) Viewed 4513 times
Version:
![IMG20241022063802.jpg](./download/file.php?id=11126&sid=7db880878c3cad6e04f33c5624925e6f)
- IMG20241022063802.jpg (2.51 MiB) Viewed 4513 times
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Tue Oct 22, 2024 4:49 am
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).
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Tue Oct 22, 2024 7:24 am
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 ![Smile :)](./images/smilies/icon_e_smile.gif)
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Wed Nov 06, 2024 9:43 am
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 ![😅](//twemoji.maxcdn.com/2/svg/1f605.svg)
Quite new to Mister (I'm a Taki-board owner), 100% new to amiga, looking to explore ![Smile :)](./images/smilies/icon_e_smile.gif)
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?
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Wed Nov 06, 2024 3:12 pm
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Wed Nov 06, 2024 4:16 pm
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!
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Thu Nov 07, 2024 12:10 am
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Thu Nov 07, 2024 2:26 pm
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.
Re: 1200p with optional vertical crop in Amiga/Vision core
Posted: Mon Nov 18, 2024 3:29 pm
by Insert Disk Two
I found a way to "Delete" C:ags-vadjust file without getting errors.
- Load Amiga.Vision
- Press Escape to load into Workbench
- Load DOpus
- Go to c: and rename ags-vadjust to something else like ags-vadjust.backup
- Make a copy of c:cls and rename it to ags-vadjust
- 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.