[Paraview] Using VR-Style input devices, analog input from 3Dconnexion device

Christian Richter christian.richter at ovgu.de
Fri Dec 21 02:38:13 EST 2012


Hi Cory,

thats awesome, thank you so much for sharing this.

I would suggest the following change in HandleAnalog to support  
parallel-projection deph-scaling because moving in Z-Direction has no  
effect:

int mode = camera->GetParallelProjection();
     if (mode) {
	//in case of parallel projection: moving in deph-direction has no  
effect, so needs scaling
	pscale = camera->GetParallelScale();
	pscale += 0.05*channel[1];
	camera->SetParallelScale( pscale );
     }

However, the segfault remains at Enqueue for the first time a Style is  
arranged via the GUI Panel:
(if you load a state file it works and becaue I only want to set up  
the Interactor Pipeline once and start with a state file it is not a  
big problem)

Core was generated by  
`/home/dem/playground/ParaView/build/bin/paraview --use-old-panels'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f404cbeac56 in vtkVRQueue::Enqueue(vtkVREventData const&)  
() from /home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
(gdb) bt
#0  0x00007f404cbeac56 in vtkVRQueue::Enqueue(vtkVREventData const&)  
() from /home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#1  0x00007f404cbe165a in  
pqVRPNConnection::newAnalogValue(_vrpn_ANALOGCB) () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#2  0x00007f404cbf1347 in  
vrpn_Callback_List<_vrpn_ANALOGCB>::call_handlers(_vrpn_ANALOGCB  
const&) () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#3  0x00007f404cbf0c7d in  
vrpn_Analog_Remote::handle_change_message(void*, vrpn_HANDLERPARAM) ()  
from /home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#4  0x00007f404cbf7fbc in vrpn_TypeDispatcher::doCallbacksFor(int,  
int, timeval, unsigned int, char const*) () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#5  0x00007f404cbfe1cf in vrpn_Endpoint::dispatch(int, int, timeval,  
unsigned int, char*) () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#6  0x00007f404cbfe110 in vrpn_Endpoint_IP::getOneUDPMessage(char*,  
int) () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#7  0x00007f404cbfca8e in  
vrpn_Endpoint_IP::handle_udp_messages(timeval const*) () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#8  0x00007f404cbfb663 in vrpn_Endpoint_IP::mainloop(timeval*) () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#9  0x00007f404cc019a7 in vrpn_Connection_IP::mainloop(timeval const*)  
() from /home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#10 0x00007f404cbf5aeb in vrpn_Button_Remote::mainloop() () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so
#11 0x00007f404cbdb38a in pqVRPNConnection::run() () from  
/home/dem/playground/ParaView/build/bin/../lib//libVRPlugin.so

Thank you,
best wishes,
Christian




More information about the ParaView mailing list