WorldViz User Forum  

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

 
 
Thread Tools Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-20-2011, 03:44 AM
nihohit nihohit is offline
Member
 
Join Date: Nov 2011
Posts: 16
Jitter & gradual decline in y value

Hey,
I'm using the code

def updateView():
pptPOS = tracker.getPosition()
viz.MainView.setPosition(pptPOS)

vizact.onupdate(viz.PRIORITY_DEFAULT, updateView)

and later on, in a different function

viewPOS = viz.MainView.getPosition()
head.lookat(viewPOS,5,viz.AVATAR_WORLD)
neck.lookat(viewPOS,5,viz.AVATAR_WORLD)

which is a simple code to make the avatar look at the main POV.

Alas, the code doesn't work. When the function needs to be called, the avatar's head jitters and gradually descends, until the helmet moves significantly, when it jumps back up and then returns to the jitter-and-descent routine.

Attached in the files is a graph of the result of getPosition over time - notice that the Y line is gradually descending and more jittery then the other lines - which makes me believe this isn't a problem with the code.

Any ideas?
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	2106
Size:	79.1 KB
ID:	471  
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
Decreasing PPT Jitter codexter Precision Position Tracker (PPT) 1 10-01-2010 04:20 PM


All times are GMT -7. The time now is 11:43 PM.


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