mettli / dynamica

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

Using CollisonShape type BVH results in Maya crashing when the Scene is closed #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Note: This feature is not accessable in out of the box 2.78 Dynamica currently. 
You have to update to the latest trunk to get BvhMeshes accesable or change 
this line of code in the .MLL ...

collisionShapeNode.cpp...

 fnEnumAttr.addField("Plane", 6);
    fnEnumAttr.addField("BvhMesh", 6); <-- Line 71 in collisionShapeNode::initialize()
    fnEnumAttr.setKeyable(true);

Change the 6 after BvhMesh to 7 and the BVH type will become available, works 
fine and exports fine. It does however crash Maya when the scene is closed (New 
Scene started or exit Maya).

What steps will reproduce the problem?
1. Create a Passive Mesh with Dynamica or select an existing one in a scene.
2. Bring up its CollisionShape tab and change the Type to "BvhMesh"
3. Select "New Scene" in the File menu to close the scene down, doesn't matter 
if you save the file or not. Maya will crash but your file will not be 
corrupted.

What version of the product are you using? On what operating system?
Maya 2008 Complete on Windows XP

Original issue reported on code.google.com by cont...@vicariousentertainment.com on 13 Sep 2011 at 10:47

GoogleCodeExporter commented 9 years ago
I should have noted that I have not checked to see if this crash still exists 
on the very latest get of the googlesource Dynamica project. I was not able to 
compile that as I only have the out of the box 2.78 Bullet source on my machine 
and would rather keep it that way. I did a get on Revision 123, the last check 
in for the 2.78 Dynamica release to build this codebase in which this error 
occured.

Original comment by cont...@vicariousentertainment.com on 13 Sep 2011 at 10:51

GoogleCodeExporter commented 9 years ago
If you have a few different Trimeshs in the scene, switch them to BvhMesh, then 
switch them back to regular Meshes, it will also crash Maya.

Original comment by cont...@vicariousentertainment.com on 4 Oct 2011 at 11:56

GoogleCodeExporter commented 9 years ago
We haven't looked into this yet, but we will hopefully soon.

Original comment by erwin.coumans on 12 Mar 2012 at 8:34

GoogleCodeExporter commented 9 years ago
Fixed in latest trunk:
https://code.google.com/p/dynamica/source/detail?r=156

Original comment by erwin.coumans on 12 Sep 2012 at 12:26