본문 바로가기

Python

(6)
[Python][Library] pyopengl pyopengl : 2D, 3D 그래픽 라이브러리인 OpenGL을 Python으로 랩핑 한 것 출처 : http://pyopengl.sourceforge.net/documentation/manual-3.0/index.html#GL https://www.khronos.org/registry/OpenGL-Refpages/es3.1/ ■ OpenGL.GL >> glClearColor Purpose : Color Buffer에 명확한 값을 지정한다. Signature : glClearColor( red , green , blue , alpha ) Parameters : Variables Type Optional defaults Description red GLfloat X rgb color에서의 red gree..
[Python][Library] pygame pygame : 2D 게임 개발을 위한 python 라이브러리. SDL 기반으로 크로스-플랫폼이라 이식이 쉬우며 (python 을 돌릴 수 있는 플랫폼이라면 어디서든 실행 가능), 게임 개발이 아니라도 이미즈 프로세스, 조이스틱 입력 음악 재생 등의 기능을 떼어다 쓰기도 한다. 출처 : https://www.pygame.org/docs/ ■ pygame 상위 패키지 >> init Purpose : import 된 모든 pygame 모듈 initialize Signature : init() Parameters : return : (numpass, numfail) Variables Type Description numpass int 모듈 초기화 성공횟수 numfail int 모듈 초기화 실패횟수 모듈을 초기..
[Python][Library] Intro 아래 포스팅은 각 라이브러리 별 docs 기반으로 공부한 내용이며, 추가적인 출처는 개별 포스팅에서 남기겠다. pygame docs : https://www.pygame.org/docs/ pyopengl docs : http://pyopengl.sourceforge.net/documentation/manual-3.0/index.html#GL numpy cv2 scikit-learn tensorflow pytorch
[OpenGl] (GetIntoGameDev) 02. Coloured Triangle (pointer)(pointer) 아래는 'GetIntoGameDev' Youtube 강의와 GitHub를 통해 공부한 포스팅입니다. GitHub - amengede/getIntoGameDev Contribute to amengede/getIntoGameDev development by creating an account on GitHub. github.com (GetIntoGameDev) OpenGl 강의 02. Coloured Triangle 색칠된 삼각형 만들기 Shader 구현 OpenGl에서는 최소 Vertex Shader와 Fragment Shader는 직접 작성 하여 사용하여야 한다. (GPU에 Vertex Shader와 Fragment Shader가 내장되어 있지 않다.) 일반적으로 Ope..
[OpenGl] (GetIntoGameDev) 01. Window Creation 아래는 'GetIntoGameDev' Youtube 강의와 GitHub를 통해 공부한 포스팅입니다. GitHub - amengede/getIntoGameDev Contribute to amengede/getIntoGameDev development by creating an account on GitHub. github.com (GetIntoGameDev) OpenGl 강의 01. Window Creation 설치 Pycharm > Settings > Project: preProcessiong.py > Python Interpreter에서 PyOpengGL-accelerate 설치 Pycharm > Settings > Project: preProcessiong.py > Python Interpreter ..
[OpenGl] OpenGl intro OpenGl 이란? Open Graphics Library 의 약자. 2차원 및 3차원 그래픽스 표준 API. 프로그래밍 언어 간 플랫폼 간의 교차 응용 프로그래밍을 지원, OpenGL의 동작은 점, 선, 다각형과 같은 기본 도형을 그리고, 이를 픽셀 형식으로 변환. OpenGL 상태 머신(OpenGL State Machine)이라는 그래픽스 파이프라인을 통하여 이루어짐. 출처 : https://ko.wikipedia.org/wiki/OpenGL # 아래 블로그 내용도 정리 해보자 https://medium.com/@NovaWoo/opengl%EC%9D%84-%EC%9C%84%ED%95%9C-3d-%EA%B8%B0%EB%B3%B8-%EA%B0%9C%EB%85%90-1-1f305105b478 OpenGL ..