crueleva1 / dynamica

Automatically exported from code.google.com/p/dynamica
0 stars 0 forks source link

Can't create rigid body from group of objects #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. select transform node containing child objects 
2. create active hull rigid body

If I try this I get:
// Error: file: C:/Program 
Files/Autodesk/Maya2012/DynamicaBullet2.78/scripts/mbUtils.mel line 77: No 
object matches name:

I'm using Dynamica 2.78 with maya 2012/64 on win7/64.

Original issue reported on code.google.com by james.c....@googlemail.com on 2 Mar 2012 at 2:16

GoogleCodeExporter commented 8 years ago
Just tried 2.80 with convex hull and HACD and I get these errors: 

Dynamica: mesh_grp is not a Polymesh, rigid body not created!

// Error: file: C:/Program 
Files/DynamicaBullet2.80ForMaya2012-x64/scripts/mbUtils.mel line 77: No object 
matches name: 

And if I group the objects under a mesh instead of a transform node I get:

Dynamica: Creating Dynamica rigid bodies...

// Error: file: C:/Program 
Files/DynamicaBullet2.80ForMaya2012-x64/scripts/dynamicaUI.mel line 925: More 
than one object matches name: 
awljkehfgaefhsedioifw489zhfsuiuiuiuiuitz8cgzys4gm8i1

Original comment by james.c....@googlemail.com on 2 Mar 2012 at 2:48

GoogleCodeExporter commented 8 years ago
This is not a feature yet, but it might be the same as this feature request?

http://code.google.com/p/dynamica/issues/detail?id=8

In a nutshell, if you select a group, it should create a composite/compound 
rigid body with all shapes under the group a child shape of the rigid body 
btCompoundShape.

Is that what you want?

Original comment by erwin.coumans on 5 Mar 2012 at 1:13

GoogleCodeExporter commented 8 years ago
Thank you for answering. And yes, I think that's what i want.

As far as I understand it convex decomposition (in issue 8) is used for 
breaking objects into smaller parts. What I need is a rigid body group with the 
minimal convex hull of all child objects like the maya rigid body system as 
well as nvidia physX (although I can't seem to get it working correctly) do.

I attached a simple example scene. Thank you for considering this request.

Original comment by james.c....@googlemail.com on 5 Mar 2012 at 3:17

Attachments:

GoogleCodeExporter commented 8 years ago
The minimum convex hull for all children is different from a compound shape, 
but once we have compound shape support, it would be trivial to add an option 
to use the convex hull of the btCompoundShape.

Let's merge it.

Original comment by erwin.coumans on 15 Mar 2012 at 11:04

GoogleCodeExporter commented 8 years ago
See http://www.youtube.com/watch?v=Qv55k-vtyG8 how to do it with latest 
Dynamica 2.80

Original comment by erwin.coumans on 22 Mar 2012 at 4:25

GoogleCodeExporter commented 8 years ago
Thank you, this will come in handy.

Original comment by james.c....@googlemail.com on 22 Mar 2012 at 3:35