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?
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.
Permalink Reply by u on September 24, 2009 at 12:27pm
yes i just did that thanks! it works
...but is there any way that this gradient can be baked??
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.