Grasshopper

algorithmic modeling for Rhino

hey
I am trying something relatively simple. I have a surface and want to apply a colour gradient to it with a attractor point/s. the closer the point/s to the surface the variation of colour (i.e. the closer the attractor point to the surface the brighter the colour of the surface. Anyone know how to do this?

Views: 1654

Replies to This Discussion

Well, you would need to break up the surface into smaller chunks and give each of those a value depending on the distance to the attractor point...otherwise use a mesh and apply per vertex color.
yes i just did that thanks! it works
...but is there any way that this gradient can be baked??
Yes, see "Bake Attributes" component in Giulio's tools:
http://www.giuliopiacentino.com/grasshopper-tools/

The gradient should connect to the 'color' input.
You can also create a colored mesh out of the surface using vertex colors. These colors will be baked together with the mesh.
A better way would be to create a colored bitmap inside grasshopper using a scripting component and the bitmap.setpixel method (http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.setpi...). This bitmap can be uv-mapped to the surface.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service