I'm implementing a visual effect in Maya VP2. Basically there two objects A & B in the scene, I want to ensure A is always rendered first (A could be assigned with a standard blinn material), and the rendering result is grabbed into a render target texture. Then in next rendering pass, when B is rendered, the render target texture is used to do some lookup in a shader assigned to B.
The only way to I can figure out in VP2 is via MRenderOverride: create one MSceneRender just for A and another one for B. I haven't get my mind very clear yet especially when except for A & B, lots of other rendering object in scene, will scalability become a big problem. I'd like to get some opinion before diving into the implementation.
Thanks.
Hi,
I am afraid there is no API for ordering render objects in VP2. Sorry for the bad news.
Yours,
Li