Skip to content

skim-programming/3d-Graphics-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3d Graphics Test

This is a 3d graphics renderer I've created with some simple algorithms and a vertice-edge rendering system. It can capably render complex meshes given the correct vertices and edges, making sure to keep safety measures in case of error. Examples:

Software.Renderer.2025-12-28.02-26-25.mp4
Software.Renderer.2025-12-28.02-36-50.mp4

Include either the square.h file for the square mesh, or the pengu.h file for the penguin mesh. Don't include both, or you'll get a multiple/redefinition error. You can make your own meshes by creating a header file, importing globals.h, then following this format.

const std::vector<Vector3d> vertices = {
  // Vertices {x, y, z}
};

const std::vector<std::vector<int>> edges = {
  // Edges {index, index} (multiple indexes are allowed, e.g. {0, 1, 2})
}

Update

Added Controls, Borders, and more

W, A, S, D, and spacebar work as valid inputs, moving the camera(x, y, z axis) All four arrow keys are used to rotate the model rather than it being rotated automatically E, V used to toggle edges and vertices respectively R to reset the mesh & position Borders added to prevent going through meshes(bugs out the math, messes with controls)

Bonus penguin:

Software.Renderer.2025-12-28.02-53-54.mp4

About

Test of a 3d custom graphics renderer made from scratch in c++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors