Grasshopper

algorithmic modeling for Rhino

 What is the reason why the addition is red in the image sampler ?

 

Views: 639

Attachments:

Replies to This Discussion

I noticed you don't have the balloon icons, did you disable the balloon widget?

You don't need them, but they're a good way to quickly access the warnings and errors of each individual component.

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.

Attachments:

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.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service