algorithmic modeling for Rhino
What is the reason why the addition is red in the image sampler ?
Tags:
I think the main confusion here is with the Image Sampler. You're using it to sample the colour at each point. then you multiply the sampled colours with the normal vectors. This is a defined operation, it will treat the vectors as colours (x,y,z becomes r,g,b). However addition of a colour and a point is not defined. It could have been, but it's simply too esoteric.
If you sample the brightness instead of the colour, then you will multiply normal vectors with numbers, resulting in vectors, which can be added to points, see attached.
I read all your code David - this one is missing the 'Image Sampler'? Both component and image, and where to connect it if I copy/paste from OP? I've seen the 'Image Sampler' go missing in other GH efforts here - any idea why or how to fix it? Thanks.
'missing'? You mean it's not there when the file opens and there's no error message?
Correct, it's not there when the file opens. There is an error message; I didn't notice it because there are always warning error messages opening your files (newer version of GH). There was one more this time:
Missing object chunk in archive. An object could not be found in the document,it will be missing once the file is loaded.
This is similar to what we encountered the other day in this thread:
http://www.grasshopper3d.com/forum/topics/surface-extrusion-1
In that case, the image sampler in the original post was lost when two of us modified, saved and posted copes of the original file. Both of our copies lost the image sampler. Same error message.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson.
Powered by