View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005502 | DarkRadiant | Renderer | public | 24.01.2021 16:35 | 18.02.2023 18:21 |
Reporter | Dragofer | Assigned To | |||
Priority | normal | Severity | normal | Reproducibility | N/A |
Status | acknowledged | Resolution | open | ||
Product Version | 2.10.0 | ||||
Summary | 0005502: Surfaces render through other surfaces on AMD cards | ||||
Description | AMD machines seem to have problems with DR's camera renderer: you can often see surfaces through other surfaces (broken depth testing?) in a jagged alternating pattern, which gets worse with the far clip plane enabled. The Chooser windows seem to always have the far clip plane enabled regardless of menu settings, which makes it difficult to preview large models and prefabs. | ||||
Additional Information | This has occurred for the following users: - myself on an RX 460 - bikerdude on an RX 570 - aluminumhaste, don't know what his AMD card is - jonri on Vega 8 (Linux) | ||||
Tags | No tags attached. | ||||
related to | 0006148 | new | Setting for far clip plane should affect all camera windows |
|
|
Aluminumhaste is seeing the same rendering issues on his AMD setup: https://forums.thedarkmod.com/index.php?/topic/21638-darkradiant-350-released/&do=findComment&comment=479999 | |
Camera view of the merchant ship deck 2 prefabs ( prefabs > nautical > ship_merchant > interior_deck2.pfbx) with far clip plane disabled. | |
Camera view of the merchant ship deck 2 prefabs, this time with far clip plane enabled (and zoomed in closer) | |
Reworked this ticket as it affects all camera renders, not just the prefab chooser. | |
Model chooser view of galleon_hull_open - note how you can only see thin slivers of the bullseye windows and cannon hatches along the hull, even at this close-up. | |
I'm out of machines with AMD cards here. I'd like to, but I cannot even attempt to debug this until the situation changes. AluminumHaste seems to have found that this has been introduced in some driver version, so maybe there's a compatibility setting somewhere that might work around this problem? |
|
Do you mean AluminumHaste's post a little higher up in that thread relating to the outlines? I don't think that post was related to this rendering bug. But in any case worth looking for compatibility settings. A further workaround would be to make sure that the setting for enabling far-clip plane affects not just the camera view, but also all chooser views. It's confusing anyway when you try to preview something that's so large that the initial zoom level is beyond the far clip plane. I'd be glad to assist by compiling from source and running debugging tools, I've already done that a fair amount myself for TDM development. |
|
Add AMD Vega 8 on Linux to the list of affected cards. I have AMD in my laptop and my desktop, so I'd be willing to try to look into this. I'm away this week but could dig into it next week. | |
At this point any help or insight is appreciated! | |
Trying DR 3.6 - which I believe should have far clip disabled in the Prefab Chooser view - the issue seems unimproved. | |
Does not reproduce for me on Vega 56 using the amdgpu driver on Ubuntu 22.04. I think we need more information about the environments this is happening on, e.g. - Which driver (amdgpu, radeonsi, fglrx). - Which distro and version. - Which specific graphics card. - Which desktop environment and windowing system (GNOME or KDE, Xorg or Wayland). |
|
I've managed to make the problem go away by changing the depth buffer from 16-bit to 24-bit. Specifically, find WX_GL_DEPTH_SIZE at the top of GLWidget.cpp and change the 16 to 24. This feels like a band-aid over the actual problem, and I'm not sure if changing this setting would affect performance or compatibility. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
24.01.2021 16:35 | Dragofer | New Issue | |
24.01.2021 16:35 | Dragofer | File Added: preview_farclip.png | |
24.01.2021 16:36 | Dragofer | Relationship added | related to 0005455 |
24.01.2021 16:39 | greebo | Status | new => acknowledged |
25.01.2021 10:17 | Dragofer | Summary | Less aggressive far-clip plane in Prefab Chooser preview => More accurate rendering of prefabs in Prefab Chooser preview |
28.01.2021 13:23 | Dragofer | Priority | low => normal |
28.01.2021 13:23 | Dragofer | Severity | minor => normal |
28.01.2021 13:23 | Dragofer | Summary | More accurate rendering of prefabs in Prefab Chooser preview => Broken rendering of prefabs in Prefab Chooser preview on AMD cards |
30.10.2022 17:01 | Dragofer | Note Added: 0015376 | |
30.10.2022 17:23 | Dragofer | Summary | Broken rendering of prefabs in Prefab Chooser preview on AMD cards => Broken rendering on AMD cards, especially with far clip plane enabled |
30.10.2022 17:23 | Dragofer | Description Updated | |
30.10.2022 17:24 | Dragofer | Additional Information Updated | |
30.10.2022 17:25 | Dragofer | Note Added: 0015377 | |
30.10.2022 17:25 | Dragofer | File Added: image.png | |
30.10.2022 17:26 | Dragofer | Summary | Broken rendering on AMD cards, especially with far clip plane enabled => Surfaces render through other surfaces on AMD cards |
30.10.2022 17:26 | Dragofer | Description Updated | |
30.10.2022 17:27 | Dragofer | Note Added: 0015378 | |
30.10.2022 17:27 | Dragofer | File Added: image-2.png | |
30.10.2022 17:28 | Dragofer | Relationship deleted | related to 0005455 |
30.10.2022 17:29 | Dragofer | Note Added: 0015379 | |
30.10.2022 17:47 | Dragofer | Description Updated | |
30.10.2022 17:53 | Dragofer | Note Added: 0015380 | |
30.10.2022 17:53 | Dragofer | File Added: image-3.png | |
30.10.2022 17:54 | Dragofer | Additional Information Updated | |
31.10.2022 04:09 | greebo | Note Added: 0015381 | |
31.10.2022 10:57 | Dragofer | Note Added: 0015383 | |
31.10.2022 11:01 | Dragofer | Relationship added | related to 0006148 |
31.10.2022 11:21 | Dragofer | Category | GUI => Renderer |
02.11.2022 02:24 | jonri | Note Added: 0015385 | |
02.11.2022 03:56 | greebo | Note Added: 0015386 | |
02.11.2022 07:18 | Dragofer | Additional Information Updated | |
21.11.2022 20:01 | Dragofer | Note Added: 0015458 | |
17.01.2023 20:33 | orbweaver | Note Added: 0015814 | |
17.01.2023 20:33 | orbweaver | Note Edited: 0015814 | |
18.02.2023 18:21 | jonri | Note Added: 0015954 | |
18.02.2023 18:21 | jonri | File Added: depth_buffer.png |