dolovnyak / SimpleRenderOpenGL

`Graphic` project at School21

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

`Graphic` project at School21

License:The Unlicense


Languages

Language:C 92.4%Language:CMake 3.2%Language:Ruby 2.8%Language:Makefile 0.6%Language:Python 0.4%Language:Objective-C 0.4%Language:GLSL 0.0%Language:Shell 0.0%