Multiple views in one context

auvi's icon

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

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


grg's icon

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.

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

nesa's icon

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

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

auvi's icon

Thanks for your help -- I'm glad the solution was so simple