Color Filter

More
5 years 10 months ago #41 by Ioxa
Replied by Ioxa on topic Color Filter
I'll have to look into that DOF issue.

I put together a test shader with an option to adjust colors in the highs, mids, and lows of the filter if you want to try it out and see if you can get the look you want. I reduced it to only one filter so you may not be able to achieve the same look you have now but if the adjustments work well I can add more filters later.

I also decided to accept DeMondo's challenge and I put together a chromatic aberration shader. Its a little rough around the edges but it seems to be working well. I decided to do something a little different than the other CA shaders and I added an option to select the CA type. You can choose between red/cyan, blue/yellow, green/magenta, or the usual red/yellow/cyan/blue. I'm not a big fan of CA but I think the red/cyan is pretty nice looking. So if anyone wants to try it out and let me know if I'm on the right track I'd appreciate it!

Download Color Filter Test w/ Chromatic Aberration

Install Instructions

1. Copy the ReShade folder to the folder that ReShade was installed to. Merge it with the existing folder.
2. Open the ReShade folder and find EffectOrdering.cfg
3. Decide where in the effect order you would like it to run and add the following line.

#include EFFECT(ColorFilter, ColorFilter)

It should look something like this.
Warning: Spoiler!

4. Open the Framework Mediator and find the ColorFilter tab to adjust the settings.
The following user(s) said Thank You: padolamap, DeMondo

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #42 by DeMondo
Replied by DeMondo on topic Color Filter
Thanks Ioxa, your CA shader gives very good results!!!
CA is always tricky & can "break" the visuals, but when its done in a good way, it really enhances the visuals, you nailed it! :cheer:
The following user(s) said Thank You: Ioxa

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago - 5 years 10 months ago #43 by matsilagi
Replied by matsilagi on topic Color Filter

I'll have to look into that DOF issue.

I put together a test shader with an option to adjust colors in the highs, mids, and lows of the filter if you want to try it out and see if you can get the look you want. I reduced it to only one filter so you may not be able to achieve the same look you have now but if the adjustments work well I can add more filters later.

I also decided to accept DeMondo's challenge and I put together a chromatic aberration shader. Its a little rough around the edges but it seems to be working well. I decided to do something a little different than the other CA shaders and I added an option to select the CA type. You can choose between red/cyan, blue/yellow, green/magenta, or the usual red/yellow/cyan/blue. I'm not a big fan of CA but I think the red/cyan is pretty nice looking. So if anyone wants to try it out and let me know if I'm on the right track I'd appreciate it!

Download Color Filter Test w/ Chromatic Aberration

Install Instructions

1. Copy the ReShade folder to the folder that ReShade was installed to. Merge it with the existing folder.
2. Open the ReShade folder and find EffectOrdering.cfg
3. Decide where in the effect order you would like it to run and add the following line.

#include EFFECT(ColorFilter, ColorFilter)

It should look something like this.
Warning: Spoiler!

4. Open the Framework Mediator and find the ColorFilter tab to adjust the settings.


Any way you can do a version with CA only?
Last edit: 5 years 10 months ago by matsilagi.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #44 by Ioxa
Replied by Ioxa on topic Color Filter

Thanks Ioxa, your CA shader gives very good results!!!
CA is always tricky & can "break" the visuals, but when its done in a good way, it really enhances the visuals, you nailed it! :cheer:

Nice! Good to hear! I've never liked CA because its too distracting but after doing some image searches I found some examples that looked pretty good so I just tried to replicate what I saw. And to answer your question from the other thread, for the smoothing I use multiple samples but stagger the offsets to give it a blurred look. And for the lens distortion with smoothing I use an already blurred image for the samples to try and make it look like the light is being stretched at the edges, still adjusting that stuff though.

@ matsilagi
When its done, or at least closer to done, I may make it a separate shader. Or I may combine all my shaders into one package so I can avoid doing some things multiple times and hopefully improve performance.
The following user(s) said Thank You: DeMondo

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #45 by padolamap
Replied by padolamap on topic Color Filter
loxa you, tonight I will be trying, but seeing as you do things I venture to say it will be fine.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #46 by vfxninjaeditor
Replied by vfxninjaeditor on topic Color Filter
I can't seem to get this working with the newest release by following the provided instructions. Anyone have a similar issue? I really want to try out the CA in this one.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #47 by Ioxa
Replied by Ioxa on topic Color Filter

