Multi scene / render combine with jit.gl.node - weird blending issues
Sep 26 2015 | 11:53 am
I wanted to have two different [jit.gl.model]'s in the same scene, but render their lights individually/uniquely. Some forum exploring led me to learning about a multiple jit.render / jit.gl.node (one for each model and one for the background as well) / jit.gl.videoplane (two per node, one renders in its own windows and one renders in a shared window) system
I'm pretty sure I assembled and initiated everything correctly, but i'm getting a strange blending where the models aren't overlaid on top of the background, but instead blended with it. (see attachment)
I thought this could be a mistake in the rendering order, so I assigned each jit.gl.node with an @layer attribute, making the background layer 0, model 1 is layer 1, model 2 is layer 2.
However this didn't solve it either. I did find a temporary fix, where if I change the background's [jit.gl.videoplane] (the one sent to the final jit.window) @blend_mode attribute, it will render correctly. (see attachment)
"@blend_mode 1 7" looks the best and the most like how the [jit.noise] background should look, but its default is "6 7" which turns out much darker. No idea why.
I've attached my patch (and also copy compressed). This forum won't let me attach my model (.dae) file, i think the duck.dae model that come with Max should produce the same results. However, if someone wants to test with my model specifically i can send it / host it somewhere.
---------- edit ----------
ok i think i solved it. the @layer attribute needed to be on each of the jit.gl.videoplane that get rendered on the final/combined window, not on the nodes. also i don't think i need a separate render for the background, since i'm not doing any unique effects/lighting to it.
---------------------------
also if there's any suggestions on how to make my patch more efficient (do all the windows need to be visible?), that would be appreciated.