Herb items with see-through leaves are drawn solid
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- computer-graphics, game-dev
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- G2, find or spawn
ItPl_Health_Herb_03orItPl_SwampHerb. - 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.
- Langage dominant
- C#
- Étoiles
- 33
- Forks
- 1
- Merge moyen
- 1 j 21 h
- PR mergées (30 j)
- 56
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Gothic-Unity-Project/Gothic-Unity
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
Les mainteneurs répondent en général sous 2 jours
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 57/100
Gothic-Unity-Project/Gothic-Unity#494 ·
Les mainteneurs répondent en général sous 2 jours
-
improvement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Gothic-Unity-Project/Gothic-Unity#492 ·
Les mainteneurs répondent en général sous 2 jours
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 49/100
Gothic-Unity-Project/Gothic-Unity#489 ·
Les mainteneurs répondent en général sous 2 jours
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 42/100
Gothic-Unity-Project/Gothic-Unity#488 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de Gothic-Unity-Project/Gothic-Unity
Issues similaires
-
needs-area-label
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 2 jours
-
bug github_actions
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
endercodezz/BYDLO#336 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
SubtitleEdit/subtitleedit#16638 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
sebastienros/jint#4449 ·
Les mainteneurs répondent en général sous 1 jour