Re: [osg-users] order of PreRender camera with respect to the main camera

2014-10-27 Thread Robert Osfield
HI Nick, If you Camera that is following the main camera requires the same view matrix then could you not simply set the Camera::ReferenceFrame to REALATVE_TF so that it inherits the view and projection matrix from above? Robert. On 25 October 2014 08:35, Trajce Nikolov NICK

Re: [osg-users] order of PreRender camera with respect to the main camera

2014-10-27 Thread Trajce Nikolov NICK
Hi Robert, this is really good idea .. Haven't thought of Thanks again Nick On Mon, Oct 27, 2014 at 11:52 AM, Robert Osfield robert.osfi...@gmail.com wrote: HI Nick, If you Camera that is following the main camera requires the same view matrix then could you not simply set the

Re: [osg-users] order of PreRender camera with respect to the main camera

2014-10-25 Thread Trajce Nikolov NICK
Hi Robert, below is my frame code, and this seam to fix it. But, just a question, shouldnt the main view matrix be updated by the camera manipulator prior to any other update (I have attached UpdateCallback to the pre render camera and these seam to be called before the main camera update which

[osg-users] order of PreRender camera with respect to the main camera

2014-10-24 Thread Trajce Nikolov NICK
Hi Community, I am facing the same problem for long time and always have to hack it. I have prerender camera that has to follow the main camera. My pre-render camera is always a frame behind the main camera which is updated by a CameraManipulator. The update of the Pre-Render camera is done with

Re: [osg-users] order of PreRender camera with respect to the main camera

2014-10-24 Thread Robert Osfield
Hi Nick, The update of the CameraManipulator happens at the end of VIewer::updateTraversal(). The default Viewer::frame() implementation() runs the event and then update traversal. Your own application can override any of the viewer.frame() or updateTraversal/eventTraversal() methods so if you

Re: [osg-users] order of PreRender camera with respect to the main camera

2014-10-24 Thread Trajce Nikolov NICK
thanks Robert Nick On Fri, Oct 24, 2014 at 5:19 PM, Robert Osfield robert.osfi...@gmail.com wrote: Hi Nick, The update of the CameraManipulator happens at the end of VIewer::updateTraversal(). The default Viewer::frame() implementation() runs the event and then update traversal. Your