Hi. Is there any chance you could shed some light on how Vray assings colors to objects in render elements such as VRayObjectID, VRayMtlID and VRayRenderID? In MAX's default renderer you could find assigned color using maxOps.colorById method, but obviously Vray uses different palette.
Here are 10 boxes with assigned object ids from 0 to 9, displaying Object ID render element. Notice that it looks different in Scanline and in Vray.
To my understanding it just shifts each of the tree color components by some coefficient, but it would be nice if you could provide with exact formula.
Basically what I'm trying to do is ability to select a node by clicking on its rendered image in VFB. I find it useful when you need to locate some particular object that is not easy to locate in viewport. For example when scene is heavily populated with vrayproxies that display hardly recognizable version of object. Most of this tool is ready but now it uses XML parsing from VRayRenderID and I would like to avoid that. Thanks in advance.
Here are 10 boxes with assigned object ids from 0 to 9, displaying Object ID render element. Notice that it looks different in Scanline and in Vray.
To my understanding it just shifts each of the tree color components by some coefficient, but it would be nice if you could provide with exact formula.
Basically what I'm trying to do is ability to select a node by clicking on its rendered image in VFB. I find it useful when you need to locate some particular object that is not easy to locate in viewport. For example when scene is heavily populated with vrayproxies that display hardly recognizable version of object. Most of this tool is ready but now it uses XML parsing from VRayRenderID and I would like to avoid that. Thanks in advance.
Comment