Re: [osg-users] CompositeViewer and camera manipulator

2010-11-23 Thread Jean-Sébastien Guay
Hi Matt, Can you tell me what difference using that Camera should make? I figured there would be no difference if I just set the Camera of the view with the hudCamera...but it appears there is a significant difference. Well, one difference is that a new osg::Camera would have its reference

Re: [osg-users] CompositeViewer and camera manipulator

2010-11-23 Thread Matt Caron
Robert, I've changed the variable name - certainly not a functionality issue, but I understand the obvious confusion it could cause. I also used the Camera from the view and the minimap is now rendering correctly. So thank you for that advice. Can you tell me what difference using that Camera

Re: [osg-users] CompositeViewer and camera manipulator

2010-11-23 Thread Robert Osfield
Hi Matt, Might I suggest you name your View object a view rather than viewer, and use the variable viewer for your CompositeViewer as it's the actual viewer. Also rather than create an osg::Camera use the view's Camera, so do osg::Camera* minimapCamera = view->getCamera(); Robert. On Mon,

Re: [osg-users] CompositeViewer and camera manipulator

2010-11-22 Thread Matt Caron
I have now refactored all my view-based code so it works with osgViewer::View's. Currently my main scene is working as it was before, including my HUD. However, the area I'm trying to use as a minimap is drawing itself light gray and I have no idea why. Here is the code I'm using to initializ

Re: [osg-users] CompositeViewer and camera manipulator

2010-11-19 Thread Matt Caron
Ok, to use a View I have had to make some changes to my input system because I was extending Viewer and adding Joystick support to it. The final problem I seem to be having with extending View instead of Viewer is that the method elapsedTime() is not provided. Do you have any suggestions abo

Re: [osg-users] CompositeViewer and camera manipulator

2010-11-18 Thread Robert Osfield
Hi Matt, I would not recommend add a Viewer to CompositeViewer, it's technically possible because Viewer is a View, but having two viewers, one inside another will just lead to confusion down the line. CompositeViewer is designed to be a viewer that is composed of a set of Views. Each View has a

Re: [osg-users] CompositeViewer and camera manipulator

2010-11-17 Thread J.P. Delport
Hi, are you adding the manipulator to a created view? jp On 17/11/10 20:51, Matt Caron wrote: Greetings, I have decided to switch the viewer in my application from a Viewer to a CompositeViewer - currently I have instantiated a CompositeViewer and added the normal Viewer to it that was prev

[osg-users] CompositeViewer and camera manipulator

2010-11-17 Thread Matt Caron
Greetings, I have decided to switch the viewer in my application from a Viewer to a CompositeViewer - currently I have instantiated a CompositeViewer and added the normal Viewer to it that was previously being used for my entire scene. However, my custom CameraManipulator is no longer changing