Gene Tech zfighting after index buffer merge
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Gene Tech zfighting after index buffer merge
Seems that some of the geometry is getting rendered twice, as illustrated by the screenshot above. Warp 5446 -415 -32. The pillar in the middle is doing this - some other parts on the map as well. Also, if you bring up the map it seems to be rendering some small part of the scene at the bottom of the screen for some reason.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Gene Tech zfighting after index buffer merge
Is this still present after the fix I pushed yesterday? I have seen it before that was done but not afterward.
Re: Gene Tech zfighting after index buffer merge
I think so. Did a pull before building - but I'll try again tonight when I get home from work to be absolutely sure.
Re: Gene Tech zfighting after index buffer merge
Unfortunately it's still there. This is noticeable on vertical surfaces around some doors
Code: Select all
-iwad doom2 -file njgtb4ts.pk3 +map map01 -nomonsters "+warp 6750 -1980" // and turn back
-iwad doom2 -file njgtb4ts.pk3 +map map01 -nomonsters "+warp 6750 -1480"
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Gene Tech zfighting after index buffer merge
This wasn't z-fighting. It was some imprecision in the shader where the backside check for dynamic lights failed because the dot product of two supposedly orthogonal vectors apparently wasn't always 0.