line drawing algorithm
-DDA (Digital Differential Analyzer)
-Bresenham’s Line Drawing Algorithm
1355575658.cpp
Monthly Archives: June 2008
blending filter 예제
blending filter 예제
1332288646.cpp
// Default (no blending) = Cs*1
glBlendFunc(GL_ONE, GL_ZERO)
// Draw background only = Cd*1
glBlendFunc(GL_ZERO, GL_ONE)
// Cs*1 + Cd*1
glBlendFunc(GL_ONE, GL_ONE)
// Alpha blending (back-to-front) = Cs*As + Cd*(1-As)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
// Additive blending (brighten the scene) = Cs*As + Cd*1
glBlendFunc(GL_SRC_ALPHA, GL_ONE)
// Multiplicative blending = Cd*Cs
glBlendFunc(GL_ZERO, GL_SRC_COLOR)
// Invert all the colors = Cs*(1-Cd)
glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO)
fog 예제
blending 예제
알파블렌딩, 알파텍스쳐, fade-in/out, fog, glDepthMask(GL_FALSE), glEnable(GL_CULL_FACE), 블렌딩시 draw order, filtering, lightmap 기법
http://dis.dankook.ac.kr/lectures/cg07/entry/blending-예제
OPENGL alpha blending, fog 예제
http://dis.dankook.ac.kr/lectures/cg07/entry/OpenGL-alpha-fog-예제
lecture19-ch7
lecture18-ch8
texture generation 예제
texture filtering & environment parameters 예제
texture mapping 예제
texture binding, texture generate, texture filtering, texture subimage
http://dis.dankook.ac.kr/lectures/cg07/entry/opengl-texture-mapping-예제
texture mapping by procedural definition & using imagefile,
mipmapping, texture environment setting (modulate/decal),
texture distorting, texture transformation, flipbook animation, etc
http://dis.dankook.ac.kr/lectures/cg07/entry/texture-mapping-예제
COIN3D simage library
simage.zip
1204648419.zip
http://dis.dankook.ac.kr/lectures/cg07/entry/COIN3D-simage-library
추가로 simage1.dll을 C:\WINDOWS\system32 에 copy한다.