dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

[d3d8] Sea Dogs/Age of Pirates 2: City of Abandoned Ships clip plane issues

Open WinterSnowfall opened this issue 4 months ago • 2 comments

There is something wrong with how we apply clip planes, or how they interact with fog in this game, because distant geometry appears unclipped/unfogged when it should be both.

The issue can be reproduced with the attached trace (see the topside contour of the mountain on the distant island). It can also be observed with d3d8to9 + dxvk, so it's not something specific to d3d8.

P.S.: How do I know this is about clip planes? The game has a config option setting for the far clip plane depth. If I increase that by a ridiculous amount, things start to look correctly.

Software information

Sea Dogs (aka Age of Pirates 2): City of Abandoned Ships

System information

  • GPU: Nvidia 4070
  • Driver: 570.181
  • Wine version: 10.13
  • DXVK version: 2.7+

Apitrace file(s)

Sea_Dogs.trace.zstd

Log files

N/A

WinterSnowfall avatar Aug 22 '25 21:08 WinterSnowfall

P.S.: The first game in the series, Sea Dogs - Caribbean Tales, which uses the same engine, has the same problem.

WinterSnowfall avatar Aug 22 '25 22:08 WinterSnowfall

Just realized we don't implement D3DRS_CLIPPING as of now, and indeed with dxvk you can seen very distant things which are not visible on native. It's most likely related to this, not explicitly to how clip planes are applied, as I had originally surmised.

WinterSnowfall avatar Oct 20 '25 11:10 WinterSnowfall