crueleva1 / dynamica

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

request: larger substeps and physicsrate values #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi

I'm getting intersecting objects at max substep/physicsrate values (100/600) 
with the simulation still running quite fast.

Could the max values possibly be increased or eliminated altogether?

Thank You

Original issue reported on code.google.com by james.c....@googlemail.com on 20 Mar 2012 at 2:18

GoogleCodeExporter commented 8 years ago
Are you compiling from source?

If so, you can easily change the hardcoded values here:

        ia_fixedPhysicsRate = fnNumericAttr.create("physicsrate", "fps", MFnNumericData::kInt, 60, &status); //MB
    MCHECKSTATUS(status, "creating physicsrate attribute")
    fnNumericAttr.setKeyable(true);
        fnNumericAttr.setMin(60);
        fnNumericAttr.setMax(600);
    status = addAttribute(ia_fixedPhysicsRate);
    MCHECKSTATUS(status, "adding physicsrate attribute")

I have some idea how to implement tunneling prevention, hopefully later this 
year. Until then, change the 600 to 6000 or so :)

Original comment by erwin.coumans on 21 Mar 2012 at 4:27

GoogleCodeExporter commented 8 years ago
This is in file Bullet/Extras/MayaPlugin/dSolverNode.cpp

Original comment by erwin.coumans on 21 Mar 2012 at 4:27

GoogleCodeExporter commented 8 years ago

Fixed here (increased from 600 to 6000)

http://code.google.com/p/dynamica/source/detail?r=150

Original comment by erwin.coumans on 21 Mar 2012 at 5:28

GoogleCodeExporter commented 8 years ago
Thank you. I'm not compiling from source; just tried but unfortunately can't 
get cmake-gui to spit it out. Will it be more than a few weeks until a compiled 
version is available for the windows version of maya 2012/x64?

Original comment by james.c....@googlemail.com on 21 Mar 2012 at 8:00

GoogleCodeExporter commented 8 years ago
What is the error of cmake-gui? You have to hit the 'Generate' buttons three 
times, until the red color goes away (weird gui design). (ignore the 'configure 
button)

You just need to point it to the Maya directory if it is not found, and press 
the 'generate' button again.
Can you try it?

Original comment by erwin.coumans on 22 Mar 2012 at 12:04

GoogleCodeExporter commented 8 years ago
Anyhow, I re-uploaded all Windows versions of Dynamica Maya, so please check it 
out.

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

GoogleCodeExporter commented 8 years ago
Thank you, testing it now.

If I press the generate button the configure window pops up; where do I specify 
the maya directory there?
I have 'C:/Program Files/Autodesk/Maya2012/devkit' set in 'where to build 
binaries', 'EXECUTABLE_OUTPUT_PATH' and 'LIBRARY_OUTPUT_PATH'.
Do I have to specify the path in a 'CMakeLists.txt' file? If so ,which one; 
because I can't find a maya path variable in the one in the svn root and the 
one in src.
Is cmake the compiler or do I need to install and specify another one? Because 
I always get 'CMake Error: CMake was unable to find a build program' if I try 
one of the listed because they're not installed. I also tried setting cmake.exe 
as a compiler but that didn't work.
I also got 'CMake Error: The source 
"E:/z/Downloads/dynamica-src-rev148/dynamica-src-rev148/CMakeLists.txt" does 
not match the source 
"E:/z/Downloads/dynamica-src-rev148/dynamica-src-rev148/src/CMakeLists.txt" 
used to generate cache.  Re-run cmake with a different source directory.' but I 
figured I needed to select the 'src' dir instead of the 'dynamica-src-rev148' 
dir.
I'm sorry, but I'm a novice at compiling. I attached an error log.

Original comment by james.c....@googlemail.com on 22 Mar 2012 at 11:16

Attachments:

GoogleCodeExporter commented 8 years ago
It's still quite fast at 6000, I'd like to see what it could do with another 
zero. :-) 

Original comment by james.c....@googlemail.com on 22 Mar 2012 at 9:03