crueleva1 / dynamica

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

[Feature Request] Compound Convex Hull Objects #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Could support for convex decomposition compound objects be added?

Original issue reported on code.google.com by danwoo...@gmail.com on 12 Aug 2010 at 11:52

GoogleCodeExporter commented 8 years ago

What is the best way in Maya to deal with compound objects?

In the 3ds Max plugin we use the 'grouping' option, does Maya have something 
similar?
Thanks for the feedback!

Original comment by erwin.coumans on 12 Aug 2010 at 8:53

GoogleCodeExporter commented 8 years ago
The way I've seen it done in the past that worked best was to parent all the 
convex hull meshes under a group node, and simply select the group as a target 
for conversion to convex hull - it would create one "body" node and treat it as 
a single object.

Original comment by danwoo...@gmail.com on 12 Aug 2010 at 11:06

GoogleCodeExporter commented 8 years ago
There is an experimental HACD automatic convex decomposition in latest trunk.

We should make this a separate tool

Original comment by erwin.coumans on 17 Feb 2012 at 5:04

GoogleCodeExporter commented 8 years ago
Issue 37 has been merged into this issue.

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

GoogleCodeExporter commented 8 years ago

We need to add the option to create a single rigid body with multiple child 
shapes.
Those can then go into a btCompoundShape.

Some options: 

1) Add a 'compound shape' button in the UI that can handle multiple selected 
objects
2) Automatically create a compound shape for all connected nodes in a Maya 
group node

Once we can deal with compound shapes, we can solve Issue 37 too, although I 
need to check which collision shape(s) we need to use in Bullet to get this 
done.

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

GoogleCodeExporter commented 8 years ago
Option 3 is to merge two or more separate rigid bodies into a single rigid body 
with a btCompoundShape.

I suppose option 2 is easiest, using the Maya group node.

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

GoogleCodeExporter commented 8 years ago
Basic support for composite/compound convex hull is added in trunk.
http://code.google.com/p/dynamica/source/detail?r=148

The center of mass is automatically shifted, so that the object behaves 
'reasonable'. No control over this shift is exposed currently.

Usage: create a number of meshes, add them in a group, select the group, and 
hit the 'active convex hull' button. See also scenes/CompositeGroup.ma example.

Original comment by erwin.coumans on 21 Mar 2012 at 1:16

GoogleCodeExporter commented 8 years ago
Here is a video how to do it:
http://www.youtube.com/watch?v=Qv55k-vtyG8

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