Hi Tobias,

You have a couple of options.

First up you could create a slave Camera that renders into a separate
window, and have this Camera not share the main View's scene data, and
also separate the view and projection matrix settings by setting the
slave Camera ReferenceFrame to ABSOLUTE_RF.  See the osghud example as
this will provide a bit of inspriation in this direction.

Alternatively you could use a CompositeViewer and have two View's one
for the main 3D view and one for the 2d image view.  Again osghud has
a code path that uses CompositeViewer so its a good example to use for
this approach.

W.r.t rendering the image, have a look at the osgdistortion example as
it provides an example of rendering an image full screen by rendering
a quad in orthographic view.  Again this related to osghud.

Robert.

On 7/13/07, Tobias Münch <[EMAIL PROTECTED]> wrote:
Hello at all

 I want to create an additional window besides my standard osg::viewer
window that displays an osg::image. I allready created a window with
osg::GraphicsContext. Does anybody know how to put an osg::image into an osg
window? Moreover it should be possible to update the image content at each
frame of the osg::viewer window.

 Best regards, Tobias

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to