dethrace-labs / dethrace

Reverse engineering the 1997 game "Carmageddon"
https://twitter.com/dethrace_labs
GNU General Public License v3.0
667 stars 38 forks source link

Software renderer #363

Closed dethrace-labs closed 2 months ago

dethrace-labs commented 2 months ago

Fixes #354, #350, #209,

madebr commented 2 months ago

I get a build error in src\harness\os\windows.c when targeting arm64 on Windows. See this log.

madebr commented 2 months ago

Badly damaging (until it burns) and repairing the yellow eagle causes corruption of the repaired parts. Screenshot from 2024-06-12 20-04-31

dethrace-labs commented 2 months ago

thanks! That reminds me I saw something similar on Val Hella. I'll take a look

dethrace-labs commented 2 months ago

Fixed the incorrect rendering on the yellow eagle. The issue was caused by an incorrect line in the arbitrary width lit triangle path. The reason it only appears in the hires yellow eagle is the other colors use power-of-two textures which go through a different path.

Screenshot 2024-06-13 at 9 51 14 PM
madebr commented 2 months ago

About the BRender-v1.3.2 fork, are we supposed to open issues here? Through rec2, I think I found a few bugs/typos in the brender code on which I'd like your feedback.

dethrace-labs commented 2 months ago

Yep, I think that makes sense. BRender-specific issues should go in that repo

xcom169 commented 2 months ago

Which hardware renderer can we expect along with the cpu-renderer? Glide?

dethrace-labs commented 2 months ago

As of this commit, we will only have the software renderer. Then, I'll add back the hardware renderer, implementing the original 3dfx code paths