Creating a Jit.pwindow output when mixing in GL

    Sep 15 2021 | 3:08 pm
    I have been grappling with the problem (probably simple) of previewing the output of a texture from a GL object (such as or in a jit.pwindow, while at the same time the output is being composited in and I have tried various node/videoplane configurations without success.
    In this example, I am displaying the combined output of a movie and gridshape object in both a jit.window and jit.pwindow. While the movie can be easily previewed independently with its matrix output, I can't preview the gridshape texture output independently in a jit.pwindow. How do I do this without converting the texture back into matrix output?

    • Sep 15 2021 | 8:54 pm
      Figured it out: as an outlet to jit.pwindow for each sub node. If anyone wants to see the patch, just reply... Cheers.
    • Sep 19 2021 | 7:09 am
      Sure, please post :)
    • Sep 22 2021 | 2:16 pm
      hmm, I wouldn't use asyncread for this if all you want is a preview or some object view. jit.pwindow can handle texture output directly without the costly readback. to preview a single object (rather than the entirety of a node sub-context) you can use the new multiple-drawto feature of objects. you simply provide 2 drawing destinations (or more) to the objects drawto attribute. the first one being the main context or main node, and the second being some preview node context. This will be the most efficient technique to solve this problem:
    • Sep 22 2021 | 3:04 pm
      Many thanks Rob!! You are truly the bomb... it seems you have solved the vast majority of issues in the C74 forum, and I have taken many excellent tips from your patches. Best, Randall