Back to smode.fr
You are here: Reference > 3D > 3D Tools > PC2 cache File

PC2 cache File

A PC2 cache File to import per vertex animation from 3D animations or simulations

A PC2 cache file work only for a SINGLE Mesh.
If you exported your cache from several objects then you should either:
- Merge theses objects in your 3D software, then export the PC2 cache, and finally export as an obj.
- Import the multiples mesh from the .obj as a "Reference", so Smode could interpret them as a single mesh.
Before exporting the mesh and the cache from your 3D software, here is some stuff to do:
- Triangulate your mesh. It should work with quads also but...well, triangulate just in case.
- Export the Mesh in .obj with theses settings (here from Blender):
Each cache exported must correspond to a single mesh


- Do not forget to apply all the transformations to your mesh prior to export it

Here is how to export PC2 cache from Blender:
https://docs.blender.org/manual/en/dev/modeling/modifiers/modify/mesh_cache.html

To import an animated mesh baked with a PC2 cache files:
- First import the 3D File
- Then drag and drop the .pc2 file into the good position (over the imported .obj).


- This will create an animation node, just activate it's Transport:


Or drag and drop it into the Timeline:


And watch the magic happen:


PARAMETERS

  • File ( .pc2 Content File Selector): File of the pc2 cache file
  • Transport ( Transport): Transport of the pc2 cache file

EXAMPLE

3D: 3D cache animation (with PC2 File).compo.

SEE ALSO

Mentioned: 3D File, Timeline and Transport.