Multiple views in one context


    Jan 29 2006 | 9:28 pm
    I am trying to draw two views of the same OpenGL scene in one frame. The idea is: draw frame, move camera, draw frame again, output frame. But the results flicker. It's the same at any speed that the jit.gl.render object is banged. (See patch below.)
    I'm aware that the "correct" way to do this is to have multiple objects, rather than multiple camera views. But hopefully someone can spot an error in the way I'm trying to accomplish this. Thanks Kurt http://auv-i.COM http://retnull.com

    • Jan 29 2006 | 11:14 pm
      Am 29.01.2006 um 22:28 schrieb auvi: > I am trying to draw two views of the same OpenGL scene in one frame. > The idea is: draw frame, move camera, draw > frame again, output frame. But the results flicker. It's the same at > any speed that the jit.gl.render object is banged.
      Hi Kurt, use @automatic 0 and bang jit.gl.gridshape twice (instead of jit.gl.render). cheers, g.
    • Jan 29 2006 | 11:47 pm
      hi kurt,
      the problem is in:
      > draw frame, move camera, draw frame again, output frame.
      because draw frame means output frame too, checkout attached patch.
      one solution is what georg suggested, another would be to use jit.gl.sketch...
      hth, nesa
    • Jan 30 2006 | 12:15 am
      Thanks for your help -- I'm glad the solution was so simple