Tag Archives: OpenGL

blending 예제

smoothAlpha – 정점에 지정된 알파색값의 보간
1263435246.cpp
fade_fog – 3개의 텍스쳐를 사용하여, 알파가 들어있는 텍스쳐이미지, fade-in/out기법 & fog기법
1271840915.cpp사용자 삽입 이미지
transparent – glDeskMask(GL_FALSE)사용
1247693865.cpp
cullface – glEnable(GL_CULL_FACE) 사용
1242135630.cpp
draworder – 블렌딩시 그림그리는 순서
1370103353.cpp
filtering – 여러가지 blending 필터기법
1021760893.cpp
lightmap – 멀티텍스쳐링 기법
1187702626.cpp

texture-alphablending 예제

texture-alphablending 예제

-이 예제를 실행시키려면, COIN3D의 simage library dll인 simage1.dll이 실행 디렉토리에 있어야한다.
1089089625.zip
-이 예제는 COIN3D의 simage library를 사용하여 3개의 texture를 loading한다. 그리고 loading한 texture를 본인이 직접만든 폴리곤 또는 glut/glu 물체에 입힌다.
-3개의 이미지중 tree.tga는 알파값을 가지고 있으며, 이 예제에서 alpha blending을 보여주고 있다.

1356364828.zip


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를 추가해야한다.


[#M_ more.. | less.. |
simage include와 library 추가

Project->Properties(ALT+F7)->Configuration Properties->C/C++->General에
Additional Include Directories에 .\simage를 넣는다.

Project->Properties(ALT+F7)->Configuration Properties->C/C++->Preprocessor에 Preprocessor Definitions에 ;SIMAGE_DLL를 추가한다.

Project->Properties(ALT+F7)->Configuration Properties->Linker->General에
Additional Library Directories에 .\simage를 넣는다.

Project->Properties(ALT+F7)->Configuration Properties->Linker->Input에
Additional Dependencies에 simage1.lib을 추가한다.

 _M#]