CSE 5542 Lab 3 Dan Ziemba Compile instructions ================================================================================ Linux ----- Run the following in the source directory: cmake . make Windows ------- A Visual Studio 2012 solution file is included. Ensure that you have (free)glut and glew installed and Visual Studio can find them. Running the program ================================================================================ Linux ----- From the source directory, run: ./lab3 Windows ------- After building, the file cse5542lab3.exe should be in the same directory at the code. If not, find it and put it in the same folder as bunny.mesh and the *.vert and *.frag files. Double click to run it. Program instructions ================================================================================ Running the program will display instructions on a console standard output. I have implemented the fixed location point light which is assigned to key 4. This uses the same phong shader as the point light fixed to the camera. I have also implemented a directional light with phong shading and assigned it to key 5. This is used as a base for the wood and checkerboard shaders. Windows Notes ================================================================================ For a 64 bit system and using freeglut, the following files in these locations might work: C:\Windows\SysWOW64\freeglut.dll C:\Windows\SysWOW64\glew32.dll C:\Windows\SysWOW64\glew32mx.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\GL\freeglut.h C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\GL\freeglut_ext.h C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\GL\freeglut_std.h C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\GL\glew.h C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\GL\glut.h C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\GL\glxew.h C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\GL\wglew.h C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\freeglut.lib C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\glew32.lib C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\glew32mxs.lib C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\glew32mx.lib C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\glew32s.lib
zman0900/cse5542lab3
OpenGL 3.x + GLSL program that renders a mesh and demonstrates various simple shaders
C++