YOUR ACCOUNT

Login or Register to post new topics or replies
rgoer
Posts: 46
Does anybody know the math of what the threshold FF node actually does under the hood?
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
Something like this I presume (not taking smooth into account):
red = color>>16>threshold?0:255;
  Details E-Mail
rgoer
Posts: 46
haha, thank you--smooth is actually the part I was trying to figure out smile;)
  Details E-Mail
Sjeiti
sock puppet

Posts: 722
Filters: 71
low = 0;
high = 255;
red = color>>16;
if (red<(threshold-smooth/2)) red = low;
else if (red>(threshold+smooth/2)) red = high;
else red = low + (high-low)*((red-(threshold-smooth/2))/smooth);

... I think smile:D
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,712 Registered Users
+19 new in 30 days!

153,534 Posts
+31 new in 30 days!

15,348 Topics
+72 new in year!

Create an Account

Online Users Last minute:

10 unregistered users.