DLR-RM / BlenderProc

A procedural Blender pipeline for photorealistic training image generation
GNU General Public License v3.0
2.81k stars 452 forks source link

Convex decomposition example doesn't run #607

Closed Sodek93 closed 2 years ago

Sodek93 commented 2 years ago

Hello, i am trying to place a concave Object on a Pole. Therefor i would like to use convex decomposition as Collision_shape="MESH" produces objects that fall through each other.

I tried the convex composition example with the ShapeNet.v2 Dataset but i get the following error:

Traceback (most recent call last): File "/main.py", line 53, in File "venv/lib/python3.8/site-packages/blenderproc/python/types/MeshObjectUtility.py", line 232, in build_convex_decomposition_collision_shape parts = convex_decomposition(self, temp_dir, resolve_path(vhacd_path), cache_dir=resolve_path(cache_dir)) File "venv/lib/python3.8/site-packages/blenderproc/external/vhacd/decompose.py", line 140, in convex_decomposition raise Exception("No output produced by convex decomposition of object " + obj.get_name()) Exception: No output produced by convex decomposition of object Cube Error: Python script failed, check the message in the system console

I tried to install cmake as it worked for this Problem: https://github.com/DLR-RM/BlenderProc/issues/325 but the Error is the same as before.

Thank you for your help

themasterlink commented 2 years ago

Hey,

could you please provide more details? What operating system are you on?

What is the command you used? Can you provide the full output.

Best, Max

themasterlink commented 2 years ago

Hey,

nevermind. The structure of the repository completely changed. We will have to adapt the build script.

Give us some time to fix this else you can manually download https://github.com/kmammou/v-hacd/commits/version.3.1

That one should still work.

Best, Max

themasterlink commented 2 years ago

Hey,

the build update is quite simple, however, they changed all the default values and the API to the script. So, this will take a bit more time. They changed even the input and output data types. From off/wrl to obj/obj.

Best, Max

themasterlink commented 2 years ago

Hey,

I had to patch a minor thing in the vhacd code, after that is done we can start our own patch: https://github.com/kmammou/v-hacd/pull/116

Best, Max

Sodek93 commented 2 years ago

Hey Max,

thank you for your effort to quickly solve the issue!

Best regards :-)

themasterlink commented 2 years ago

@Sodek93 can you please check if we fixed your issue?

Sodek93 commented 2 years ago

@Sodek93 can you please check if we fixed your issue?

I'll check tomorrow and will tell you if it works now. Thank you!

Sodek93 commented 2 years ago

@Sodek93 can you please check if we fixed your issue?

Everything works fine now! Thank you!!

themasterlink commented 2 years ago

Don't thank me, recommend BlenderProc to your colleagues ;)