Skip to content

dunglevan-design/MTLRenderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleRenderer

A simple 3D Render engine built from scratch using nothing but C++ with SDL2 and Maths. The program reads an object file in obj format, and an optional material file in mtl format and renders the scence with added orbit controls and lighting/shadow options.

AOIlighting rotated Wireframes

Run

Make sure you have SDL2 installed clone the repo. Run the following commands cd SimpleRenderer
Put [yourobject].obj and [yourobject].mtl files in this folder
Rename [yourobject] -> cornell-box
make

commands:

  • use arrow keys to move the camera around
  • use x,y to rotate the camera in the x,y axis respectively
  • lighting options only available in ray tracing mode(comment out drawRayTracing() on line 722)

Releases

No releases published

Packages

No packages published

Languages