Coder Social home page Coder Social logo

v-hacd's People

Contributors

a-price avatar aaronfranke avatar alabamagan avatar brazilnut avatar calben avatar clothbot avatar docace avatar erwincoumans avatar evangel63 avatar fabienpean avatar jonathanperret avatar jratcliff63367 avatar kmammou avatar kylawl avatar madmiraal avatar nicky-d avatar olitheolix avatar qiaodongcui avatar richardbruce avatar siposcsaba89 avatar stephengold avatar themasterlink avatar tobyndax avatar xthexder avatar zzmp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

v-hacd's Issues

2.8 v-hacd creates a console error with version blender_vhacd-v-035

Hi Kmamou

Greetings
We love your Addn but am having difficulties with your repository. I note this update blender_vhacd eliminates the error in blender preferences and the shows a further error in run.py

Please note in the blender 2.8 console it reports:

fake module: addon missing ‘bl_info’ gives bad performance ! ‘C:\…\…\AppData\Roaming\BlenderFoundation\Blender\2.8\scripts\addons\run.py’

Is this ‘run.py’ file you are using different too ours from v-hacd-master zip is 1.25kb and without bl_info? Do you have a later version please?

Please note this does all work in 2.79 but not in 2.8 . I have the feeling that your repository does not contain all the files to make this fabulous software work. Would you be so kind and provide your latest run.py please so that We can move forward ?

Thank you for your assistance.

No Meshes to process blender

