전체 글

시나브로 쌓여가는 IT 지식
일반적으로 맵을 돌아다니거나 단순한 충돌 이벤트들은 캐릭터의 캡슐 컴포넌트에 의해 이루어진다. 그러나 총알이나 무기 등으로 인해 캐릭터에 데미지를 입힐 때, 이 역시 캡슐 컴포넌트로 충돌을 파악한다면 피격 판정이 매우 이상해질 것이다. 그렇기에 세밀한 충돌이 필요한 경우를 위해 충돌 채널을 분리할 필요가 있다 지금은 다음과 같은 방법을 사용한다 1. 총알 (SphereCollision) - 콜리전 프리셋: IgnoreOnlyPawn 2. 캐릭터의 캡슐 컴포넌트 (CollisionCylinder Component) - 콜리전 프리셋: Pawn 3. 캐릭터의 스켈레탈 메시 (SkeletalMesh Component) - 콜리전 프리셋: WorldDynamic 총알은 Pawn을 제외한 모든 것, 즉 World..
* PointDamage를 이용하여 데미지를 입은 오브젝트의 Bone 이름을 통해 부위별 데미지 설정이 가능하다
· OpenGL
1. VBO.h #ifndef VBO_CLASS_H #define VBO_CLASS_H #include class VBO { public: // Reference ID of the Vertex Buffer Object GLuint ID; // Constructor that generates a Vertex Buffer Object and links it to vertices VBO(GLfloat* vertices, GLsizeiptr size); // Binds the VBO void Bind(); // Unbinds the VBO void Unbind(); // Deletes the VBO void Delete(); }; #endif 2. VBO.cpp #include"VBO.h" // Construc..
- 투사체에 콜리전 입히기 - 콜리전 컴포넌트를 가장 상단으로 놓기 - 콜리전 컴포넌트 선택 후, 이벤트 그래프에서 Collision에 대한 이벤트 추가 > 콜리전 > On Component Hit
· OpenGL
* Shader (Sahde + r) - 음영을 만드는 주체 Graphic Pipeline 1. Vertex Shader - The Vertex Shader takes the positions of all the vertices and transforms them- 점들을 찍는다* 기존의 정점을 지우거나 새로운 정점을 추가하는 등의 작업은 할 수 없다 2. Shape Assembler - The Shape Assembler takes all the positions, and connects them according to a primitive - primitive: shape such as a triangle, or maybe a point, or a line - 주어진 primitive에 따라 점들을 ..
· OpenGL
#include #include #include int main() { glfwInit(); // GLFW 버전 명시 glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); // OPENGL 프로필 설정 (Core 프로필) // Core 프로필: 최신 함수들만 사용 glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 창 이름이 "OpenGL" 인 800 x 800 GLFWwindow 객체 생성 GLFWwindow* window = glfwCreateWindow(800, 800, "OpenGL", NULL, NULL); if (w..
· OpenGL
참고: https://www.youtube.com/watch?v=XpBGwZNyUh0&list=PLPaoO-vpZnumdcb4tZc4x5Q-v7CkrQ6M-&index=2 1. CMake 설치 2. GLFW 설치 (OpenGL library) 3. Glad 설치 Language: C/C++/ git: version 3.3 / Profile: Core - https://glad.dav1d.de/ - 설정 후 우측 하단의 Generate 버튼 누르기 - glad.zip 다운로드 4. Visual Studio 커뮤니티 빈 프로젝트 생성 - 프로젝트 내에 Libraries 폴더 생성 - Libraries 폴더 내에 lib, include 폴더 생성 5. Cmake 열기 - glfw 폴더 안에 build 폴더 생..
1. Vue 프로젝트 생성 vue create foldername - foldername 폴더 생성 후, 그 안에 vue 프로젝트 세팅됨 2. Vue 라우터 설치 :: foldername 폴더 안에 들어간 뒤 입력 vue add router - 페이지 전환을 위한 라우터 설치
Eu4ng
시나브로