OneLoneCoder / Javidx9

The official distribution of Javidx9's YouTube videos and projects
http://www.youtube.com/javidx9
Other
2.11k stars 1.29k forks source link

3D Engine code appears to be broken #86

Open Eason-Jin opened 2 months ago

Eason-Jin commented 2 months ago

I followed part 1 of creating a 3D engine, but when I ran the code all I see is random pixels flickering (as shown in the video). Then I tried to copy the code from this repo but I got the same issue when I ran the code. Did I do something wrong or is the code actually broken somehow???

https://github.com/user-attachments/assets/e6af56d7-1565-48ad-a55a-fdf803bf4f5d

abel-witz commented 1 month ago

Hello, I solved this issue by searching terminal in Windows search bar, then opening Terminal properties and choosing Windows Console Host as the default terminal application. Also I needed to replace demo.ConstructConsole(256, 240, 4, 4) with demo.ConstructConsole(256, 240, 2, 2).