Below some approximate convex decomposition results comparing
VHACD 2.0 and
HACD.
Parameters:
 testVHACD.exe %%i 8000000 20 0.003 4 4 0.05 0.05 0.0015 0 0 256 0.0 %%i.wrl log_%%i.txt
 testHACD.exe %%i 2 50 0 0 1 30 2000
Score:
 +1: VHACD provides better decomposition than HACD
 1: HACD provides better decomposition than VHACD
 0: VHACD and HACD provide comparable results
VHACD 2.0 
HACD 
Score 
18 convexhulls

66 convexhulls

1 
18 convexhulls

26 convexhulls

1 
16 convexhulls

12 convexhulls

1 
30 convexhulls

28 convexhulls

0 
46 convexhulls

54 convexhulls

1 
18 convexhulls

26 convexhulls

1 
16 convexhulls

19 convexhulls

0 
18 convexhulls

22 convexhulls

0 
34 convexhulls

17 convexhulls

1 
18 convexhulls

13 convexhulls

1 
25 convexhulls

28 convexhulls

1 
20 convexhulls

15 convexhulls

1 
22 convexhulls

16 convexhulls

1 
42 convexhulls

42 convexhulls

0 
9 convexhulls

7 convexhulls

1 
16 convexhulls

15 convexhulls

1 
35 convexhulls

37 convexhulls

0 

17 convexhulls

17 convexhulls

0 

18 convexhulls

18 convexhulls

0 
36 convexhulls

34 convexhulls

0 
13 convexhulls

10 convexhulls

1 
11 convexhulls

5 convexhulls

1 
24 convexhulls

20 convexhulls

1 
35 convexhulls

36 convexhulls

0 
21 convexhulls

13 convexhulls

1 
15 convexhulls

16 convexhulls

0 
9 convexhulls 
10 convexhulls

0 
41 convexhulls

71 convexhulls

0 
22 convexhulls

27 convexhulls

0 
47 convexhulls

51 convexhulls

0 
23 convexhulls

28 convexhulls

0 
Very nice results!
ReplyDeleteHave you changed the Convex hull computer function in VHACD 2.0?
I am using the convex hull class provided in HACD and was wondering if I need to upgrade to this library.
Hi Nilay,
ReplyDeleteYes I am using the comvexhull code provided by bullet http://bulletphysics.org/Bullet/BulletFull/btConvexHullComputer_8h.html
I think that VHACD provides more consistent results. For some meshes, HACD may provide more accurate results for the same number of clusters (see the bunny model above).
Please, give it a try and let me know what you think.