WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-25-2017, 12:49 PM
fivel_lab fivel_lab is offline
Member
 
Join Date: Mar 2011
Posts: 31
vizconnect getMovementScale

Hello
We are trying to use vizconnect's <WrappedAvatar>.setMovementScale() but we don't see any changes in the behavior of the avatar when it is moving. The vizconnect configuration uses Microsoft Kinect/FAAST as a tracker.

I have confirmed that I can change the movement scale VALUES:

Code:
SCALE = .1
myAvatar = vizconnect.getAvatar()
print 'Original movement scale: ' , myAvatar.getMovementScale()
myAvatar.setMovementScale([SCALE , SCALE , SCALE ])
print 'New movement scale: ' , myAvatar.getMovementScale()
but like I said above, this does not appear to do anything to the movement of the avatar. I've used values of SCALE as low as 1e-23 and as high as 10000, but the rendered movement seems identical no matter what the value is!

What does this method do, exactly? Am I missing some critical step to get it to work? Thank you!

Any guidance would be greatly appreciated!
Reply With Quote
  #2  
Old 12-26-2017, 06:45 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,397
It looks like this command is not working with all avatar types. I just tested and it works with the head and hand avatar but not the mark avatar. You should be able to get the same result by applying a scale factor to the tracker links instead:

Code:
trackerLink = vizconnect.getTracker('head_tracker').getLink()
# Scale movements along ground plane by factor of 5
trackerLink.postScale([5,1,5])
Reply With Quote
  #3  
Old 12-29-2017, 11:39 AM
fivel_lab fivel_lab is offline
Member
 
Join Date: Mar 2011
Posts: 31
great thanks.. we will check that out. Two questions:

1) if we want to use the vcc_male avatar, how do I figure out what the named key should be for the tracker in line 1 of your code? 'head_tracker' doesn't seem to work.
2) Can you give me a little more detail on the scaling function? I'm assuming that, if the tracker moves x units (let's say in the z-plane), then postScale([1,1,5]) would move the rendered avatar 5x units. Is that true? Also, can the scaling constant be less than zero?

Thanks!
Reply With Quote
  #4  
Old 01-02-2018, 08:55 AM
fivel_lab fivel_lab is offline
Member
 
Join Date: Mar 2011
Posts: 31
Hope you had a nice New Year. Just following up on this post. Any advice? Thanks!
Reply With Quote
  #5  
Old 01-04-2018, 02:58 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,397
Quote:
1) if we want to use the vcc_male avatar, how do I figure out what the named key should be for the tracker in line 1 of your code? 'head_tracker' doesn't seem to work.
The tracker name is the name given in the trackers tab of vizconnect.

Quote:
2) Can you give me a little more detail on the scaling function? I'm assuming that, if the tracker moves x units (let's say in the z-plane), then postScale([1,1,5]) would move the rendered avatar 5x units. Is that true?
Yes, that should work

Quote:
Also, can the scaling constant be less than zero?
It can be a number between 0 and 1 if you want to reduce the speed.
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
3D monitor display with Vizconnect rdkirkden Vizard 2 09-14-2017 02:17 AM
Regarding changing &using multiple tools at same time through vizconnect rajnishv Vizard 7 09-08-2016 04:48 AM
Zspace display in Vizconnect JB_HP_Viz Vizard 5 06-05-2015 03:28 PM
Switching between input devices setup in vizconnect and not using vizconnect JB_HP_Viz Vizard 1 01-20-2015 05:19 AM
Vizconnect Save As Dialog Jeff Vizard 0 05-01-2014 09:45 AM


All times are GMT -7. The time now is 10:19 AM.


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