-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upscaling shaders (xbr) broken with output=opengl? #3770
Comments
SummaryOkay @pgzh, when migrating the Tyrell's SVN shaders into Staging, I made the following remark:
So yeah, I have no love for them 😆 But it's also true I did not take the time to learn how they are supposed to be used as intended. I'm not against re-instating them with the proper intended look. If you'd like to play around with the old SVN shaders, you can get them from here: https://github.com/tyrells/dosbox-svn-shaders/tree/master/xbr It would be helpful if you posted screenshots showing the intended look for all 4 shaders using some sufficiently complex image (so not the DOS prompt, but maybe the static start screen of a game that features lots of pixel fonts). InvestigationIt turns out, the intended look seems to be with nearest-neighbour interpolation, as you said (
There is a README about their later Slang versions, but it's not overly helpful: So, I'm also quite certain these xbr shaders assume sRGB encoded pixel values as input (as they're quite old, so awareness of using correct gamma was even worse then than in current times), so these pragmas should not be enabled in our variants of these shaders: #pragma use_srgb_texture
#pragma use_srgb_framebuffer They also need the non-pixel doubled original input image to work correctly (see here): #pragma force_single_scan
#pragma force_no_pixel_doubling So it looks like I'll need to introduce a #pragma use_no_bilinear_filtering
#pragma force_single_scan
#pragma force_no_pixel_doubling So yeah, if I don't misremember things, 0.80.1 or earlier with Related tickets |
Are you using the latest Dosbox-Staging Version?
Different version than latest?
Git
What Operating System are you using?
Linux x86_64
If Other OS, please describe
No response
Relevant hardware info
Ryzen 7 Pro 5750G with integrated graphics
Have you checked that no other similar issue already exists?
A clear and concise description of what the bug is.
Upscaling shaders (xbr) create artifacts in dosbox-staging git.
The issue was not present in 0.81.1 and I noticed only when trying the latest git.
Obviously the openglnb output was deprecated lately and the xbr shaders produce artifacts with opengl output.
If I switch to output=opengl with 0.81.1, the xbr shaders create the same artifacts.
dosbox-staging git / output = opengl
![staging-git](https://private-user-images.githubusercontent.com/38223870/340018905-8f404420-53ac-43b5-9bed-a97759f6f7ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyNjgyODQsIm5iZiI6MTcyMjI2Nzk4NCwicGF0aCI6Ii8zODIyMzg3MC8zNDAwMTg5MDUtOGY0MDQ0MjAtNTNhYy00M2I1LTliZWQtYTk3NzU5ZjZmN2FkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI5VDE1NDYyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZhODg2ZWVmM2JkODE1M2I0ODExZmU5NTVkMjViOGI2YTNiNzM0ODYwZThjZmY0YmE2ZjYxOTFhN2MyMTViYTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ku2Qch0BckvW6evIXoUQARXkEB5i9Akte3dLcinOhSA)
dosbox-staging 0.81.1 / output = openglnb
![staging-0 81 1](https://private-user-images.githubusercontent.com/38223870/340018910-e6ddcdf8-0296-4702-810a-5973757ae75e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyNjgyODQsIm5iZiI6MTcyMjI2Nzk4NCwicGF0aCI6Ii8zODIyMzg3MC8zNDAwMTg5MTAtZTZkZGNkZjgtMDI5Ni00NzAyLTgxMGEtNTk3Mzc1N2FlNzVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI5VDE1NDYyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2MzI5ZTc3YTI4NDQ2MWU2NGNiMDk5MWY3MDUwZDdiMjEyNjJjOTMzMDVmNGRkZjI4OGU1N2E5OTljMTViMDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.F8HBOE1cUTJ18RLFPNtm64ikYcMz8vJCSImwWRuSxj8)
I understand the openglnb output was removed intentionally and there were good reasons for this.
So this is not a classic bug report, but a request for help.
Did I misconfigure something or what could I try to get the xbr shader work with output=opengl nicely?
Thanks a lot!
Steps to reproduce the behaviour.
Explain how to reproduce
Download URL of affected game or software
No response
Your configuration
Provide a Log
Code of Conduct & Contributing Guidelines
The text was updated successfully, but these errors were encountered: