본문 바로가기

분류 전체보기174

[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.
[OpenGL] Material - PBR, Texture PBR 물리 기반 렌더링 (Physically Based Rendering). 표면의 재질에 따른 빛의 반사가 물리적으로 어떻게 이루어지는지를 계산하여 표현하는 기법 https://namu.wiki/w/%EB%AC%BC%EB%A6%AC%20%EA%B8%B0%EB%B0%98%20%EB%A0%8C%EB%8D%94%EB%A7%81#rfn-4 난반사 (Diffuse) 표면으로 들어온 빛이 반사될 때, 다수의 방향들로 반사되는 빛 반사, 재질의 표면이 가진 색의 파장을 반사 https://ko.wikipedia.org/wiki/%EB%82%9C%EB%B0%98%EC%82%AC 정반사 (Specular) 거울처럼 매끈한 면을 경계로 일어나는 반사, 모든 표면은 빛을 받는 위치와 각도에 따라 빛 자체를 어느정도 반사.. 2022. 7. 6.
[C++] Header-only Library Header-only Library 라이브러리를 구성하는 매크로, 함수, 클래스 등이 모두 헤더 파일 안에서 정의되어 컴파일러에게 보여지는 라이브러리 Header-only Library의 장점 추상화(구현의 구체적인 사항을 사용자에게로부터 숨김)하여 헤더파일+라이브러리(.dll, .lib, .dylib 등)의 구성으로 배포하는 일반 라이브러리와 달리, 운영체제별 컴파일 또는 복잡한 경로설정이 필요 없다. 빌드할 필요 없이 파일을 코드에 포함시키기만 하면 된다. 따라서 멀티플랫폼 지원이 가능하다. + 라이브러리가 템플릿 코드인 경우 header-only 형태로 구현/배포하는 것이 필수적이다. Header-only Library의 단점 - 라이브러리를 수정할 경우 해당 라이브러리를 사용하는 모든 컴파일 단위.. 2022. 3. 31.
[Español] Family (스페인어 기초, 회화, 가족, 동물, 단어) Vocabulario · wife : esposa · husband : esposo · grandmother : abuela · grandfather : abuelo · father : padre (m) · mother : madre (f) · brother : hermano · sister : hermana · daughter : hija · son : hijo · dog : perro · cat : gato · car : carro · bycicle : bicicleta · house : casa · live : vivir - vivo vives vive viven · very : muy · good : bien · elegant : elegante · intelligent : inteligente .. 2022. 3. 25.
[Software Engineering] Agile : Camera Motion Sensing Project for Home Security (팀프로젝트) https://github.com/bacchusdd/SoftwareEngineering GitHub - bacchusdd/SoftwareEngineering: 'Camera Motion Detector' project for 2021-1 software engineering class 'Camera Motion Detector' project for 2021-1 software engineering class - GitHub - bacchusdd/SoftwareEngineering: 'Camera Motion Detector' project for 2021-1 software engineering class github.com https://github.com/bacchusdd/SoftwareEngine.. 2022. 3. 18.
(Draft) Texture Mapping, 3D Models, Lighting * 이 게시물은 추후 archive될 예정입니다. 5.1 Loading Texture Image Files 5.2 Texture Coordinates 5.3 Creating a Texture Object 5.4 Constructing Texture Coordinates 5.5 Loading Texture Coordinates into Buffers 5.6 Using the Texture in a Shader: Sampler Variables and Texture Units 5.7 Texture Mapping: Example Program 5.8 Mipmapping 5.9 Anisotropic Filtering 5.10 Wrapping and Tiling 5.11 Perspective Distortion .. 2022. 3. 10.
(Draft) Managing 3D Graphics Data : Highlights & Codes * 이 게시물은 추후 archive될 예정입니다. a buffer to a vertex attribute directly to a uniform variable 4.1 Buffers and Vertex Attributes init() display() Vertex Buffer Object Vertex Array Object one will be sufficient GLuint vbo[2]; glGenBuffers(2, vbo); We store those IDs in the integer arrays vao and vbo. Vertex attributes are generally the first variables declared in a shader. this vertex attribute will b.. 2022. 3. 10.
[그래픽스] 투영 행렬, Look-At 행렬, GLSL 변환 행렬 함수 (Projection Matrices, Look-At Matrices, GLSL Functions for Transformation Matrices) * 이 게시물은 Computer Graphics Programming in OpenGL with C++ 책의 일부를 번역 및 재해석한 게시물입니다. 의역 또는 오역이 있을 수 있으니 참고하시고, 피드백은 댓글을 남겨주세요. 투영 행렬 (Projection Matrices) 우리가 카메라를 설치하였기 때문에, 프로젝션 행렬을 검토할 수 있습니다. 우리가 이제 검토할 두 가지 중요한 프로젝션 행렬은 원근(perspective)과 직교(orthographic)입니다. 1. 원근 투영 행렬 (Perspective Projection Matrices) 원근 투영은 원근의 개념을 활용함으로써 우리가 현실 세계를 볼 때 보는 것을 모방하여 2D 그림을 3D처럼 보이게 합니다. 가까운 오브젝트는 멀리 떨어져 있는 오브.. 2022. 3. 7.