Grasshopper

algorithmic modeling for Rhino

i was working on these boxes for a long time and there was a related topic about it which have some questions wating for answers (link to that topic : http://www.grasshopper3d.com/forum/topics/ifthen-situation-with-a )

the issue that i'm dealing with now is to colorize every box with different colors, i have a sample picture that i found on google,which seems similar to my case. 

i am also uploading the definition file.

in fact i'm trying to create such a volumetric space which have level differences between each cube as in the image, but different from the image-doesn't overlap or intersecting each other.

thanks to everyone who read this.

Views: 1057

Attachments:

Replies to This Discussion

this is kinda urgent situation for me, i've to solve my problems in 3 days, so that any comments or ideas are appreciated.
btw I know that there's a solution in forum "http://www.grasshopper3d.com/forum/topics/solution-to-baking-multiple" which can be partially applied to my project, which is really similar to my idea but it is not a real way to solve it,u just kinda use a trick to colourize the boxes. i need an alternative solution because not all the box dimensions are same in my case so that solution won't work for me.
Do you need completely random colors for each box or is there a pattern involved? I hadn't messed with colors in GH before now, but here's my take on it ... is the real problem in rendering the random colors in Rhino?
Attachments:
I don't know how to thank you Shawn, you helped me a lot with different situations today. this is exactly what I wanted to achieve as a result for colouring.
the only thing left is to break the constant levels of cubes and create a full random vision. but i know that i should change my logic to achieve that.

thank you again Shawn.
Check this script out for baking objects to different layers, colors etc. ...
Apply the same kind of logic with the Random component to a Move component. Each box can move by a random amount in a random direction after they are generated.
the problem with random move is the chance to intersect with another box which i'm trying to use that if-then script that u shared to avoid such a situation.
the thing that now i am trying to create is a big box generates random amount of middle boxes around it, and the middle boxes will generate random smaller boxes around themselves meanwhile non of the boxes will intersect each other. then i'll create an interactive façade and solve the circulation between the boxes and create the program etc. then it will become some kind of modern hotel which is my graduation project from architecture department. but for weeks i am stuck to placing these boxes that i cannot even think about the next steps yet, which makes me far behind from the schedule :S
If you know the distance between each of your boxes, which it appears that you do, you can limit the distance each box moves to half of this distance in any direction minus a small amount (whatever you want your minimum gap to be) while still using a random direction vector. This way no box will touch, but your random distribution may not be as radical as you desire.
Check it out, been playing with it. I'm not sure if it fully meets your needs, but notice that the small boxes show the random movement the best. Without getting into point-point distances of the boxes, I couldn't figure where the distance between the boxes was a hard number other than from the scale value.

I hope this works for you or gives you some further ideas. I think I need to get back to my own work now! XD
Attachments:
Also, don't miss the slider I added to the first Random component, that way you can control and select a random color set that you like. =D
i already noticed and liked it a lot :)
I'm not sure what trick you are referring to, but it should work with objects of different size and shape, it should be the same as baking one material for each object (only better).

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service