Page 1 of 2

Bullet 2.71 Dynamica Maya Plugin crash on 'dRigidBodyArray'

Posted: Mon Sep 08, 2008 4:38 pm
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.

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

Posted: Mon Sep 08, 2008 9:48 pm
by Nicola Candussi
Are you using windows? Is it crashing for every collision shape or only certain types?

Thanks,

- Nicola

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

Posted: Tue Sep 09, 2008 8:57 am
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

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

Posted: Tue Sep 09, 2008 4:03 pm
by Nicola Candussi
We have tested it with the sample scene PeanutFunnel.ma which contains a rigid body array. Does it crashes as well?

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

Posted: Wed Sep 10, 2008 9:23 am
by red_oddity
Yup, that scene is an instant crash on loading.

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

Posted: Wed Sep 10, 2008 6:51 pm
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

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

Posted: Thu Sep 11, 2008 1:08 am
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

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

Posted: Thu Sep 11, 2008 10:11 am
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.

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

Posted: Thu Sep 11, 2008 10:54 am
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.

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

Posted: Thu Sep 11, 2008 11:03 am
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.

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

Posted: Thu Sep 11, 2008 11:26 am
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];
}

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

Posted: Fri Sep 12, 2008 9:33 pm
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

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

Posted: Tue Sep 16, 2008 11:42 am
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.

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

Posted: Wed Sep 17, 2008 1:02 am
by smallpixel
plz was any able to fix the strange behaviour of translation and rotation when converting object to rigid body .

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

Posted: Wed Sep 17, 2008 8:18 am
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