ColorIsolation.fx

  • Posts: 176
1 year 10 months ago - 1 year 10 months ago #1 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).
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.

  • Posts: 126
1 year 10 months ago #2 by Chavolatra
nice, i need 3d lut with depth buffer but dont know make tihs =(

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

  • Posts: 343
1 year 10 months ago #3 by OtisInf
Neat! The prod80 color hue fx from v2 (prod80 implemented it differently tho).

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

  • Posts: 176
1 year 10 months ago #4 by Daodan
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.

  • Posts: 176
1 year 10 months ago - 1 year 10 months ago #5 by Daodan
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.

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

  • Posts: 176
1 year 10 months ago #6 by Daodan
Added an update. See first post.

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

  • Posts: 343
1 year 10 months ago #7 by OtisInf
excellent work :)
The following user(s) said Thank You: Daodan

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