crueleva1 / dynamica

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

Dynamica is not deterministic: after rewinding the simulation the simulation runs differently #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Currently the Dynamica plugin doesn't reset all internal values, so the 
simulation is different each time.

We need to carefully reset all internal values to guarantee 
deterministic/reproducable results.

See also this forum topic:
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=12&t=4838

Original issue reported on code.google.com by erwin.coumans on 25 Mar 2010 at 9:42

GoogleCodeExporter commented 8 years ago
I finally looked at it and started to make Dynamica deterministic.
http://code.google.com/p/dynamica/source/detail?r=137

Latest trunk should be deterministic, although slider, 6dof and softbody are 
temporarily broken.

Original comment by erwin.coumans on 17 Feb 2012 at 4:56

GoogleCodeExporter commented 8 years ago
rewinding the simulation should run the same simulation (except perhaps the 
very first run)

Fixed in revision
http://code.google.com/p/dynamica/source/detail?r=139

Original comment by erwin.coumans on 18 Feb 2012 at 8:16

GoogleCodeExporter commented 8 years ago
Thanks for the update.

There is a command that only appear in Maya 2012 API. Can you change it for 
backward compatibility?

It's in sixdosConstraintNode.cpp file, lines 528 to 535.
The command is asMDataHandle(), that I can't find in Maya 2011.

Thank you.

Original comment by victor.m...@gmail.com on 23 Feb 2012 at 9:26

GoogleCodeExporter commented 8 years ago
Good point, I fixed it in latest trunk.

Can you try it again? I also uploaded Windows installers for Dynamica Maya 
2011/2012, 64bit.

Original comment by erwin.coumans on 23 Feb 2012 at 6:22