Skip to content

petrustoica/Terminal-3D-Renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Terminal 3d Renderer

A simple C++ project built to explore the fundamentals of 3D graphics. It takes an array of 3D vertex coordinates (x, y, z) and projects them onto a 2D terminal viewport using perspective projection. The lines array defines the vertex pairs that form edges, which are drawn using Bresenham’s line rasterization algorithm. The result is a wireframe 3D object rendered directly in the terminal. Object can be rotated in any way around the 3 axes.

Build and Run

gcc -o main main.cpp
./main

A cube configured to spin around the Y-axis

A pyramid configured to spin around the Y-axis

About

This is a 3D renderer I made in C++ and utilizes the console to display the objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages