Point Cache Files for Unity, works on Android

Discussion in 'Showcase' started by reissgrant, Aug 20, 2011.

  1. reissgrant

    reissgrant

    Member

    Joined:
    Aug 20, 2009
    Messages:
    727
    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:

    [​IMG]
  2. justinlloyd

    justinlloyd

    Member

    Joined:
    Aug 5, 2010
    Messages:
    1,657
    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

    Member

    Joined:
    Aug 20, 2009
    Messages:
    727
    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

    Member

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

    Dave@IonGFX

    New Member

    Joined:
    Jul 6, 2011
    Messages:
    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

    Member

    Joined:
    Aug 20, 2009
    Messages:
    727
    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

    New Member

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

    frontakk

    Member

    Joined:
    Jan 8, 2011
    Messages:
    202
    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

    Member

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

    the_gnoblin

    Member

    Joined:
    Jan 10, 2009
    Messages:
    721
    interesting!
  11. neurograph

    neurograph

    New Member

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

    MrYigit

    New Member

    Joined:
    Aug 26, 2011
    Messages:
    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

    Member

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

    kurylo3d

    Member

    Joined:
    Nov 7, 2009
    Messages:
    853
    Please do.. looks awesome.
  15. reissgrant

    reissgrant

    Member

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

    [​IMG]