본문 바로가기

Graphics9

[Graphics] 컴퓨터 그래픽스 공부과정, 그리고 알게 된 것 나는 2019년 3월부터 컴퓨터 그래픽스에 관심을 가지고 공부하기 시작했다. 2년이 넘는 시간동안 (지속적이진 않았지만) 그래픽스를 나름대로 공부한 과정과 그 과정에서 알게 된 것들을 정리해보는 시간을 가지려고 한다. 그래픽스 전공 교수님들과 상담 MAYA에서 pymel, cmds로 간단한 스크립트 모델링 컴퓨터 그래픽스에 대한 리서치 :: 기본 웹서치, 포프, 채용공고 등 쉐이더 GLSL 공부 :: 생활코딩 이을, thebookofshaders OpenGL 공부 :: Computer Graphics Programming in OpenGL 대학교 컴퓨터 공학 수업 :: 프로그래밍언어론, 그래픽프로그래밍설계, 컴퓨터그래픽스, 머신러닝 머신러닝 :: 비주얼라이제이션 연구실 학부연구생 컴퓨터 그래픽스에 관심을.. 2022. 8. 29.
[Metal] 3D Models * 교재 제목 : Metal by Tutorials second edition (Beginning Game Engine Development with Metal) Questions 1. "Quads work well with subdivision or smoothing algorithms." :: quad mesh를 사용하면 bilinear interpolation이 가능해서 더 부드러운 곡면 표현이 가능 + retopology, remeshing 2. (*.mtl) "newmtl material_1 : This is the group that contains all of the cone's vertices." vertices? :: 각 그룹에 해당하는 material을 여러 개의 정점에 적용시킬 수 있.. 2022. 8. 7.
[Metal] Hello, Metal! * 교재 제목 : Metal by Tutorials second edition (Beginning Game Engine Development with Metal) Questions 1. Metal에서는 vertex shader, fragment shader 대신 vertex function, fragment function이라는 용어를 사용한다. *.metal 쉐이더 파일에 vertex shader에 해당하는 vertex function, fragment shader에 사용하는 fragment function을 한 번에 저장하고 사용하는 게 일반적이어서 그런가? (이를테면 이런 식이다) #include using namespace metal; struct VertexIn { float4 position .. 2022. 7. 20.
[GLSL] Let's Dive in to the Shader! I wanted to study graphics languages (especially shaders), but I was worried about which language to choose between OpenGL and DirectX. I am currently using a MacBook and would like to use an online tutorial which name is "The Book of Shaders". Furthermore, in fact, GLSL and HLSL are similar to each other except for a few syntax... so I finally decided to study OpenGL shaders. As I mentioned, I .. 2022. 1. 5.
[컴퓨터그래픽스] 키보드 마우스 입력을 통한 화면 변경 #include #include #include #define PI 3.141592 #define CCW 0 #define CW 1 using namespace glm; vec3 my_triangle1[3] = { vec3(-10.f, 0.f, 0.f), vec3(10.f, 0.f, 0.f), vec3(0.f, 10.f, 0.f) }; // CCW vec3 my_triangle2[3] = { vec3(10.f, 0.f, 0.f), vec3(-10.f, 0.f, 0.f), vec3(0.f, 10.f, 0.f) }; // CW vec3 faceNorm[2]; vec3 eyeVec; GLfloat angle[2]; GLint culling = 3; // nothing first GLint isTriangle1.. 2021. 4. 3.
[Tensorflow] 이미지/CNN/회귀 - 무작위로 렌더링한 구의 속성 학습하기 visualization lab에서의 첫번째 deep learning (딥러닝) 프로젝트를 소개합니다. 우선 이 프로젝트가 어떤 프로젝트인지부터 간략하게 설명하겠습니다. 1. openGL을 활용하여 구(sphere)를 20,000개 렌더링한다. 2. 렌더링에서 무작위로 설정하는 속성 parameter 5개는 순서대로 R(red), G(green), B(blue), metallic(금속재질), roughness(표면의 거친 정도)를 나타내며, 이를 label로 저장한다. 3. 위에서 만든 구 이미지와 label(parameter 값)을 train set으로 저장한다. 4. test set에 해당하는 1,000개의 구와 1,000쌍(5개씩)의 label을 렌더링-저장한다. 5. 20,000개의 구를 tens.. 2020. 11. 18.
[Maya] 파이썬으로 모델링하기 (미러링된 트리) Modeling with Python (Mirrored Tree) 2019. 3. 13. 10:39 드디어, 어떻게 미러링하는지를 알게 되었다. I finally got how to mirror. 잎의 수를 늘리고, 더 큰 별을 달아주었다. more and tinier leaves, a big star import pymel.core as pm import random myPyramids = [] #make pyramids for n in range (2872): myPyramids.append(pm.polyPyramid()) count = 0 for x in range (20): yran = 20 - x for y in range (yran): zran = 20 - y for z in range (zran): pm.select(myPyramids[count]) pm... 2020. 11. 7.
[Maya] 파이썬으로 모델링하기 (크리스마스 트리 1/4) Modeling with Python (Quarter of a Christmas Tree) 2019. 3. 11. 22:08 지금까지 배운 것을 복습하기 위해 크리스마스 트리를 만들어보기로 했다. 빨강-초록 계열의 랜덤한 값을 가진 색상의 잎과, 맨 위에 노란 별을 가진 트리를 만들어보았다. I decided to make a Christmas tree which has green-red randomized-colored leaves and a yellow star on it. import pymel.core as pm import random myPyramids = [] #make pyramids for n in range (386): myPyramids.append(pm.polyPyramid()) count = 0 for x in range (10): yran = 10 - x for y i.. 2020. 11. 7.
[그래픽스] 컴퓨터 그래픽스 프로그래밍 개발 환경 구축 (Windows, MacOS) 그래픽스 교재 구매 링크 (원서) Windows OpenGL 개발환경 구축 MacOS OpenGL 개발환경 구축 + 이 교재에서 요구하는 texture mapping을 정확하게 수행하기 위해서는, 윈도우 환경에서 학습하실 것을 추천합니다. Computer Graphics Programming in Opengl Using C++ 책으로 만나는 새로운 세상 book.naver.com "Computer Graphics Programming in OpenGL with C++"라는 위 교재로 공부 후 업로드합니다. 현재까지 번역본이 없어 원서로 학습 후 한글로 업로드할 예정입니다. Windows 환경 구축 MacOS 개발 환경의 한계를 느껴 데스크탑을 맞췄습니다. Windows 에서 다시 개발 환경을 구축해봅시다.. 2020. 5. 22.