No code sample on my part, maybe others have, but it's really not that difficult. :)
All OSG::Window:s have addPort(). Use that for your new viewport. Simlarly, Viewports have setCamera() and setBackground(). Setting up the orth-cam is pretty basic too if you want a simple 0,0 - 1,1 coordinate system. /Marcus On 2010-05-04 11:52, Haeyong Chung wrote: > I am using MultiDisplayWindow+SSM. Is there any good example for > adding an extra viewport to the Window with an Orthographic Camera? Or > could you give any code snippet for this? > I appreciate it very much! > > > On Tue, May 4, 2010 at 4:31 AM, Marcus Lindblom > <[email protected] > <mailto:[email protected]>> wrote: > > On 2010-05-04 10:25, Haeyong Chung wrote: > > hello there, > > I am writing an OpenSG application for a tiled display wall. It > > displays many texture-mapped objects in a scene and allows users to > > freely manipulate objects, zoom and pan the scene. I need to draw a > > mouse pointer. However, when users want to zoom the scene, this > > cursor would be also zoomed along with other objects. > > Is there any good way to draw a mouse curson in OpenSG, which is not > > affected by any view changes? The size of the cursor should be always > > the same size. I would appreciate any advices. > > Thank you! > > Add an extra viewport to the Window with an Orthographic Camera, a > PassiveBackground and a small separate 2d scene graph with a transform > core and your mouse pointer geometry. > > Cheers, > /Marcus > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Opensg-users mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/opensg-users > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
