yl_speak_up: strange z-fighting on NPC models #6238
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#6238
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is not about missing textures, this is about why there's this z-fighting on the model at all:
This happens because there's 2 polygons with exact same coordinates. If this is needed for some "layer of clothing" effect, they should be offset.
Does it mean that "cape" is a second full NPC model that is fully transparent except for the cape part?
I've noticed the z-fighting in my local testworld yesterday as well and am wondering what causes it. There are some error messages I havn't investigated into yet.
whosit wrote:
Seems like that. But not just the cape. Hair and beards and the like are also placed some distance from the mob away. It's the normal 3darmor/skinsdb model.
z-fighting will not generate any error messages, it's only visual glitching that happens because of how graphics are rendered basically
Having model some distance away is ok, and it won't cause z-fighting. Here's a link to full explanation:
https://en.wikipedia.org/wiki/Z-fighting
short version is: there's 2 exact same player models, with same scales, same positions etc. They overlap completely and this causes GPU to be confused which one is in front and which one is in the back. This is a problem of 3d model or how it's used.
When did that happen? Could we go back in time and see what commit caused it?
it's visible only because NPCs on test lack cape textures, I assume. So it will be back to normal once those fixed... but the way it's done is weird
Wonder if it's got something to do with recent changes in MT itself.
Or if it's just the missing cape (that's what I thought at first).
Hmm... I'm failing hard at explaining what I think is wrong XD
There are capes missing now, somehow. This generates random colored texture. Because of this, you can see some color (green) z-fighting normal NPC texture.
Most likely, when cape textures are back, you won't notice it because it's transparent or something (so, nothing to z-fight with).
But, even if you can't actually see it, it's still strange there there are 2 models.
Basically, step 1:
step 2:
step 2 is "priority/low", but I'm still curious, and maybe it can look weird in some other cases too.
This reinforces the desire for a default model that is not defunct in so many ways.
Please let the owner of those models with this problem(s) try the following: Pick up the mob. Check if there's more than one there. Because that is what happend when a bug stroke in my test world. The NPC got spawned more than once - and they all shared the same spot. (Temporal) Solution: Pick up the surplus copies and let only one remain. Watch if when the mapblock is reloaded the problem repeats or not.
It's related to this weirdness
there's something broken going on with this model, it just does not look right.
There are layers for helmet (?), mask (?), and face, but then there's more layers inside? mapped to legs and face?
It could be a useless "cape" parts? maybe? but they are under 3 layers of model and there's 2 layers fighting...
I'm just confused
QA
This cannot be solved for the next update, nor at all unless we get a new model, right?
It's weird, it may cause issues if you use a texture with non-transparent parts there - we can just keep that in mind.
And it should be possible to delete those polys, there's even a .blend file...
The model with duped polygons is this one:
skinsdb_3d_armor_character_5.b3d
.Original(?)
3d_armor_character.b3d
does not contain those.Strange. I had those effects in my testworld as well when the textures there were broken. Crashes at world load led to duplicaton of NPC so that I had to pick some up that shared the same place. After fixing the textures all looks fine again in my testworld and last time I checked on the test server.