Animation cache results not the same as non-cached

 
 
 
Posted by:adrencg
Data created:22 June 2022

When simulating the hair in the viewport, it bends and flexes properly. When it's cached, the hair is stiff like the Attract to Initial State is not recording properly. Should the animation cache be after the the guides and before the hair?

When using "export to ORnatrix Alembic" the hair stays in place when reading it with animation cache.

 

The Animation Cache modifier needs to be added above the modifiers that create the animation. For example, if you used Moov, you need to add it above Moov. 

After you record the animation with Animation Cache modifier, you need to load the existing file as Ornatrix Alembic, apply the Animation Cache modifier to it and load the same file there again. 

Importing it as Ornatrix Alembic will load the hair object without animation, adding Animation Cache and loading it there again will load the animation data. 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

I'm a little confused about this part 

"After you record the animation with Animation Cache modifier, you need to load the existing file as Ornatrix Alembic, apply the Animation Cache modifier to it and load the same file there again."

Do you mean to export as Ornatrix Alembic, then use "load animation from file" in the animation cache panel? Or do you mean to merge the alembic into the scene as an object?

It soudns like this process could be steamlined a little. Why so many steps to cache a sim? Save, then load, then load something else on top of that. It's convoluted.

 

Can you post a step by step breakdown? Where everythin gshould be in the stack. What gets exported through through the file menu, or does it get "recorded" in the animation cache operator? Does the alembic get re-imported backinto the scene as an object?

At the top of my stack, you can see the abc I merged into the scene. Is that the correct way to do this?


Attached Files:
Image 1

Do you mean to export as Ornatrix Alembic, then use "load animation from file" in the animation cache panel? Or do you mean to merge the alembic into the scene as an object?

No. Those are two different things. Exporting it just export the static hair object. Recording it with Animation Cache will record the animation. Learn more about Animation Cache here

You can either record the animation and leave the Animation Cache in the original hair object or import it back as BakedHair object and add the animation.

Method 1:

  1. Add Animation Cache to the hair object above Moov. 
  2. Record the animation.
  3. Remove Moov.

Method 2:

  1. Add Animation Cache to the hair object above Moov.
  2. Record the animation.
  3. Import the resulting file as Ornatrix Alembic. An static BakedHair object will be generated.
  4. Add Animation Cache to this object and load the same file there.

Method 2 is useful is you need to export the hair with animation to another software. 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

The simulation does not get recorded. There's obviously data being written, but the cached sim does nothing.

How did you test it? 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

I recorded an alembic cache. I removed the MOOV and hit the play button on the timeline. The hair doesn't move.

I'm going to make a movie of what I'm doing and post later

I made a dummy scene to show the problem I'm having.

 

Following your steps, nothing happens when I hit play after recording the cache. It looks like its writing data, but something is wrong.


Attached Files:

>Recording+%2312.mp4 (3587635 bytes),

Looks like that mp4 isn't working on your site. Anyway, the cache is recorded and nothing happens when playing back.

Please reupload the file someone else like WeTransfer or Dropbox together with the alembic cache file.

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

Try this.


Attached Files:

>alembic.rar (5219302 bytes),

Scene file


Attached Files:

>simple+cache+test.c4d (403168 bytes),

Thanks helping me sort this out. If I can get this part solved, I can use Ornatrix instead of Cinema 4d hair.

Jeordanis, can you please take a look at the files and let me know if I'm doing something wrong or if there's a bug? 

It works fine here. You had the order of modifiers wrong, recording static strands. Here you can find information about the order of operations in Ornatrix.

Incorrect:

Correct:

Result:

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

You said "above". What I see is "below."  I was reading the direction wrong.

Thanks for the help.

Maybe I should have said "Before" and "After". 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)