View Issue Details

IDProjectCategoryView StatusLast Update
0005868The Dark ModGraphicspublic24.04.2023 17:16
Reporterstgatilov Assigned Tostgatilov  
Status resolvedResolutionfixed 
Product VersionTDM 2.10 
Target VersionTDM 2.12Fixed in VersionTDM 2.12 
Summary0005868: Interactions rendering with polygonOffset
DescriptionRight now interactions rendering never enables polygonOffset.
Usually polygonOffset is applied to patch-surfaces which are exactly on a solid surface (mappers call such patches "decals").
However, if such surface has complicated material (for instance, has specularmap), then polygonOffset does not fix depth fighting.

A major example of this issue is stain01bwet material, which is used in Stain Lucia map.
It was used long time ago because its specular map did not work.
And when it started working, depth fighting happened.
Steps To Reproduce1) Uncomment "specularmap textures/decals/stain01b_s.tga" in
2) Run Saint Lucia and go to the statue.
3) Observe depth fighting on the floor as you move or rotate camera.

Note: most likely you should NOT commit the updated stain01bwet material even after this is fixed.
Leaving _black specular map results in proper appearance --- the one which was in TDM 2.00.
Additional InformationInternal discussion:
TagsNo tags attached.


related to 0005325 resolvedstgatilov New error reported about texture stain01b_s 
related to 0005867 new Try to support interactions on projected decals 




24.04.2023 17:15

administrator   ~0016002

With svn rev 10373, polygonoffset is used in interactions rendering.
Also with svn rev 10364 in 0006271, fog/blend lights support all depth tweaks too.

So at this moment with "r_useNewShaderPasses 2", all surface rendering uses the same ApplyDepthTweaks wrapper:
  Depth (svn rev 10374)
which means that polygon offset and weapon depth hack are processed everywhere and no depth fighting should even happen.

I also tested it on Saint Lucia floor with tweaked stain01bwet.

Issue History

Date Modified Username Field Change
04.01.2022 03:30 stgatilov New Issue
04.01.2022 03:30 stgatilov Relationship added related to 0005325
04.01.2022 03:30 stgatilov Relationship added related to 0005867
04.01.2022 03:41 stgatilov Steps to Reproduce Updated
15.11.2022 04:09 nbohr1more Target Version TDM 2.11 => TDM 2.12
24.04.2023 17:15 stgatilov Note Added: 0016002
24.04.2023 17:16 stgatilov Assigned To => stgatilov
24.04.2023 17:16 stgatilov Status new => assigned
24.04.2023 17:16 stgatilov Status assigned => resolved
24.04.2023 17:16 stgatilov Resolution open => fixed
24.04.2023 17:16 stgatilov Fixed in Version => TDM 2.12