Z-Fighting with Flatsprites

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
TheZombieKiller
Posts: 1
Joined: Fri Jan 15, 2016 9:21

Z-Fighting with Flatsprites

Post by TheZombieKiller »

Video should be mostly self-explanatory, but here's the gist: flatsprites are way too close to the ground, which causes z-fighting.
A temporary solution is to use A_Warp to move the actor above-ground, but I'd very much prefer not to do that in this case.

Perhaps some form of purely visual Z-offset feature is in order, akin to what is present in MODELDEF, but for the actors themselves?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Z-Fighting with Flatsprites

Post by Graf Zahl »

Yes, I indeed forgot to add the handling for this.
Major Cooke
Developer
Developer
Posts: 240
Joined: Wed Mar 04, 2009 19:25

Re: Z-Fighting with Flatsprites

Post by Major Cooke »

I cannot help but wonder at this point if floor/ceiling decals for gzdoom are something to consider.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Z-Fighting with Flatsprites

Post by Graf Zahl »

mostly fixed, but keep in mind that there are no means to combat z-fighting between overlapping flat and wall sprites. They have to write to the depth buffer and I can't increasingly offset their depth bias. This is an inherent and unfixable limitation of how this works.
Locked

Return to “Closed Bugs”