Welcome, Guest.
Username: Password: Remember me

TOPIC: ColorIsolation.fx

ColorIsolation.fx 1 month 4 days ago #1

Based on a request here in the forum.
Not much to say about this shader: Everything except the chosen hue gets converted to greyscale.

ColorIsolation.fx



[Update 2]
  • Added a debug overlay that visualizes the chosen settings
  • Added control to either isolate or reject a certain hue
Here are some sample images:
Isolate Red:


Isolate blue:


Reject blue:


[Update 1]
  • You can now choose between a guassian and a linear (triangle) function to isolate the hue.
  • Added a control to change the 'curve steepness'. With that it is possible to not just isolate but also to reject a certain hue (with high overlap and steepness).
Last Edit: 1 month 3 days ago by Daodan.
The administrator has disabled public write access.
The following user(s) said Thank You: OtisInf, MakeNX, WalterDasTrevas, Ryukou36, Viper_Joe, Hooka Tooka, Arkane, AssassinsDecree

ColorIsolation.fx 1 month 4 days ago #2

nice, i need 3d lut with depth buffer but dont know make tihs =(
The administrator has disabled public write access.

ColorIsolation.fx 1 month 4 days ago #3

Neat! The prod80 color hue fx from v2 (prod80 implemented it differently tho).
The administrator has disabled public write access.

ColorIsolation.fx 1 month 4 days ago #4

I'm glad you guys like it!
I didn't study the code linked in the request beforehand, but the RGB/HSL-conversions look way more elegant than my crude 'Wikipedia-style'-functions...
The administrator has disabled public write access.

ColorIsolation.fx 1 month 4 days ago #5

I've added an 'experimental' debug output to the shader for which you would need two things:
1. Download Canvas.fxh*
2. Add COLORISOLATION_DEBUG to the preprocessor

*This is just a first rough draft, might break the shader in the future if enabled.
Last Edit: 1 month 3 days ago by Daodan. Reason: Outdated
The administrator has disabled public write access.

ColorIsolation.fx 1 month 3 days ago #6

Added an update. See first post.
The administrator has disabled public write access.

ColorIsolation.fx 1 month 3 days ago #7

excellent work :)
The administrator has disabled public write access.
The following user(s) said Thank You: Daodan