MipMap generation for DXT1 TextureArray not working when the Texture has no auto-generated mips
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 領域
- game-dev, performance
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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)
- 主要語言
- C#
- 星號
- 33
- 分支
- 1
- 平均合併
- 1 天 23 小時
- 30 天內合併 PR
- 57
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Gothic-Unity-Project/Gothic-Unity 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
維護者通常 2 天內回覆
-
難度 5/5 一週以上 新手友好度 38/100
Gothic-Unity-Project/Gothic-Unity#499 ·
維護者通常 2 天內回覆
-
Shadows未關閉feature
難度 5/5 一週以上 新手友好度 30/100
Gothic-Unity-Project/Gothic-Unity#497 ·
維護者通常 2 天內回覆
-
improvement
難度 4/5 3-5 天 新手友好度 42/100
Gothic-Unity-Project/Gothic-Unity#496 ·
維護者通常 2 天內回覆
-
feature
難度 5/5 一週以上 新手友好度 25/100
Gothic-Unity-Project/Gothic-Unity#495 ·
維護者通常 2 天內回覆
查看 Gothic-Unity-Project/Gothic-Unity 的全部 Issue
相似的 Issue
-
needs-triage
難度 1/5 1-3 小時 新手友好度 76/100
Azure/azure-sdk-for-net#64658 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
dotnet/aspnetcore#70370 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
NethermindEth/nethermind#15684 ·
維護者通常 1 天內回覆
-
area/ai-assistant squad/flyt
難度 2/5 1-3 小時 新手友好度 83/100
Altinn/altinn-studio#21798 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 64/100
SubtitleEdit/subtitleedit#16699 ·
維護者通常 1 天內回覆