Skip to content

dolovnyak/SimpleRenderOpenGL

Repository files navigation

SimpleRenderOpenGL

MacOS - Build

This is the OpenGL render with a minimum of functionality.

Implemented:

  • self-written .bmp reader.
  • self-written .obj reader.
  • self-written matrix mathematics including projection matrix.
  • textures.
  • setting with json.
  • multi objects.
  • work with a full OpenGL pipeline.

Controls:

  • up arrow/down arrow - move current object to the up/down
  • left arrow/right arrow - move current object to the left/right
  • shift + up arrow/down arrow arrow - move current object to the forward/backward.
  • option + left arrow/right arrow - rotate current object around the y axis.
  • option + up arrow/down arrow arrow - rotate current object around the x axis.
  • 1/2/3 - OpenGL draw mods: triangles/lines/points.
  • c - switch to color mode.
  • t - draw smoothly or with triangles in color mode.
  • > - switch to next object.
  • < - switch to previous object.

Build and run on MacOS:

cmake -S . -B build -DINSTALL_DEPS=true
make -C build

./glsr jsons/'name.json'

Screenshots: