Skip to content

nyhryan/OpenGL-model-viewer

Repository files navigation

Simple OpenGL 3D program

demo gif

You can adjust the light's position and color in this 3D scene and fly around inside the scene. Educational purpose only.

🎮️ Controls

  • wasd and mouse : move/fly around
  • Left Control : descend
  • Space : ascend
  • F1 : toggle between ImGUI window and scene.
  • F2 : toggle between light's depth map and scene.
  • F5 : reload shader.vert, shader.frag and recompile that shdaer program.

⚠️ Important Stuffs

  • You need to provide your local version of vcpkg.cmake and replace the path of CMAKE_TOOLCHAIN_FILE in CMakePresets.json when opening this project.
  • This project uses cl.exe compiler (Visual C++)
  • This project might not open in Visual Studio since I used once only for initializing CMake project.
  • I worked with Visual Studio Code's CMake extension and stuffs. They are pretty handy since they let you interact with CMake project with GUI. Following are extensions in Visual Studio Code.
    • CMake
    • CMake Language Support
    • CMake Tools
    • C/C++ Extension Pack

✔️ Things used in this project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages