jit.world @output_texture question

Marco1618's icon

Hi everyone,
I'm still learning my way around jitter and openGL, so apologies if this is obvious.
I'd like to record my OpenGL scene with Syphon Recorder.
I did it successfully with other patches, but in this particular one when I enable @output_texture for jit.world, one part of the patch (the 'shadow') disappears both in the jit.world window and in the recorded output. When opening the patch Max window reports 'jit.gl.context: using software render' which I suspect is a clue, but I can't understand what is referring to, as I named every jit.gl object to be rendered inside jit.world (at least to my understanding).
What am I missing?
Thank you

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

hi RAM, cool patch.

you are almost there but there's one little catch, texture output requires automatic mode drawing, and your videoplane displaying the shadow is set to automatic 0. simply enable automatic (and remove the bang sending from the subpatcher) and you should be good.

FWIW there is a built-in shadow feature when using jit.gl.light that might be worth exploring. it requires both shadow casters and receivers bound to a jit.gl.material object. tweaking the light color and material color settings, as well as the light shadow and material shadow settings requires some experimentation to get right.

here's some tweaks to your patch that demonstrate the built in shadows:

Max Patch
Copy patch and select New From Clipboard in Max.

Marco1618's icon

hi Rob, thank you, that worked.
To be honest, I was copy-pasting the shadow part from a Masato Tsutsui patch, eager to learn something new, and I wasn't paying much attention to videoplane's attribute. Thanks for pointing that out to me.

Yes, I knew about the built-in shadow feature, I did try that some time ago, but I guess the openGL version of my graphic card doesn't support it. Could it be? I'm running Max in a vintage MacBook pro (13-inch-early 2011), graphic card is an Intel HD Graphics 3000.
When I open your patch, this is what I get in the Max window:

It's something I've already stumbled across using jit.gl.texture for example.