Re: [osg-users] 2D orthographic view with panning and zooming

2014-06-18 Thread Robert Osfield
Hi Radu, osgViewer::CompositeViewer is the appropriate tool to use when you want multiple VIew on to one or more scenes. Have a look at the osgcompositeviewer and osghud examples. Robert. On 17 June 2014 21:43, Radu Marin Butoi radu.bu...@mail.utoronto.ca wrote: Hello everyone, I am writing

Re: [osg-users] 2D orthographic view with panning and zooming

2014-06-18 Thread David Sellin
Hi, If think if you set viewer-setCameraManipulator( 0 ) the view matrix won't be overwritten by any camera manipulator. I haven't tried it recently but I think that's how it works. Otherwise maybe this could work: Code: while( !viewer-done() ) { viewer-advance(); viewer-eventTraversal();

Re: [osg-users] Synchronize animations between different computers

2014-06-18 Thread Pjotr Svetachov
With our distributed rendering setup we don't let the master run till all the clients are connected. From there we send the master's FrameStamp (so frame number, reference time, simulation time and just in case also the calender time) to all the slaves every frame. To manage animations the

Re: [osg-users] 2D orthographic view with panning and zooming

2014-06-18 Thread Marco Kliko
Hi, I think the best way is to go with: Code: Viewer.getCamera().setViewMatrixAsLookAt(); Not sure if you can change these values on the fly while rendering, but maybe you can stop the rendering an after changing the values start the rendering again... You can do this with: Code:

Re: [osg-users] 2D orthographic view with panning and zooming

2014-06-18 Thread Trajce Nikolov NICK
Hi Radu, I have done 2D display in the past for mapping purpose and what I did, I kept the default (TrackBall) manipulator and only changed the projection matrix (viewer-getCamera()-setProjectionMatrixAsOrtho2D()). Then I was able to pan, zoom my 2D view Nick On Wed, Jun 18, 2014 at 10:28 AM,

Re: [osg-users] Changing image in texture2d

2014-06-18 Thread Jaime
How can I rotate and osg::ImageSequence??? I tried with this UpdateCallback: virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) { osg::MatrixTransform* mtLeft = dynamic_castosg::MatrixTransform*( node ); osg::Matrix mR;

Re: [osg-users] hello all, find osg is very powerful after learned five months

2014-06-18 Thread Merrill
Don't show your example if you do not share the source code.Just showing, so boring. 2014-06-17 23:43 GMT+08:00 LearningOSG LearningOSG learning...@gmail.com: Yeah,Have the possibility,if you get the template,then you can also make such a demo,without write one line osg code,are you familiar