protonscr

[d3d9] Fruit Ninja HD background rendering issue

dxvkclosed bugd3d9fixed function
doitsujin/dxvk#2480 · opened 2022-02-05 by Leopard1907 · updated 2026-07-04 · 5 comments · github
LLeopard1907 2022-02-05 github

Software information

Fruit Ninja HD

System information

  • GPU: GTX 1050
  • Driver: 510.47.03
  • Wine version: 7.0
  • DXVK version: Both DXVK 1.9.4 and master

Apitrace file(s)

Log files

Additional info

  • Game doesn't work with wined3d
  • Game is basically abandonware
  • How does it look with DXVK:

Screenshot_20220205_184333

  • Correct rendering should have been like this according to various gameplay videos:
    Screenshot_20220205_184405
KK0bin maintainer 2022-02-05 github

This is using fixed function and inverting the view * world matrix doesn't work. So we end up passing a matrix full of NaN and INF to the shader which messes up the normal and the lighting after that.

KK0bin maintainer 2022-02-05 github

Apparently D3D9 just passes the transposed WorldView matrix when it can not be inverted.

KK0bin maintainer 2022-02-05 github

Then there's also this:

directional light: 0, 0, -1
normals: 0, 0, 1
3rd column in the transform matrix: 0, 0, 0

KK0bin maintainer 2023-06-26 github

My best theory is that D3DRS_NORMALIZENORMALS turns the 0,0,0 normal that we get after applying the normal matrix into something sensible that works here. I haven't confirmed that yet though.

BBlisto91 2026-07-04 github
Image

Nothing extracted yet.