[GZD/Decorate] Flatsprite drawn above other sprites

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
FFFFRRRR
Posts: 99
Joined: Sat Nov 04, 2017 3:33 am

[GZD/Decorate] Flatsprite drawn above other sprites

Post by FFFFRRRR »

I'm not entirely sure if this is a problem with the actor, or a problem with my rendering settings.
I made a bloodspot via Flatsprite and Floorhugger. It looks like this:
Spoiler:
Now, I have the problem that, at certain angles, it is drawn above other sprites that are near it. Looks fine from this angle. From another angle: Drawn above the marine. This happens with different actors.

I'm really not sure what to do here. I have attached my config-file, if that helps. There might be something wrong with my rendering options, but I really do not know which one it could be.
Any help is greatly appreciated.
You do not have the required permissions to view the files attached to this post.
User avatar
Caligari87
Admin
Posts: 6225
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him

Re: [GZD/Decorate] Flatsprite drawn above other sprites

Post by Caligari87 »

Pretty sure that's because the rendering engine has trouble with the concept of above/below, it only really considers ahead/behind. So in your image, the bloodspot is rendering over the marine because it's technically the item in front. A similar effect happens with voxels if I recall correctly.

This has been noted many times in the past but has yet to be fixed. I think because it would require some significant work, including rewriting large parts of the renderer to use z-buffering or something like that.

8-)
User avatar
FFFFRRRR
Posts: 99
Joined: Sat Nov 04, 2017 3:33 am

Re: [GZD/Decorate] Flatsprite drawn above other sprites

Post by FFFFRRRR »

Ah, OK.
I don't think this is the case with 3D-Models. If I remember correctly, the Ketchup-Mod uses those for BloodSpots, and that issue does not seem to be present there. Maybe I'll try this out.

Thank you!

Return to “Scripting”