View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005868 | The Dark Mod | Graphics | public | 04.01.2022 03:30 | 24.04.2023 17:16 |
Reporter | stgatilov | Assigned To | stgatilov | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | TDM 2.10 | ||||
Target Version | TDM 2.12 | Fixed in Version | TDM 2.12 | ||
Summary | 0005868: Interactions rendering with polygonOffset | ||||
Description | Right 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 Reproduce | 1) Uncomment "specularmap textures/decals/stain01b_s.tga" in tdm_decals_legacy.mtr. 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 Information | Internal discussion: https://forums.thedarkmod.com/index.php?/topic/21231-stain01bwet-interactions-and-polygonoffset/ | ||||
Tags | No tags attached. | ||||
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) Interactions SurfacePasses LightPasses 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. |
|
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 |