SkillAgentSearch skills...

Cube13h

Spinning 3D cube in VGA Mode 13h

Install / Use

/learn @xms0g/Cube13h

README

cube13h

cube13h is a simple 3D graphics demonstration program written in Turbo C and x86 assembly for PC DOS. It demonstrates basic graphics programming techniques to render and animate a 3D cube on the screen, in mode 13h (320x200) colors. You can download the EXE file from itch.io.

<img src="IMG/cube13h.gif" alt="image" width="700" height="auto">

Features

  • Triangle rasterization: Fills triangle faces on the cube
  • 3D vertex transformations: Applies rotation and movement
  • Perspective projection: Simulates depth perception
  • Backface culling: Hides faces pointing away from the camera
  • Bresenham's line algorithm: Draws cube edges pixel by pixel
  • Double buffering: Prevents flickering and tearing

Controls

| Key | Description | |------|-------------| |WASD|Move | |↑ ↓ |Fly up/down | |ESC |Exit |

Building

If you want to build cube13h from source, you'll need Turbo C++ and the related build tools.

License

This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.

View on GitHub
GitHub Stars60
CategoryDevelopment
Updated1mo ago
Forks1

Languages

C

Security Score

100/100

Audited on Jan 29, 2026

No findings