Beat
Posts: 165 |
I am looking for a way that the user can set the maximum of a couple of IntSliders.
E.g. I have 3 times the kaleidoscope component, each with a seperate IntSlider for controlling the Horizontal- and Vertical repeats. For some uses, the max amount for the repetitions can be high, for others low (like max 4). But all the (six) different repetitions should not per se be the same. So one IntSlider to rule them all would not work for me. I need something to control the max amount of the 6 different IntSliders that control the repetitions. And it should be user accessible. Think of that I use the "Next Variant" button to create a new image, but want to control the max times the repetitions can occur (not must occur). Any ideas? The Stone Age did not end because they ran out of stones. Niels Bohr |
|||||||
Posted: May 17, 2020 10:50 am | ||||||||
Rachel Duim
![]() |
What you need are random values. One way is to use the Loop component. It has a slave component called a Randomizer to generate a different value each loop. Look at FF help. There is a good example of a Randomizer loop in the 2nd example.
Another way is using Perlin noise followed by a Lookup (say to 0.5 x , 0.5 y). With the right values in Perlin you will get an even distribution of values between 0 and 1. Look at the Perlin components in Simple Van Gogh. The Perlin noise component used there csn be followed by a Lookup to get a single value. Make sense? Math meets art meets psychedelia. |
|||||||
Posted: May 17, 2020 12:18 pm | ||||||||
Beat
Posts: 165 |
Thanks for your super quick answer, Rachel.
I started to look into your suggestions, but somehow I find the Loop component a bit mysterious. I am very familiar with the Loop construction in programming languages, but somehow it seems different here. As I understand, the Randomizer slave components output a normalized random value (converted to color). Is there a way to convert the color back to a number? And is there a monitor component to see what a certain value (number) is? The Lookup component just gives me again the color, which I already have in the Randomizer. Sometimes color values (0-255) are being used , sometimes HDR values (from minus very big to plus very big), but I seem to fail to see which is used when. Am I dealing at a certain point with normal color values or with HDR values? A value of 20 in normal color has a vastly different impactfrom value 20 in HDR meaning. Moreover, a color value f.i. of 255,0,180 (a light purple), to what normal number (say used for number of repetitions), would that color translate into? I will study the loop component more the coming days, I am sure it has many possibilities. I also will look into the Perlin noise idea. The Stone Age did not end because they ran out of stones. Niels Bohr |
|||||||
Posted: May 17, 2020 3:16 pm | ||||||||
Rachel Duim
![]() |
Colors are used as numbers, usually greyscale (R=G=B). White is a value of 1 (R=G=B=255). Black is 0 (R=G=B=0). HDR values are all values outside this normal RGB range (negative and above 1) and are used as greyscale numbers just like regular RGB. Try putting a color control into the scale input of the Scale component. Try putting in regular RGB grey values, then try larger HDR values. Hope this helps.
Math meets art meets psychedelia. |
|||||||
Posted: May 17, 2020 4:33 pm | ||||||||
emme |
Few things to add. You can hold shift + left click to inspect the exact RGBA values on an image. For single value inputs, I believe the RGB values are averaged, so R+G+B/3, someone correct me if I'm wrong.
I wish there was either a color to control value converter or a set of control value math components. In this case though, the kaleidoscope repetitions can be controlled with an image input, so you can use all the RGB math nodes for logic. I think you could just add a multiply node before the repeat input and control the max number of repeats with another control. |
|||||||
Posted: May 17, 2020 10:32 pm | ||||||||
Beat
Posts: 165 |
Rachel, I found the Grayscale Control, which clarifies some things for me.
So if I understand correctly, the 'normal' RGB values that I am accustomed to are always translated into 0-1 values. And for values outside that range, I need HDR. Still, I feel the lack of a certain consistency in how numbers (maybe better 'values') are being used. Different controllers seem to behave differently. Example : the Grayscale Control works from 0-1. The IntSlider works from 1- to maxValue (it would be nice to be able to set a minValue as well, if only zero),and the ValueControl works from minus very much to plus very much. Somehow I cannot put my finger exactly on what for me is not consistent. But I experience too often - for me ![]() Thanks for your explanation. And I like the idea you put out for using the Loop as a randomizer. Beat The Stone Age did not end because they ran out of stones. Niels Bohr |
|||||||
Posted: May 18, 2020 4:42 pm | ||||||||
Beat
Posts: 165 |
That's right, I had forgotten ![]()
YES, yes, yes ![]()
I like the idea, emme, but in my case I will have to use a Divide component, I think. To get 6 different repeat numbers (for different 3 kaleidoscopes), I can set the max for each repeat slider to say 60. With a central slider that divides all the 6 repeat numbers, I can set the max number of repeats that is possible,m without loosing the randomness of the 6 repeat sliders. F.i. if I divide all by 10, then the max repeat will be 6, but the distribution of the 6 repeats can be anything <=6 f.i.: 3 - 1 - 4 - 6 - 1 - 2 Thanks for your idea, Beat The Stone Age did not end because they ran out of stones. Niels Bohr |
|||||||
Posted: May 18, 2020 4:52 pm | ||||||||
Beat
Posts: 165 |
emme, I just tried your idea, but with my modification - division in stead of multiplication.
I have a repeat Slider, with maxValue set to 60. This feeds into the dividend input of a Divisor comp. Another IntSlider (to dial down the max number of repetitions) is fed into the Divisor input. It works, except, strangely enough, with the controlling slider set to 1. Then I get the error color. So the division n / x works, where n <=60, except when x = 1 for any value of n. I cannot wrap my mind around this. The Stone Age did not end because they ran out of stones. Niels Bohr |
|||||||
Posted: May 18, 2020 5:19 pm |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,711 Registered Users
+18 new in 30 days!
153,531 Posts
+36 new in 30 days!
15,347 Topics
+72 new in year!
23 unregistered users.