Turn a gaming 4k monitor into a 8k pentile for free! 240p
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Turn a gaming 4k monitor into a 8k pentile for free! 240p
Ok. I wanted to get a new 8k monitor, because I'm a sucker for technology. But then I was bummed out to see, "8k televisions aren't real 8k, but 4k upscaled with pentile technology!"
So I read about what was going on here:
https://www.displaydaily.com/article/di ... -continued
I went to myself "Hey I can do this with a 4k monitor and my lowly 2014 MacBook Air using shade code!" (Technically not "free" but practically any computer can do this real time.)
Thoughts?
Here's the official pentile:
Here's a single pixel at 4k:
Here's a 896x735 (For some reason 3x doesn't work, it needs a minimum of 3.0625x or you get moire **shrug**):
no shader:
Here's 2160p:
pentile:
So I read about what was going on here:
https://www.displaydaily.com/article/di ... -continued
I went to myself "Hey I can do this with a 4k monitor and my lowly 2014 MacBook Air using shade code!" (Technically not "free" but practically any computer can do this real time.)
Thoughts?
Here's the official pentile:
Here's a single pixel at 4k:
Here's a 896x735 (For some reason 3x doesn't work, it needs a minimum of 3.0625x or you get moire **shrug**):
no shader:
Here's 2160p:
pentile:
-
- Posts: 2183
- Joined: Mon Aug 14, 2017 8:34 pm
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Don't think I follow exactly what you're doing here, but I am intrigued.
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Yeah I don't follow either.
Either you're misleading with your title, or you didn't understand the article the right way.
What I understand is that on their 8k display, Samsung is using some kind of image processing to increase viewing angle, and the side effect of it is that you should lose some detail of a 8k source. But the actual true resolution of the panel is still 8k.
What you are doing is just a "pentile-display-lookalike-shader". You can't get a 8k on a 4k display for free.
Either you're misleading with your title, or you didn't understand the article the right way.
What I understand is that on their 8k display, Samsung is using some kind of image processing to increase viewing angle, and the side effect of it is that you should lose some detail of a 8k source. But the actual true resolution of the panel is still 8k.
What you are doing is just a "pentile-display-lookalike-shader". You can't get a 8k on a 4k display for free.
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Samsung et al, when doing "8k" televisions are really just doing pentile (ie penta is 5).fernan1234 wrote:Don't think I follow exactly what you're doing here, but I am intrigued.
I'm doing via hardware acceleration in software using shader code, what Samsung is doing with the actual PHYSICAL pixel format.
If you look at the pentile gif vs the RGB gif in my OP, each subpixel is staggered, and an added pure white pixel that's always on.
3 RGB subpixels are replaced with 16 RGBW subpixel tiling.
Here's what Samsung's 8k pentatile looks like for instance.
While mine isn't exactly the same, it's very similar, and in some ways superior.
To do the same as a Samsung 8k, I need 9x to achieve something similar. Meaning the max is 240p for best results, and up to 720p for "acceptable" using any plain RGB 4k display.
Pretty much I'm doing a software implementation of Samsung's 8k, but achieving 240p upscaling.
That means I can get some cheap 32 inch 4k PC monitor for ~$350 instead of $3,250, and have the equivalent of a 27" 4:3 monitor that upscales and doesn't look overly digital, and somwhat "analog" with my flavor of "pentile".
Here's NEOGEO at 1016x762 (I know, a weird resolution but that again is the lowest for 224p which NEOGEO uses at 320x224, I think because the horizontal needs to be 3x to work.)
Here's at 2160p:
For reference here's AANN which is essentially how a NEOGEO would look upscaled to a LCD monitor from say a SuperGun: (Yes I realize the "pentile" ones are DARKER because of the pentilization process, which I assume on a real 8k pentile monitor Samsung compensates for that automatically. Therefor you'd need to brighten your image on the LCD's controls.)
Lastly, here's what Samsung's 4k to 8k looks like with their implementation of pentiles.
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
AFAIK, the only way to get this type of upscaling with pentile, is to get an 8k display. So if all you're worried about is 240p to 720p, my shader will get the same exact effect, with the added bonus that you can tweak it to your absolute delight. Unlike on the $3,250 Samsung 32" 8k.Joelepain wrote:Yeah I don't follow either.
Either you're misleading with your title, or you didn't understand the article the right way.
What I understand is that on their 8k display, Samsung is using some kind of image processing to increase viewing angle, and the side effect of it is that you should lose some detail of a 8k source. But the actual true resolution of the panel is still 8k.
What you are doing is just a "pentile-display-lookalike-shader". You can't get a 8k on a 4k display for free.
I put 240p in the title. I was going to put more, ie (for 240p to 720p sources with the same effect.) But I couldn't.
So I tried explaining in the OP exactly what I was doing.
I even showed pictures.
How is what I'm doing any more misleading that what Samsung is doing? All Samsungs 8k can only do "8k" in game mode, which introduces artifact because it uses compression of what's really a "4k" image, and the AI engine INTERPOLATES the rest to "8k".
From the article:
Samsung's 8K 'QLED' LCD TVs can't display 8K resolution (unless in Game mode), and its 2019 high-end 4K TVs can't display 4K resolution (unless in Game mode). It's a significant limitation that seems to have drowned in all of the 'noise' surrounding 8K TVs.
When did i ever show an 8k picture? They all say 2160p (4k).
-
- Posts: 2183
- Joined: Mon Aug 14, 2017 8:34 pm
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
OK I think I get it more now, you took inspiration from the pentile thing to create a filter applied to 240p upscaled to 4k. You can do the same thing upscaling to 4k and using any of the CRT-like filters available on libretro/Retroarch, for example. Nothing really to do with 8K other than where you got the idea for the filter design. But it's a neat filter, having the effect of something like an old low resolution LCD more than a CRT.
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
That's exactly what I said. Your title is misleading.
I have nothing against shaders and filters (I use them myself with retroarch), but jumping from that to "Turning a gaming 4k monitor into 8k pentil for free" is a little farfetched.
And adding 240p in your title is not enough, still kind of clickbait for me.
But really no animosity in my posts. I just wanted to clarify because your first post wasn't that clear and make people think you didn't understand the original article.
I have nothing against shaders and filters (I use them myself with retroarch), but jumping from that to "Turning a gaming 4k monitor into 8k pentil for free" is a little farfetched.
And adding 240p in your title is not enough, still kind of clickbait for me.
But really no animosity in my posts. I just wanted to clarify because your first post wasn't that clear and make people think you didn't understand the original article.
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Someone in another thread was talking about EspGaluga in another thread. I hadn't played it in a while, so thought why not.
Then I decided to apply my shader at 8k.
The results make me in awe of just how many 8k pixels are. It took forever for me to render at that resolution. I was getting less than 1 fps!
Then I decided to apply my shader at 8k.
The results make me in awe of just how many 8k pixels are. It took forever for me to render at that resolution. I was getting less than 1 fps!
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Quick recap: you made a shader.
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Quick recap: You're disappointed this isn't a hardware solution, because you have access to a several billion dollar mother glass fab? Cool.spmbx wrote:Quick recap: you made a shader.
I might be reading wrong, but you seem to imply "this is ONLY a shader." As in you could make one better? If so, I'd be glad to see what your shader does, and I'll be sure to fairly critique it.
This recap now make things clear? Thanks for your interest!
While in the rest of the worlds not in the billionaire class....
I used to be in the "CRT or bust" for shaders or using an actual hardware CRT.
The CRT gets old because I'm getting old, and last time I moved a 34" CRT I nearly threw out my back, and my thumbs took a month to heal from the grip.
Onto why I now consider myself converted from CRT like even.
Here's what I liked best, Kurozumi. But that needs this pesky thing called "integer scaling" why they don't call it "vertical multiple scaling" is beyond me.
But what if you want to do the full height on an XGA? Ugh! Not pretty!
While mine will do any 3x+ just fine.
-
- Posts: 2183
- Joined: Mon Aug 14, 2017 8:34 pm
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
spmbx most likely meant that this is just a shader and really nothing to do with "turning 4k monitor into 8k" like the title strangely suggests.
Another recap could be: topic title makes no sense, but here's a neat shader for your PC emulated games.
Another recap could be: topic title makes no sense, but here's a neat shader for your PC emulated games.
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Already said in another post, "I put 240p in the title. I was going to put more, ie (for 240p to 720p sources with the same effect.) But I couldn't."fernan1234 wrote:spmbx most likely meant that this is just a shader and really nothing to do with "turning 4k monitor into 8k" like the title strangely suggests.
Another recap could be: topic title makes no sense, but here's a neat shader for your PC emulated games.
Maybe I should clarify that this forum has a title limit. By the time I posted, I didn't realize after quickly typing that the rest of the title I wanted was cut off. But by then I tried to edit the post and I could only edit the post not the title!
You're now the 5th post about this. Congrats!
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Bingo. It doesn't help that it seems to be completely impossible to have any reasonable discussion with him so i won't bother. He either refuses or just doesn't get it. All the empty lines are getting on my tits too. Nice shader, too bad about the attitude. Good luck with the topic dude.fernan1234 wrote:spmbx most likely meant that this is just a shader and really nothing to do with "turning 4k monitor into 8k" like the title strangely suggests.
Another recap could be: topic title makes no sense, but here's a neat shader for your PC emulated games.
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
#6.spmbx wrote:Bingo. It doesn't help that it seems to be completely impossible to have any reasonable discussion with him so i won't bother. He either refuses or just doesn't get it. All the empty lines are getting on my tits too. Nice shader, too bad about the attitude. Good luck with the topic dude.fernan1234 wrote:spmbx most likely meant that this is just a shader and really nothing to do with "turning 4k monitor into 8k" like the title strangely suggests.
Another recap could be: topic title makes no sense, but here's a neat shader for your PC emulated games.
What else do I need to do? I've explained many times what happened, #6.
Cause I don't want the 4chan autist police after me. I'd appreciate what you want?
Since I thought I answered what went on, anymore replies mean you want more examples of what this can do.
Ok I give in! Here's what PSX looks like for 480i to 768p! Enjoy!
-
- Posts: 2183
- Joined: Mon Aug 14, 2017 8:34 pm
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Now thinking this was some elaborate troll/joke topic for TC's own amusement, given his replies and, looking again and more carefully, the fact that the shader actually doesn't even look very good.
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
This is why I was hesitant to release the source, and definitely not going to now. I can just imagine the hate mail I'd get. Thank you for proving why there's so few shader choices out there. Because people don't want to deal with people like you.fernan1234 wrote:Now thinking this was some elaborate troll/joke topic for TC's own amusement, given his replies and, looking again and more carefully, the fact that the shader actually doesn't even look very good.
-
- Posts: 2183
- Joined: Mon Aug 14, 2017 8:34 pm
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
I don't think you would get any hate mail, rather people simply wouldn't use your shader.buddha2525 wrote:This is why I was hesitant to release the source, and definitely not going to now. I can just imagine the hate mail I'd get. Thank you for proving why there's so few shader choices out there. Because people don't want to deal with people like you.
Usually when someone releases or previews a shader, they are ready to receive any kind of opinion about it (and the way it is characterized), favorable or not. But if that's not the case with you then yeah, it's best to keep it to yourself.
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
I've been watchin' the thread quietly until this point, but felt the time was right to jump in. Y'all really need to ease up off the guy. You found the title confusing, he gave an honest explanation, move on.
Anyway, cool shader. I can understand if you don't want to post it, but, assuming it's just a RetroArch slang file or something else easy to use, I wouldn't mind adding it to my collection. Keep it up.
Honestly, your attitude is much worse. We get it, you don't like the title. The snarky one-liner was unnecessary. He did something constructive and made a good faith effort to explain how he came up with the idea. Relax.spmbx wrote:It doesn't help that it seems to be completely impossible to have any reasonable discussion with him so i won't bother. He either refuses or just doesn't get it. All the empty lines are getting on my tits too. Nice shader, too bad about the attitude. Good luck with the topic dude.
Anyway, cool shader. I can understand if you don't want to post it, but, assuming it's just a RetroArch slang file or something else easy to use, I wouldn't mind adding it to my collection. Keep it up.
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
I’ve been hoping someone would create some shaders to emulate different screen matrixes.
Fun exercise!
Fun exercise!
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Off topic but just wanted to ask what game is thisbuddha2525 wrote:
Here's 2160p:
pentile:
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
TurboGrafx-16 version of Cadash.DemoNight wrote:
Off topic but just wanted to ask what game is this
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Yeah thanks. I'm just your average guy, who tinkers in retro-gaming.strayan wrote:I’ve been hoping someone would create some shaders to emulate different screen matrixes.
Fun exercise!
I don't know. I'm kinda peeved at this whole situation.dojima wrote:
Anyway, cool shader. I can understand if you don't want to post it, but, assuming it's just a RetroArch slang file or something else easy to use, I wouldn't mind adding it to my collection. Keep it up.
Yeah right now it's in Slangp format.
I got a buddy who's making some emulators using quark. He said he'd de-GPL the code and make it easier to understand. I test stuff out for him. He and his buddy are the ones who helped me. 2 of the three are heavily modded free source, while the 3rd is GPL. That's another reason, I'd rather be able to release my source with no conditions. The GPL portion means I have to infect my code and modifications, as if it were the original GPL!
Right now it's rather complex and you need to configure it for each resolution.
Like TG-16 is 320/256x240 and needs a different shader than for NES which is 256x224. But NeoGeo is 320x224, so different still.
For me it takes only like 2 or 3 minutes to reconfigure the parameters on the fly. For you it might be rather convoluted.
Maybe in the future then, I'd reconsider. Possibly by then it should be even better.
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Since this keeps popping up, either point to the HARDWARE in this or move it to the correct freaking forum category.
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Are all people so hateful in the Netherlands? SMH! The correct forum you say? Maybe you should be a mod and move all these to the "correct freaking forum category" too?spmbx wrote:Since this keeps popping up, either point to the HARDWARE in this or move it to the correct freaking forum category.
viewtopic.php?f=6&t=51298
viewtopic.php?f=6&t=56918
viewtopic.php?f=6&t=57920
viewtopic.php?f=6&t=61145
viewtopic.php?f=6&t=62024
viewtopic.php?f=6&t=45026&start=480
viewtopic.php?t=60528
viewtopic.php?f=6&t=51298&p=1135007&hilit=shader+thread
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Ah, gotcha. Yeah, I know nearly nothing about coding, so it'd likely be beyond me, but I'll keep an eye on this thread for any developments. Thanks.buddha2525 wrote:Yeah right now it's in Slangp format.
I got a buddy who's making some emulators using quark. He said he'd de-GPL the code and make it easier to understand. I test stuff out for him. He and his buddy are the ones who helped me. 2 of the three are heavily modded free source, while the 3rd is GPL. That's another reason, I'd rather be able to release my source with no conditions. The GPL portion means I have to infect my code and modifications, as if it were the original GPL!
Right now it's rather complex and you need to configure it for each resolution.
Like TG-16 is 320/256x240 and needs a different shader than for NES which is 256x224. But NeoGeo is 320x224, so different still.
For me it takes only like 2 or 3 minutes to reconfigure the parameters on the fly. For you it might be rather convoluted.
Maybe in the future then, I'd reconsider. Possibly by then it should be even better.
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
buddha2525 wrote:Are all people so hateful in the Netherlands? SMH! The correct forum you say? Maybe you should be a mod and move all these to the "correct freaking forum category" too?spmbx wrote:Since this keeps popping up, either point to the HARDWARE in this or move it to the correct freaking forum category.
viewtopic.php?f=6&t=51298
viewtopic.php?f=6&t=56918
viewtopic.php?f=6&t=57920
viewtopic.php?f=6&t=61145
viewtopic.php?f=6&t=62024
viewtopic.php?f=6&t=45026&start=480
viewtopic.php?t=60528
viewtopic.php?f=6&t=51298&p=1135007&hilit=shader+thread
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
I've been busy with my shader. It now works flawlessly using scanlines too at 1080p!
Can I get a cowabunga?
Can I get a cowabunga?
Turtle power!spmbx wrote:
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
That looks good. Please carry on. Sorry, I mean COWABUNGA!
Don't bomb. DON'T BOMB.
Damn! Should have bombed.
Damn! Should have bombed.
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
Surely this has to be the most sensible and least resource intensive way of emulating a crt tube using an external scaler.buddha2525 wrote:I've been busy with my shader. It now works flawlessly using scanlines too at 1080p!
-
- Posts: 36
- Joined: Tue Jun 08, 2021 5:34 am
Re: Turn a gaming 4k monitor into a 8k pentile for free! 240
I'm going to look into that. I spent last night about 7 hours coding new stuff.strayan wrote:
Surely this has to be the most sensible and least resource intensive way of emulating a crt tube using an external scaler.
The problem before was certain colors would get banding, or certain colors wouldn't show scanlines since they happen blend out to a solid color.
The new features I've added:
Scanlines at 1080p for 256 or 320 by 224p sources now align where the gap is over 99.97% accurate.
Color and gamma corrected per pixel to take into account scanlines without darkening the image based on how the eye sees these changes.
Temporal changes of the scanline to improve movent beyond what the display is capable using some special tricks I've developed.
All scanlines now properly show from the pluge pattern to 100 IRE white field.
The characteristics of an actual phosphor are taken into account.
-----------
Currently I'm searching for a HLSL/GLSL coder to improve what I have. Possibly by optimizing my code, fixing any errors I didn't think of, and cleaning up code with proper explanations/comments.
So if you or anyone else you know, or other people reading this thread know of someone with enough talent; please let me know.
Thanks!stuntman wrote:That looks good. Please carry on. Sorry, I mean COWABUNGA!