LostArtefacts / TRX

Open source re-implementation of Tomb Raider I and Tomb Raider II, along with additional enhancements and bugfixes
https://lostartefacts.dev/
GNU General Public License v3.0
591 stars 37 forks source link

Bad RHW value causes graphics errors on Intel GPUs #1574

Open Richard-L opened 2 months ago

Richard-L commented 2 months ago

See the white flickers in "User Keys", und "Back", and the "TR" missing in the bottom right version print.

https://github.com/user-attachments/assets/9ca77572-42b7-4708-8a4f-daee6e0442bd

Richard-L commented 2 months ago

Actually I may have only noticed it in the controls menu. On a fresh start game start without any key conflicts, it also seems to do it just on the passport:

https://github.com/user-attachments/assets/27013273-de9d-4a92-af51-c8583660aa1c

Richard-L commented 2 months ago

Okay, sorry to make a bit of a mess of this issue.... but this happens once the demo starts playing 😅

https://github.com/user-attachments/assets/e0d55236-1b8c-41ed-b635-4e9ac8eb80ce

Once it finishes the screen stays black. The main menu doesn't seem to reappear.

walkawayy commented 2 months ago

@Richard-L try this build and lmk if it fixes your issue

laptop_v1 TR2X-0.2-432-gfc79d77-dirty-Windows.zip

Richard-L commented 2 months ago

@walkawayy No difference with your build sadly.

walkawayy commented 2 months ago

I think this is caused by a bad reciprocal of homogenous w (RHW) value in Output_CalcRoomVertices.

walkawayy commented 2 months ago

Can you try this one? @Richard-L

intel_v2 TR2X-0.2-439-gb708ab6-dirty-Windows.zip

Richard-L commented 2 months ago

Can you try this one? @Richard-L

intel_v2 TR2X-0.2-439-gb708ab6-dirty-Windows.zip

With this one the flickering in the Main Menu remains, but the demo is black. I can hear the SFX of it running though.

walkawayy commented 2 months ago

Can you try this one? @Richard-L intel_v2 TR2X-0.2-439-gb708ab6-dirty-Windows.zip

With this one the flickering in the Main Menu remains, but the demo is black. I can hear the SFX of it running though.

Can you start a new game and play The Great Wall and report what happens? And/or Lara's Home? I would be interested in normal gameplay not just demo. Also what level files are you using? Are they some super rare old files?

Richard-L commented 2 months ago

Curiosly it's reproducing the same error now, whearas the demo just seems to stay black.

https://github.com/user-attachments/assets/ea0b0d08-cb40-49da-9e50-f3be7dc3333d