I can't seem to get this working with the newest release by following the provided instructions. Anyone have a similar issue? I really want to try out the CA in this one.


It's working fine for me. In the new release EffectOrdering.cfg has been renamed to Pipeline.cfg, you will have to type the #include line in there instead.

And don't get your hopes up on the CA shader, its a very rough version of what I have in mind for the final version, I just included it with the ColorFilter shader because I wanted to get some feedback. But if you get it working let me know what you think! And if you have any ideas for improving it let me know!

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #48 by DeMondo
Replied by DeMondo on topic Color Filter
@vfxninjaeditor: I had problems with the newest ReShade v1.0.0 release too:
I renamed the folder ColorFilterTest to --> ColorFilter
and renamed ColorFilter_settings.cfg to ColorFilter.cfg
edit ColorFilter.h: #include "ReShade/ColorFilter_settings.cfg" to --> #include "ReShade/ColorFilter.cfg"
and copy ColorFilter.cfg to ...\ReShade Framework 1.0.0\ReShade
-
-
@Ioxa: thank you for your explanation, I really like the results I get with your CA shader.
I tried some things & changed: #define CA_Smoothing 4 //[0:4] to --> #define CA_Smoothing 12 //[0:16] for extra fading out the CA.
If it's ok to make a suggestion B): perhaps to make the CA glow around the CA core.
The following user(s) said Thank You: Ioxa

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #49 by kingeric1992
Replied by kingeric1992 on topic Color Filter
Hay loxa,
about CA, I wonder if something like this is possible in reshade:

P0: Gaussian H on backbuffer with blur radius scale depending on current texcoord
P1: Gaussian V on previous pass with same radius function (not proper form for separable gaussian, but it still do the trick)
P2: have multiple distorted sample on different distortion level, each filtered with different chromatic/ spectrum color and blend them together.(P1, P2 can be combined)
or do the distortion first, then blur + postprocess

It is just a extension to conventional CA shader, including additional blur to soften the edge for blending(process similar to fake tilt-shift where blur radius is calculated from distance to tilt-shift axis, here uses distance to screen center), multiple layers to simulate dispersion instead of simple RGB.
(spectrum color can be pre deffined values, or use 1d sampler)

and to do this on deferred rendering, either add a small blur on the resource when final blend on blending or pass the blur radius all the way down and use smoothstep to tell shader when to on blend to CA texture when blur radius is larger then current res.
The following user(s) said Thank You: Ioxa

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #50 by Ioxa
Replied by Ioxa on topic Color Filter
I think what I'm doing now is similar to what you're saying.

I'm sending a copy of the original image to a down sampled texture, then sending that to the blur passes, this give me 3 different distortion levels (well 2 because 1 isn't blurred).
Then I basically use a modified version of the vignette shader from SweetFX for the texcoords and stagger multiple samples with increasing distance from the center.
Then I use a mask, that is also basically the vignette shader, and blend the center textures with the outer textures using smoothstep.

This is what it looks like now. These are with the settings on max to make it easier to see.

And this is how it looks without the CA.
Warning: Spoiler!

Is this close to what you're thinking? Or do you think using something like tilt-shift would give a better result?

@DeMondo Thats odd you guys were having problems with it, it was working fine for me. Either way I'm gonna have to update this stuff to fit the new mediator format.
I might be able to do what you're asking... I have a couple ideas that may work. If you can find an example it would be a huge help. And keep the suggestions coming!
The following user(s) said Thank You: jas01

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago - 5 years 10 months ago #51 by kingeric1992
Replied by kingeric1992 on topic Color Filter
So here is what I've composite from Photoshop on the demo pic with some modification on proposed process.

