kmammou / v-hacd

Automatically exported from code.google.com/p/v-hacd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation / How to use?

clankill3r opened this issue · comments

This library seems really great!!!!, only really unclear how to use.

Don't see this issue post as bitching, it's just to adress issues!

The blender addon documentation goes to google code which redirects to the root to github without documentation (apart from a brief overview).
The doc folder only contains images.

I installed the add on succesfully in blender.
For the VHACD Path, I have no idea if I should link to the one in bin, bin-no-ocl, bin-no-ocl-omp. I tried all 3 of them but no luck.
When selecting a mesh in blender and pressing the V-HACD button it does create a *.off file in the data folder but I also get the message 'No meshes to process!'.

Also this menu is really small:
screen shot 2016-12-27 at 23 36 27


Maybe this helps as well. I'm not sure how to continue.

If I navigate in terminal to the bin/osx folder and type this in terminal:

./testVHACD

Then I get:

dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/6/libgomp.1.dylib
  Referenced from: /Users/doekewartena/Downloads/v-hacd-master 2/bin/osx/./testVHACD
  Reason: image not found
Trace/BPT trap: 5

Ok, I got it working now!
I downloaded CMake and recompiled the binaries.
And I know now that no-ocl stands for no openCL, and that is the one I have to use (atleast on my laptop).

Maybe I explain later how people can do this. But first I go play around :)

As an extra, this might help some people once they have it working.
https://kmamou.blogspot.nl/2014/12/v-hacd-20-parameters-description.html?showComment=1482878899442#c8954303294140516569

It would be great if you could write a tutorial on how to setup the add-on and build the library/tool...

The following book chapter should provide a detailed description of the algorithm and the parameters:
"Game Engine Gems 3: Volumetric Hierarchical Approximate Convex Decomposition". Please, send me an email on mamou (at) gmail.com if you still have questions.

I have added a short install and usage tutorial in #28 .
Hopefully this will help address installation issues, but I will not be able to write up documentation on the usage of parameters until I finish reading through the code :-)

Great! If interested, please send an email on kmamou at gmail dot com and i'll send you back a copy of the book chapter about v-hacd

for anyone else trying to get this to work, after downloading cmake and running python run.py --cmake in the install directory, and then running make in the created build/linux directory, you can select the build/linux/test/testVHCAD file in blender and follow the rest of the instructions in the readme