Unity-Technologies / com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
Other
710 stars 96 forks source link

After importing this package, it prompts "Invalid worldAABB. Object is too large or too far away from the origin." and a suggestion. #87

Closed YeZeLinerr closed 1 month ago

YeZeLinerr commented 2 months ago

Unity Version: 2022.3.28f1

Steps to Reproduce:

1, Import the package using git link. 2, Import the sample in the package manager. 3, Find that no hair is displayed in the sample scene. 4, Build strand groups. 5, Run or disable+enable the Hair Instance. 6, Error occurs: Invalid worldAABB. Object is too large or too far away from the origin. UnityEngine.StackTraceUtility:ExtractStackTrace () Unity.DemoTeam.Hair.HairInstance:DispatchUpdate () (at ./Library/PackageCache/com.unity.demoteam.hair@be2abe0ac1/Runtime/HairInstance.cs:1138) Unity.DemoTeam.Hair.HairInstance:HandlePrerequisite () (at ./Library/PackageCache/com.unity.demoteam.hair@be2abe0ac1/Runtime/HairInstance.cs:675) Unity.DemoTeam.Hair.HairInstance:LateUpdate () (at ./Library/PackageCache/com.unity.demoteam.hair@be2abe0ac1/Runtime/HairInstance.cs:240)

I imported and runned this package correctly not long ago. Could recent commits have caused this error?

Additionally, I have a suggestion. It would be great if we could use Alembic curves as guide lines to generate more curves for hair strands at runtime. Importing complete hair curves leads to excessively large .asset files, which makes the game too large.

1

qlee01 commented 2 months ago

I can confirm that there are issues with latest commits. I don't get errors, but hair is not visible.

fuglsang commented 2 months ago

Thanks for the repro steps -- that definitely looks like a regression.

fuglsang commented 1 month ago

Fixed the bug, feature request floated to separate issue #89.