I'm on mac and seem to be having a similar issue to a few people before, however am unable to fix it in the same way others have (in issues 13 and 14).
Once I have installed v-hacd as an add on to blender, and added the testVHACD path to the VHAC field, pressing OK causes nothing to happen but an error of "no meshes to process!" appears.
Im fairy certain that i'm installing/using the add on in the correct way as I have tried the same method on windows and it works perfectly.
In console the error shows as
Dyld Error Message:
Library not loaded: /opt/local/lib/libgcc/libgomp.1.dylib
Referenced from: /Users/USER/Downloads/*/testVHACD
Reason: image not found
Which is similar to that of issue 13, which was solved as
"My gcc folder is not in /opt/local. After placing it there it starts the convex decomposition."
However i lack any gcc, opt or local folders.

Split mesh by convex huls

Hello - is there a way to use generated convex hulls to split the mesh according to the decomposition? It would be very helpful in object destruction where convex decomposition splits object into meaningful parts - more suitable for destruction of objects like chairs etc. than cell fracture.

Add Parameters To The Examples

I think it would be monumentally helpful if the paramaters used to generate the demos could be provided.
I'm having a hard time figuring out how to get the plugin to produce more than 3 or 4 rough hulls of my object!

Would appreciate it!

Crash when decomposing a planar surface

When trying to use V-HACD with a set of points on a plane that is paralle with xy plane then I get a crash. In my opinion the culprit is Volume::Voxelize function. There is ComputeBB called which calculates the bounding box of the points. Then double d[3] = { m_maxBB[0] - m_minBB[0], m_maxBB[1] - m_minBB[1], m_maxBB[2] - m_minBB[2] }; is calculated where d[2] = 0 which is used in
m_dim[0] = 2 + static_cast<size_t>(dim * d[0] / d[2]);
m_dim[1] = 2 + static_cast<size_t>(dim * d[1] / d[2]);
that skyrocket + causes a memory spike since these values are used in the following memory allocation.

Introduce a context variable to control and abort

As discussed via email, it would be great to have some kind of a context 
variable that allows mainly for two things:

 * Be able to cancel the execution of long running V-HACD functions. There has to be a reasonable tradeoff between response time and performance. Execution does not need to interrupt immediately but with an approximate grace period of, say between 10 and 30 seconds. I need to set this from an outside thread (in a callback?) and the function will stop at the next given opportunity. Preferably including cleanup of temp data.

 * The same mechanism should be able to give me an approximation of progress. Ideally in percent of total time. Again, this doesn't need to be precise. Just a rough indication for the user to know how long this will take.

I suggest a context object interface that is implemented by the user and can be 
passed in. It could look like this:

namespace VHACD {

struct IControlFlow {

    // called by vhacd to tell the total progress.
    // (optional, could resort to always 100 percent)
    // it would be ideal if this would be called only
    // once and not change afterwards but I guess that 
    // would be hard to achieve
    void set_total_progress(std::size_t p) throw () = 0;

    // called by vhacd to indicate how much progress
    // has been made. Must be between 0 and set_total_progress()
    void set_progress(std::size_t p) throw () = 0;

    // called by vhacd regularily
    // if it returns false, the algo is aked to stop at
    // the next given occasion 
    bool continue() throw () = 0;
}

}

The user will implement this object and pass it to ApproximateDecomposition().

Would be awesome.

Thanks,
Stephan


Original issue reported on code.google.com by [email protected] on 2 Dec 2014 at 9:00

Compute inertia tensor?

It would be nice if the lib could compute the inertia tensor of each hull at the same time it computes volume.

Bullet's convex hull inertia tensor computation seems to treat all the mass as if condensed in the vertices, so the inertia is innacurate, mostly on elongated objects.

The inertia tensors's three coordinates of each hull could be output perhaps in a text file.

Thank you for reading this feature enhancement petition.

No meshes to process error on osx

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"

  • OpenCL (ON)
    Number of OpenCL platforms: 1
    OpenCL platform [0]
    CL_PLATFORM_NAME: FULL_PROFILE
    CL_PLATFORM_VENDOR: OpenCL 1.2 (Dec 8 2015 17:02:20)
    CL_PLATFORM_VERSION: Apple
    CL_PLATFORM_PROFILE: Apple
    CL_PLATFORM_EXTENSIONS: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event
    Using OpenCL platform [0]
    Number of OpenCL devices: 2
    OpenCL device [0]
    CL_DEVICE_NAME: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
    CL_DEVICE_PROFILE: FULL_PROFILE
    CL_DEVICE_VENDOR: Intel
    CL_DEVICE_VERSION: OpenCL 1.2
    CL_DRIVER_VERSION: 1.1
    CL_DEVICE_EXTENSIONS: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_APPLE_fp64_basic_ops cl_APPLE_fixed_alpha_channel_orders cl_APPLE_biased_fixed_point_image_formats cl_APPLE_command_queue_priority
    CL_DEVICE_VERSION: OpenCL 1.2
    CL_DEVICE_ADDRESS_BITS: 64
    CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE: 4194304
    CL_DEVICE_MAX_CLOCK_FREQUENCY: 1700
    CL_DEVICE_MAX_COMPUTE_UNITS: 4
    CL_DEVICE_MAX_CONSTANT_ARGS: 8
    CL_DEVICE_MAX_READ_IMAGE_ARGS: 128
    CL_DEVICE_MAX_SAMPLERS: 16
    CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS: 3
    CL_DEVICE_MAX_WRITE_IMAGE_ARGS: 8
    CL_DEVICE_MEM_BASE_ADDR_ALIGN: 1024
    CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE: 128
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR: 16
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT: 8
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT: 4
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG: 2
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT: 4
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE: 2
    CL_DEVICE_VENDOR_ID: 4294967295
    CL_DEVICE_AVAILABLE: 1
    CL_DEVICE_COMPILER_AVAILABLE: 1
    CL_DEVICE_ENDIAN_LITTLE: 1
    CL_DEVICE_ERROR_CORRECTION_SUPPORT: 0
    CL_DEVICE_IMAGE_SUPPORT: 1
    CL_DEVICE_EXECUTION_CAPABILITIES: 3
    CL_DEVICE_GLOBAL_MEM_CACHE_SIZE: 64
    CL_DEVICE_GLOBAL_MEM_SIZE: 8589934592
    CL_DEVICE_LOCAL_MEM_SIZE: 32768
    CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE: 65536
    CL_DEVICE_MAX_MEM_ALLOC_SIZE: 2147483648
    CL_DEVICE_GLOBAL_MEM_CACHE_TYPE: 2
    CL_DEVICE_IMAGE2D_MAX_HEIGHT: 8192
    CL_DEVICE_IMAGE2D_MAX_WIDTH: 8192
    CL_DEVICE_IMAGE3D_MAX_DEPTH: 2048
    CL_DEVICE_IMAGE3D_MAX_HEIGHT: 2048
    CL_DEVICE_IMAGE3D_MAX_WIDTH: 2048
    CL_DEVICE_MAX_PARAMETER_SIZE: 4096
    CL_DEVICE_MAX_WORK_GROUP_SIZE: 1024
    CL_DEVICE_PROFILING_TIMER_RESOLUTION: 1
    CL_DEVICE_QUEUE_PROPERTIES: 2
    CL_DEVICE_TYPE: 2
    CL_DEVICE_LOCAL_MEM_TYPE: 2
    CL_DEVICE_MAX_WORK_ITEM_SIZES: (1024, 1, 1)
    OpenCL device [1]
    CL_DEVICE_NAME: HD Graphics 5000
    CL_DEVICE_PROFILE: FULL_PROFILE
    CL_DEVICE_VENDOR: Intel
    CL_DEVICE_VERSION: OpenCL 1.2
    CL_DRIVER_VERSION: 1.2(Dec 17 2015 21:11:49)
    CL_DEVICE_EXTENSIONS: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_image2d_from_buffer cl_khr_gl_depth_images cl_khr_depth_images cl_khr_3d_image_writes
    CL_DEVICE_VERSION: OpenCL 1.2
    CL_DEVICE_ADDRESS_BITS: 64
    CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE: 0
    CL_DEVICE_MAX_CLOCK_FREQUENCY: 1100
    CL_DEVICE_MAX_COMPUTE_UNITS: 40
    CL_DEVICE_MAX_CONSTANT_ARGS: 8
    CL_DEVICE_MAX_READ_IMAGE_ARGS: 128
    CL_DEVICE_MAX_SAMPLERS: 16
    CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS: 3
    CL_DEVICE_MAX_WRITE_IMAGE_ARGS: 8
    CL_DEVICE_MEM_BASE_ADDR_ALIGN: 1024
    CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE: 128
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR: 1
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT: 1
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT: 1
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG: 1
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT: 1
    CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE: 0
    CL_DEVICE_VENDOR_ID: 16925952
    CL_DEVICE_AVAILABLE: 1
    CL_DEVICE_COMPILER_AVAILABLE: 1
    CL_DEVICE_ENDIAN_LITTLE: 1
    CL_DEVICE_ERROR_CORRECTION_SUPPORT: 0
    CL_DEVICE_IMAGE_SUPPORT: 1
    CL_DEVICE_EXECUTION_CAPABILITIES: 1
    CL_DEVICE_GLOBAL_MEM_CACHE_SIZE: 0
    CL_DEVICE_GLOBAL_MEM_SIZE: 1610612736
    CL_DEVICE_LOCAL_MEM_SIZE: 65536
    CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE: 65536
    CL_DEVICE_MAX_MEM_ALLOC_SIZE: 402653184
    CL_DEVICE_GLOBAL_MEM_CACHE_TYPE: 0
    CL_DEVICE_IMAGE2D_MAX_HEIGHT: 16384
    CL_DEVICE_IMAGE2D_MAX_WIDTH: 16384
    CL_DEVICE_IMAGE3D_MAX_DEPTH: 2048
    CL_DEVICE_IMAGE3D_MAX_HEIGHT: 2048
    CL_DEVICE_IMAGE3D_MAX_WIDTH: 2048
    CL_DEVICE_MAX_PARAMETER_SIZE: 1024
    CL_DEVICE_MAX_WORK_GROUP_SIZE: 512
    CL_DEVICE_PROFILING_TIMER_RESOLUTION: 80
    CL_DEVICE_QUEUE_PROPERTIES: 2
    CL_DEVICE_TYPE: 4
    CL_DEVICE_LOCAL_MEM_TYPE: 1
    CL_DEVICE_MAX_WORK_ITEM_SIZES: (512, 512, 512)
    Using OpenCL device [0]
  • OpenMP (ON)
  • Parameters
    input /var/folders/b8/8bjj90812dqd2bdgzqllpmgm0000gn/T/Suzanne.off
    resolution 100000
    max. depth 20
    max. concavity 0.0025
    plane down-sampling 4
    convex-hull down-sampling 4
    alpha 0.05
    beta 0.05
    gamma 0.00125
    delta 0.05
    pca 0
    mode 0
    max. vertices per convex-hull 32
    min. volume to add vertices to convex-hulls 0.0001
    convex-hull approximation 1
    OpenCL acceleration 1
    OpenCL platform ID 0
    OpenCL device ID 0
    output /var/folders/b8/8bjj90812dqd2bdgzqllpmgm0000gn/T/Suzanne.wrl
    log /var/folders/b8/8bjj90812dqd2bdgzqllpmgm0000gn/T/Suzanne_log.txt
  • Load mesh
    0% [ Voxelization 20% ] Iteration 1 0%
    0% [ Voxelization 20% ] Iteration 1 100%
    10% [ Voxelization 100% ] Iteration 1 100%
    10% [ Compute primitive set 0% ] Convert volume to pset 0%
    15% [ Compute primitive set 100% ] Convert volume to pset 100%
    15% [ Approximate Convex Decomposition 0% ] Subdivision level 1 0%
    15% [ Approximate Convex Decomposition 0% ] Subdivision level 1 0%

Documentation for using binaries?

I watched the Youtube video and this add-on looks great. Instead of just visualize the result in Blender, just wonder if this add-on can export the decomposed sub-meshes? Or is it possible to use this add-on as a standalone program since I am pretty new to Blender.

Any comment is appreciated.

geting "no meshes to process" error

Hi
I just downloaded v-hacd blender add-on with testVHACD.exe for 64 bit windows.
I load an obj file to blender then select it in blender object mode then in tools--> V-HACD
i set testVHACD.exe path and click V-HACD button but I got error saying "no meshes to process".
Can you please help?

Collision Mesh Hierarchy

Blender 2.79b
\v-hacd\bin\win64\

Hi,

When i create Suzanne and Apply Standard V-HACD calcualtion all collision meshes (and tesselated mesh when use genrated mesh is true) are generated as children from the right ear.

Is it possible to generate the collision meshes as children from the selected mesh?

best,

Sascha

Decomposing object with holes

This issue is mostly related to #59. I'm trying to decompose a relatively simple rectangular mesh with two holes as follows:
image

The algorithm does not seem to find a decomposition where the holes are preserved:
image
The green highlighting indicates the generated mesh. As you see, it does not take into account the holes. This happens for any combination of settings I tried, including increasing the resolution, the number of points per CH, the number of convex hulls and decreasing the minimum volume as per the advice in #59.

Can you shed some insight in how to get more detailed results in such a basic mesh as this?

Further more, the generated mesh does not really fit the original mesh perfectly as can be seen here:
image
Is that related to the first issue or is that something else?

Explanation of parameters?

I love V-HACD. it really is a life saver!

Is there any explanation of how I should realistically be setting the parameters? For example, I am trying to figure out which combination of parameters would results in the most faithful decomposition vs, which combination would result in a very crude approximation. I can't seem to figure it out by trial and error. Your help is greatly appreciated. Thank you.

Callback needs to be called more often

The user callback that displays progress is not called often enough to prevent 
a GUI application from going into "not responding" mode.  The total percentage 
complete goes to 15% very quickly, then stalls for a couple of minutes and 
jumps to 90%, then finishes quickly.  In order to be useful, that callback 
should really get called a lot more often, so the user doesn't think there is 
something wrong with the program.

Original issue reported on code.google.com by [email protected] on 16 Dec 2014 at 5:45

Hulls usually extend past model

Quite often, hulls are generated that are larger than the model, even if the model has a perfect hull within the constraints. Example dodecahedron:

screen shot 2017-01-13 at 15 09 27

Is there a recommended way to tune V-HACD to avoid this? Is increasing the voxel resolution the only option?

VCOMP140.DLL is missing error

Hi
in blender when i click on V-HACD and the click OK button but I got testVHACD.exe system error saying:
"The program can't start because VCOMP140.DLL is missing from your computer. Try reinstalling the program to fix this problem."
I am on windows 10 64 bit.

Fixed configuration of shared library

In src/VHACD_Lib/CMakeLists.txt, The LIB_TYPE variable with should be used for configuring a shared library (DLL) is not used in add_library(vhacd ...
I've attached a fixed CMakeLists.txt
CMakeLists.txt

Also it would be nice to add something similar to

set(CMAKE_DEBUG_POSTFIX "_d")

at the top of the root CMakeLists.txt. This will add a postfix to debug binaries, which allows them to be in the same directory as their release counterparts.

Gino

Is v-HACD usable also on Linux and Ubuntu ?

hi,

I noticed the files in win32 and win64 folders and wanted to ask if this package is also usable in Ubuntu.

So far from what I tired I got the "No meshes to process!" error.

Thanks.

How to eliminate crevices among separated individuals?

I use Cmake to make the Code run on VS2017. The program runs well, however, the segmentation results looks not as well as the showing examples. There are crevices among separated individuals. I want to konw how to eliminate these crevices and make the results as perfect as the showing examples.

How to get more accurate results

Let's take the default torus:
screen shot 2016-12-28 at 15 12 48

What is better, higher or lower downsampling values?
What does the bias do?

I try to get better results but they all look pretty simuliar cause I have no clue what i'm doing.

Update cmake_minimum_required

CMake version 3.0.0 is required to process the CMakeLists.txt without error, and version 3.1.0 without warning.

I believe export was updated in CMake cbe7e8f, and FindOpenCL in 041485b

Join convex hulls

Is it somehow feasible to join the resulted set of convex hulls into one solid object without intersecting geometry? I am more than satisfied with outer shape that this addon does, however, there is bunch of separate objects in the resulting output that cannot be actually merged together due to intersecting faces. That feature can be used by many people who are doing any sort of gamedev production for getting object collision shapes.

Best parameters for decomposing a gear

I'm trying to decompose this gear:

Using the following parameters:

  • resolution 64000000
  • max. concavity 0
  • plane down-sampling 4
  • convex-hull down-sampling 4
  • alpha 0.05
  • beta 0.05
  • maxhulls 1024
  • pca 0
  • mode 0
  • max. vertices per convex-hull 64
  • min. volume to add vertices to convex-hulls 0.0001

I obtained the result below:

How should I improve the quality of the decomposition?
I would like that the central hole will be as circular as possible.

No output

Hi @kmammou I have an obj on which no output is produced by testVHACD. The executable runs and produces no error output -- it just reprints its usage and parameter settings. No output .wrl file is produced.

This problem only happens on some OBJ files that I've tried, but not on others (on the other ones I've verified that a correct convex decomposition is produced).

I've attached an example mesh causing the problem. (I've renamed its extension ".txt" because github doesn't allow uploading of files with the ".obj" extension, but it is an obj file.)

If you could let me know what's going wrong that would be fantastic.

04.txt

example to use v-hacd in collision for python in blender ?

Hi, dear author,
would you mind to give a simple code script for enable the collision with v-hacd in blender ? i am not albe to perform v-hacd collison , So i am not able to see any difference between them, i can simply got the v-hacd mesh, but not know how to use it in collision, the default collision shape in blender is convex-hull.
Thanks advance.

Is there any constraints for the input?

Thanks for the great work. I was wondering is there any constraints for the input? Say, the input has to be a watertight mesh or the code can solve any meshes even the open ones?

How to make siple shapes only ?

Hi,
how do i set v-hacd up do generate only "simple" volumes (triangle, quads).
Or is it not possible?
Sorry for asking in issues area.

Thanks

Utilizing the plugin via scripting

For my use case, it would be helpful to run the add-on on all selected mesh objects via a blender python script.

I need to generate hulls for a large number of object meshes and export each component to a seperate .stl file so being able to programmatically invoke v-hacd would be helpful.

Does not work with 2.81 update

Will there be an update for this tool to work with blender 2.81?

getting this error when I try to run it:

Traceback (most recent call last):
File "C:\Users\user1\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\object_vhacd.py", line 366, in execute
row = col.row()
File "C:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\modules\bpy\ops.py", line 201, in call
ret = op_call(self.idname_py(), None, kw)
AttributeError: Calling operator "bpy.ops.import_scene.x3d" error, could not be found

location: :-1

No Meshes Found + Missing symbol

When running the plugin, I receive a message saying there are no meshes selected followed by this Symbol not found error in the console:

dyld: Symbol not found: __ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE
  Referenced from: /Users/blake/vhacd-scripts/testVHACD
  Expected in: /usr/lib/libstdc++.6.dylib
 in /Users/blake/vhacd-scripts/testVHACD

I am running on macOS 10.14.6

run.py and OpenCL issues

Hi, I tried to build the binary on my GNU/Linux Debian 9.3 with NVIDIA 970 graphics card (driver 375.82) and I encountered these issues:

  1. the original install/run.py script does not work, but replacing in the cmake fuction, the line cmd = "cmake" + arg + "../" + src_dir with cmd = [" cmake ", arg," ../ "+ src_dir] everything works fine

  2. after having successfully built the binary and then installed and configured the add-on in Blender (2.78a), I have decomposed the Suzanne monkey successfully, but in the log
    Suzanne_log.txt
    have resulted some OpenCL related errors.

bye

GPU Voxelization

It seems that voxelization is the slowest part of V-HACD at the moment, and could be sped up using OpenCL. Do you think this is worth doing? Would you be open to such a contribution?

Make CMake inclusion of FindOpenCL OPTIONAL

For those of us who don't have OpenCL installed could you make the inclusion of 
FindOpenCL optional.

In src/VHACD_Lib/CMakeLists.txt and src/test/CMakeLists.txt
change "include (FindOpenCL)" to "include (FindOpenCL OPTIONAL)".



Original issue reported on code.google.com by [email protected] on 17 Jan 2015 at 6:03

Suggestion: split library into separate repo

At the moment there are a lot of large files in this repo, which makes it difficult to use as a submodule. Splitting the lib code from the supporting files, screenshots, etc, would make that much better.

Feel free to close if you don't want to do this.

Can't get the openCL acceleration to work

I built a project with the latest V-HACD code and was try to speed up Hull generation by using the oclAcceleration option. However, the call to clEnqueueNDRangeKernel in VHACD.cpp returns CL_OUT_OF_RESOURCES.

I googled this problem and a post suggested reducing the local work size parameter. I reduced it from 4096 to 128 and then the call was successful ( no larger values would work ).

Running with this value however did not improve performance over not running GPU acceleration.

Documentation / How to use?

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

UV map preservation ?

Does the decomposition process preserve (or transfer) UV map from the original mesh on the convex chunks?

If not, could you please add such option, if possible ? Thanks

P.S. I use Blender 2.8x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.