Basic example OpenGL application for Visual Studio 2022 that loads an OBJ file from pathOBJ and displays it using shaders specified by pathVShader and pathFshader using perspective projection and slow model rotation.
User can press escape to quit the appliction, and re-sizing the window resizes the perspective projection so it diplays without distortion regardless of window size.
In order to compile, this application assumes assumes:
- you have
GLFW
,GLEW
, andGLM
installed atC:GL
- you copied
glew32.dll
to the same directory asmain.cpp
If you'd like to install those from scratch:
- follow the
Downloading GLFWx32, GLEWx32, and GLM
instructions from the project setup reference - copy
glew32.dll
fromC:\GL\GLEW\bin\Release\Win32
to your project folder (the same directory asmain.cpp
)
david aloka d@preform.io, copyright 2022
- implemented perspective projection camera including model, view, and projection transformations https://learnopengl.com/Getting-started/Coordinate-Systems
- implemented simple OBJ loader http://www.opengl-tutorial.org/beginners-tutorials/tutorial-7-model-loading/
- OBJ data https://www.dropbox.com/s/kb2xjpofsquff4k/data.tgz?dl=0
- integrated Shader class https://learnopengl.com/code_viewer_gh.php?code=includes/learnopengl/shader.h
- integrated "helloTriangle.cpp" https://www.dropbox.com/s/ldzgp57ph9btzxf/helloTriangle.cpp?dl=0
- integrated additional source code https://github.com/vkphillia/opengl-cpp-template
- integrated initial source code https://github.com/opengl-tutorials/ogl/blob/master/tutorial01_first_window/tutorial01.cpp
- project setup https://www.wikihow.com/Set-Up-OpenGL-GLFW-GLEW-GLM-on-a-Project-with-Visual-Studio