ortho1 overlayed ortho0?


    Feb 21 2006 | 1:58 am
    I am trying to draw graphics on a 2D plane in front of a 3D rendered world. Just like in video games. I would like this control panel to be able to slide in and out, control alpha, etc. but not be effected by the camera perspective of the underlying world. I thought that a jit.gl.videoplane object with ortho 1 would work, but it doesn't. How does one do this?
    Christopher

    • Feb 21 2006 | 4:39 am
      @ortho is a renderer setting. So you will need to disable automatic
      mode, send ortho X to jit.gl.render, bang the objects you wish to
      draw, then send @ortho Y to jit.gl.render and bang the other objects
      you wish to draw.
      -Joshua
    • Feb 21 2006 | 5:14 am
      I am also rendering multiple view onto a single context using multiple
      bangs.
      But I receive a flikering screen, how could we enable double-buffering and
      swap buffer manually after all rendering finish ?
    • Feb 21 2006 | 5:35 am
      you can't "bang" jit.gl.render multiple times for a single frame.
      jit.gl.render's "bang" method is equivalent to drawclients, swap. You
      can just swap with the message "swap". In my message I was suggesting
      sending the "bang" message to the jit.gl.objects being drawn. For
      these, bang is equivalent to the "draw" message. You will want to
      turn the jit.gl objects' automatic attribute off.
      -Joshua
    • Feb 21 2006 | 6:23 pm
      So I tried what you suggested, which is attached, but when I change the camera to jit.gl.render in anything but the z-axis the ortho 2 layer is still effected. Did I misinterpret your suggestion?
      Christopher
      max v2;
    • Feb 21 2006 | 6:51 pm
      On Feb 21, 2006, at 10:23 AM, Christopher Overstreet wrote:
      >
      > So I tried what you suggested, which is attached, but when I change
      > the camera to jit.gl.render in anything but the z-axis the ortho 2
      > layer is still effected. Did I misinterpret your suggestion?
      You simply need to set the camera position for each "layer"--i.e.
      something like the following sequence
      erase
      ortho 2
      camera
      bang layer 1 objects
      ortho 0
      camera bang layer 2 objects
      bang or "swap" message to jit.gl.render
      -Joshua