Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Point Cache Files for Unity, works on Android

Discussion in 'Made With Unity' started by reissgrant, Aug 20, 2011.

  1. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    I wrote a Point Cache File Reader / Animation system that will read .PC2 Point Cache files.

    Basically this allows you to simulate cloth, physics etc and bake it into a vertex animation at a much lower performance cost.

    I have this flag animation (1000 polys) playing at 60fps on my Android phone using a point cache file:

     
  2. justinlloyd

    justinlloyd

    Joined:
    Aug 5, 2010
    Posts:
    1,680
    Very nice work. Do you plan on releasing the tool at any point? If not, care to share your thoughts and experience of writing it?
     
  3. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    I will definitely release it when it's done. First though, I have to automate a lot of stuff going on, create an animation controller and make it user friendly.
     
  4. Farfarer

    Farfarer

    Joined:
    Aug 17, 2010
    Posts:
    2,249
    Very cool, will keep an eye on this :)
     
  5. Dave@IonGFX

    Dave@IonGFX

    Joined:
    Jul 6, 2011
    Posts:
    44
    Nice work, I love the concept. I think FBX has a setting for exporting point cache data (from 3ds max anyway) could that be used directly from the fbx file? Where do the .PC2 Point Cache files come from?
     
  6. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    In Studio Max, Point Cache is a modifier you apply on top of a vertex animated object (cloth, bend, noise etc), this will create a point cache file (.pc2) containing the underlying vertex animation.
     
  7. Dave@IonGFX

    Dave@IonGFX

    Joined:
    Jul 6, 2011
    Posts:
    44
    Awesome. Thanks for the info!
     
  8. frontakk

    frontakk

    Joined:
    Jan 8, 2011
    Posts:
    292
    Looks very interesting.
    Can this system be used even with the particle?
    I want to particle animating in Maya and export to Unity.
     
  9. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    It's just setup to do objects at the moment, but particles would be possible too.
     
  10. the_gnoblin

    the_gnoblin

    Joined:
    Jan 10, 2009
    Posts:
    722
    interesting!
     
  11. neurograph

    neurograph

    Joined:
    Jun 8, 2010
    Posts:
    24
    Can't wait to use it !
    I'ld love to import in Unity my Boids animations made in Blender !
     
  12. MrYigit

    MrYigit

    Joined:
    Aug 26, 2011
    Posts:
    20
    Any more info about a release? Am still searching for a way to use point cache files (.xml or pc2, out of 3ds Max) in Unity.
    (I know about MegaFiers, but thats more than I need.)
     
    Last edited: Nov 3, 2011
  13. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    I am still trying to find time to revisit this plugin. I haven't forgot!
     
  14. kurylo3d

    kurylo3d

    Joined:
    Nov 7, 2009
    Posts:
    1,123
    Please do.. looks awesome.
     
  15. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    OK, finally found the time to finish this beast. Will probably put on the asset store for cheap.