DigitalMirrors |
Could someone help me with how to handle simple addition. I found a post on using RGB math and could not get it to work as I wanted.
I'd like to be able to add numbers and use them on repetitions. So say you take two gradients. Say I have the first one set to 6 repetitions and I wanted the second gradient to have 1 more repetitions making it 7. This seems like it should be simple but I'm not getting it can anyone help? |
|
Posted: October 15, 2018 1:49 pm | ||
emme |
Two ways you can do this. You can check "use remapping" in the control settings and add an offset of 1 in the remapper.
Alternatively you can use an RGB math node to add the offset, but you need to also remap the value going into the math node correctly. For example, if you have an IntSlider outputting values 1-5, you need to remap to 0-4 in HDR values. You can check out the remapping in this filter. remapping_example.ffxml |
|
Posted: October 15, 2018 4:56 pm | ||
DigitalMirrors |
Thank you! I appreciate the help. I'd like to understand the different ways to do this.
On the RGB math example how would I increase the increment from 1 to 2 in source B? Also, is there a way to do this with the math script? I've read those as well but cannot figure it out. |
|
Posted: October 15, 2018 5:11 pm | ||
emme |
You can check HDR in the Source B color picker and set any value for the increment. I suggest reading the HDR Colors page in the manual to learn more. You can also control the increment with another IntSlider. (added in the example)
Sure, using a script would work too. I've added one in the example that outputs the base value in the red channel and value + increment in the green channel. remapping_example_02.ffxml |
|
Posted: October 15, 2018 6:01 pm | ||
DigitalMirrors |
Wow,
![]() |
|
Posted: October 15, 2018 6:04 pm | ||
Rachel Duim
![]() |
Here is another way to do it using Free Gradient with division instead of the Profile Gradient with addition. A little more complicated but more flexible.
Number of Gradients.ffxml Math meets art meets psychedelia. |
|
Posted: October 15, 2018 6:17 pm | ||
emme |
Yes, my examples were more about addition and less about gradients
![]() I agree, generally better to use free gradient instead. |
|
Posted: October 15, 2018 6:53 pm | ||
DigitalMirrors |
I really appreciate the input from both of you. It's been very helpful. I'm having fun playing with your examples.
Thanks! |
|
Posted: October 15, 2018 6:55 pm |
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,537 Posts
+6 new in 7 days!
15,348 Topics
+72 new in year!
23 unregistered users.