Skip to content

Battlefield 3 clouds are black in mission Going HuntingΒ #5857

Closed

Description

@Lassebq

Software information

Battlefield 3

System information

  • GPU: RX 6700 XT + Ryzen 4600G integrated graphics
  • Driver: RADV / (AMD on Windows)
  • Wine version: wine-cachyos 11.0.20260702 (built from git)
  • DXVK version: 3.0.2

Apitrace file(s)

Windows and Linux DXVK:
Image

Windows DirectX:
Image

With apitrace and DXVK:
Image

Activity

  1. doitsujin commented on Aug 24, 2026

    @doitsujin
    Owner

    Was the trace recorded on Linux? Probably more helpful to have one from native Windows directly. For some reason it also crashes on replay unless I hack dxvk to never delete any objects, so I can't check if it happens on wined3d or native d3d either.

    All that said, I don't really see any reason why the clouds wouldn't be black, the game multiplies the color with some dot product involving a non-normalized normal vector that ends up getting clamped to 0, and the data that causes that to happen all comes from constant buffers which are written by the game's CPU code. Maybe try DXVK_CONFIG="dxvk.zeroMappedMemory=True" or DXVK_CONFIG="dxgi.hideAmdGpu=True", something about this screams game bug.

  2. Lassebq commented on Aug 24, 2026

    @Lassebq
    Author

    Yes. I recorded the trace on Linux with DXVK. The game refuses to start on WineD3D so I can't test whenever this bug is present there. I was also trying to get a renderdoc trace since it supports individual frame capture, but I had difficulty getting it to work in wine wow64 with a 32 bit game like BF3.

    I can capture an apitrace on Windows, sure.

  3. Lassebq commented on Aug 24, 2026

    @Lassebq
    Author

    Can't take apitrace on Windows. For some reason I completely lose input and can't get past the "Press Enter to begin" after the startup movie. I got renderdoc capture directly on Windows though. Would that be useful?

  4. doitsujin commented on Aug 24, 2026

    @doitsujin
    Owner

    Assuming it's an actual D3D11 capture then I'll take it, better than nothing.

  5. doitsujin commented on Aug 24, 2026

    @doitsujin
    Owner

    Thanks. Annoyingly this renders properly when replaying with DXVK, but there's a nonzero chance that the turbocursed render-to-buffer thing that we don't currently support has something to do with it.

    That said, the game uses different shaders for rendering the clouds than it does in the apitrace for some reason.

  6. doitsujin commented on Aug 24, 2026

    @doitsujin
    Owner

    Please try #5858. Not really tested, but does appear to work with the RenderDoc capture at least.

    Here's a build in case you can't build yourself since our CI is currently borked:
    dxvk-bf3.tar.gz

  7. Lassebq commented on Aug 24, 2026

    @Lassebq
    Author

    It worked! Thank you for this quick fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions