OpenGL/Vulkan Sprite Clipping

Moderator: GZDoom Developers

Post Reply
User avatar
Hellser
Global Moderator
Posts: 2705
Joined: Sun Jun 25, 2006 4:43 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Citadel Station

OpenGL/Vulkan Sprite Clipping

Post 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?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: OpenGL/Vulkan Sprite Clipping

Post 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.
User avatar
Hellser
Global Moderator
Posts: 2705
Joined: Sun Jun 25, 2006 4:43 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Citadel Station

Re: OpenGL/Vulkan Sprite Clipping

Post by Hellser »

Alrighty, got'cha. :)
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: OpenGL/Vulkan Sprite Clipping

Post by Marisa the Magician »

Can't even do something a bit more cheaty like how UE "projects" the sprite forward towards the camera?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: OpenGL/Vulkan Sprite Clipping

Post 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.
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: OpenGL/Vulkan Sprite Clipping

Post by Nash »

dpJudas attempted it before but concluded that it was trickier than he initially thought.
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: OpenGL/Vulkan Sprite Clipping

Post 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".
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”