전체 글
-
Mesh RenderingCS/게임 프로그래밍 2024. 3. 31. 20:34
Mesh Transformations Theory World coordinate - scale matrix Uniform scale matrix : change the size only maintaining the shape of object. Non-uniform scale matrix : change the size and the shape of object. $$S \ = \ \begin{bmatrix} sx & 0 & 0 & 0 \\ 0 & sy & 0 & 0 \\ 0 & 0 & sz & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}$$ World coordinate - rotation matrix No commutative property : need attention to the ..
-
Multithreaded RenderingCS/게임 프로그래밍 2024. 3. 29. 15:11
Motivations for Multithreaded Rendering Resource Generation in Serial Execution Applications must generate all resources before entering the operations. Some resources are available only after additional processing of the original data. More complex applications may require more than enough resources to store in memory, so they are delayed due to having to read data from the hard disk during pro..
-
Process Scheduling 2CS/OS 2024. 3. 20. 14:36
Terminologies Burst (time) CPU burst : time it takes for CPU to execute an operation. I/O burst : time it takes for the CPU to wait for I/O. CPU-I/O burst cycle Each process execution consists of a cycle of CPU execution and I/O wait. Alternating CPU and I/O bursts. Processes can be described as I/O-bound process : I/O-intensive (CPU burst < I/O burst) CPU-bound process : CPU-intensive (CPU burs..
-
The Computation PipelineCS/게임 프로그래밍 2024. 3. 19. 21:46
Introduction DirectCompute A new processing paradigm that attempts to make the massively parallel computational power of the GPU. Available for tasks outside of the normal raster-based rendering domain. Can easily be used directly to supply input to rendering operations. Use the exact same resources that are used in rendering, so that it make interoperation between the rendering pipeline and Dir..
-
Fire Knight게임 클라이언트 개발/MakeDNF 2024. 3. 19. 19:46
이번 글에선 지금까지 구현한 Fire Knight 캐릭터의 스킬을 작성할 것이다. Fire Knight는 던전 앤 파이터의 여 귀검사 소드마스터를 모티브로 스킬을 구현했다. Fire Knight의 전투 영상 기본 공격 기본 공격은 총 3타로 이루어져있다. 기본 공격 버튼(Default로 X키로 지정)을 입력할 경우 연속적으로 1타, 2타, 3타를 사용한다. 2타의 경우 방향키를 입력하지 않을 경우 약간 앞으로 전진하며, 캐릭터가 바라보는 방향의 반대 방향의 방향키를 입력할 경우 움직이지 않고 사용 가능하다. (제자리 평타, 흔히 제평이라 부르는 기능) 기본 공격을 구현하면서 고려했던 부분은 다음 공격으로 이어가기 위한 유저의 추가적인 키 입력 타이밍이였다. 각 스킬들의 싸이클은 크게 공격을 시전하기 전 ..
-
Process Scheduling 1CS/OS 2024. 3. 13. 17:44
Types of Process Scheduling Long-term scheduling (job scheduler) : determines which programs are admitted to the system for processing Medium-term scheduling (swapper) : the decision to add to the number of processes that are partially or fully in main memory Short-term scheduling (CPU scheduler) : the decision as to which available process will be executed by the processor I/O scheduling Schedu..
-
외곽선 이펙트를 위한 쉐이더 그래프 맛보기게임 클라이언트 개발/MakeDNF 2024. 3. 13. 17:20
던전 앤 파이터에는 히트 박스의 상태가 일반 상태, 슈퍼 아머 상태, 무적 상태 총 세 가지 존재한다. 또 캐릭터의 히트 박스가 어떤 상태인지 시각적으로 쉽게 파악할 수 있도록 외곽선 이펙트가 존재한다. 일반 상태의 경우 외곽선 이펙트가 없고, 슈퍼 아머 상태의 경우 노란색과 빨간색의 외곽선 이펙트가, 무적 상태일 경우 흰색 외곽선 이펙트가 존재한다. 이번 글에선 이를 어떻게 구현했는지에 대해 작성하고자 한다. 외곽선만 그리면 될까? 외곽선 이펙트를 구현하기 위한 방법으로 총 두 가지를 생각해봤다. 캐릭터 스프라이트에 외곽선을 추가로 렌더링한다. 캐릭터 스프라이트보다 살짝 큰 스프라이트를 캐릭터 뒤에 배치한다. 우선 던전 앤 파이터에서 슈퍼 아머 이펙트가 적용되는 모습을 확인해보자. 캐릭터가 슈퍼 아머 ..
-
Process Description and ControlCS/OS 2024. 3. 6. 19:54
Terminologies : Program and Process Program vs Process Program : passive entity stored stored on disk (binary sequence) Process : active entity (execution sequence) Program becomes process when executable file loaded into memory Two essential elements of a process Program code A set of data associated with that code Process A program in execution The entity that can be assigned to and executed o..