J-S, Did you ever resolve this? I am having possibly-related issues, so I thought I'd check with you before delving in too deeply.
Thanks - Glenn On Fri, Jan 18, 2008 at 5:04 PM, Jean-Sebastien Guay < [EMAIL PROTECTED]> wrote: > Hello Robert, > > I was toying around with CompositeViewer and using slave views, and I > noticed > that getCameraContainingPosition() returns weird values for the local_x > and > local_y when using a CompositeViewer with a single view containing slave > cameras. I have modified the osgcompositeviewer example to demonstrate it. > > For example, run the modified osgcompositeviewer with the -1 argument. Try > clicking in the 4 corners of the left screen (if you have two screens). > Here's > what I got on one run: > > local_x = 638.034 - local_y = 0.958984 > local_x = 639.967 - local_y = 0.951172 > local_x = -1.00007 - local_y = -1.00187 > local_x = -1.00306 - local_y = -1.00187 > > Now, this is when clicking about 10 pixels away from the corners of the > screen... I would have expected to have gotten something like: > > local_x = 10 - local_y = 10 > local_x = 1270 - local_y = 10 > local_x = 1270 - local_y = 1014 > local_x = 10 - local_y = 1014 > > and indeed, if I run the same example with -2, I get the expected results. > > Is there some additional transformation I need to make to the returned > results > in order to get what I'm expecting? > > Thanks, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://whitestar02.webhop.org/ > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org