This is the implementation of the paper 3D Graphics in CMD.
It features a custom 3D render pipeline and rasterizer, as well as a unique output window in the form of the Windows console. Basic model and texture loading are also implemented.
There are precompiled demos in the releases. To run them, simply unzip and run the executables.
You can also build them from souce. Just make sure the CVID_BUILD_DEMOS Cmake option is set.
Because Windows Terminal doesn't support resizing, these demos only work on the legacy Windows Console Host. If you're on Windows 11 you need to change the default terminal application to Windows Console Host. This can be done by:
- Open Windows Terminal
- Click on the down arrow and select Settings
- In the left pane of settings, select Startup
- In the Default terminal application drop-down menu, select Windows Console Host
Build with Cmake and compile with Visual Studio. Requires C++ 23 or greater.
For any programs using the seperate console window, place app/ConsoleWindowApp.exe alongside the main executable.