PDA

View Full Version : Access colours of an image


varunbondwal
07-06-2008, 12:37 PM
Does anyone have an idea how can i access the individual color values of pixels of an image in XSI.. using scripting.. or through mental ray. or any other way to do it..??

ThE_JacO
07-06-2008, 12:45 PM
The question is kinda vague.
In MRay, even in the rendertree, you constantly access the colour of every single pixel.

If you know the resolution of the image you can just walk the UVs in the rendertree to use the colour of a specific pixel at some point.

In scripting you have the GetPixel method of the Image object, if you need to know more about it just search for it in the SDK docs.

varunbondwal
07-06-2008, 04:40 PM
I was searching for something like the getPixel function you told.. thnx man.. [:)]

CGTalk Moderation
07-06-2008, 04:40 PM
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.