Herb items with see-through leaves are drawn solid

Offen
#485 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp, unity

Rechercherichtung

Start at VobInitializerDomain.CreateItemMesh and trace how useTextureArray: false leads to AbstractMeshBuilder.GetDefaultMaterial selecting Lit/SingleMesh; compare this with the bushes and trees that use Lit/AlphaToCoverage. The issue leaves the implementation choice open: a single-texture cutout variant or placing items in texture arrays. Done means the listed G2 herb textures with alpha render with cutout leaves, while textures without alpha retain their original solid appearance.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
Description

Items are built without the texture arrays (VobInitializerDomain.CreateItemMesh, useTextureArray: false). AbstractMeshBuilder.GetDefaultMaterial then always gives them Lit/SingleMesh, which has no alpha test. The transparent parts of item textures with alpha are drawn solid.

Expected Behavior

Leaves are cut out like on bushes and trees (Lit/AlphaToCoverage).

Actual Behavior

Solid leaf quads. Affected G2 herbs (their leaf textures are DXT3, checked in the archives): ItPl_Health_Herb_03, ItPl_Dex_Herb_01, ItPl_Forestberry, ItPl_Planeberry, ItPl_Beet, ItPl_SwampHerb, ItPl_Weed, ItPl_Temp_Herb.
Herbs using ITFOOD-C.TEX (DXT1 without any alpha: healing, mana, speed, strength herbs, mushrooms) are solid in the original too.

Reproduction Steps
  1. G2, find or spawn ItPl_Health_Herb_03 or ItPl_SwampHerb.
  2. Look at the leaves.

Environment Information

  • Reproducibility: Always
  • Platform: all (seen on Quest 3)
  • Game Version: main 83a1aebd2
Notes

Not covered by BoroBongo's work: his palm leaf fix (EnableTextureArraySubmeshMaterials, experimental branch) only covers meshes that use the texture arrays.
Fix idea: a cutout variant for meshes with a single 2D texture, or items in the texture arrays.

Vorherrschende Sprache
C#
Sterne
33
Forks
1
Ø Merge
1 T. 21 Std.
Gemergte PRs (30 T.)
56

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Gothic-Unity-Project/Gothic-Unity

Alle Issues in Gothic-Unity-Project/Gothic-Unity

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.