John Ratcliff's Code Suppository

A place where I insert my code into the anus of the Internet.

 

Monday, July 11, 2011

Revision to TestHACD


After making my post last week Khaled Mamou has made some bug fixes to his HACD implementation that takes extended mesh connectivity into account.  In the previous version, if you ran convex decomposition on a single input mesh that was actually comprised of say 10 separate unique sub-meshes (I like to call them 'mesh islands') then it would always produce a minimum of 10 convex hulls.

Khaled fixed this by adding a new option called 'connectivity distance' which will merge mesh islands if they touch within this distance.

I integrated Khaled's changes into my depot as well, and also removed my hack solution which performed hull merging to get around this previous problem.

Right now my code and Khaled's are in sync, but my code drop is significantly refactored since I made it optional to build and run it either with or without the standard template library.  Perhaps we can combine our efforts sometime in the future but, for now, I will just continue to manually integrate changes.

My current check-in adds support for my MeshImporter plugins which can import a wide variety of graphics file formats.  I will have a new MeshImporter plugin that will support COLLADA soon. This is a windows only feature; for non-windows developers there is an option to just compile in Wavefront OBJ support.

Also, my current code drop has the beginnings of the automatic skeleton generation code.  As I find time this week, I will try to complete it.  This code will take an arbitrary triangle mesh, perform HACD on it, and then infer a skeleton at the points wherever two convex hulls touch each other.  As a final option it can auto-generate a skinned mesh from the original non-skinned artwork.  This will allow you to automatically create a ragdoll or psuedo-softbody from any arbitrary mesh.

Here is the link to my depot on Google Code.  TestHACD

Here is the link to Khaled Mamou's official copy of HACD on SourceForge.

1 Comments:

  • At 6:13 AM, Blogger Khaled said…

    Hi John
    I like your idea of HACD-based automatic skining model generation.
    For the bones, why don't you use directly the segmentation computed by HACD?
    Please, what approach would you use to compute the animation weights?

    --Khaled

     

Post a Comment

<< Home