Welcome, Guest.
Username: Password: Remember me

TOPIC: What does ui_step = 0.01 means :?

What does ui_step = 0.01 means :? 2 months 3 weeks ago #1

Hi!

I'm trying to set up SMAA in Batman: Arkham Knight.
I am interested in this section - Edge Detection Treshold.

uniform float EdgeDetectionThreshold <
ui_type = "drag";
ui_min = 0.05; ui_max = 0.20; ui_step = 0.01;
ui_tooltip = "Edge detection threshold. If SMAA misses some edges try lowering this slightly.";
ui_label = "Edge Detection Threshold";
> = 0.10;

I understand that the lower is better, the 0.05 is the best, 0.20 is the worst. But what does ui_step = 0.01 means? What happens if I set Edge detection Treshold to value lower than 0.05, e.g. 0.01?

On a side note: When installing a new version of Reshade, is it better to delete everything and do a clean install or can I just overwrite existing files, does it matter?

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

What does ui_step = 0.01 means :? 2 months 3 weeks ago #2

ui_step is just the amount the value changes when you click + drag in the ReShade overlay.

Somitomere wrote:
What happens if I set Edge detection Treshold to value lower than 0.05, e.g. 0.01?
The shader might not work as intended anymore.

Somitomere wrote:
On a side note: When installing a new version of Reshade, is it better to delete everything and do a clean install or can I just overwrite existing files, does it matter?
Overwriting the previous installation (which is just the dll, I guess) is fine.
Last Edit: 2 months 3 weeks ago by Daodan.
The administrator has disabled public write access.
The following user(s) said Thank You: Somitomere

What does ui_step = 0.01 means :? 2 months 3 weeks ago #3

Thank you very much!

If you don't mind another question, what is the difference between color, luma and depth edge detection and which one should I use?
The administrator has disabled public write access.

What does ui_step = 0.01 means :? 2 months 3 weeks ago #4

I'm not familiar with the SMAA code and how it works so I'm not a hundred percent sure.
I think with these different edge detection types you can choose which parts of the image SMAA gets applied to.
Color and luma uses the rgb image or its luminosity to find edges.
With the depth edge detection mostly the outlines of objects are getting anti aliased.
Last Edit: 2 months 3 weeks ago by Daodan.
The administrator has disabled public write access.

What does ui_step = 0.01 means :? 2 months 3 weeks ago #5

The ui_step is just the granularity with which you can change the setting via the UI - 0.01 increments.

The 'ui_' part should be a clue to that :)
The administrator has disabled public write access.

What does ui_step = 0.01 means :? 1 month 3 weeks ago #6

Somitomere wrote:
Thank you very much!

If you don't mind another question, what is the difference between color, luma and depth edge detection and which one should I use?

Color uses all three color channels to detect edges, luma detects them through a "grayscale copy" and depth uses the object distance to do it.

Luma is the fastest, use it as a fallback if you're unsure, color usually works quite well, depth will only work if ReShade is able to detect the depth buffer in the game (aka if shaders like depth of field or SSAO work) and also won't detect edges on textures.

If I recall correctly there used to be a mode where you could use two types, "prediction", so color + depth was usually my choice.
Likes to reinvent the wheel.

My shaders repository: www.github.com/luluco250/FXShaders
The administrator has disabled public write access.