"Generate Lightmap UVs" does not expose options and does not override existing UV2

Đang mở
#871 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp, unity

Hướng nghiên cứu

Bắt đầu bằng cách xác định đường dẫn import của editor gọi Unwrapping.GenerateSecondaryUVSet() của Unity và so sánh các tham số hiện có của nó với Unity FBX importer. Tái hiện trường hợp trong #668 với một UV2 hiện có, sau đó xác minh rằng các UV lightmap được tạo ra thay thế nó và các tùy chọn tạo liên quan được hiển thị.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug 💬

Follow-up to #668. Unity's ModelImporter replaces UV2 when "Generate Lightmap UVs" is selected in the importer, UnityGLTF currently just uses the underlying Unwrapping.GenerateSecondaryUVSet() method, which seems to simply do nothing when there's existing UVs, so we probably need to delete the existing UVs first.

Additionally, it's probably a good idea to expose the parameters that go into that method, same as the FBX importer.

Steps to reproduce 🔢
  1. Import file that has UV2
  2. Enable "Generate Lightmap UVs"
  3. Note no new UVs are generated, in contrast to Unity's model importer
Files to reproduce the issue ♻

See #668

Editor Version 🎲

2021.3

Render Pipeline and version

All

UnityGLTF Version

2.17.1

Operating System 👩‍💻

Windows, macOS, Linux

When does this problem happen?
  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export
Additional Info 📜

No response

Validations 🩹
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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của KhronosGroup/UnityGLTF

Tất cả issue của KhronosGroup/UnityGLTF

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.