On 27/10/2015 at 16:19, xxxxxxxx wrote:
Cinema 4D Version: 17
Platform: Windows ;
Language(s) : C++ ;
I am looking for a way to access the cache of a cloth tag programmatically. How is it stored in the tag, how can I read and write data in a cache, what is the storage format in RAM, is the data based on frames or subframes...?
Cloth simulations in C4D are prone to flickering due to small point position jumps from frame to frame (unless the simulations are very stiff to begin with). There seems to be no way to improve the calculation results through the general parameters.
However, I need to cache the simulations anyway so the Cloth Nurbs won't lag behind, so there is a handy set of point positions available.
With access to the actual cache, it should be possible to run an intelligent smoothing function over each point to even out miniscule changes that lead to flickering.
The API offers a lot of cache functionality, but that refers to either the object tree in toto, or to other object's caches - I don't find an actual access to the cloth cache.