Login  Register

Re: Showing overview of image viewer...

Posted by Wade Walker on Jul 13, 2015; 1:34pm
URL: https://forum.jogamp.org/Showing-overview-of-image-viewer-tp4034879p4034882.html

Often I've seen people do this purely in 2D graphics -- they just draw a scaled-down version of the full image, then draw a box on top of it, using their windowing toolkit's 2D graphics calls :) This can be the best option if your overview image is outside the main 3D viewport of your app.  But if you wanted to do this in JOGL, it would be straightforward. You'd just apply a scaled-down version of your full image to a quad as a texture, then draw 3D lines above it (i.e. between the quad and the camera). You're probably already doing something very similar to this to draw the pannable/zoomable version of the image.