WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
Old 04-19-2010, 02:50 PM
v-clizzin v-clizzin is offline
Join Date: Sep 2006
Posts: 15
Moving main viewpoint when linked to PPT

I'm currently debugging an old falling-into-a-pit demo; the problem is that the viewpoint does not actually move downwards when the user 'falls' into the pit.

I initially set up PPT tracking like so:

vrpn = viz.add('vrpn7.dle')
ppt = vrpn.addTracker('PPT0@' + PPT_HOSTNAME)
filter = viz.add("filter.dle")
ppt = filter.average(ppt, samples = 5)

view = viz.MainView
link =, view)
The code for moving the viewpoint downward is:

fallV -= 9.8 * viz.elapsed() # fallV is initialised at 0 when the fall begins
However, the viewpoint does not move downward. I do know from print statements that fallV is being updated correctly. I've tried using link.setPos(ppt.getPosition()[0], ppt.getPosition()[1] + fallV, ppt.getPosition()[2]), but that simply makes the view jump to floor level height and does not move further down thereafter. Perhaps I don't fully understand the interaction between PPT, the main viewpoint, and the link between the two.

This may also have something to do with the fact that this demo was written during our serial PPT days, and the update to make it work with VRPN may not have ironed out all the kinks.

Any ideas? Thank you!
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to track the actual viewpoint Jerry Vizard 3 05-25-2016 09:44 AM
Avatar w/ hat cannot look at viewpoint TrashcanPatrol Vizard 5 08-19-2008 08:26 AM
3d viewpoint movement spacefarer Vizard 9 07-25-2006 03:37 PM
moving viewpoint vs. translating Head_pos bailenson Vizard 5 02-01-2005 01:51 PM
VRML Viewpoint error bstankie Vizard 1 03-11-2003 02:10 PM

All times are GMT -7. The time now is 09:45 AM.

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