Combining 3 jit.window objects in one

    Dec 20 2012 | 10:53 am
    Hi there, I am working on a patch which involves 3 different jit.window objects. I was wondering how I could blend them together in one window object?? I need to keep the other 3 as I control 3d coordinates using the mouse on the videos! Hope someone can help!! thanks
    please find attached a simple example

    • Dec 20 2012 | 1:25 pm
      jit.glue. But it might be better to do it in openGL / texture.
    • Dec 20 2012 | 8:53 pm
      Hi Yoann, thank you for you replay. Unfortunately it is not what I am looking for, I want to do a blend of 2 I upload the patch so you can understand better. I have tried everything but I am sure there is the way to do that. The windows I want to blend are highlighted in red (Sample - Sample1) and the final window (Blended). with the object jit.handle I can transform each 3d object using the mouse. Hope you can help me. Thank you anyway
    • Dec 20 2012 | 8:54 pm
      here the file sorry
    • Dec 20 2012 | 10:12 pm
      I'm not sure I understand what you want to do but try to "render to texture" and than blend with and send the result to the third window. ciao Rajan
    • Dec 20 2012 | 10:28 pm
      Ciao micron, i just want to blend jit.window 1 and jit.window 2 into another jit.window and mix them. Anyway I ll try what u suggest..
      thank youu
    • Dec 20 2012 | 10:44 pm
      you just need a few more objects to make this work. based on what you've already setup, you want three distinct render contexts (i'm assuming you are sending to 3 separate display outputs. if not, there are simpler ways to do this).
      you want to enabled @shared 1 on all three jit.window's you then want to create two for the two main contexts, and add the gl.mesh and gl.texture to those gl.nodes. then you enable capture to texture on the gl.node (@capture 1). this will output the attached objects as a texture out the gl.node's first outlet. then you create a videoplane to display the texture in each of the main contexts, and two videoplanes with blending enabled, in your Blended context.
      that's about it. let me know if you have further questions.
    • Dec 20 2012 | 11:05 pm
      Thank Robert, that is very helpful, I understood the process, however, in ur patch I dont get the jit.ql.node I dont have installed in my Max 5. Anyplace where I can get this object? Thank you sooo much.
    • Dec 20 2012 | 11:10 pm
      max 6 only. sorry.
    • Dec 20 2012 | 11:12 pm
      thats amazing Robert, it works in Max 6, the render its different, however, i just have the demo. :( I have copied jit.ql.node.mxo from Max 6 to max 5 but is not working..
    • Dec 20 2012 | 11:12 pm
      any other solution for Max 5?
    • Dec 20 2012 | 11:15 pm
      theoretically you can do this in max 5 by setting the capture attribute on you to a named texture and setting @shared_context on your (instead of @shared 1 on the jit.window), and then basically doing the same thing as in my patch.
    • Dec 20 2012 | 11:18 pm
      mmm ... did not quite get it ;(
    • Dec 21 2012 | 11:04 am
      thanks robert SOLVED
    • Dec 21 2012 | 11:05 am
      I bought max 6 ;) .... now the problem is how do I connect jit.ql.record to save the final results?
    • Dec 25 2012 | 11:57 pm
      capture the output of your desired final nodel of the context. For example if you have a which is the "top" node, then set @capture=1 on it. It will send out matrices rather than to the display window. the matricies can then be sent to jit.qt.record and you can record them.
      You could also use, but I've heard that will perform far better.
    • Dec 26 2012 | 5:21 pm
      a corrections to what dale says above. with capture enabled sends out textures, not matrices. textures live on the GPU, not the CPU. jit.qt.record (and jit.vcr) expects matrices.
      you can easily convert a texture to a matrix by sending the texture output from gl.node into a jit.matrix object. you can then plug the jit.matrix output into a jit.qt.record.
      this will degrade the performance of your patch as a result of the texture readback to the CPU (as well as normal jit.qt.record usage). an alternative is a screen grabbing software, such as iShowU or Fraps, and may result in better performance.
    • Mar 03 2017 | 12:28 pm
      Hi all! how would you do this if you only need the last rendered window with the two render contexts inside? (let's say that I have 2 worlds and want them inside a third one which is the only output I need),