YOUR ACCOUNT

Login or Register to post new topics or replies
DigitalMirrors
Posts: 5
Filters: 1
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?
  Details E-Mail
emme
Posts: 718
Filters: 8
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
  Details E-Mail
DigitalMirrors
Posts: 5
Filters: 1
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.
  Details E-Mail
emme
Posts: 718
Filters: 8
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
  Details E-Mail
DigitalMirrors
Posts: 5
Filters: 1
Wow, smile8) thank you again emme. I will go through this today.
  Details E-Mail
Rachel Duim
So Called Tortured Artist

Posts: 2498
Filters: 188
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.
  Details E-Mail
emme
Posts: 718
Filters: 8
Yes, my examples were more about addition and less about gradients smile:)

I agree, generally better to use free gradient instead.
  Details E-Mail
DigitalMirrors
Posts: 5
Filters: 1
I really appreciate the input from both of you. It's been very helpful. I'm having fun playing with your examples.

Thanks!
  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,537 Posts
+6 new in 7 days!

15,348 Topics
+72 new in year!

Create an Account

Online Users Last minute:

23 unregistered users.