MipMap generation for DXT1 TextureArray not working when the Texture has no auto-generated mips
Maintainer thường phản hồi trong vòng 1 ngày
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ệ
- Lĩnh vực
- game-dev, performance
Hướng nghiên cứu
Start in GUZ.Core.Services.Caches.TextureCacheService.TryGetTexture() and inspect how updateMipmaps is set from MipmapCount. Check how many affected DXT1 textures appear in G1 and G2 mods, then investigate Unity's texture array mip generation and the reported Graphics.CopyTexture dimension error. Done means mipmaps are generated for textures that lack them without causing dimension errors in the DXT1 texture array.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
GUZ.Core.Services.Caches.TextureCacheService.TryGetTexture() has this information:
// TODO: DXT1 textures won't get MipMaps created. Unity limitation (even for v6.x). But normally all files do have MipMaps.
// if (zkTexture.Format == ZenKit.TextureFormat.Dxt1 && zkTexture.MipmapCount == 1)
// {
// Logger.LogWarning($"Texture {zkTexture.Name} has no Mips and won't get one this way.", LogCat.Mesh);
// }
// Let Unity generate Mipmaps if they aren't provided by Gothic texture itself.
var updateMipmaps = zkTexture.MipmapCount == 1;
Comment it out and see, how many textures are affected for G1/G2 Mods
If relevant, find a solution to generate the Mips. But be careful. What is not working:
- Create RGB24
- Create Mips
- Then put the RGB24 into the DXT1 TextureArray
-> It will fail with an error, that the dimensions aren't correct (as DXT1 has less bytes per pixel).
Graphics.CopyTexture called with region not fitting in destination element: trying to copy to region on GPU (x:0, y:0, width:2048, height:2048) of mip 0 (size: 512x512)
- Ngôn ngữ chính
- C#
- Star
- 33
- Fork
- 1
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 51
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 Gothic-Unity-Project/Gothic-Unity
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
Gothic-Unity-Project/Gothic-Unity#489 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Gothic-Unity-Project/Gothic-Unity#488 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Gothic-Unity-Project/Gothic-Unity#486 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Gothic-Unity-Project/Gothic-Unity#485 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Gothic-Unity-Project/Gothic-Unity
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Facepunch/sbox-public#12284 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
bug untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
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 65/100
CarlosAdrianM/Nesto#610 ·
-
[bug-bash] print maps a missing item's HTTP 404 to exit 1 instead of documented not-found exit 5Đang mởbug bug-bash
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Azure/CosmosDBShell#279 ·
Maintainer thường phản hồi trong vòng 1 ngày