[osg-users] Render on two screens with an angle

2010-12-13 Thread Bart Jan Schuit
I want to build an app which should have one camera (or two identical, meaning that they are at the same position, facing the same direction, if that is more convenient) and multiple screens. The screens will be aligned in a 90 degree angle towards each other. So they are perpendicular: top view

Re: [osg-users] Render on two screens with an angle

2010-12-13 Thread Ulrich Hertlein
On 14/12/10 10:23 , Bart Jan Schuit wrote: > I want to build an app which should have one camera (or two identical, > meaning that > they are at the same position, facing the same direction, if that is more > convenient) and > multiple screens. The screens will be aligned in a 90 degree angle tow

Re: [osg-users] Render on two screens with an angle

2010-12-14 Thread Bart Jan Schuit
Thank you for your quick response. I still have some questions though, sorry ;). Ulrich Hertlein wrote: > On 14/12/10 10:23 , Bart Jan Schuit wrote: > > As I understand it, they're setting up two cameras, located in the eye point > '0'. > Camera 1 is projecting onto the vertical screen, and c

Re: [osg-users] Render on two screens with an angle

2010-12-15 Thread Bart Jan Schuit
I've made some progress, but not the one I want. I'm trying to figure out how I set the cameras properly. I figure that the shearing is actually the easiest step, once you know how to set the cameras and the projections/views. But my question is: how should I set both cameras? And their projecti

Re: [osg-users] Render on two screens with an angle

2010-12-15 Thread Ulrich Hertlein
Hi Bart, On 15/12/10 21:27 , Bart Jan Schuit wrote: > But my question is: how should I > set both cameras? And their projection matrix and view matrix? I've made two > views, > both with their own camera of course. But I think I cannot easily add a > CameraManipulator like the TrackBall manipulat

Re: [osg-users] Render on two screens with an angle

2010-12-15 Thread Bart Jan Schuit
Hi Ulrich, Thank you for your quick response. Well when I delete my CameraManipulator (Trackball), the screen goes blank (just blue or black background, depending on which model I load). So I assumed a Manipulator was needed. And I think I need two of them, so I can manipulate each camera inde

Re: [osg-users] Render on two screens with an angle

2010-12-15 Thread Ulrich Hertlein
Hi Bart, On 15/12/10 22:53 , Bart Jan Schuit wrote: > Thank you for your quick response. Well when I delete my CameraManipulator > (Trackball), > the screen goes blank (just blue or black background, depending on which > model I load). > So I assumed a Manipulator was needed. You see nothing be

Re: [osg-users] Render on two screens with an angle

2010-12-15 Thread Bart Jan Schuit
Hi Ulrich, Thank you again for your patience and insight. Your code makes absolute sense. But I still get the same result. If I have no trackball manipulator for either view, I get a black screen. When I have set it up for one view, only that view gets an image. My code: Code: osg::Gro

Re: [osg-users] Render on two screens with an angle

2010-12-15 Thread Jean-Sébastien Guay
Hello Bart, I must be missing something obvious I guess, but for me it isn't obvious (yet). Not quite obvious, I would say, but something you could have found out by using the debugger or looking at the OSG code for the functions you're calling. Both are tools you should learn to use when yo