Skip to content

nightguarder/OpGL_Exercise

Repository files navigation

OpGL_Exercise

Open GL exercises from a school project - Computer Graphics. Implementing various project using OpenGL in C++

Stashed changes

Setup

  • OpenGL is deprecated on newer MacOS so it might not work on yours.
  • Xcode ––> Project Settings ––> Targets
  • Add 2 Frameworks for this to build & run
  • OpenGL & GLUT Framework

Before doing these exercise learn how Bresenham algorith works! https://youtu.be/vlZFSzCIwoc Also learn how double buffer works in OpenGL https://youtu.be/g9AnCgpBWUk

Exercise 1

  • Implement a Bresenham algorithm to draw a line
  • The result should draw pixelated (staircase) 3 lines with different colors Exercise 1 image

Exercise 2

  • Implement a Bresengam algorith to draw a circle
  • The result should draw a pixelated circle.
  • I should fix the bug where theres pixel missing for each section not being drawn? Exercise 2 image

Exercise 3

  • Implement a visualization of an animated solar system.
  • The result should rotate the planets around their arbitrary point
  • Use Bresenham algorithm to draw Planets
  • Fix bug where the arbitrary point gets decremented to center position? Exercise 3 image

About

Open GL exercise from a school project - Computer Graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published