How yidachen07-ux/3d-project works
This is a small C++ 3D rendering application. Its visible workflow starts in src/3Dproject.cpp: create a window, load an OBJ model, repeatedly process input and render, then present the framebuffer through SDL. The active frame renderer is ray tracing; the code also includes triangle rasterization and PPM export, though neither is called in the shown loop. The README is empty, so capabilities and relationships beyond the sampled code and source index are not documented.
Main entry points: Window.h Window & Input · Framebuffer.h Framebuffer · Raytracer.h Raytracer · Model.h OBJ Model
Components 9
Application
- App Entry
src/3Dproject.cpp - Window & Input
include/Window.h
Rendering
- Framebuffer
include/Framebuffer.h - Raytracer
include/Raytracer.h
Other components
- User
- SDL
Connections 17
- User → Window & Input: provides input
include/Window.h - App Entry → Window & Input: creates
src/3Dproject.cpp - App Entry → OBJ Model: loads OBJ
src/3Dproject.cpp - App Entry → Window & Input: runs loop
src/3Dproject.cpp - Window & Input → SDL: uses SDL
include/Window.h - Window & Input → Framebuffer: clears
include/Window.h - Window & Input → Raytracer: renders frame
include/Window.h - Window & Input → Framebuffer: presents pixels
include/Window.h - Raytracer → Framebuffer: writes pixels
include/Raytracer.h - Raytracer → Geometry: tests sphere rays
include/Raytracer.h - Framebuffer → Geometry: rasterizes triangles
include/Framebuffer.h - Framebuffer → Math: uses vectors
include/Framebuffer.h - Geometry → Math: uses vectors
include/Geometry.h - OBJ Model → Geometry: stores triangles
include/Model.h - OBJ Model → Math: uses vectors
include/Model.h - Raytracer → Math: uses transforms
include/Raytracer.h - Window & Input → OBJ Model: owns model
include/Window.h