[osg-users] wrong graphics after removing geometry deprecated methods

2013-11-20 Thread Gianni Ambrosio
Hi All, I tried to move to a recent release of OSG but it seems that starting from 3.1.9 (to 3.2.0 included), what has been removed from osg::Geometry has completrly broken the 3d visualization. To reproduce the problem just try to load a5_ivm_crt_v2_RT_whl_front_wheel.ive (attached) with

[osg-users] Pivot point in osgViewer

2013-11-20 Thread Jason Anderssen
Hi all, Im experimenting with osgViewer, and would like to know how I would go about changing the pivot point of the scene if the user clicks on an object and I want to use the scenes object's centre point as the new pivot point? Is this possible with the current manipulators? So ultimately I

Re: [osg-users] Pivot point in osgViewer

2013-11-20 Thread Trajce Nikolov NICK
Hi Jason, very easy to do this. You control the view matrix manually. Something like viewer.getCamera()-setViewMatrixAsLookAt(eye,center, up) probably you would want to do an UpdateCallback for the camera that gets the new pivot point and change only the center Nick On Thu, Nov 21, 2013 at

Re: [osg-users] Pivot point in osgViewer

2013-11-20 Thread Jason Anderssen
Hi Trajce, Thank you for your response, so will this still allow the user to be looking at one location, while the scene itself rotates around a different location? I did think I tried this, and I thought the whole view changed to the new centre, I will try again all the same. Cheers Jason

Re: [osg-users] Pivot point in osgViewer

2013-11-20 Thread Trajce Nikolov NICK
Hi Jason, I guess you have to have a look at the CameraManipulators available and probably inherit and override some code. There is some OrbitManipulator maybe you can start with. Nick On Thu, Nov 21, 2013 at 9:17 AM, Jason Anderssen janders...@exactal.comwrote: Hi Trajce, Thank you for