davidf Posted October 25, 2012 Share Posted October 25, 2012 (edited) Effects > Render > Cell Texture Edit: Updated to version 1.2 (no code changes, just made sure it uses the internationalized Render menu instead of the string "Render"). Edit: Updated to version 1.1 (added "Combined" distance type and changed "Multiply" method to "Root sum of squares", which looks a bit nicer - also handled coloring better for this method. See left image in the second row below for an example). This plugin was inspired by the page: http://www.blackpawn...ar/default.html The algorithm can create quite a lot of different texture types: The parameters are: Foreground - the color inside the cells. Background - the color around the edge of the cells. Swap background and foreground - exactly what it says! Avoid border - do not place cells near the edge of the image. If this is not set, the image is tileable (i.e. it wraps around the edges). Cell size - the side length of the invisible squares the cells are based on (there is one "point", i.e. cell centre, at a random location inside each square - with a slight bias towards the middle). Intensity - adjust the distance where the foreground turns into the background. Random color - amount of random color to add to individual cells. Method - formula to use to determine the color (see the link mentioned above). Distance - distance metric to use. "Euclidean distance" is distance in a straight line, "Manhattan distance" is the sum of the X and Y differences, "Chebychev distance" is the maximum of the X and Y differences and "Combined" is a combination of all of these. I'd love to see any interesting uses people find for this ... (My first plugin created using Visual C#. Yay!) Download: CellTexturev1.2.zip By the way, when adjacent cells are different colors, there is no antialiasing at the moment -- I need to investigate the best way to do that. Known bug: for large cell sizes with "Subtract nearest two neighbors" and "avoid border" both set, there are sometimes some problems near the right or bottom edge of the image. Edited November 21, 2012 by davidf Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.