WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-03-2009, 01:44 PM
NASA GRC NASA GRC is offline
Member
 
Join Date: Nov 2009
Posts: 5
viz.grab() on subobjects

I'm using the viz.grab() function such that the user's virtual hand can grab objects in the scene, or just subobjects of a model, and pull them apart.

When I use the call to grab the top level of a model's scene graph, it works just fine, the model is linked to the hand. However, when I use the call to grab a subobject (as modeled in an external modeling package, NOT created as a child in vizard code), it doesnt work very well. The subobject is clearly selected and being transformed, however it doenst link rigidly to the hand, but rather it seems to rotate around its local origin in place rather than moving with the hand.

Has anyone else seen this? Whats going on here? Any fixes?

Thanks.
Reply With Quote
  #2  
Old 11-03-2009, 01:51 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Have you tried enabling the absolute option when calling the viz.grab function? This should perform the grab in absolute global coordinates. However, this assumes the parent of the sub-object is not being transformed during the grab operation.
Reply With Quote
  #3  
Old 11-03-2009, 02:08 PM
NASA GRC NASA GRC is offline
Member
 
Join Date: Nov 2009
Posts: 5
Yes, that fixed it. *blush*

I looked for that exact thing before. How did I miss it?

Thanks for your help.
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


All times are GMT -7. The time now is 07:16 PM.


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