[osg-users] C# language invoke OSG function
Hi Everyone, I want to develop an 3D application based on OSG. Is it possible that I use C# language to develop UI, and OSG presentation function is invoke by C#. If it is feasible, please give me an source code example. Glen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] hello all, find osg is very powerful after learned five months
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 : > 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 with LUA?this > demo is writen using LUA JIT. > only a few keyboard click,then the osg demo comes out,this is the reason i > consider osg is very very powerfull! > cheers > LearningOSG > > > 2014-06-17 23:36 GMT+08:00 Jaime : > > Yeah, I mean sharing the source code of your demo. >> >> -- >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=59786#59786 >> >> >> >> >> >> ___ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Changing image in texture2d
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_cast( node ); > osg::Matrix mR; > mR.makeRotate( _angle, osg::Vec3( 0., 1., 0. ) ); > //mtLeft->setMatrix( mR * mT ); > mtLeft->setMatrix(mR); > // Increment the angle for the next from. > > if (_bGiro) > _angle += 0.005; > else > _angle -= 0.005; > > if ( (_angle > 0.2) || (_angle < -0.2) ) > _bGiro = !_bGiro; > } > It works with normal textures. But, with osg::ImageSequence it doesn't work. Why? How can I do it? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59805#59805 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] 2D orthographic view with panning and zooming
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, Marco Kliko wrote: > 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: > viewer.stopThreading () > viewer.startThreading() > > > > I'm not sure if it works, but it is worth the try... ;) > > Thank you! > > Cheers, > Marco > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=59800#59800 > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] 2D orthographic view with panning and zooming
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: viewer.stopThreading () viewer.startThreading() I'm not sure if it works, but it is worth the try... ;) Thank you! Cheers, Marco -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59800#59800 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Synchronize animations between different computers
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 master also has to send to the slaves when an animation starts or stops. Cheers, Pjotr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59798#59798 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] 2D orthographic view with panning and zooming
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(); viewer->updateTraversal(); // Modify view matrix here viewer->renderingTraversals(); } Thank you! Cheers, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59796#59796 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org