WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-08-2009, 11:28 PM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
Question about collision for Hand model(bones)

Hello.

I'm using Hand model with patriot(Polhemus).

I have tried some methods for hand model collision because I want the hand model to grab object.
But when I try to apply collision, I get error messages every time.

My method is like this....
Code:
hand=viz.add('hand.cfg')
(get bones :bone01~bone16)
bone01=hand.getBone('bone index 1-2')
.
.
.
bone16=....

bone01.collideMesh()
.
.
.
bone16=...
Then, I run the code and errors always appear. But I can hardly understand errors written in English.

Please give me ideas about that.

Thank you for reading.
Reply With Quote
  #2  
Old 10-18-2009, 07:42 PM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
I have solved the problem by myself.
Thank you.

But I've got another question.
When I use <node3d>.collideSphere, the command usually work great. But when I change the scale of the node(especially, when I make the node small), collideSphere doesn't work.

For example,,,
ground=viz.add('shpere_ground3.ive')
ball=viz.add('white_ball.wrl')
ball.setScale(.1,.1,.1)
ball.setPosition(0,.5,0)
ball.collideSphere()

In this case, collision doesn't happen(ball falls down through ground). But if I change the scale of the ball(I make the ball bigger like [2,2,2]), collision can be seen.

What is the reason for this? Please give me some advice.

Thank you for reading.
Reply With Quote
  #3  
Old 10-23-2009, 10:53 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Vizard uses the ODE physics engine and we have noticed that it has problems computing collisions for very small objects. I would suggest avoiding using small scales on physics objects if possible.
Reply With Quote
  #4  
Old 10-26-2009, 04:50 AM
atamasan atamasan is offline
Member
 
Join Date: Jul 2009
Posts: 26
Hi, thank you for your advice.
Fortunately, to avoid using small scales is not big problem for me.
I will try with big scaled objects.

Thank you very much.
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
Collision detection with specific models just alex Vizard 1 02-06-2009 11:02 AM
Collision with child nodes rubberpimple Vizard 4 09-17-2008 04:27 PM
Collision detection with haptic pen mjabon Vizard 3 01-17-2008 06:35 PM
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM
Walking avatars --> collision detection? sjroorda Vizard 3 10-13-2005 04:47 AM


All times are GMT -7. The time now is 01:24 PM.


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