Help with Shared Context working on max5 but not max6


    Sep 14 2012 | 8:03 pm
    Hi,
    I have used shared context in Max5 from a ripped patch found on the forum. Now in Max6 it does not work anymore. I searched on the forum and read that Shared Context has changed between Max 5 an 6 and that I should use hit.gl.node and shared 1 on a hit.window.
    The thing is that I cannot find the way to reproduce what I had in this patch, which basically allowed me to show 3d objects independently in one of two render context, or in both. Hope the patch makes sense, I trimmed it down as much as I could.
    Will work on Max5 but on Max6 I get an error 'object exists but is not part of the same context as the hit.gl.sketch object' when I try to render one of the objects to both windows.
    Thank you for orienting me in the right direction on how to do this in Max6 !

    • Sep 17 2012 | 6:19 pm
      hello alain.
      there are more than 1 solutions for this, but my suggestion is to capture each object to a texture using jit.gl.node, and display each texture on its own videoplane on each render-context. that way you can control what gets drawn where simply with the videoplane @enable attribute.
    • Sep 17 2012 | 11:06 pm
      Great ! Thank you Robert.
      This does exactly what I need. Now I will just need to check whether it does work in my setup. As I have a 7 objects in my patch that need to be drawn independently, this will sum up to quite a lot of elements to render (7 gridshapes + 14 video planes) and I hope it will not be too heavy on the processor. I'll try and give some feedback!
      Thanks again.
      Alain