일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 가고싶은데
- 멜버른
- 청청구역
- BeautifulSoup
- OpenGL
- 유니코드 제거
- 보라카이
- 방향변경
- 마우스클릭
- 색상변경
- 애니메이션
- 데이터전처리
- 갈자신이없다
- 언제또가보지
- 빅데이터분석기사필기
- 오류
- 빅데이터분석기사
- 사각형변형
- 크롤링
- 너무오래됐다
- 정말
- selenium
- 호주
- 예쁜곳
- 빅데이터분석기사후기
- 파이썬
- 필기후기
- Today
- Total
목록👩💻/OpenGL (15)
wisdiom 아니고 wisdom
🚨🔥 내려올 때, 훌라후프처럼 회전이 안됨 + 바닥에 닿으면 그 다음 토러스가 안 내려옴 #include #include #define bottom 0 #define top 1 void drawscene(); void Reshape(int w, int h); void Keyboard(unsigned char key, int x, int y); void Timerfunction(int value); const int fps = 100; static int count = 0; static int Maxcount = 10; typedef struct T10 { float posY = 20.0; float posZ = 30.0; //float dirY; float angleY; }; bool whPo..
#include #include #define SOLID 0 #define WIRE 1 void SetupRC(void); void DrawScene(void); void Reshape(int w, int h); void Keyboard(unsigned char key, int x, int y); void Mouse(int button, int state, int x, int y); void MenuFunc(int button); void TimerFunction(int value); void Motion(int x, int y); enum { BACK, UP, DOWN, LEFT, RIGHT }; typedef struct COLOR { float r; float g; float b; } C..
#include void Drawscene(); void Timerfunc(int); void Menufunc(int); void Reshape(int, int); static int fps = 100; static GLfloat angleY = 0.0f; static GLfloat posY_T = 60.0; static GLfloat posZ_T = 50.0; static GLfloat posY_F = 60.0; static GLfloat posZ_F = 50.0; bool Nothiding = false; // 은면제거 on bool Culling = false; // 컬링 off bool flat = false; // smooth on bool top_open = false; // 윗면 닫힘..
🚨🔥 구와 육면체 충돌체크 필요 #include #include #define PI 3.141592 #define R 10 // 원 둘레 = 2*PI*R = 63 // 호의 길이 = R*angle = 1 void drawscene(); void Reshape(int w, int h); void Keyboard(unsigned char key, int x, int y); void MyTimer(int); static GLfloat direcX = 0.0f; static GLfloat direcZ = 0.0f; static GLfloat angleX = 0.0f; static GLfloat angleY = 0.0f; static GLfloat angleZ = 0.0f; static GLfloat pos_Z ..
📌 이동하는 육면체 위에 작은 물체를 올리고 그 위에 긴 팔을 만든다. 맨 아래의 몸체는 좌우로 이동 Y축으로 회전 가능 위 몸체와 팔도 같이 회전 📌 중간의 작은 물체는 X축 회전, Y축 회전 (양/음 방향으로) 회전 중심은 몸체의 아래 부분 맨 위의 긴팔도 같이 회전된다. 📌 맨 위의 긴팔은 X축 회전, Z축 회전 (양/음 방향으로) 회전 중심은 긴팔의 아래 부분 #include #include void drawscene(); void Reshape(int w, int h); void Keyboard(unsigned char key, int x, int y); //void Timerfunction(int value); static GLfloat bottomX = 0.0f; static GLfloa..
#include #include #define PI 3.141592 #define R 10 // 원 둘레 = 2*PI*R = 63 // 호의 길이 = R*angle = 1 void drawscene(); void Reshape(int w, int h); void Keyboard(unsigned char key, int x, int y); static GLfloat direcX = 0.0f; static GLfloat direcZ = 0.0f; static GLfloat angleX = 0.0f; static GLfloat angleY = 0.0f; static GLfloat angleZ = 0.0f; static GLfloat pos_Z = -210.0; int main() { glutIn..
🔍 중심에 있는 구(태양)를 중심으로 3개의 구(각기 다른 행성)가 다른 방향의 경로를 따라 회전하는 애니메이션 제작. 각 구에는 그 구를 중심으로 달이 공전한다. #include #include #include void drawscene(); void Reshape(int w, int h); void Keyboard(unsigned char key, int x, int y); void MenuFunc(int); void MyTimer(int); bool wire = false; static GLfloat directX = 0.0; static GLfloat directY = 0.0; static GLfloat directZ = 0.0; static GLfloat angleZ = 0.0; st..
#include #include void drawscene(); void Reshape(int w, int h); void Keyboard(unsigned char key, int x, int y); void MenuFunc(int); void Timerfunction(int value); static GLfloat angleX = 0.0f; static GLfloat angleY = 0.0f; static GLfloat angleZ = 0.0f; static GLfloat angleR = 0.0f; bool turn_L = false; bool turn_R = false; const int fps = 1; int whatshape = 0; //1.육면체 2.원뿔 3.구 4.주전자 int ..