OpenGL, GLUT, 3DF Zephyr, Meshlab, C++ 이용하여 개발
Colorless & Color rendering.
3DF Zephyr를 이용해서 만든 object를 meshlab을 이용하여 .off 파일로 변환하고, 이 파일들을 OpenGL을 이용하여 목표에 따라 rendering 하여 구현한다.
아래 사진은 3DF Zephyr를 이용해서 만든 object의 모습이다.
-
add proper lighting (ambient, diffuse, specular)
-
find proper viewpoint
-
improve the speed of normal calculation
-
restore the original color texture from HW2 by exporting and adding per-vertex color
per-vertex color가 아닌 per-point color로 구현해서 깨짐이 보인다.
(Mac OS 기준)
- 터미널을 켠다.
- 해당 폴더로 이동한다.
cd /Users/folder
3-1) (without color) typing
./CG_HW5
Enter the file name : generated.off
3-2) (with color) typing
./CG_HW5_colored
Enter the file name : generatedColored.off
( Xcode 기준 )
- 프로젝트를 만든다.
- Project > Build Phases > Compile Sources > add 소스 파일들
- Project > Build Phases > Link Binary With Libraries > add OpenGL.framework > add GLUT.framework
- Product > Run
( Eclipse 기준 )
- 프로젝트를 만든다.
- Project > Properties > C/C++ Build > Settings > MacOX X C++ Linker > Miscellaneout > Linker flags add -framework GLUT -framework OpenGL
- Project > Properties > C/C++ Build > Settings > GCC C++ Compiler > Includes > Include paths (-l) add "/opt/X11/include "
- BUILD PROJECT -> RUN as LOCAL C/C++ APPLICATION
홍정수
2018.12.03 (MON)