Search found 6 matches

by mony84
Wed Jun 04, 2008 1:13 am
Forum: Developer's Forum for Windows
Topic: space Navigator and openScenceGraph application
Replies: 21
Views: 40408

Hi rodrigo.seabra, Finally, I didn't use VRPN. I get help from the osg mailing list. (I would like to say thank you very much). main () { // init // osg inits .. SbInit ()//connect to the spacenavigator // main loop while (!viewer.done()) { // DispatchLoop is similar to the sdk example but instead o...
by mony84
Fri May 23, 2008 9:03 am
Forum: Developer's Forum for Windows
Topic: space Navigator and openScenceGraph application
Replies: 21
Views: 40408

hi rodrigo.seabra,

Finally, the unique solution is to work with the VRPN (Virtual Reality Peripheral Network) and the osgVRPN .



Good luck
by mony84
Wed May 21, 2008 5:36 am
Forum: Developer's Forum for Windows
Topic: space Navigator and openScenceGraph application
Replies: 21
Views: 40408

Hi, The problem is that we have to attach the SpaceNavigator to a window. I tried to find how to attach the device to the viewer (osgViewer::Viewer) but I didn't succeed. In the osg mailing list, I find a post where they suggest to use the vrpn and the osgvrpn libraries. I try to understand how it w...
by mony84
Tue May 20, 2008 6:27 am
Forum: Developer's Forum for Windows
Topic: space Navigator and openScenceGraph application
Replies: 21
Views: 40408

thank you for your reply, "message loop" : do you mean messages we add as output to view some parameter values? if yes, I put for example cout << FrameTransRot.MathRotation[1][3]<<endl; I tried with many other parameters and I get the same result : always "0" was diplayed. If I m...
by mony84
Tue May 20, 2008 4:19 am
Forum: Developer's Forum for Windows
Topic: space Navigator and openScenceGraph application
Replies: 21
Views: 40408

I made a mistake when I copied the code of the 3rd fucntion : the right code : bool MyManipulator::calc3DMovement( ){ //static DWORD s_dwLastDraw = 0; if (g3DSensor) { try { CComPtr<IAngleAxis> pRotation = g3DSensor->Rotation; CComPtr<IVector3D> pTranslation = g3DSensor->Translation; cout <<g3DSenso...
by mony84
Mon May 19, 2008 8:27 am
Forum: Developer's Forum for Windows
Topic: space Navigator and openScenceGraph application
Replies: 21
Views: 40408

space Navigator and openScenceGraph application

hello, I want to use the SpaceNavigator with an osg application. I read the 3Dpolling example and modified it to register the data in a text file. I thought it would be easy to integrate the same code into the application but I have some problems. MyManipulator::MyManipulator(osg::Vec3 init_pos){ _t...