Grasshopper

algorithmic modeling for Rhino

I am using the image sampler to create a 3D form in which the depth relates to the the color of the pixels, the image below is an example of this effect on a simple rectangular surface-

However, I am trying to create this effect on a sphere, so each point on a sphere is moved a certain distance depending on the pixel colors in the image. The surface of the sphere is then rebuilt using these moved points creating an abstract form.

I have begun a definition below but I have got stuck at the point where the image is only affecting a quarter of the sphere, any ideas how this might be solved? Any help would be much appreciated. 

Thanks! 

Views: 1127

Replies to This Discussion

You are so close you just need to edit a few things. 

1. Right Click the S input of the Surface Divide Component and click Reparameterize

2. Plug the uv output of Surface Divide Component into Image Sampler (instead of the points output)

3. Click on the image sample component and check the Domain is set for x and y  as 0 to 1

Then i think you code should work.

If you can attach the code next time and internalise data (right click then internalise data option) that would be a great help to us all. As then we don't need to recreate your code from an image again or guess the answer alittle.

You Legend, Thank you very much that sorted it out!

Do you know how I might get the points to have their own xy planes which are tangent to the sphere so that when the are moved along z axis they are pointing outwards from the sphere instead of just going upwards in relation to world xyz? 

This time I have attached the file with internalise data! 

Cheers

Attachments:

Thanks that helps me answer quicker. 

You need to use the normal output from the surface divide and amplitude or multiplication component to instead of z component as before. (See Image Below)

Also set the filter to Hue instead of colour then it will give you out a single number per pt not a rgb value (set of numbers)

Also you can use expressions in components, for the +1 etc

Attachments:

Thank you very much!!!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service