Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimCity 2013 - minor rendering issues #2361

Closed
firescry opened this issue Nov 13, 2021 · 8 comments · Fixed by #2364 or #2957
Closed

SimCity 2013 - minor rendering issues #2361

firescry opened this issue Nov 13, 2021 · 8 comments · Fixed by #2364 or #2957

Comments

@firescry
Copy link

With the latest fixes in dxvk, major issue (#1869) is now resolved and the game is playable. Few other rendering problems became visible though:

  • trees are incorrectly rendered, they are replaced by other models (pic. 1, 2)
  • some animations look wrong and are played too fast e.g. wind turbine propeller (pic. 1)
  • building outline is incorrect (pic. 3)
  • some building parts are missing/relocated, e.g. elements at the top of chimneys (pic. 3)
  • there is a grid rendered on the ground (pic. 1, 2, 3)

Issues are not visible for wine d3d. Attached apitrace covers all mentioned problems.

# wine d3d dxvk
1 0009837814_wine 0009837814_dxvk
2 0014769307_wine 0014769307_dxvk
3 0025901796_wine 0025901796_dxvk

Software information

SimCity 2013 (Origin)

System information

  • GPU: AMD Radeon RX 580
  • Driver: mesa 21.2.5 @ linux 5.15.2
  • Wine version: wine-6.21 (Staging)
  • DXVK version: v1.9.2-43-g12249fd3 (12249fd)

Apitrace file(s)

Log files

@firescry
Copy link
Author

Thank you for providing fixes 😊

I checked the patches from #2364 and game looks much better now. The only problem that is still visible is the grid on the ground. It may not be very noticeable on the screenshots above, but this diff shows it better (diff between frame rendered by wine d3d vs. dxvk):
diff

@K0bin
Copy link
Collaborator

K0bin commented Nov 28, 2021

Apitrace of that please.

@firescry
Copy link
Author

Here is the new apitrace that shows specifically the issue of grid on the ground - SimCity_2.tar.xz. The grid is visible also on pic. 1 below.

Additionally I've noticed that in camera lowering animation (just after map is loaded), there is an extra shadow visible on the left hand side. It looks like shadow cast by big square (pic. 2). This is visible only shortly after map is loaded and disappears quickly. It's not very disturbing, but I'm reporting it here just in case you'll find it interesting to check it further (it's captured in the apitrace above).

# wine d3d dxvk
1 wine0046190043 dxvk0046190043
2 wine0003522776 dxvk0003522776

@CME42
Copy link
Contributor

CME42 commented Nov 29, 2021

pic1: The game is using a cube map with a different texture on each face to render the terrain and it relies on the cube map to be seamful, similar bug like in #2239.

pic2: I can reproduce it on AMD but not on NV, so it might be a driver issue, but i haven't looked at it any further yet.

@K0bin
Copy link
Collaborator

K0bin commented Nov 30, 2021

Reopening this because of the grid issue. The problem with trees is fixed though.

@K0bin K0bin reopened this Nov 30, 2021
@firescry
Copy link
Author

firescry commented Dec 4, 2021

Thank you for checking on the problem with the grid ☺️

As for the issue with extra shadow (pic. 2), I do not have access to any other GPU, but I tried with AMDVLK instead of RADV and this shadow is still there. I used AMDVLK 2021.Q4.1 (currently the latest) and here is the dxvk log - SimCity_d3d9.log.

@CME42
Copy link
Contributor

CME42 commented Dec 5, 2021

Yeah sorry i forgot to comment here, the shadow issue happens due to the d24s8 -> d32s8 fixup that is necessary on AMD. I can also repro it on NV when i force the fixup there - so it is also a DXVK bug.

@K0bin
Copy link
Collaborator

K0bin commented Sep 21, 2022

Probably #2892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants