MipMap generation for DXT1 TextureArray not working when the Texture has no auto-generated mips
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Domínio
- game-dev, performance
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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)
- Linguagem predominante
- C#
- Estrelas
- 33
- Forks
- 1
- Merge médio
- 1d 21h
- PRs com merge (30d)
- 56
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Gothic-Unity-Project/Gothic-Unity
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
Mantenedores costumam responder em até 2 dias
-
ShadowsAbertafeature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 30/100
Gothic-Unity-Project/Gothic-Unity#497 ·
Mantenedores costumam responder em até 2 dias
-
Nerf Teleport speedAbertaimprovement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 42/100
Gothic-Unity-Project/Gothic-Unity#496 ·
Mantenedores costumam responder em até 2 dias
-
feature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Gothic-Unity-Project/Gothic-Unity#495 ·
Mantenedores costumam responder em até 2 dias
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 57/100
Gothic-Unity-Project/Gothic-Unity#494 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de Gothic-Unity-Project/Gothic-Unity
Issues semelhantes
-
t/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
dotnet/maui#39950 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
CommunityToolkit/Datasync#600 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
NimblePros/deviq-hugo#121 ·
Mantenedores costumam responder em até 1 dia
-
RANDOM_REPLACE does not keep the date format when the month abbreviation has a trailing periodAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
philterd/phileas-dotnet#188 ·
-
Add All ContributorsAbertaenhancement ready-for-human
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
fboucher/2d6-dungeon-app#288 · 1 comentário ·
Mantenedores costumam responder em até 1 dia