Page 1 of 1

OpenGL/Vulkan Sprite Clipping

Posted: Wed Jun 12, 2019 8:37 pm
by Hellser
We have nearly everything to emulate Software Mode's looks, from the palette to SW banding and Software lighting mode. But we don't have a way to emulate Software's sprite clipping mode. It's either have the sprites float above the floor (Always, Smart, or Smarter) or have the sprites clip into the ground and lose some some rows of pixels (Never). Would it be feasible now to have this mode implemented for completion sakes?

Re: OpenGL/Vulkan Sprite Clipping

Posted: Thu Jun 13, 2019 12:21 am
by Graf Zahl
Sorry, but this simply isn't possible. The only engine ever to implement an emulation for this is Strife VE, but the method it uses is incompatible with nearly every advanced GZDoom feature.

Re: OpenGL/Vulkan Sprite Clipping

Posted: Thu Jun 13, 2019 12:34 am
by Hellser
Alrighty, got'cha. :)

Re: OpenGL/Vulkan Sprite Clipping

Posted: Thu Jun 13, 2019 2:33 am
by Marisa the Magician
Can't even do something a bit more cheaty like how UE "projects" the sprite forward towards the camera?

Re: OpenGL/Vulkan Sprite Clipping

Posted: Thu Jun 13, 2019 3:43 am
by Graf Zahl
That'd cause all kinds of different glitches. In the end it just boils down to the simple fact that you cannot cheat the depth buffer and there's currently no way to do advanced depth checking in the shader yourself. You could surely try some workaround but they'll come at a steep performance hit mostly.

Re: OpenGL/Vulkan Sprite Clipping

Posted: Thu Jun 13, 2019 4:33 am
by Nash
dpJudas attempted it before but concluded that it was trickier than he initially thought.

Re: OpenGL/Vulkan Sprite Clipping

Posted: Thu Jun 13, 2019 4:38 am
by Enjay
The other thing is that if it were done by some sort of cheat/hack/trick, I can guarantee that it would then become one of those features that generate years worth of bug reports for unusual maps and other edge cases that people feel should be supported because the feature is now "official".