lecture15
lecture15-ch8
OPENAL GETTING STARTED
1. OpenAL 1.1 SDK & Installer for Windows를 다운로드하여 설치한다. (OpenAL11CoreSDK)
- OpenAL 1.1 SDK for Windows
- Download http://connect.creativelabs.com/openal/Downloads/OpenAL11CoreSDK.zip
- unzip the file
- run OpenAL11CoreSDK.exe
- OpenAL 1.1 Installer for Windows
- Downloadhttp://connect.creativelabs.com/openal/Downloads/oalinst.zip
- unzip the file
- run oalinst.exe
2. 기존 프로젝트 include 와 lib 디렉토리 안에 OpenAL 헤더파일 al.h, alc.h, efx.h, efx-creative.h, EFX-Util.h, xram.h과 OpenAL libs/Win32안에 있는 OpenAL32.lib, EFX-Util_MT, EFX-Util_MTDLL 라이브러리들을 복사한다.
3. 그리고, 본인 프로젝트 Additional Dependencies에 OpenAL32.lib 라이브러리를 추가하고 링크한다.
simage library
simage
COIN3D simage library (http://www.coin3d.org/lib/simage)
-
- COIN3D simage가 제공하는 이미지 포멧은 JPEG, PNG, GIF, TIFF, RGB, PIC, TGA, EPS등 다양하다.
- COIN3D의 simage library를 사용하려면, 프로젝트에 additional library and include directory를 추가해야한다. 기존 include 와 lib 디렉토리 안에 simage.h 과 simage1d.lib를 복사한다.
- 그리고, 텍스쳐 이미지 로딩을 위해 프로젝트에 simage1.lib 라이브러리를 링크한다.
GLU/GLUT Geometry
GLSL built-in variables gl_Vertex, gl_Normal, gl_MultiTexCoord0 (version 130 까지만 지원)
GLSL Tutorial
https://www.opengl.org/sdk/docs/tutorials/TyphoonLabs/Chapter_3.pdf
Light & Material를 사용하여 glutTeapot, glutSolidSphere, glutSolidCylinder를 Shading
Light & Material & Texture를 사용하여 glutTeapot, gluSphere, gluCylinder를 Shading
ShadedGeometry with Multiple Lights
ShadedGeometry with Multiple Lights & Material
- Directional Light
- Point Light
- Spot Light (‘l’ & ‘k’-key to move a spot light position)
lab11-GeometryPositionNormalMultipleLights3 (SimpleCar, SimpleSolar, SimpleRobot, SimpleMobile, SimpleCube3d, SimpleTree)
ShadedGeometry
ShadedGeometry-PerVertexLighting
lab11-GeometryPositionNormalPerVertexLighting
http://en.wikibooks.org/wiki/GLSL_Programming/GLUT/Diffuse_Reflection
http://en.wikibooks.org/wiki/GLSL_Programming/GLUT/Specular_Highlights
ShadedGeometry-PerPixelLighting
lab11-GeometryPositionNormalPerPixelLighting
http://en.wikibooks.org/wiki/GLSL_Programming/GLUT/Smooth_Specular_Highlights
OpenGL Lighting & Material
ShadedTeapotCylinderSphere (with moving light source)
11.OpenGLShadedGLUT
ShadedTeapot (with different materials)
11.OpenGLMaterialTeapot
lighting
Ambient/Diffuse/Specular (From left to right: diffuse; ambient; diffuse + ambient; diffuse+ambient+specular) from lighthouse3d.com
Light sources (From left to right: directional; point; and spotlights) from lighthouse3d.com
lecture14
lecture14-ch6
lecture13
lecture13-ch6