Hello,

Once again, for OSG questions please post to the OpenSceneGraph mailing list (subscribe at http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org) or on the Forum (http://forum.openscenegraph.org/). Please DO NOT send e-mail personally to one of the members of the list.

Thanks for your quick reply.Your speculation is correct.Your information
is very useful for me.Excuse me,professor.As a beginner of osg,could you
give me the corresponding code to show me how to?Any reply from you will
be apprecated.Thanks again!

Please do some research. Look for "createGraphicsContext" in the OSG examples (you need to download the sources package, and then search in the "examples" folder).

The general idea is that you set up an osg::GraphicsContext::Traits structure to represent what kind of graphics context you're requesting. In your case, you'll want to set a different ScreenIdentifier (with a screen num of 0, 1, or 2) to specify on which graphics card/screen you want the context to exist. Then you pass that Traits to createGraphicsContext which returns you a graphics context.

As I said in my previous message, once you have three contexts one on each card, you set up a Viewer/View with one master camera and three slave cameras. Each slave will have one of the graphics contexts, and its projectionOffset will be set to translate the projection up or down compared to the others.

But as I said, first try researching yourself, come up with something you think should work, try things out, and if you have more questions, post to the osg-users mailing list or the forum.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to