[Paraview] Controlling RenderView using Wiimote and VRPlugin
Hi, I am currently trying to create a way of controlling the camera in ParaView using the Joystick of a Wiimote (WiiC library). I had previously attempted this by using Pat Marion's socket plugin to send camera changes through the python shell but ran into a problem with sending too many Render() commands. It was suggested to me by Pat Marion and the Kitware employees I met at SuperComputing 2012 to use the VRPlugin to accomplish this. So after a 3 month hiatus from my project, I have finally gotten back to it but am currently lost in documentation. I have no idea where to begin with writing the code for a custom device and then connecting to and writing the camera changes to the VRPN server for ParaView. If someone could point me in the right direction of documentation that explains how to create a custom device/interaction for the VRPlugin/VRPN or some examples of such user created applications I would greatly appreciate it! Thanks, Travis J. Bueter -- Missouri University of Science and Technology - Junior B.S. Computer Engineering/Computer Science tjb...@mail.mst.edumailto:tjb...@mail.mst.edu (573)-238-5843 IT Research Support Service Treasurer - MST Robotics Competition Team -- ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Controlling RenderView using Wiimote and VRPlugin
Hi Bueter, You will first have to figure out how to set a VRPN server and WiiMote working for wiimote Joystick (I'm guessing its the four buttons in front for left,right,top,bottom). Here is tutorial that may help you. http://www.vrgeeks.org/vrpn/tutorial---use-vrpn. It dont think it uses the buttons but you can tweak the example to write one for them. Once you have the VRPN server ready then connecting them to PV should be a matter easy. The last I checked I dont think the VRPlugin has any interaction styles handling button input. However this may have changed in the recent months. If it has not then you will have to write a new interactor style to handle this. -Nikhil On Thu, Feb 28, 2013 at 4:41 PM, Bueter, Travis J. (ST-Student) tjb...@mail.mst.edu wrote: Hi, ** ** I am currently trying to create a way of controlling the camera in ParaView using the Joystick of a Wiimote (WiiC library). I had previously attempted this by using Pat Marion’s socket plugin to send camera changes through the python shell but ran into a problem with sending too many Render() commands. It was suggested to me by Pat Marion and the Kitware employees I met at SuperComputing 2012 to use the VRPlugin to accomplish this. So after a 3 month hiatus from my project, I have finally gotten back to it but am currently lost in documentation. I have no idea where to begin with writing the code for a custom device and then connecting to and writing the camera changes to the VRPN server for ParaView. If someone could point me in the right direction of documentation that explains how to create a custom device/interaction for the VRPlugin/VRPN or some examples of such user created applications I would greatly appreciate it! ** ** Thanks, ** ** *Travis J. Bueter* -- *Missouri University of Science and Technology - Junior* B.S. Computer Engineering/Computer Science tjb...@mail.mst.edu (573)-238-5843 ** ** IT Research Support Service Treasurer – MST Robotics Competition Team -- ** ** ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- Regards Nikhil ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Controlling RenderView using Wiimote and VRPlugin
On Thu, Feb 28, 2013 at 5:11 PM, Nikhil Shetty nikhil.she...@kitware.comwrote: Hi Bueter, You will first have to figure out how to set a VRPN server and WiiMote working for wiimote Joystick (I'm guessing its the four buttons in front for left,right,top,bottom). Here is tutorial that may help you. http://www.vrgeeks.org/vrpn/tutorial---use-vrpn. It dont think it uses the buttons but you can tweak the example to write one for them. Once you have the VRPN server ready then connecting them to PV should be a matter easy. The last I checked I dont think the VRPlugin has any interaction styles handling button input. Button inputs are handled (if I understood the question right) http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Plugins/VR/vtkVRGrabWorldStyle.h;h=087c37e76b69d420f2338a18eed61e6124e27e45;hb=HEAD However this may have changed in the recent months. If it has not then you will have to write a new interactor style to handle this. -Nikhil On Thu, Feb 28, 2013 at 4:41 PM, Bueter, Travis J. (ST-Student) tjb...@mail.mst.edu wrote: Hi, ** ** I am currently trying to create a way of controlling the camera in ParaView using the Joystick of a Wiimote (WiiC library). I had previously attempted this by using Pat Marion’s socket plugin to send camera changes through the python shell but ran into a problem with sending too many Render() commands. It was suggested to me by Pat Marion and the Kitware employees I met at SuperComputing 2012 to use the VRPlugin to accomplish this. So after a 3 month hiatus from my project, I have finally gotten back to it but am currently lost in documentation. I have no idea where to begin with writing the code for a custom device and then connecting to and writing the camera changes to the VRPN server for ParaView. If someone could point me in the right direction of documentation that explains how to create a custom device/interaction for the VRPlugin/VRPN or some examples of such user created applications I would greatly appreciate it! ** ** Thanks, ** ** *Travis J. Bueter* --*** * *Missouri University of Science and Technology - Junior* B.S. Computer Engineering/Computer Science tjb...@mail.mst.edu (573)-238-5843 ** ** IT Research Support Service Treasurer – MST Robotics Competition Team --*** * ** ** ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- Regards Nikhil ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- | Aashish Chaudhary | RD Engineer | Kitware Inc. | www.kitware.com ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Controlling RenderView using Wiimote and VRPlugin
If you using the VRPN to read the Wiimote data, then it should be straightforward. The simplest example is vtkVRTrackStyle which handle a single tracker input. Have a look at it here: http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Plugins/VR/vtkVRTrackStyle.h;h=7d73c7c5282b2c166223ee2bdd235f2cfb9d8356;hb=HEAD I could provide more help if needed. Let me know if you have any questions. Thanks, On Thu, Feb 28, 2013 at 4:41 PM, Bueter, Travis J. (ST-Student) tjb...@mail.mst.edu wrote: Hi, ** ** I am currently trying to create a way of controlling the camera in ParaView using the Joystick of a Wiimote (WiiC library). I had previously attempted this by using Pat Marion’s socket plugin to send camera changes through the python shell but ran into a problem with sending too many Render() commands. It was suggested to me by Pat Marion and the Kitware employees I met at SuperComputing 2012 to use the VRPlugin to accomplish this. So after a 3 month hiatus from my project, I have finally gotten back to it but am currently lost in documentation. I have no idea where to begin with writing the code for a custom device and then connecting to and writing the camera changes to the VRPN server for ParaView. If someone could point me in the right direction of documentation that explains how to create a custom device/interaction for the VRPlugin/VRPN or some examples of such user created applications I would greatly appreciate it! ** ** Thanks, ** ** *Travis J. Bueter* -- *Missouri University of Science and Technology - Junior* B.S. Computer Engineering/Computer Science tjb...@mail.mst.edu (573)-238-5843 ** ** IT Research Support Service Treasurer – MST Robotics Competition Team -- ** ** ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- | Aashish Chaudhary | RD Engineer | Kitware Inc. | www.kitware.com ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview