ColorIsolation.fx

More
2 years 3 months ago - 2 years 3 months ago #1 by Daodan
ColorIsolation.fx was created by Daodan
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: 2 years 3 months ago by Daodan.
The following user(s) said Thank You: OtisInf, MakeNX, WalterDasTrevas, Ryukou36, Viper_Joe, Hooka Tooka, Arkane, AssassinsDecree, Lun

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

More
2 years 3 months ago #2 by Chavolatra
Replied by Chavolatra on topic ColorIsolation.fx
nice, i need 3d lut with depth buffer but dont know make tihs =(

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

More
2 years 3 months ago #3 by OtisInf
Replied by OtisInf on topic ColorIsolation.fx
Neat! The prod80 color hue fx from v2 (prod80 implemented it differently tho).

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

More
2 years 3 months ago #4 by Daodan
Replied by Daodan on topic ColorIsolation.fx
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...

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

More
2 years 3 months ago - 2 years 3 months ago #5 by Daodan
Replied by Daodan on topic ColorIsolation.fx
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: 2 years 3 months ago by Daodan. Reason: Outdated

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

More
2 years 3 months ago #6 by Daodan
Replied by Daodan on topic ColorIsolation.fx
Added an update. See first post.

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

More
2 years 3 months ago #7 by OtisInf
Replied by OtisInf on topic ColorIsolation.fx
excellent work :)
The following user(s) said Thank You: Daodan

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