P0. distorted sample on multiple level with chromatic/ specturm filter on different layers. save to buffer
P1. read buffer, 1d radial blur on distortion scale (no need for 2d after all, we are only operate 1d pixel displacement here), then continue to other CC process.
(don't know how to fine tune PS's radial blur, so the blur scale in the demo isn't ideal)

and before radial blur

and details
//cant get this to post... too many links
i.imgur.com/BT4fu4l.jpg
i.imgur.com/ZJGTgL1.jpg
Last edit: 5 years 10 months ago by kingeric1992. Reason: typo

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #52 by Ioxa
Replied by Ioxa on topic Color Filter
Here is what I have now. It looks awful at full strength so this is half strength.

Doing a radial blur like in your examples would probably make the effect brighter but I want to move the red and blue channels in opposite directions and leave the green channel centered. My hope was that the final image wouldn't look too blurry or distorted but I don't know if there is any way to avoid that. Maybe I could limit the blurring to only bright pixels, that might solve another problem I'm running into.

As the blur gets wider the lights get dimmer, which makes sense because I'm moving all those bright pixels away from their source.

Any thoughts?
The following user(s) said Thank You: jas01, DeMondo

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago - 5 years 9 months ago #53 by kingeric1992
Replied by kingeric1992 on topic Color Filter
Tested in ENB

My flickr: www.flickr.com/photos/125864770@N06/

ported version, haven't tested in reshade.
//config
#define CA_Curve     2
#define CA_Scale     0.005
#define CA_BlurScale 0.2

Warning: Spoiler!

As you can see, blur radius is matching to CA scale, around 1/10 CA_Scale looks pretty decent to me.

also CA is distortion alright, light with different wavelength can't focused on same spot == off focus == blur.
Last edit: 5 years 9 months ago by kingeric1992.
The following user(s) said Thank You: Ioxa, DeMondo

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #54 by DeMondo
Replied by DeMondo on topic Color Filter
@Ioxa: looking at your latest screenshots, in my opinion I see clearly a great improvement, really like the way it turns out! [because too sharp CA doesnt look good]

I found this: an animated example of excellent chromatic aberration:
vine.co/v/eJtX7q1XZmV

a snapshot from it:

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago - 5 years 9 months ago #55 by kingeric1992
Replied by kingeric1992 on topic Color Filter

[because too sharp CA doesnt look good]

true, it looks like analog 3D...

In addition to CRT CA effect, it will only disperse to RGB color because the screen thingy.
optical CA disperse into full spectrum if scale is high enough, a good example is Dispersive prism, which resembled some geometry similarity to lens' edge.
Last edit: 5 years 9 months ago by kingeric1992.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago - 5 years 9 months ago #56 by matsilagi
Replied by matsilagi on topic Color Filter

Tested in ENB

My flickr: www.flickr.com/photos/125864770@N06/

ported version, haven't tested in reshade.
//config
#define CA_Curve     2
#define CA_Scale     0.005
#define CA_BlurScale 0.2

Warning: Spoiler!

As you can see, blur radius is matching to CA scale, around 1/10 CA_Scale looks pretty decent to me.

also CA is distortion alright, light with different wavelength can't focused on same spot == off focus == blur.


Is this CA code usable? Like, can i replace the correct lines and make it work with the downloaded version?
EDIT: Tried to make the code work, gave an error: X3017: initial value does not match variable type
Last edit: 5 years 9 months ago by matsilagi.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #57 by Ioxa
Replied by Ioxa on topic Color Filter
Warning: Spoiler!

Very nice! Another reminder that I don't know how to code, haha, this is so much cleaner than the mess of code I have right now. I like how you did the spectrum, I have been struggling to get a good mix of color, this is a much better solution! Also didn't know the length intrinsic, that looks helpful.
The following user(s) said Thank You: kingeric1992

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #58 by kingeric1992
Replied by kingeric1992 on topic Color Filter
@matsilagi
I really don't know, have no experience with reshade.

@loxa
thx, I'm still in learning process, and reading others code helped me a lot.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #59 by matsilagi
Replied by matsilagi on topic Color Filter

@matsilagi
I really don't know, have no experience with reshade.

@loxa
thx, I'm still in learning process, and reading others code helped me a lot.


Ah, ok, no prob.

If anyone else knows how to fix that bug, lemme know, don't be shy.

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #60 by Ioxa
Replied by Ioxa on topic Color Filter
Well I typed up a post with a couple pictures and a link but it was considered spam... So here is a single picture of the CA shader I've been working on.

Here is a link to the original image for comparison. i.imgur.com/sguEMkQ.jpg

And here is the file. Install instructions are included with the download.
Download Chromatic Aberration for ReShade + Framework

If you added the previous CA shader that was included with the Color Filter test, you will need to remove that from the Mediator before using this one.

Also, a lot of the stuff isn't working right now, it's pretty much limited to the multi-color CA (CA_Type 4 in the settings) with lens distortion.
The following user(s) said Thank You: SpinelessJelly, DeMondo

Please Log in or Create an account to join the conversation.