kmammou / v-hacd

Automatically exported from code.google.com/p/v-hacd
BSD 3-Clause "New" or "Revised" License
1.4k stars 265 forks source link

No meshes to process error on osx #13

Closed kristofgiber closed 8 years ago

kristofgiber commented 8 years ago

I'm on Mac. After installing the blender plugin and adding the //v-hacd-master/bin/osx/testVHACD path to field VHAC, When I press OK on the pop-up window to start the convex decomposition, it does nothing just gives an error 'no meshes to process!'. Despite my mesh being selected in Object mode.

I've tried it with a simple mesh such as a cube mesh and gives the same error. I've also tried adding the osx path inside 'bin-no-ocl' and 'bin-no-ocl-omp' folders instead, same error. I'm also not sure if I need to change the 'add V-HACD paths preset' field or only to add the path to 'path to testVHACD executable.

I've identified one problem as it says 'dyld: Library not loaded: /opt/local/lib/libgcc/libgomp.1.dylib' My gcc folder is not in /opt/local. After placing it there it starts the convex decomposition. I think there should be a field in the gui that allows for specifying the path to gcc.

However, even after I've copied my gcc to the above path, initiating VHACD results in a few minutes of processing with log in terminal, but in the end, without any error message in terminal, the 'no meshes to process!' error shows up again in Blender and no ACD mesh is created. I copy here the terminal log just in case:

Exporting mesh for V-HACD: /var/folders/b8/8bjj90812dqd2bdgzqllpmgm0000gn/T/Suzanne.off... Running V-HACD... /Users/user/Code/v-hacd-master/bin/osx/testVHACD --input "/var/folders/b8/8bjj90812dqd2bdgzqllpmgm0000gn/T/Suzanne.off" --resolution 100000 --depth 20 --concavity 0.0025 --planeDownsampling 4 --convexhullDownsampling 4 --alpha 0.05 --beta 0.05 --gamma 0.00125 --pca 0 --mode 0 --maxNumVerticesPerCH 32 --minVolumePerCH 0.0001 --output "/var/folders/b8/8bjj90812dqd2bdgzqllpmgm0000gn/T/Suzanne.wrl" --log "/var/folders/b8/8bjj90812dqd2bdgzqllpmgm0000gn/T/Suzanne_log.txt"

kristofgiber commented 8 years ago

Adding more information here. I've installed the Blender add-on on Windows as well. Strangely, though it works on relatively simple objects (such as a cube with a few concave extrusions), but when I use something more complex such as a Suzanne mesh, it gives the same error message as above: 'no meshes to process!'. So I guess this message pops up for a lot of different errors and the underlying problem may or may not be related to one another. In any case, it currently doesn't work properly for neither Mac nor Windows.

tobyndax commented 8 years ago

I tried this out on my MacBook Air 2011, and when running the precompiled binaries result in the dyld issue. (fixable as you mentioned). Just as you the program 'halts' at subdivision, however running the no OpenCL no openmp version went fine. So try that out.

kristofgiber commented 8 years ago

Okay that version works indeed. Perhaps this could be added to the documentation for Mac users. Thanks anyway.