Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
red_oddity
Posts: 7
Joined: Mon Sep 08, 2008 4:34 pm

Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by red_oddity »

Very nice, thank you very much..

However, for some reason a lot of the presets crash Maya 2008 (32bit) here, and i think i've narrowed it down to the `dRigidBodyArray` function. Whenever a script or user enters this command Maya crashes.

Any one know why? I disabled every plugin so only Dynamica was running, and still no succes, a single ball on passive plane works though.
Nicola Candussi
Posts: 5
Joined: Mon Sep 08, 2008 8:24 pm

Re: Bullet 2.71 released: Disney Maya Plugin, CUDA experiments

Post by Nicola Candussi »

Are you using windows? Is it crashing for every collision shape or only certain types?

Thanks,

- Nicola
red_oddity
Posts: 7
Joined: Mon Sep 08, 2008 4:34 pm

Re: Bullet 2.71 released: Disney Maya Plugin, CUDA experiments

Post by red_oddity »

Well, just running the Active Rigid Body Sphere Array tool in a new clean scene is enough to crash maya (basically anything that calls dRigidBodyArray crashes Maya)
When i create a simple scene with a collision plane and a couple spheres, cubes or hulls it works like a charm.

I'm using Maya 2008 32bit Complete (no service packs, as those gave more trouble in our pipeline than was worth it) on XP64 SP2

PC specs:

Tyan 5000XT
2 x quad Xeon 5355
8 GB memory
Geforce 8800 GTX softmodded to Quadro 4600 FX
Nicola Candussi
Posts: 5
Joined: Mon Sep 08, 2008 8:24 pm

Re: Bullet 2.71 released: Disney Maya Plugin, CUDA experiments

Post by Nicola Candussi »

We have tested it with the sample scene PeanutFunnel.ma which contains a rigid body array. Does it crashes as well?
red_oddity
Posts: 7
Joined: Mon Sep 08, 2008 4:34 pm

Re: Bullet 2.71 released: Disney Maya Plugin, CUDA experiments

Post by red_oddity »

Yup, that scene is an instant crash on loading.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by Erwin Coumans »

Strange, it works fine here.

How did you install the plugin? Did you use the 'install.bat' so it copies all following folders?

Code: Select all

xcopy /S /Y /C /I /h plug-ins\*.* "C:\Program Files\Autodesk\Maya2008\plug-ins"
xcopy /S /Y /C /I  /h icons\*.* "C:\Program Files\Autodesk\Maya2008\icons"
xcopy /S /Y /C /I  /h mvl\*.* "C:\Program Files\Autodesk\Maya2008\mvl"
xcopy /S /Y /C /I  /h scripts\*.* "C:\Program Files\Autodesk\Maya2008\scripts"
+ Which OS, XP or Vista 32bit? On Vista, you need to run the install.bat script in an 'Administrator' command-line prompt (right click on Command Prompt).
+ Where is Maya 2008 installed?
Can you check if the above files are properly copied?

Thanks,
Erwin
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by Erwin Coumans »

Update: there was a crashing bug related to dRigidBodyArray indeed.

Can you please try this new build?
http://bullet.googlecode.com/files/Upda ... Plugin.zip

Hope this helps,
Erwin
red_oddity
Posts: 7
Joined: Mon Sep 08, 2008 4:34 pm

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by red_oddity »

Brilliant, it works now.
I still have some freezes at times (or it takes a long time to compute something), especially when i follow the video tutorial where you create a passive plane and then an active array, when they intersect (which happens as the default position seems to be the zero axis for all object) it sort of freezes on creation.

Thanks folks, nice work.
red_oddity
Posts: 7
Joined: Mon Sep 08, 2008 4:34 pm

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by red_oddity »

We have found some bugs though, should we post 'm here?

For example, duplicate doesn't work, duplicating a cube creates a sphere for example.
Creating a hull or mesh rigidbody from and object rotates the object at funny angles.

Multi select and applying doesn't seem to work, sounds like something that can be simply fixed with looping an 'ls- sl' array.


btw. love the on the fly switching of solvers.
red_oddity
Posts: 7
Joined: Mon Sep 08, 2008 4:34 pm

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by red_oddity »

Okay, the rigidbosy hull and mesh creation rotation bug seems related to the position in the scene, when creating a rigidbody hull or mesh on the zero axis it doesn't rotate on creation, any offset rotates the rigidbody.
red_oddity
Posts: 7
Joined: Mon Sep 08, 2008 4:34 pm

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by red_oddity »

here's a quick snippet of code that does a multi select rigidbody hull assignment, with a workaround for the rotation bug.
tweak to your liking.

Code: Select all

$selected = `ls -sl`;
for ($item in $selected)
{
  $oldPos = getAttr ($item+".translate");
  select -r $item;
  move -a 0 0 0;
  dynamicaUI_createActiveRigidBody();
  move -a $oldPos[0] $oldPos[1] $oldPos[2];
}
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by Erwin Coumans »

So the plugin runs fine now (apart from the issues)?
  • copy/paste of a cube rigid body is still a cube here. How can we reproduce this?
  • Multi-select and changing the shape will only change a single primary selected object indeed.
  • Haven't reproduced the other (rotation) issues. Can you attach a zipped Maya .mb file that shows the rotation issue?
Thanks for the feedback,
Erwin
RBD
Posts: 141
Joined: Tue Sep 16, 2008 11:31 am

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by RBD »

Hi, just installed the Maya plugin... nice.

But am also experiencing the strange rotations, it makes object placement difficult. For example, given a polyCone:

polyCone -r 5 -h 10;
rotate -z 60deg;

When I try to make that cone an active rigid body (Mesh or Hull), the cone gets rotated and points in a different direction. For positioned objects with complex meshes, they get both moved and rotated.

Edit: Oh, and Maya's bounding box for these rigid bodies is messed up... try the universal manipulator on that cone, or something like:
xform -q -boundingBox dRigidBody1;

Thanks.
Last edited by RBD on Sat Sep 20, 2008 1:02 am, edited 1 time in total.
smallpixel
Posts: 2
Joined: Wed Sep 17, 2008 12:34 am

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by smallpixel »

plz was any able to fix the strange behaviour of translation and rotation when converting object to rigid body .
Nicola Candussi
Posts: 5
Joined: Mon Sep 08, 2008 8:24 pm

Re: Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Post by Nicola Candussi »

I'm going ahead and add the multi-select creation for the next release. The rotation problem is a known issue, I'm gonna fix that as well.

- Nicola
Post Reply