Skip to content

yekyam/SOGL-Renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple OpenGL Renderer

This is a very simple OpenGL renderer.

Features:

  • Load OBJ files to display a spinning model
  • Change rendering mode to various OpenGL modes
  • Change camera distance to account for larger models
  • A few OBJ files to load and play around with

Usage:

./main (obj_file) (GL_POINTS | GL_TRIANGLES | GL_LINES) (distance) [fps]

Parameters explained:

  • ./main - The executable
  • (obj_file) - The .obj file to render
  • (GL_POINTS | GL_TRIANGLES | GL_LINES) - The mode to render the model with
  • (distance) - The distance from the model itself
  • [fps] - Optional argument to print FPS, time per frame, and total ticks

Example:

./main obj_files/teapot.obj GL_LINES 10

Image of teapot

TODO:

  • Fix OBJ loader to support quad faces (f 1 2 3 4 instead of just f 1 2 3)
  • Cleanup code (specifically argument parsing and window management)
  • Add lighting
  • Maybe add a GUI (imGUI looks good)
  • Improve makefile (maybe move to cmake)
  • Add dependencies to repo (glfw, glew) instead of relying on system libs (low hanging fruit)

About

A *very* simple OpenGL renderer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published