View Full Version : sample color value on surface

09 September 2010, 11:08 AM
is it possible to sample the color value on a surface or texture, so that those values can be converted to data? So, for instance, if I had a checkerboard texture applied, the black values could be used do set an attribute to 0 and the white could set an attribute to 1. Would be most interesting if I could sample the values across a surface somehow, so that I could read various values depending on what part of the surface was sampled.

Could a value be queried at a UV?

Thanks a lot for reading.

09 September 2010, 11:23 AM
Take a look at the 'colorAtPoint' command, it does just what you are after..


09 September 2010, 05:03 AM
Ding ding ding, correct.

Exactly what I needed.


CGTalk Moderation
09 September 2010, 05:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.