Grasshopper

algorithmic modeling for Rhino

Hello everyone,

I need your help, i need to "represent" an image, on a square grid, by rotating the squares, with the axis in their middle, like if they were individual oriented blind, and the angle of aperture is somehow defining the image or logo...

How can i do this... at the moment im lost.

Thank you all in advance, and best regards from Portugal! 

Help - How to sample an image on rotating square grid?

Views: 1489

Replies to This Discussion

Hi João,

Is this what are you looking for:

?

Here is a definition that rotates the squares and colors them according to the brightness of the image.
When you open the definition, just double click on Image sampler component, and then in "File path" choose the .jpg file "image-sampler-rotating2inve.jpg" that you have just downloaded from here.

Attachments:

Hi Diordie, 

Thank you for sharing this definition. It has been very useful however I am having trouble baking the gradient. The gradient does not show up in Rhino. Can you help?

Thank you!

Chifen

Hi Chifen,

I can't edit my upper file, as I do not have PC with me.
But the thing you need is bakeAttributes component. It will enable you baking objects with their respected colors.

Download the bakeAttributes component from here, then import it into my upper .gh file. Connect the "obj" plug with the rotating squares, and gradient colors output with "color" plug. Then bake.

Hi Diordie,

Thank you for your quick reply.  I imported the bakeAttributes but I don't see anything in Rhino... Can you look at the attached and advise what I did wrong?

Attachments:

Did you set the "activate" plug to "True" (that will bake the geometry to Rhino)?

It works! Thanks!

I have one more question. How can I render the result with gradient. Keyshot doesn't read it as a gradient. 

Thank you!

I am not sure if you could just use the gradient colors for the "material" plug of bakeAttributes component.
But I am definitively sure this could be done by using Scarabcomponents with Maxwell render plugin.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service