THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/11/2012 at 13:26, xxxxxxxx wrote:
Hi, I'm currently tinkering with the ShaderData Plugin class. One thing I couldn't figure out yet is how I can evaluate which object is beeing rendered at a given time.
I understand that the ChannelData and Volume Data is passed to the Output method of the plugin and I can obtain the UV position and normal direction from that (amongst other things), but there is no connection to the object being rendered.
I honestly have no idea how the raytracer works internally, but I'd think that in order to evaluate a surface normal there would have to be some kind off connection to the polygon object, in order to compute that value in the first place.
In any case, some info on the subject would be awesome.