algorithmic modeling for Rhino
Kind of new to grasshopper and have been playing around with some image sampler height maps.
I basically have this definition here that creates a stack of cubes with the height value driven by the RGB of the image. At the moment i only have a box assigned to the points, but would like to distribute say 2-5 of my own geometry components to the points randomly or with some kind of logic. Then maybe looking at applying some random rotation to particular components.
I think this would require creating a list of the 5 pieces of geometry and then going from there, but I have had no luck so far.
I have attached the working grasshopper file that just assigns boxes to the points generated from the image sampler.
Any help would be much appreciated.
Tags:
Thanks I hadn't actually thought of creating a variation in size by color value, nor would I have had the skills to do it, but this is a real big help.
Thanks again !
Not sure how that RGB value gets interpreted as vector amplitude(?), but I deconstructed the Z vector, re-mapped its Z value from the source domain (the 'Bounds (Bnd)' of the list) to 0..1, multiplied that by the length of my list of shapes (Box, Cyl, Sph, Cone) and 'Round'ed to the 'Floor (F)' to use as 'Index (i)' for 'Item (List Item)'. So each point gets a shape based on its length.
The shapes can be stacked, scaled and/or rotated, of course.
Here is a slightly different approach, no 'Orient' needed because the different shapes are replicated in place for each point, scaled by the Z value (except for 'Sphere').
Did a simpler variation on this question back in June:
http://www.grasshopper3d.com/forum/topics/how-to-randomize-shapes-o...
By the way, it's a VERY GOOD IDEA to reduce the grid count while exploring solutions for problems like these! 10 X 10 instead of 45 X 45, for example. Hung Grasshopper/Rhino very badly several times today messing with this.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by