Jump to content

[SOLVED] ShapeConvex::setVertex(): can't create convex hull


photo

Recommended Posts

Hi,

 

When trying to create a RagDoll for a mesh, I keep getting this error and the RagDoll behaves rather weirdly (it spins out of control).

Any idea what could cause this? Is it the mesh itself, or the way it has been rigged?

Unfortunately I couldn't find any other info to troubleshoot this issue.

 

Thanks in advance,

Ashwin.

 

Ed: Attached the problematic mesh. Repro is easy, try creating a RagDoll with the default convex hull approximation parameters and a mass of 55.  

MadRat.zip

Link to comment

ShapeConvex is created based on polygon data and this error is thrown when one of mesh vertices is not valid. Otherwise, convex hulls would have been created normally (for example, you can check it on data/demos/passage/meshes/agent.smesh). Sorry, there are no tools on our side for validating where the problematic vertices. But as a solution, you can create a simplified mesh, with a smaller number of polygons and use it to create a RagDoll.

BTW, automatically generated shapes are just a rough approximation - it's just for starters. After that, you need to tweak shapes manually, so that they fit your mesh more accurately.

Link to comment
×
×
  • Create New...