StarfallEx icon indicating copy to clipboard operation
StarfallEx copied to clipboard

Holograms with certain materials do not draw in the correct order

Open Advers opened this issue 1 year ago • 4 comments

Holograms do not always draw in the correct order relative to each other. Specifically what I and some others have discovered is that materials with both the $additive and $translucent flags do not render over any opaque holograms behind them. (Materials that have only one of these flags seem to render correctly.) This pertains to both server- and client-side holograms.

May be more complex (do other combinations of material parameters cause similar issues?)

Advers avatar Feb 08 '24 07:02 Advers

This belongs in garrysmod-issues or something

thegrb93 avatar Feb 08 '24 09:02 thegrb93

Do you have a test chip we can use to see the issue?

thegrb93 avatar Mar 10 '24 18:03 thegrb93

I will make one right now.

Advers avatar Mar 10 '24 18:03 Advers

It appears that I was mistaken about something before -- I'm not sure how I got the idea, but in actuality, it seems that additive and translucent materials (and not just those with both flags) suffer from this issue. I may have mixed up the translucent flag with the alpha test flag, or maybe I had a different backdrop (hologram on top of a prop vs hologram on top of a hologram) image Top row: Additive Middle row: Translucent Bottom row: Additive + Translucent Left column: Holograms, but with RENDERFX DISTORT, which (alongside RENDERFX HOLOGRAM), is the only thing i've discovered which actually fixes the draw order) Middle column: Holograms Right column: Props

I should have studied the issue more before, it runs deeper than I thought. Here is the test chip's file: https://pastebin.com/HSKMeb9r Results are the same regardless of what realm the holograms are created in.

Advers avatar Mar 10 '24 18:03 Advers