Grasshopper

algorithmic modeling for Rhino

Apply pattern according to a colour gradient

Hi guys,

 

I have a set of surfaces arranged with a color gradient.

 

I would like to apply differents patterns according to the different colours, to define the degree of opening for a facade.

 

Any ideas?

 

Thank you very much

 

Views: 2446

Comment

You need to be a member of Grasshopper to add comments!

Comment by Andrea Polato on May 18, 2011 at 5:30am

In my case I have a points list each with numeric value assigned, then I applyed a color gradient to the points list and geometry surfaces above points. Selecting points is just a matter of cull or dispatch. My aim was selecting surfaces, it's just a matter of output geometry.

My panels are real geometries in rhinoDoc, so I used the Horster component to retrieve the panels Guid, but this is involved in the bake phase.

Comment by RWNB on May 18, 2011 at 4:53am

dear andrea,

very interesting work!
I have another question.
is it possible to select points
from different colors range?

 

thx

Comment by Andrea Polato on May 18, 2011 at 1:24am

I made something like yours related to a pattern on the ceiling drived by the daylight factor in the room. I came up with script components. 

I'm sorry, but I can't publish the definition right now. 

In my case I had a set of 6 source panels, each one correspond to a different pattern, then I set a script component that place the panel according to a value on the test mesh (the coloured surface on the floor), it's just a matter of "if...then...else...". I manually set the value for the distribution so I got 5 slider: IF the value is between 0 and X-0.01 THEN put panel01, IF the value is between  X and Y-0.001 THEN put panel02....; the (-0.01) is for define only one slider for the roof and the ceiling in one time and prevent crossing values; without this subtraction it will be IF...between 0 and X THEN..., IF...between Y and Z THEN...and so on, too much sliders.

The point is: first you have to subdivide the main surface in clear panels, the future position of the pattern, then get a value for each panel and finally cull list. 

 

Hope this will help you, bye

 

Comment by Danny Boyes on May 17, 2011 at 2:18am

What values do you have for every surface?

How have you applied the colour gradient? If it is a texture then you will be able to use the Image Sampler to handle the colour information by sampling the bitmap texture at supplied points.

Comment by Armor Gutierrez Rivas on May 17, 2011 at 1:55am

Yes, I also have the values for every surface, and according to this values I´m distributing the colours.

The goal is to have a pattern applied to this surfaces instead of the colours!

Comment by Danny Boyes on May 16, 2011 at 5:22pm

Can you clarify please.

Do the Surfaces have a colour property, the value of which, you want to base the pattern on? If so then I don't think this is not achievable with conventional GH components.

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service