elishacloud / dxwrapper

Fixes compatibility issues with older games running on Windows 10/11 by wrapping DirectX dlls. Also allows loading custom libraries with the file extension .asi into game processes.
zlib License
1.23k stars 90 forks source link

[Freelancer (2003)] Odd-looking shadow appears when camera moves up/down (D3d8to9 only) #268

Open BC46 opened 5 months ago

BC46 commented 5 months ago

When opening the equipment dealer menu in the video game Freelancer (2003), the camera moves up before the interface appears. Whenever this is done with the D3d8to9 option enabled, an odd-looking shadow appears below the ship. If D3d8to9 is turned off, this doesn't occur.

I've tested this on DxWrapper versions 1.1.6900.22 and 1.1.6972.22; the problem could be seen on both.

D3d8to9 = 1:

https://github.com/elishacloud/dxwrapper/assets/45081813/9e46e579-6993-4a4e-8640-b27265a9ae85

D3d8to9 = 0:

https://github.com/elishacloud/dxwrapper/assets/45081813/0e1ecb4b-2010-4d19-acd9-cd4c6587a557

elishacloud commented 5 months ago

I wonder if this is related to #136.

BC46 commented 5 months ago

I'm not entirely sure since presumably the linked issue relates to legacy D3D8, whereas the shadow issue only occurs when converting D3D8 to 9.

BC46 commented 5 months ago

I've created a PIX snapshot of the shadow bug while running the game with just d3d8to9 v1.12.0: ShadowBugFreelancerD3d9.zip. Thought it may give some insights into what could cause the bug to occur.