Better implementation of humanoid avatar creation (use hierarchy instead of names)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu với đường dẫn tạo avatar humanoid trong runtime của UnityGLTF và tái hiện hành vi bằng các tệp Rigs.zip đính kèm. So sánh cách xử lý hiện tại dựa trên tên với các quy tắc về hierarchy và hậu tố .L/.R được mô tả trong issue; được xem là hoàn thành khi rig được cung cấp import chính xác mà không đổi tên các bone, đồng thời các rig đã được hỗ trợ vẫn sử dụng được.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug 💬
(not a bug but choosing a different issue template does not work)
Humanoid avatar creation has been a pain point for a few people it seems (me included), especially considering there is no way to configure it.
As others have mentioned the way the FBX importer handles this is opaque and undisclosed, but one thing I am certain of is that it does not care about the names of the bones (apart maybe to differentiate left and right bones). It only expects a specific hierarchy.
We should find the hips bone, which is the first bone with three children including two that have respectively a .L and .R suffix.
Then we walk the .L and .R bones which are the legs, first bone is upper leg, seconds lower, third is the foot etc.
The last child of the hips is the spine, walk along it until we find the same pattern as the hips, .L is left arm and .R the right.
If the arms only contain three bones then we skip the shoulder, because it's optional.
You get the idea.
Here's a rig I made without renaming the bones apart from .L and .R suffixes, everything gets assigned automatically correctly:
I have attached both a .glb and .fbx file of the rig.
Steps to reproduce 🔢
Files to reproduce the issue ♻
No response
Editor Version 🎲
6000.0
Render Pipeline and version
URP
UnityGLTF Version
2.20.0
Operating System 👩💻
Linux
When does this problem happen?
- Editor Import
- Runtime Import
- Editor Export
- Runtime Export
Additional Info 📜
@XtroTheArctic this is probably of interest to you.
I might make a PR myself and implement this since it's not that big of a change. Maybe we should keep the name dictionary just so other people's rigs that worked don't get broken (although if they do get broken they probably didn't respect the hierarchy that mecanim expects anyway).
Validations 🩹
- I have searched existing issues: no issue already exist that reports the same problem.
- I follow the Code of Conduct
- I provided a minimal reproducible example, including files when necessary.
- Ngôn ngữ chính
- C#
- Star
- 2.3k
- Fork
- 539
- Merge trung bình
- 3 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của KhronosGroup/UnityGLTF
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
KhronosGroup/UnityGLTF#894 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
KhronosGroup/UnityGLTF#893 · 1 bình luận ·
-
Vertex reordering after importĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
KhronosGroup/UnityGLTF#890 · 3 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
KhronosGroup/UnityGLTF#889 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
KhronosGroup/UnityGLTF#881 · 2 bình luận · 1 reaction ·
Tất cả issue của KhronosGroup/UnityGLTF
Issue tương tự
-
launcher item missingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Realm667/WolfenDoom#1758 ·
-
SDK version compatibility issueĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
AI documentation good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Keboo/SimplyBudget#334 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày