Unity-Technologies / com.unity.cv.synthetichumans

A package for creating Unity Perception compatible synthetic people.
Other
102 stars 20 forks source link

Couldn't create a Convex Mesh from source mesh "hip" within the maximum polygons limit (256). #8

Closed singingwithcode closed 1 year ago

singingwithcode commented 1 year ago

Greetings, I am brand new to Unity and followed your tutorial to a T! Everything works as expected except I get this warning several times:

Couldn't create a Convex Mesh from source mesh "hip" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh. UnityEngine.StackTraceUtility:ExtractStackTrace ()

It appears with "hip" (as above), "spine_03", "elbow_left", "head", etc. Is this limiting the quality as well?

I am using:

peifeng-unity commented 1 year ago

Hi @singingwithcode, it is great to hear from you. The warnings don't mean lower or limited quality in the generated image. They are caused by the collision meshes instead of the rendering meshes. In Unity, synthetic humans use rendering meshes for image generation and use collision meshes only for placement. The rendering meshes have high resolution/quality. The collision meshes are auto-generated from the rendering mesh. However, Unity can only support as many as 256 vertices in a convex collision mesh. Therefore, it has a lower quality in collision detection, but the rendering meshes keep a high resolution and high quality.

singingwithcode commented 1 year ago

Thank you so much @peifeng-unity. This makes sense to me!

moonsh commented 9 months ago

@peifeng-unity Is there a way to disable to get the warning messages?

csun commented 9 months ago

Hey Seonghyeon - if you don't need colliders on your humans you can go into your Human generation config and disable collider generation. If you do need the colliders on there's unfortunately nothing that I know of that you can do about the warnings.