jogl
  1. jogl
  2. JOGL-223

Swing components only update GL_LEFT buffer in stereo mode

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: jogl
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      223

      Description

      When I create a GLCanvas with a GLCapabilties with setStereo(true), Swing
      controls don't seem to all work properly. Some of them (e.g. buttons) work
      fine, but others only change the output to the left buffer of the graphics card.
      For example, a JTextBox, when generated, shows the default text in both the
      GL_LEFT and the GL_RIGHT buffer, but if the text is changed, only the GL_LEFT
      buffer is updated.This problem also "spreads" to other Swing components if the
      GLCanvas is dragged around the screen to conver and later uncovers them - after
      this, only the GL_LEFT buffer is updated.

        Activity

        Hide
        kbr added a comment -

        It is highly unlikely that anything can be done about this. The underlying
        Java2D pipeline which renders the Swing controls knows nothing about OpenGL
        stereo modes which is why the components are only appearing in one of the two
        buffers. Even with the new fully-accelerated GLJPanel available with Java SE 6,
        the underlying Java2D window is not stereo capable. We might be able to address
        the latter with an RFE in the JDK.

        I hope a quick resolution of this issue is not necessary. If one is then I would
        strongly encourage you to look for workarounds involving drawing minimal
        components using pure OpenGL.

        Show
        kbr added a comment - It is highly unlikely that anything can be done about this. The underlying Java2D pipeline which renders the Swing controls knows nothing about OpenGL stereo modes which is why the components are only appearing in one of the two buffers. Even with the new fully-accelerated GLJPanel available with Java SE 6, the underlying Java2D window is not stereo capable. We might be able to address the latter with an RFE in the JDK. I hope a quick resolution of this issue is not necessary. If one is then I would strongly encourage you to look for workarounds involving drawing minimal components using pure OpenGL.

          People

          • Assignee:
            jogl-issues
            Reporter:
            eteq
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: