Welcome, Guest.
Username: Password: Remember me

TOPIC: "4xBRz" Filter

"4xBRz" Filter 5 months 1 week ago #1

Hi!

I ported 4xBRz shader from "https://github.com/libretro/common-shaders/blob/master/xbrz/shaders/4xbrz.cg"

If you want more sharpen result, use with "AdaptiveSharpen" filter.

Have fun!..

.
.
Last Edit: 5 months 6 days ago by spiderh.
The administrator has disabled public write access.
The following user(s) said Thank You: Tom Yum 72, du, acknowledge, qdclonman, thalixte

"4xBRz" Filter 5 months 1 week ago #2

Hey man!
I will try the shader later when i am back home, thank you!
But what exactly does the shader do? The edges smoother?
Greetings
The administrator has disabled public write access.

"4xBRz" Filter 5 months 1 week ago #3

Yes. For pixelated games, this shader smooth sharp pixel transitions.

This technique actually used effectively on C/C++. With shader technique we get reasonable result, but this is as good as not to be.

5x and 6x techniques (on shader) not work with DirectX 9. And 6x technique is slow. Because mostly use LERP (Linear Interpolation). But on C/C++ 6x technique is generate more sharpen and quality results and exactly more fast.
Last Edit: 5 months 1 week ago by spiderh.
The administrator has disabled public write access.
The following user(s) said Thank You: NesQEdits

"4xBRz" Filter 5 months 1 week ago #4

Sounds great! i will try it out for CSGO cause this game needs to be a little smoother on some parts.
The administrator has disabled public write access.

"4xBRz" Filter 5 months 1 week ago #5

NesQEdits wrote:
Sounds great! i will try it out for CSGO cause this game needs to be a little smoother on some parts.

Before you get your hopes up: 4xBRz has been made mainly to smoothen lowres pixel graphics. So if you're not playing CSGO in 320x240 it will probably not look too hot. ;)
The administrator has disabled public write access.

"4xBRz" Filter 5 months 1 week ago #6

Haha no i am not :D Thank you!
The administrator has disabled public write access.

"4xBRz" Filter 5 months 1 week ago #7

xBR, xBRZ, HQ etc. filters only work with 2D pixelated games. Example: Mugen, Mame, old 2D platform games, 2D Playstation 1 games etc.

Reshade only work with actual viewport. This shader is upscaler. For this reason, this shader first downscale, after upscale render target. If you use this shader with 3D games, then result will be blurry.
Last Edit: 5 months 1 week ago by spiderh.
The administrator has disabled public write access.

"4xBRz" Filter 5 months 1 week ago #8

Just tried your "4xBRz" filter with the following Windows 2d games: Super Hydora, Freedom Planet, Momodora: Reverie Under The Moonlight, Axiom Verge, Aggelos. It works great and I'm really pleased we finally have a good shader for 2d pixel games! Thank your for your valuable contribution!
I noticed in some games there is tearing when the screen scrolls with 4xBRz activated. Is there a way to avoid that?
The administrator has disabled public write access.

"4xBRz" Filter 5 months 1 week ago #9

Yes. Some games not have standard resolution. Change "Strength" value a little bit, but only little bit.

Try this formula:

STRENGTH = HEIGHT / ORIGINAL HEIGHT.

Example, in MAME emulator, some games have 384x224 resolution and MAME upscale this games to 1920x1080.

STRENGTH = 1080 / 224 = 4.8214

For 320x240 games (original resolution):

STRENGTH = 1080 / 240 = 4.5

For 320x240 games to upscaled 1280x1024 resolution:

STRENGTH = 1024 / 240 = 4.2666
.

If this shader works as internal shader for games, then I know original resolution and I can calculate this values automatically, but Reshade is external shader and I never know what original resolution have a game.
Last Edit: 5 months 6 days ago by spiderh.
The administrator has disabled public write access.

"4xBRz" Filter 5 months 6 days ago #10

Thank you for your help!
The administrator has disabled public write access.

"4xBRz" Filter 4 months 4 weeks ago #11

Maybe it would be good idea to use native game resolution settings and calculate streght automatically based on current display and game native resolution?
The administrator has disabled public write access.
The following user(s) said Thank You: OtisInf

"4xBRz" Filter 4 months 3 weeks ago #12

How do that? How I know game's native resolution? Also how Reshade programmers know this?
Last Edit: 4 months 3 weeks ago by spiderh.
The administrator has disabled public write access.

"4xBRz" Filter 4 months 3 weeks ago #13

Can you make Bilinear Interpolation for reshade ??? thanks you~~ :P :P :P
The administrator has disabled public write access.

"4xBRz" Filter 4 months 3 weeks ago #14

What do you do Bilinear interpolation?

Reshade never be a rescaler? Reshade only works on final Render Target...

If you want Bilinear Interpolation, then use "Gaussian Blur" filter or like this...
The administrator has disabled public write access.
The following user(s) said Thank You: qdclonman

"4xBRz" Filter 4 months 2 weeks ago #15

I know this ,but I want this effect,please,thanks!! :P :P :P :P
The administrator has disabled public write access.

"4xBRz" Filter 1 month 2 weeks ago #16

Hello, first of all thank you very much for making this filter, it makes pixel-art games look much better. However, there is still an issue with the filter, and it's that it sometimes makes the elements on screen become too blurry, in particular when they're in movement or when there's text with shadowing. Currently testing on Rivals of Aether at 1080p.
The administrator has disabled public write access.

"4xBRz" Filter 2 weeks 2 days ago #17

needs deepbuffer?
The administrator has disabled public write access.