SpaceRay
![]() |
Hello, i have made previousñy this filter
color squares with photos In this filter the background of each square is randomly choosen fr om variations, the problem I see with this is that the random color done this way can be repeated as shown on the presets, and you could have maybe 2 or 3 red squares together, and the same with other colors What I want to know is if there could be a way to make that the random color variation in bomber can be cuatomized in some way so that the probability of the same color appearing again nearby the same color is reduced to a minimum or that is does not happen For example like this image wh ere all the colors are different, I mean that nearby colors are not repeated ( the blues are not the same) ![]() |
|||||
Posted: November 8, 2015 5:58 am | ||||||
SpaceRay
![]() |
The colors should be random generated
i have tried to search myself possible ways already on others filters if anyone can do something similar, but have not seen anything similar, so this is why I am asking if anyone knows how this could be done, if possible and is not complex Searching color checkers in the filter library or in forum does not give any result 3 POSSIBLE WAYS what I have found that may work (although have tried to use it myself and does not work as expected) 1 - GRAYSCALE CHECKERS is to use a graduated checker box with different grayscale shades that are different and then feed this to the bomber to control the random color production as shown on thiis image, (although should be random grayscale squares) ![]() |
|||||
Posted: November 8, 2015 6:09 am | ||||||
SpaceRay
![]() |
2 - COLORFUL TINY PERLIN NOISE I have seen also that it can be used a very tiny colorful perlin noise particles to feed the bomber for color choosing but does not work as expected or as I want, maybe I do it wrong
Here is a example of colorful perlin noise, but in this case is big dots, and not tiny ones ![]() |
|||||
Posted: November 8, 2015 6:17 am | ||||||
SpaceRay
![]() |
3 - USE LOOKUP TO DEFINE THE RANDOM COLORS
i have seen that it seems that you can also control the colors choosen by bomber with a Lookup component but do not know how to use it i know I have to feed a grayscale pattern, (maybe similar to the one shown above) to the lookup Please, can you be so kind to tell or show what would be the better and easier to use to be able to get something like the image iin the first post? i have tried but done it wrongly and do not know how to continue Thanks very much for any help |
|||||
Posted: November 8, 2015 6:18 am | ||||||
Rachel Duim
![]() |
Here is something I threw together using the checker, generating the grayscale checker using Perlin noise scaled to 0. No lookup in this version. This brings up the issue, the more "random" the pattern, the less likely you can guarantee that adjacent colors will not match. Let me know if you want the snippet.
![]() Math meets art meets psychedelia. |
|||||
Posted: November 8, 2015 6:32 pm | ||||||
Rachel Duim
![]() |
||||||
Posted: November 8, 2015 7:06 pm | ||||||
Rachel Duim
![]() |
||||||
Posted: November 8, 2015 7:14 pm | ||||||
Skybase
![]() |
I would say that if you want to make sure that each of the neighboring areas to be a different color picked from a limited palette, I think you need a way to check what was already chosen... which by default, I don't think FF has any functionality like that since you have to store data in some way that indicates what was already chosen and what isn't.
I believe you can KINDA do it using loops though. So for each iteration add iteration number+random number = might work as a choice. But then again... kinda different. |
|||||
Posted: November 8, 2015 9:38 pm | ||||||
Rachel Duim
![]() |
It really is an idea that requires more of a standard filter approach, not procedural.
If not map script, looping, that's insane ![]() ![]() Math meets art meets psychedelia. |
|||||
Posted: November 8, 2015 10:44 pm | ||||||
SpaceRay
![]() |
I do not mean and want to have different colors and that they are not repeated, as in the example on first post the colors are repeated and is good what it can't be is that when there for example red in one square then no one of the 4 neighboring square can be red.
WOW! Thanks very much for trying to make it and show the examples and tests the last looks very good, well done |
|||||
Posted: November 9, 2015 1:09 am | ||||||
Skybase
![]() |
Ah ok. I think then Rick has the right idea. Although it would be a nice little extra challenge since you currently have a bunch of random colors now... what if you just want 8 colors? |
|||||
Posted: November 9, 2015 2:11 am | ||||||
Rachel Duim
![]() |
Challange: the problem, reduce the number of colors, it's more likely that adjacent "cells" will have the same color. I took what I had, added step curves to reduce the colors and verified that 8 colors "randomly" does not work. That is, each "cell" has about a 50% chance of having the same color adjacent vertically or horizontally. Back to what we said before... this requires a linear, not procedural approach. Here is an 8 color, standard EGA palette, randomly generated.
![]() Math meets art meets psychedelia. |
|||||
Posted: November 10, 2015 12:41 pm | ||||||
Rachel Duim
![]() |
Here is the filter that I used to generate random checker colors from November 8, 2015 10:44 pm.
Perlin Color 4.ffxml Math meets art meets psychedelia. |
|||||
Posted: November 10, 2015 1:03 pm | ||||||
Indigo Ray
![]() |
Technically, what you are asking for is a type of "high pass". Think of a solid color as no frequency, a smooth gradient as low frequency, and checkers as high frequency. You want to filter out the low frequencies (smoothness), so that you are left with a more extreme pattern.
But you can't just use the Processing > High Pass component, since it works on pixels, not larger squares. But, you can use an Offset or Lookup to compare each square with its neighbors (left, right, up, down). IDK though, the result is kind of ugly to me. ![]() Side note: I've used high passes for dithering and it looks nice there. Also, the Bayer Matrix was designed specifically for the purpose of not having the same colors next to each other. Only problem is the Bayer Matrix is a fixed pattern and can't be randomized. Edit: Rick, your method looks nicer (and it's faster, too!). ![]() ![]() |
|||||
Posted: November 10, 2015 1:10 pm | ||||||
SpaceRay
![]() |
YES, maybe this is more difficult that I may have thought and not easy to do with reduced amount of colors that you can choose. it should be able to custom choose this 8 colors
Thanks for the filter and for trying, I have tried it and it gives a very good result wh ere all the squares seems to be different to each other and there is no one color repeated, but the problem I see with this method is to choose the range of colors that I may want, as the results includes all the possible colors with the RGB values given, and using the variations sliders gives many variations but always with the same RGB range, and you can´t define what colors to be included. As the result is very good technically for detecting neighbor non-repeated colors as shown here below but without color customization is not good, will see if using this way, there can be a way to choose colors in some way ![]() |
|||||
Posted: November 10, 2015 2:28 pm | ||||||
Rachel Duim
![]() |
Good points Indigo Ray. I originally thought of both points, then moved on
![]() Math meets art meets psychedelia. |
|||||
Posted: November 10, 2015 3:59 pm | ||||||
Rachel Duim
![]() |
Note to SpaceRay. The presets in Perlin Color 4 show you how you can control the color to some degree. Another approach would be a perlin lookup into an 8 color gradient, I am going to give that one a shot. If that works as planned, you can control the colors yourself.
Math meets art meets psychedelia. |
|||||
Posted: November 10, 2015 4:11 pm | ||||||
Rachel Duim
![]() |
||||||
Posted: November 10, 2015 4:48 pm | ||||||
Rachel Duim
![]() |
... and the filter itself. Any gradient could be used instead of the 8 color one I've created here.
Random Gradient Color Checker.ffxml Math meets art meets psychedelia. |
|||||
Posted: November 10, 2015 4:51 pm | ||||||
SpaceRay
![]() |
WOW! Thanks Rick Duim, I think this seems to be what I wanted and from a first test
So then from the 3 ways I have put above, is then a combination of 1 and 3, because Lookup needs to have a greyscale pattern to work I have tried to find out to use also this, but could not know how to use it exactly, and you have shown it well now. Will try it more, thanks |
|||||
Posted: November 11, 2015 5:08 am | ||||||
Skybase
![]() |
||||||
Posted: November 11, 2015 8:35 pm | ||||||
Rachel Duim
![]() |
Again, I am learning a lot from this thread. Which one is faster: Elevation Gradient or Lookup??
Math meets art meets psychedelia. |
|||||
Posted: November 11, 2015 8:52 pm | ||||||
Skybase
![]() |
I'd argue it's not that different.
|
|||||
Posted: November 11, 2015 11:28 pm | ||||||
Indigo Ray
![]() |
Ok Rick, here you are.
![]() Should I be annotating filters more often?
I think Rick and I have reduced the chance of that... have you heard about how mapmakers try to color each country so that no two neighboring countries have the same color? But they try to do it with the least amount of colors. The math you need for that is just a little above my head. ![]() Tile High Pass.ffxml |
|||||
Posted: November 12, 2015 7:52 pm | ||||||
Rachel Duim
![]() |
I get how the filter works. A lot of work. Thanks
![]() As for mapmakers, here is the 4 Color Theorem. From reading it, simple maps can be done in 3 colors. And apparently, modern mapmakers usually use more than 4 colors for maps of any complexity, in practice. Math meets art meets psychedelia. |
|||||
Posted: November 12, 2015 8:25 pm | ||||||
SpaceRay
![]() |
This seems interesting and cool, I did not know about this mapmaker theory or algorithm. Will try your new filter Indigo Ray and see how it works. Thanks for sharing it. |
|||||
Posted: November 16, 2015 3:01 pm | ||||||
LexArt
![]()
Posts: 256 |
this thread seems to be interesting and useful to learn, thanks
|
|||||
Posted: March 29, 2016 12:18 am | ||||||
SpaceRay
![]() |
Glad that it has been helpful and useful to learn more, for me too Thanks to all that have contributed to this thread and made it possible, and for sharing the filters |
|||||
Posted: April 27, 2016 11:32 pm | ||||||
SpaceRay
![]() |
I think that maybe this thread could be related to this other thread in some way as both are about being able to distribute bomber result in a non repeating way
Bomber plus - Would be possible to avoid repeat a source image loaded? |
|||||
Posted: April 28, 2016 12:57 am |
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
+39 new in 30 days!
15,347 Topics
+72 new in year!
19 unregistered users.