2 Replies Latest reply on May 5, 2011 3:06 PM by captfoss

    Rendering and displaying different resolutions

      Hey all,

      I'm using JOGL (I know this isn't a JOGL forum but it's about the best place I found to ask) and I'm trying to figure out how I can render a scene to a lower resolution than I display the scene. IE, I'd like to render the scene at, say, 256x256, and then have that image automatically scale to fill a JPanel.

      Currently, I can get the image to render at the smaller resoluton by resizing the viewport, or resizing the actual GLAutoDrawable... but I can't seem to find a way to make the viewport automatically upscale a decreased render buffer.

      If any of that makes sense... I just like to set a small, fixed resolution for the scene and have that scale to the full window.