WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 08-07-2007, 03:45 PM
bjgold bjgold is offline
Join Date: Jul 2006
Posts: 19
vcc avatars: defining bone length

I'm new to the world of full character avatars, and as such I'm playing with the vcc_ avatars because they afford us the bones like in our Measurand motion capture system.

However, as the people wearing the system are different sizes, we need to set the bone lengths (especially the arms) for each person. Is there a way to do this in Vizard? Thanks to the forum, I can find the length of the upper and lower arms, using

		pos1 = leftShoulder.getPosition(viz.ABSOLUTE_WORLD)
		pos2 = upperLeftArm.getPosition(viz.ABSOLUTE_WORLD)
		length = vizmat.Distance(pos1,pos2)
		print 'distance between left shoulder and elbow, ', length
However, the distance seems to vary depending on the movement of the sensors, and thus must be some sort of relative distance, where we need an absolute distance.
Reply With Quote
Old 08-08-2007, 12:24 PM
mspusch mspusch is offline
WorldViz Team Member
Join Date: Feb 2003
Posts: 223
Sounds like you want to get the distance from a bone is from its parent bone. Get this distance by calling getPosition with the defualt arguemnt: viz.REL_PARENT.

You can set the bones position offset from its parent bone by calling the setPosition command. You can also pass the optional argument viz.ABS_GLOBAL to the setPosition command to set the bone in world corrdinates.
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 04:50 AM.

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