WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-26-2009, 03:17 AM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
Unhappy Hierarchy problems

Hello.(At first, I'm sorry I'm not good at writing english)
As I posted before, I'm trying to move the hand model by using 16 sensors(patriot).
The hand model and my right hand do the same move, this is my purpose.
I've been thinking about hand bone's hierarchy.

I get 16 bones like this:
Code:
rh=viz.add(hand.cfg')
rbi_1_0 = rh.getBone('bone index 1-0' )
rbi_1_1 = rh.getBone('bone index 1-1' )
rbi_1_2 = rh.getBone('bone index 1-2' )
rbm_2_0 = rh.getBone('bone middle 2-0' )
rbm_2_1 = rh.getBone('bone middle 2-1' )
rbm_2_2 = rh.getBone('bone middle 2-2' )
rbr_3_0 = rh.getBone('bone ring 3-0' )
rbr_3_1 = rh.getBone('bone ring 3-1' )
rbr_3_2 = rh.getBone('bone ring 3-2' )
rbl_4_0 = rh.getBone('bone little 4-0' )
rbl_4_1 = rh.getBone('bone little 4-1')
rbl_4_2 = rh.getBone('bone little 4-2')
rbt_0_0 = rh.getBone('bone thumb 0-0')
rbt_0_1 = rh.getBone('bone thumb 0-1')
rbt_0_2 = rh.getBone('bone thumb HOLDER')
rbw=rh.getbone('bone ~ROOT')
And link each bones to patriot.

For example, when I want to move my index finger, I think rbi_1_0 is affected by rbw's rotation(euler) data, rbi_1_1 is affected by rbi_1_0's rotation data, and rbi_1_2 is affected by rbi_1_1's rotation data because of the hierarchy.

So, each bones rotate more than the real rotation.
I was just wondering if I could remove the influence of the hierarchy.
So I tried some transform matrix methods, but I could not solve it.

Please tell me if you know some methods or useful vizard commands for my problem.
Thank you for reading my message.
Reply With Quote
  #2  
Old 08-28-2009, 03:09 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Are you applying your rotations in world coordinates? Also, have you tried apply the rotations in order of hierarchy (i.e. apply first to bones at the top of the hierarchy)?
Reply With Quote
  #3  
Old 08-29-2009, 07:44 AM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
Thank you for your message.
I noticed that I used rotation matrix in each sensor's local coordinates.
So, I am going to rewrite my codes.
I have to study coordinate more.

Thank you again.
Reply With Quote
  #4  
Old 09-06-2009, 08:38 PM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
Sorry, another quastion.
I tried some hierarchy calculation for each bones.
When I bend my fingers, the influence of hierarchy wasn't seen.

But...I bent my fingers when I turned my palm inside out, the hand model's fingers were bent. But it was a inverse rotation compared to the real rotation. When I clench my fist, the hand model's fingers were bent backward.

I'm confused what is the reason for that.
Do you know any idea?

Thank you for reading.
Reply With Quote
Reply

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
Problems loading WRL file DrunkenBrit Vizard 2 01-29-2009 12:58 AM
Export/import problems and Vizard 3.0 release searsky Vizard 0 01-03-2006 01:34 AM
Viz PPT 1 problems Adam Precision Position Tracker (PPT) 3 08-30-2005 10:51 AM
Picture-in-Picture texture problems (again) vr_boyko Vizard 1 11-01-2004 03:12 PM
Problems with lighting in 2.0 murm Vizard 6 04-21-2004 09:59 AM


All times are GMT -7. The time now is 02:59 PM.


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