Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[HL2]Fire drawing on-top of fences

Open rfreytag1 opened this issue 13 years ago • 4 comments

(non-beta HL2) I have a little alpha drawing order problem with fire, so basically fire draws ontop of 2D fences. 2013-05-21_00001

System Info: -HW- AMD Phenom II X4 955(3.2GHz) 2x 4GB DDR3-1333(7-7-7-20) G.Skill RAM MSI 790FX-GD70 ASUS EAH5870(AMD HD5870, 1GB VRAM) ASUS Xonar DX

-SW- Win7 x64 Catalyst 13.2

Settings: everything on max. 4xMSAA 16xAF no vsync

rfreytag1 avatar May 21 '13 18:05 rfreytag1

Known as Z-fighting, its been there since the first version of Source.

It happens when 2 materials with an alpha map are rendered behind eachother, but the one further away renders in front of the one closest to the player.

marnamai avatar May 21 '13 20:05 marnamai

I don't think I had that back then with the old fire. and no, it's not z-fighting. z-fighting describes a situation where 2( or more) triangles are very close to each other and due to rounding errors in the depth calculation they start to flicker, because both( all of them) are considered visible by the depth calculation. This is a alpha z-order issue, which can be prevented, there is a demo about that from AMD for instance.

rfreytag1 avatar May 21 '13 21:05 rfreytag1

Hmm. I know TF2 has an issue where sprites always render in front of translucent textures (it's usually not obvious, but there are a couple spots on a couple maps where you can see that spotlight effects render in front of chicken wire). I bet this is the same thing happening. I wonder if it happens to all particle effects, or just ones created with the pre-Orange Box particle system.

stevethepocket avatar May 22 '13 06:05 stevethepocket

it's fixed on Filip Victor's Update 2.0

Freeman2013 avatar May 23 '13 21:05 Freeman2013