PDA

View Full Version : sample color value on surface


misterwolfy
09-28-2010, 12:08 PM
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.

bendingiscool
09-28-2010, 12:23 PM
Take a look at the 'colorAtPoint' command, it does just what you are after..

cheers,
Chris

misterwolfy
09-29-2010, 06:03 AM
Ding ding ding, correct.

Exactly what I needed.

Thanks!

CGTalk Moderation
09-29-2010, 06: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.