if i have a face/vertex/patch etc... of a texturemapped object selected, how would I (if its even possible) retrieve the color information of the texture at that particular spot?......also, is it possible to retrieve the light intensity at the spot as well? (kinda like the lightinfonode does but for a face/vertex......)
correction, like the surfaceLuminance, not lightinfo
can anyone help? [
theres gotta be someone?...
actually i only need the intensity part now, cuz i think i can use cpos for the color info
All I can think of is if you can get the light intesity/color at the verts of the face the point is on, you could average the light value by distance (interpolate) from the verts. Basically, you would be redoing the Gourad shading calculation by hand for your point. This is assuming vert lighting is accurate enough for your needs.
--JeffD
that may actually be what i need, but how do u get the info on a per vertex basis like you say?
I was afraid you were going to say that ![]()
Check out the command polyGeoSampler. It might get you what you need. I have no idea how it works, though. Good luck.
--JeffD
thanx ill check it out
hey, jus read the doc on that command....it may just what i need...
......
by the way, it says it "stores the color information"...where does it go?? (im new to mel...pardon my insolence.....
{)} )
Like I said, I have no experience with this command, but I would assume the result could be put into a variable assignment...
$test = polyGeoSample -ac;
or something like that.
--JeffD