WorldViz User Forum  

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

 
 
Thread Tools Rating: Thread Rating: 3 votes, 2.33 average. Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 10-06-2004, 04:44 PM
vadrian vadrian is offline
Member
 
Join Date: Sep 2004
Posts: 32
Lightbulb

Just a thought... (from a not-so-experienced programmer)

couldn't one take care of the "wierd jumps" by seeing if there is a switch in lights and adjusting where your PPT data goes depending on which lights crossed over? That is, once we determined that the left hand went above the head, we store that info somewhere and essentially use the "head" light (highest light in PPT) for the left hand?

I think this could be accomplished by storing the last point(s) a light was at, and when the PPT system thinks the lights suddenly "jumped" to different places, you compare the "history" and adjust properly.


I'm not sure how one would code this, but it seems like its computationally possible and would not be too cpu expensive.

extremely sudo code:

# so before any objects are moved/rotated
if (hand and head jump farther than threashhold value)
compute distance between handL.prev() and head.pos()
if distance < jump distance
#hand now higher than head
swap head and hand inputs

the only problem with this is when the hand is close to the head in all coords (x,y,z). then the code might err when the expected distance >= to the jump distance.

*i have no idea if this makes sense or is full of mistakes
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


All times are GMT -7. The time now is 03:35 PM.


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