Hi Robert Thanks for the clarrification. After reading through the OpenSceneGraph API docs we definitely require two views. So to summarise
2 monitors (projectors) 1 View on each monitor 1 XScreen, and therefore 1 context (if possible). Sorry for not giving all this information up front but I have only written about 1/3 of the codebase, so I have to go fishing through the code. I appreciate the help! Thanks Michael On Fri, Nov 21, 2008 at 8:10 PM, Robert Osfield <[EMAIL PROTECTED]>wrote: > HI Michael, > > Does you two "views" move together, i.e. they look different > directions but as the viewpoint moves around both projector outputs > should update relative to this? If this is the case they you have one > View but with two slave Cameras each with a project and view offset > from the View's master Camera. > > If two projector outputs are wholly independent w.r.t viewpoint, and > require same camera controls such as seprate CameraManipulator then > you do have a case which is logically two different views. > > Robert. > > On Thu, Nov 20, 2008 at 11:52 PM, Michael <[EMAIL PROTECTED]> > wrote: > > Hey Robert > > > > We have 2 separate logical views (I guess). Essentially we have 2 > projectors > > that can each be placed at any location and orientation in the room and > they > > project onto objects in the room. This is not a tiled display, and we are > > not worried about overlap. We are also doing some render to texture > > operations which is why we have different views. Each monitor output is > > driving a single projector. So, we have 2 projectors and a couple of RTT > > cameras. > > > > The projectors have their own projection and view matrices, but share the > > same scene graph data for drawing. One of the projectors does shadow > removal > > for the other one, so we need to control the render order. So, we need > each > > monitor output to drive one of our views for the projector, using the 1 > > graphics context. > > > > I appreciate the help (and patience!) > > > > Cheers > > Michael > > > > > > On Thu, Nov 20, 2008 at 7:38 PM, Robert Osfield < > [EMAIL PROTECTED]> > > wrote: > >> > >> Hi Michael, > >> > >> On Thu, Nov 20, 2008 at 12:09 AM, Michael < > [EMAIL PROTECTED]> > >> wrote: > >> > This fails on the second display because OSG can't connect to screen > >> > 0:1, > >> > because there is only 1 xscreen. Clearly I am doing this wrong, but > I'm > >> > not > >> > sure of the correct way. > >> > >> If you have only only X screen then you'll only be able to open up a > >> window on that one... so you'll need to use the screenNum set to 0 fro > >> both contexts, or.... > >> > >> > Something like this? > >> > 1. Create a single GraphicsContext on screen 0, with width=2048 (both > >> > displays) > >> > 2. Create my views, and somehow tell each one to only render on half > of > >> > the > >> > context? > >> > >> If you a grabbing the whole of both displays I would create a single > >> graphics context that goes across both physical displays. Otherwise > >> you'll need to create two graphics contexts on the same X11 screenNum > >> but with the second window starting at a xpos of 1024. > >> > >> Now what to do about the views depends upon you actual needs. Do you > >> have two separate logical views of doing you have single view that is > >> just made up of two cameras (like looking out of two adjacent > >> real-world windows that share the same view). If you have only single > >> view, then do the two halves of it but up against each other or do > >> they overlap? > >> > >> Could you have a bash at explain what you are specifically trying to > >> achieve as the advice to give is different for all the different > >> cases. > >> > >> Robert. > >> _______________________________________________ > >> osg-users mailing list > >> osg-users@lists.openscenegraph.org > >> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org