WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Precision Position Tracker (PPT) (https://forum.worldviz.com/forumdisplay.php?f=9)
-   -   vrpn and viz.MainView.setPosition not working (https://forum.worldviz.com/showthread.php?t=3688)

dorijan 04-06-2011 04:24 AM

vrpn and viz.MainView.setPosition not working
 
Hi to all...

I managed to get working my tracker(VR Space) with worldviz, but I did not managed to set viewpoint where I want it to be. Problem is that I set viewpoint with viz.MainView.setPosition where I want it to be, but when I link it to my tracker with viz.link(tracker1,viz.MainView) it is lost somewhere :(

I tried with tracker1.swapPos, viz.MainView.move but the tracker is always in the same position.

p.s. I do not want to use tracker to move viewpoint, I just want to rotate...
thank you...

dorijan 04-07-2011 12:35 PM

so, is there any way to fix viewpoint? I really need a quick fix :(

farshizzo 04-07-2011 12:40 PM

You posted the question in the wrong forum. This should be in the Vizard forum.

Regarding your question, just change the link mask between the tracker and viewpoint to only control the rotation:
Code:

viz.link(tracker1,viz.MainView,mask=viz.LINK_ORI)


All times are GMT -7. The time now is 04:42 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC