Bezier 와 Bspline surface 렌더링
- 최초 등록일
- 2007.06.27
- 최종 저작일
- 2007.05
- 20페이지/ 압축파일
- 가격 1,000원
소개글
Surface 렌더링
• 목 적
- 16개의 Control Points를 이용하여
Bezier Surface와 B-Spline Surface를
그린다.
• 입 력
- 16개의 Control points를 저장하는 파일
0.0 0.0 1.0 ->
1.0 0.0 2.0 ->
…7……;
4.0 4.0 5.2 ->
- 키보드 입력: Bezier or B-Spline 선택
(‘b’키)
Surface 렌더링
• 키보드입력
- 처음에 거친표면에서 시작하여 (위)를 누르면 점점 Subdivision이 진행되어 둥글게 되고 (아래)를 누르면 반대로 점점 거칠게 된다.
• 인접한 4개의 Control Points로 형성되는 사각형은 GL_QUADS로 그릴 수 있다.
glBegin(GL_QUADS);
glVertex2f(100.0f, 100.0f);
glVertex2f(100.0f, 200.0f);
glVertex2f(200.0f, 200.0f);
glVertex2f(200.0f, 100.0);
glEnd();
- 각 Control Point의 위치를 Interactive하게 변화시킬 수 있게 한다.
(키보드 또는 마우스이용)
- Control Point의 위치변화에 따라 표면 렌더링도 같이 변화한다.
컴파일 실행환경
Microsoft visual c++
압축파일 내 파일목록
Bezier 와 Bspline surface 렌더링.hwp
Project/glut32.dll
Project/main.cpp
Project/point.txt
Project/simple.dsp
Project/simple.dsw
Project/simple.exe
Project/simple.ncb
Project/simple.opt
Project/simple.plg
Project/Debug/main.obj
Project/Debug/point.txt
Project/Debug/simple.exe
Project/Debug/simple.ilk
Project/Debug/simple.pch
Project/Debug/simple.pdb
Project/Debug/vc60.idb
Project/Debug/vc60.pdb
참고 자료
없음