[Paraview] Using VR-Style input devices, analog input from 3Dconnexion device
Pat Marion
pat.marion at kitware.com
Fri Dec 21 23:55:47 EST 2012
Hi,
I'm not sure if this is relevant to your discussion, but I just wanted to
make sure you guys are aware of this class in VTK:
http://www.vtk.org/doc/nightly/html/classvtkTDxInteractorStyle.html
Pat
On Sat, Dec 22, 2012 at 4:38 AM, Aashish Chaudhary <
aashish.chaudhary at kitware.com> wrote:
> Hi Christian,
>
> Sorry for the late reply. Not directly answering your question, but would
> like to inform you that we (Mostly Dave and some me) recently made
> improvements to the VR Plugin and now its merged back into master.
>
> (13598-VRGrabWorldFix in master now)
>
> I am wondering if you would like to update / test your code against
> today's master. If you have some specific questions, we should be able to
> help.
>
> Thanks,
>
>
> On Fri, Dec 21, 2012 at 2:38 AM, Christian Richter <
> christian.richter at ovgu.de> wrote:
>
>> 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
>>
>>
>>
>> ______________________________**_________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/**
>> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/**ParaView <http://paraview.org/Wiki/ParaView>
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/**mailman/listinfo/paraview<http://www.paraview.org/mailman/listinfo/paraview>
>>
>
>
>
> --
> | Aashish Chaudhary
> | R&D 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20121222/9b2707b2/attachment.htm>
More information about the ParaView
mailing list