ABOUT PORTFOLIO GAMES DEVLOG DOCS TOOLS CONTACT
DEV WIKI & CODE REPOSITORY

TECHNICAL DOCS

유니티 2D·3D 게임 개발 기법, URP 셰이더, 게임 수학·물리, ESP32 하드웨어 제어, 컴퓨터 구조(MIPS·RISC-V) 등을 정리해 둔 페이지입니다.

FILTER:
C / raylib Advanced

창(Window) 없이 물리 루프를 고속 검증하는 C 언어 헤드리스(Headless) 시뮬레이터Headless C Physics Simulator for High-Speed Batch Verification

GPU 컨텍스트나 윈도우 창을 생성하지 않고 순수 C 언어 물리 업데이트 루프만 수만 프레임 실행하여, 레벨 클리어 가능 여부와 수치 적분(dt) 오차를 자동 검증하는 배치 러너 설계입니다.Designing a headless C batch runner that executes tens of thousands of physics frames without opening a window or GPU context to verify level solvability and numerical integration stability.

#C#Physics#Testing
열기
C / raylib Advanced

외부 사운드 파일 없는 C 언어 절차적 파형 합성 및 44바이트 WAV 헤더 직렬화Procedural Audio Waveform Synthesis and 44-Byte WAV Header Serialization in C

외부 .wav/.ogg 에셋 파일에 의존하지 않고 C 언어 삼각함수(sinf), 지수 감쇠 엔벨로프, LFSR 의사 난수 노이즈로 16비트 PCM 샘플을 합성하여 RIFF/WAVE 메모리 버퍼로 직렬화하는 기법입니다.Synthesizing 16-bit PCM audio samples using C math functions (sinf, exponential decay envelopes, LFSR noise) and serializing a 44-byte RIFF/WAVE header in memory without external sound files.

#C#Audio#DSP
열기
Web / Tools Intermediate

Cloudflare Pages의 Clean URL(308 Redirect) 처리와 루트 절대 경로 표준화Handling Cloudflare Pages Clean URLs (308 Redirect) and Root-Relative Path Standardization

Cloudflare Pages의 .html 확장자 자동 제거(308 Permanent Redirect) 동작으로 인한 상대 경로 파손과 검색엔진 색인 보류 문제를 해결하는 URL 정규화 기법입니다.Techniques for normalizing URLs on Cloudflare Pages to resolve broken relative paths and search indexing delays caused by automatic .html stripping (308 Permanent Redirect).

#Cloudflare#SEO#CleanURL
열기
Web / Tools Intermediate

FOUC(화면 깜빡임) 없는 다크 모드 및 다국어(KO/EN) 프리페인트(Pre-Paint) 아키텍처FOUC-Free Dark Mode and Multilingual (KO/EN) Pre-Paint Architecture

브라우저 첫 페인트(First Paint) 이전에 실행되는 <head> 인라인 스크립트와 CSS 속성 선택자를 결합하여, 화면 깜빡임과 레이아웃 시프트 없이 테마와 언어를 전환하는 기법입니다.Combining a synchronous pre-paint <head> inline script with CSS attribute selectors to switch themes and languages without Flash of Unstyled Content (FOUC) or layout shifts.

#DarkMode#i18n#FOUC
열기
Web / Tools Intermediate

HTML5 Canvas 고정 델타 타임(Fixed Timestep) 루프와 Web Audio 절차적 효과음 합성HTML5 Canvas Fixed Timestep Loop and Procedural Web Audio Synthesis

144Hz 이상 고주사율 모니터에서도 물리 연산 속도를 일정하게 유지하는 requestAnimationFrame 누적기 루프와 외부 오디오 파일 없이 Web Audio API로 효과음을 합성하는 기법입니다.Maintaining deterministic physics across 144Hz+ high-refresh-rate monitors with a requestAnimationFrame accumulator loop and synthesizing sound effects via the Web Audio API without external audio files.

#Canvas#WebAudio#GameLoop
열기
Web / Tools Intermediate

외부 프레임워크 없는 Python 표준 라이브러리 기반 정적 사이트 제너레이터(SSG) 설계Zero-Dependency Python Static Site Generator (SSG) Architecture

외부 패키지 의존성 없이 Python 표준 라이브러리(json, pathlib, html, re)만으로 JSON 콘텐츠를 렌더링하고, 마커 기반 부분 주입과 고아(Orphan) HTML 정리를 자동화하는 파이프라인 구조입니다.A static site build pipeline using only Python standard libraries (json, pathlib, html, re) to render JSON content, inject HTML via comment markers, and prune orphaned output files.

#Python#SSG#Automation
열기
Web / Tools Beginner

기술 블로그 및 문서를 위한 JSON-LD 구조화 데이터와 Sitemap 자동 생성Automated JSON-LD Structured Data and Sitemap Generation for Technical Docs

검색엔진 크롤러가 문서의 메타데이터를 정확히 파싱하도록 Schema.org(TechArticle, BlogPosting) JSON-LD와 Open Graph 태그를 주입하고, 실존 파일만 검증하여 sitemap.xml을 생성하는 자동화 기법입니다.Automating Schema.org (TechArticle, BlogPosting) JSON-LD injection, Open Graph metadata, and file-verified sitemap.xml generation so search engine crawlers accurately index static pages.

#SEO#JSON-LD#Sitemap
열기
Web / Tools Advanced

백엔드 없는 정적 사이트 Q&A 보드: Firestore 보안 규칙과 Web Crypto SHA-256Serverless Static Site Q&A Board: Firestore Security Rules and Web Crypto SHA-256

별도 WAS 서버 없이 정적 호스팅 환경에서 Web Crypto API(SHA-256) 비밀번호 해싱, Cloudflare Turnstile 봇 방지 위젯, Firestore 스키마 검증 규칙을 결합해 댓글 보드를 구축하는 아키텍처입니다.Architecting a serverless comment board on static hosting by combining Web Crypto API (SHA-256) password hashing, Cloudflare Turnstile bot protection, and strict Firestore schema validation rules.

#Firestore#Security#WebCrypto
열기
Shader / URP Intermediate

2D 픽셀 스프라이트 노멀맵(Normal Map)과 URP 2D 동적 광원 입체 라이팅2D Pixel Sprite Normal Maps and Dynamic Lighting in URP 2D

2D 도트 스프라이트에 Secondary Texture _NormalMap을 연결하고 URP 2D Point/Spot Light로 실시간 입체 명암과 림라이트를 연산하는 기법.Techniques for binding a Secondary Texture _NormalMap to 2D pixel sprites and computing real-time cel-shaded lighting and rim highlights with URP 2D lights.

#Shader#URP#2D
열기
Shader / URP Intermediate

3D 씬의 실시간 2D 픽셀 아트화 (Low-Res RenderTexture & Point Upscaling)Real-Time 3D-to-2D Pixel Art Pipeline (Low-Res RenderTexture & Point Upscaling)

3D 지형과 애니메이션 모델을 320x180 저해상도 RenderTexture에 렌더링한 뒤 Nearest-Neighbor(Point) 필터로 디스플레이에 선명하게 업스케일하는 렌더링 파이프라인.A rendering pipeline that renders 3D environments and animated models into a low-resolution 320x180 RenderTexture and upscales them cleanly to the display using Nearest-Neighbor (Point) filtering.

#Shader#URP#3D-to-2D
열기
Shader / URP Advanced

3D 픽셀 아트용 컬러 팔레트 양자화(LUT Posterization) 및 1px 도트 외곽선 셰이더Color Palette Quantization (Posterization) and 1px Pixel-Art Outline Shader

3D 씬의 연속적인 라이팅 그라데이션을 제한된 팔레트로 양자화하는 포스터라이제이션과 Depth/Normal 버퍼를 이용한 1px 단위 외곽선 검출 기법.Quantizing smooth 3D lighting gradients into discrete retro color steps and extracting 1px pixel-art outlines from Depth and Normal buffers in URP.

#Shader#URP#PixelArt
열기
Shader / URP Advanced

3D 픽셀 아트 카메라의 픽셀 떨림(Pixel Creep) 방지와 서브픽셀 스냅(Texel Snapping)Preventing Pixel Creep with Subpixel Camera Texel Snapping

저해상도 픽셀 렌더링에서 카메라 이동 시 도트 외곽선이 울렁이는 Shimmering 문제를 월드 텍셀 그리드 스냅과 디스플레이 UV 미세 오프셋으로 해결하는 핵심 기법.Resolving pixel shimmering during camera movement in low-resolution 3D pixel art rendering by snapping the camera to the world texel grid and applying a subpixel UV offset on blit.

#Shader#URP#PixelArt
열기
Unity / C# Beginner

2D 패럴랙스 스크롤링(Parallax Scrolling) 다중 배경과 무한 루프 재배치2D Parallax Scrolling Multi-Layer Backgrounds and Infinite Loop Repositioning

카메라 이동량에 따른 Z-깊이별 레이어 상대 속도 연산, 뷰포트 경계를 벗어난 타일 배경의 무한 랩핑(Infinite Wrapping) 구현.Calculating relative layer velocities by depth based on camera movement and implementing infinite wrapping for tiled backgrounds outside the viewport.

#Unity#2D#Parallax
열기
Unity / C# Intermediate

URP Pixel Perfect Camera 설정과 Cinemachine 2D 카메라 경계 가두기(Confiner2D)URP Pixel Perfect Camera Setup and Cinemachine 2D Camera Bounds (Confiner2D)

픽셀 아트 게임의 텍셀 왜곡과 깜빡임(Shimmering)을 방지하는 PPU 공식, Cinemachine Confiner2D를 활용한 맵 경계 밖 노출 방지 기법.Preventing texel distortion and shimmering in pixel art games using PPU formulas and restricting camera views within level bounds with Cinemachine Confiner2D.

#Unity#2D#Cinemachine
열기
Unity / C# Beginner

2D 플랫포머 캐릭터 이동과 코요테 타임(Coyote Time) · 점프 버퍼링2D Platformer Character Movement, Coyote Time, and Jump Buffering

발판 이탈 직후 점프를 허용하는 코요테 타임과 착지 직전 입력을 보존하는 점프 버퍼링, Rigidbody2D 속도 제어를 통한 2D 플랫포머 이동 구현.Implementing responsive 2D platformer movement with Rigidbody2D velocity control, coyote time for post-ledge jumps, and jump buffering for pre-landing inputs.

#Unity#2D#Platformer
열기
Unity / C# Intermediate

2D Sprite Atlas 패킹과 Sorting Layer · SortingGroup 드로우콜(Draw Call) 최적화2D Sprite Atlas Packing, Sorting Layers, and SortingGroup Draw Call Optimization

개별 텍스처로 인해 깨지는 스프라이트 배칭 복구, Sprite Atlas 패킹 세팅, 다중 부품 캐릭터의 렌더 순서 꼬임을 방지하는 SortingGroup 가이드.Restoring broken sprite batching caused by separate textures, configuring Sprite Atlas packing, and using SortingGroup to prevent render order interleaving on multi-part characters.

#Unity#2D#SpriteAtlas
열기
Unity / C# Beginner

2D Tilemap & RuleTile 자동 지형 배치와 CompositeCollider2D 콜라이더 병합2D Tilemap & RuleTile Automated Terrain Placement and CompositeCollider2D Merging

인접 타일 패턴에 따라 외벽/코너를 자동 타일링하는 RuleTile 에셋 구축, 수백 개 개별 타일 충돌체를 단일 지형 폴리곤으로 합쳐 물리 부하를 줄이는 최적화.Building RuleTile assets to auto-tile walls and corners based on neighbor patterns, and merging individual tile colliders into unified polygons with CompositeCollider2D.

#Unity#2D#Tilemap
열기
Unity / C# Beginner

2D 탑다운(Top-Down) 8방향 이동, 대시(Dash) 및 넉백 물리 제어2D Top-Down 8-Directional Movement, Dash, and Knockback Physics Control

대각선 속도 왜곡을 방지하는 벡터 정규화, 무적 시간 동반 대시(Dash), 외부 피격 넉백(Knockback) 벡터를 부드럽게 감쇠·합산하는 탑다운 액션 모빌리티 구현.Implementing top-down action mobility with vector normalization to prevent diagonal speed distortion, invulnerability dashes, and decaying knockback velocity.

#Unity#2D#TopDown
열기
Unity / C# Beginner

3D CharacterController 이동, 카메라 기준 방향 변환 및 경사면(Slope) 제어3D CharacterController Movement, Camera-Relative Direction, and Slope Handling

카메라 시점 기준 3D 이동 벡터 계산, SmoothDamp 회전 보간, 경사각(Slope Limit) 등반 제한 및 내리막 덜컹거림(Bouncing) 방지 CharacterController 스크립트.Calculating camera-relative 3D movement vectors, SmoothDamp rotation interpolation, slope limit checks, and downhill bouncing prevention with CharacterController.

#Unity#3D#CharacterController
열기
Unity / C# Intermediate

3D Rigidbody 물리 기반 이동과 SphereCast 지면·경사로 투영(ProjectOnPlane)3D Rigidbody Physics-Based Movement and SphereCast Slope Projection (ProjectOnPlane)

물리 상호작용 오브젝트를 밀거나 밀려나는 3D 게임을 위한 Rigidbody.linearVelocity 제어와 SphereCast 기반 경사면 미끄러짐 방지 기법.Controlling Rigidbody.linearVelocity for physics-interactive 3D games and preventing slope sliding using SphereCast ground detection and ProjectOnPlane.

#Unity#3D#Rigidbody
열기
Unity / C# Advanced

3D 애니메이션 모델의 8방향 2D 픽셀 스프라이트 & 노멀맵 자동 베이킹(Baking) 툴Automated 8-Directional 2D Pixel Sprite & Normal Map Baker from 3D Animated Models

Dead Cells 및 Factorio 제작 방식: 3D 모델과 본 애니메이션을 지정된 각도·프레임별로 캡처해 2D 픽셀 스프라이트 시트와 노멀맵 PNG를 자동 굽는 에디터 툴.An Editor tool inspired by Dead Cells and Factorio that captures 3D models and skeletal animations across angles and frames to bake 2D pixel sprite sheets.

#Unity#Editor#SpriteSheet
열기
Unity / C# Intermediate

Coroutine vs C# async/await & Unity 6 Awaitable 비동기 프로그래밍 가이드Coroutine vs C# async/await & Unity 6 Awaitable Asynchronous Programming Guide

IEnumerator 코루틴의 한계와 WaitForSeconds 캐싱, UniTask 및 Unity 6 신규 Awaitable API 비교, 씬 전환 시 누수를 방지하는 CancellationToken 패턴.Comparing IEnumerator coroutines, WaitForSeconds caching, UniTask, and Unity 6's Awaitable API, along with CancellationToken patterns to prevent leaks on scene changes.

#Unity#C##Coroutine
열기
Unity / C# Intermediate

HD-2D 스타일 연출: 3D 배경 속 2D 픽셀 빌보드(Billboard)와 URP 피사계 심도(DoF)HD-2D Rendering Setup: 2D Pixel Billboards and URP Depth of Field in 3D Environments

3D 지형에 실시간 조명과 그림자를 받는 2D 픽셀 캐릭터를 배치하고 URP 피사계 심도 및 블룸 설정으로 디오라마 스타일 화면을 구성하는 렌더링 아키텍처.A rendering architecture for placing 2D pixel sprites with real-time lighting and shadows onto 3D terrain, combined with URP Depth of Field and Bloom for a diorama style.

#Unity#3D#2D
열기
Unity / C# Beginner

MonoBehaviour 생명주기(Awake · Start · Update · FixedUpdate · LateUpdate) 핵심 정리MonoBehaviour Lifecycle and Execution Order Essentials (Awake, Start, Update, FixedUpdate, LateUpdate)

초기화 순서 꼬임(NullReferenceException) 방지 원칙, 물리 틱과 렌더 프레임 분리 이유, Time.deltaTime과 Time.fixedDeltaTime의 올바른 사용 가이드.Guidelines for preventing initialization order errors (NullReferenceException), separating physics ticks from render frames, and properly using Time.deltaTime and Time.fixedDeltaTime.

#Unity#C##MonoBehaviour
열기
Unity / C# Beginner

2D/3D 충돌 감지(Collision vs Trigger) 조건 매트릭스와 LayerMask 비트 연산2D/3D Collision vs. Trigger Condition Matrix and LayerMask Bitwise Operations

물리적 반발(Collision)과 통과 감지(Trigger)의 발동 조건 조합표, NonAlloc 레이캐스트를 통한 GC 방지, LayerMask 비트 시프트(1 << layer) 연산 테크닉.A reference matrix for physical collisions and trigger events, non-allocating raycasts to prevent GC spikes, and LayerMask bit-shifting (1 << layer) techniques.

#Unity#Physics#Collision
열기
Architecture / ISA Intermediate

MIPS 32비트 명령어 포맷(R/I/J) 및 5단계 파이프라인 해저드(Hazard) 해결MIPS 32-Bit Instruction Formats (R/I/J) and 5-Stage Pipeline Hazard Resolution

MIPS 아키텍처의 3대 명령어 포맷(R, I, J-Type) 비트 필드 구조와 5단계 파이프라인(IF-ID-EX-MEM-WB)의 데이터 해저드 포워딩 및 분기 지연 슬롯(Branch Delay Slot) 동작 원리를 다룹니다.Covers the bit-field layout of the three MIPS instruction formats (R, I, J-Type) along with data hazard forwarding and branch delay slots in the 5-stage pipeline (IF-ID-EX-MEM-WB).

#MIPS#Assembly#Computer Architecture
열기
Architecture / ISA Advanced

MIPS 어셈블리 스택 프레임을 이용한 재귀 함수(피보나치) 구현Implementing Recursive Functions (Fibonacci) with Stack Frames in MIPS Assembly

함수 호출 시 복귀 주소($ra)와 로컬 변수($s0, $s1)를 스택 메모리에 저장·복원하여 재귀 호출(Recursion)을 안정적으로 처리하는 MIPS 어셈블리 구현 패턴입니다.A MIPS assembly pattern for handling recursion safely by saving and restoring the return address ($ra) and local preserved registers ($s0, $s1) on the stack.

#MIPS#Assembly#Recursion
열기
Architecture / ISA Beginner

QtSpim / MARS 시뮬레이터 MIPS syscall 입출력(I/O) 및 서비스 코드 가이드MIPS Syscall I/O and Service Code Guide for QtSpim and MARS Simulators

MIPS 시뮬레이터(QtSpim, SPIM, MARS) 환경에서 시스템 콜($v0)을 이용한 정수·문자열 콘솔 출력, 사용자 입력 수신, 힙 메모리 할당 및 프로그램 종료 구현 방법입니다.Implementing console integer/string output, user input reading, heap allocation, and clean program termination using system calls ($v0) in MIPS simulators (QtSpim, SPIM, MARS).

#MIPS#Assembly#QtSpim
열기
Architecture / ISA Beginner

MIPS vs RISC-V 핵심 어셈블리 명령어 1:1 대응 비교 치트시트MIPS vs. RISC-V Core Assembly Instruction 1:1 Comparison Cheat Sheet

산술(Add/Sub), 논리(And/Or/Xor), 메모리 로드/스토어(Lw/Sw), 조건 분기 및 점프(Branch/Jump) 명령어의 MIPS와 RISC-V 문법 차이를 1:1로 비교합니다.A 1:1 syntax and semantics comparison between MIPS and RISC-V across arithmetic, bitwise logic, memory load/store, and conditional branch/jump instructions.

#MIPS#RISC-V#Assembly
열기
Architecture / ISA Advanced

RISC-V 제어 상태 레지스터(CSR)와 하드웨어 트랩/인터럽트 처리 구조RISC-V Control and Status Registers (CSR) and Hardware Trap/Interrupt Handling

특권 모드(Machine Mode)에서 mtvec, mepc, mcause, mstatus 제어 상태 레지스터(CSR)를 제어하고 예외 및 인터럽트를 처리하는 아키텍처 원리입니다.Architectural principles for managing Machine-Mode Control and Status Registers (mtvec, mepc, mcause, mstatus) and handling synchronous exceptions and hardware interrupts in RISC-V.

#RISC-V#CSR#Interrupt
열기
Architecture / ISA Intermediate

RISC-V (RV32I) 레지스터 아키텍처 및 ABI 함수 호출 규약(Calling Convention)RISC-V (RV32I) Register Architecture and ABI Calling Convention

오픈 표준 아키텍처인 RISC-V 32비트 기본 정수(RV32I) 레지스터 32개의 ABI 명칭과 역할, Caller-Saved vs Callee-Saved 보존 규칙, 스택 프레임 프롤로그·에필로그 구현을 다룹니다.Covers the 32 general-purpose registers in RISC-V RV32I, their ABI names and roles, Caller-Saved vs. Callee-Saved preservation rules, and stack frame prologue/epilogue assembly.

#RISC-V#RV32I#Assembly
열기
Architecture / ISA Intermediate

RISC-V M 확장(RV32M) 정수 곱셈 및 나눗셈 하드웨어 명령어 구조RISC-V M Extension (RV32M) Integer Multiplication and Division Instructions

기본 RV32I에 정수 곱셈(mul, mulh, mulhu, mulhsu)과 나눗셈·나머지(div, divu, rem, remu) 하드웨어 명령어를 추가하는 RV32M 표준 확장을 설명합니다.Reference for the RV32M standard extension, which adds hardware integer multiplication (mul, mulh, mulhu, mulhsu) and division/remainder (div, divu, rem, remu) instructions to RV32I.

#RISC-V#RV32M#Arithmetic
열기
Architecture / ISA Intermediate

코드 크기를 30% 줄이는 RISC-V 16비트 압축 명령어(RVC / C 확장) 원리Principles of RISC-V 16-Bit Compressed Instructions (RVC / C Extension)

임베디드 플래시 메모리 제약을 완화하기 위해 빈번히 사용되는 명령어를 16비트로 인코딩하여 명령어 캐시 히트율과 코드 밀도를 높이는 RVC 확장 기술입니다.How the RISC-V C Extension (RVC) encodes frequent instructions into 16 bits to reduce binary size by 25–30% and improve instruction cache hit rates on embedded targets.

#RISC-V#RVC#Optimization
열기
C / raylib Beginner

raylib Camera2D 줌, 회전, 룸 바운드(Room Clamp) 및 부드러운 타깃 추적raylib Camera2D Zoom, Room Bounds Clamping, and Smooth Target Tracking

플레이어를 화면 중앙에 부드럽게 유지하고 레벨 경계선 밖으로 카메라가 벗어나지 않도록 클램핑하는 raylib 2D 카메라 제어 구현입니다.A raylib 2D camera controller that smoothly tracks the player around the screen center while clamping the viewport inside level boundaries.

#C#raylib#Camera2D
열기
C / raylib Advanced

멀티스레드 오디오 및 통신을 위한 고성능 C 언어 락프리 원형 큐(Lock-Free Ring Buffer)High-Performance C Lock-Free Ring Buffer for Multithreaded Audio and I/O

단일 생산자-단일 소비자(SPSC) 환경에서 뮤텍스 락(Mutex) 없이 원자적 인덱스 연산으로 스레드 안전성과 낮은 지연 시간을 확보하는 링 버퍼 구현입니다.A Single-Producer Single-Consumer (SPSC) lock-free circular queue in C11 using atomic acquire-release memory ordering and power-of-two bitmasking for low-latency thread communication.

#C#LockFree#Concurrency
열기
C / raylib Advanced

O(N^2) 브루트포스 충돌을 O(N)으로 가속하는 C 언어 2D 공간 분할 해시 그리드Accelerating O(N^2) Collision Detection to O(N) with a 2D Spatial Hash Grid in C

화면을 고정 크기 셀(Cell) 그리드로 분할하고 해시 함수를 통해 인접 셀 내부의 객체끼리만 충돌을 검사하여 다수의 오브젝트를 초당 60프레임으로 처리하는 구조입니다.Partitioning world space into fixed-size grid cells and hashing 2D integer coordinates so only neighboring entities are tested for collision at 60 FPS.

#C#SpatialHashing#Collision
열기
Embedded / IoT Intermediate

고속 SPI 버스 통신 프로토콜과 센서 레지스터 읽기/쓰기 타이밍 제어High-Speed SPI Bus Protocol and Sensor Register Read/Write Timing Control

I2C 대비 빠른 10~80MHz 클럭의 SPI 4선식(MOSI, MISO, SCK, CS) 버스 통신 원리와 레지스터 읽기·쓰기 바이트 시퀀스 제어 기법입니다.Principles of 4-wire SPI (MOSI, MISO, SCK, CS) communication at 10–80 MHz clock speeds and byte-sequence control for reading and writing peripheral registers.

#Embedded#SPI#Hardware
열기
Embedded / IoT Intermediate

ESP32 BLE(Bluetooth Low Energy) GATT 서버 구성 및 무선 센서 데이터 Notify 전송Configuring an ESP32 BLE GATT Server and Streaming Sensor Data via Notify

모바일 앱이나 웹 브라우저(Web Bluetooth API)로 저전력 센서 데이터를 20Hz 주기로 푸시 전송하는 ESP32 BLE GATT 서버 구현 가이드입니다.Implementing an ESP32 Bluetooth Low Energy (BLE) GATT server that pushes real-time sensor readings at 20Hz to mobile apps or Web Bluetooth clients using notifications.

#Embedded#ESP32#BLE
열기
Embedded / IoT Beginner

저전력 배터리 운용을 위한 ESP32 Deep Sleep 및 타이머/외부 GPIO 웨이크업ESP32 Deep Sleep with Timer and External GPIO Wakeup for Battery Operation

평상시 150mA 이상 소모하는 전류를 10μA 수준으로 낮추고, RTC 타이머 또는 외부 GPIO 인터럽트로 깨어나는 배터리 기반 센서 노드 펌웨어 설계입니다.Designing low-power ESP32 firmware that reduces idle current from 150mA+ down to ~10μA and wakes via the RTC timer or external GPIO interrupts.

#Embedded#ESP32#DeepSleep
열기
Embedded / IoT Intermediate

I2C 버스를 통한 MPU6050 6축 자이로 센서 데이터 취득 및 상보 필터(Complementary Filter)MPU6050 6-Axis IMU Data Acquisition over I2C and Complementary Filtering

가속도계의 고주파 진동 노이즈와 자이로스코프의 저주파 적분 드리프트(Drift)를 상보 필터로 결합하여 롤(Roll)·피치(Pitch) 자세각을 안정적으로 추정하는 펌웨어 알고리즘입니다.A firmware algorithm that fuses high-frequency accelerometer noise with low-frequency gyroscope drift using a complementary filter to estimate Roll and Pitch angles accurately.

#Embedded#I2C#MPU6050
열기
Math & Physics Beginner

3차 베지어 곡선(Cubic Bézier Curve) 보간 공식과 투사체 유도 미사일 궤적 계산Cubic Bézier Curve Interpolation and Homing Missile Trajectory Calculation

시작점, 도착점, 2개의 제어점(Control Points)을 활용하여 부드러운 카메라 궤적, 유도 미사일 경로, UI 커브를 생성하는 C# 수학 구현입니다.C# implementation of Cubic Bézier curve evaluation and tangent derivatives using start, end, and two control points for homing missile paths and camera rails.

#Math#Bezier#Spline
열기
Math & Physics Beginner

원(Circle)과 축 정렬 경계 상자(AABB) 간의 최단 접점 클램핑 충돌 검사Circle vs. AABB Closest-Point Clamping Collision Detection

별도의 무거운 물리 엔진 없이 원형 캐릭터·투사체와 직사각형 타일 사이의 교차 여부, 충돌 법선(Normal), 침투 깊이(Penetration Depth)를 구하는 2D 충돌 판정 수학입니다.2D collision mathematics for testing intersection, contact normal, and penetration depth between a circle and an Axis-Aligned Bounding Box (AABB) without a heavy physics engine.

#Math#Physics#Collision
열기
Math & Physics Advanced

퀘이크 III의 고속 역제곱근(Fast Inverse Square Root) 알고리즘과 원리Quake III's Fast Inverse Square Root Algorithm and Mathematical Principles

3D 벡터 정규화(1/sqrt(x))를 위해 IEEE 754 부동소수점 비트 재해석(0x5f3759df)과 뉴턴-랩슨(Newton-Raphson) 근사법을 결합한 수치 연산 기법 해설입니다.An analysis of the numerical approximation technique combining IEEE 754 floating-point bit reinterpretation (0x5f3759df) and Newton-Raphson iteration to compute 1/sqrt(x) for 3D vector normalization.

#Math#Algorithm#Optimization
열기
Math & Physics Intermediate

2D/3D 물리 오브젝트의 흔들림 없는 타깃 추적을 위한 PID 제어기 구현Implementing a PID Controller for Oscillation-Free Physics Target Tracking

비례(P), 적분(I), 미분(D) 항을 결합하여 차량 조향, 호버링 드론 수평 유지, 물리 기반 카메라 추적 시 오버슈트(Overshoot)와 진동을 억제하는 제어기 구현입니다.Combining Proportional (P), Integral (I), and Derivative (D) terms in C# to suppress overshoot and oscillation in vehicle steering, drone hovering, and physics-driven camera tracking.

#Math#Physics#PID
열기
Shader / URP Advanced

알파 블렌딩 정렬 문제 없이 섀도우 맵을 통과하는 디더링(Bayer Dither) 반투명 셰이더Bayer Dithered Transparency Shader Preserving Depth and Shadow Maps

불투명(Opaque) 큐에서 4x4 베이어 매트릭스(Bayer Matrix) 픽셀 마스킹으로 반투명을 모사하여 드로우콜 배칭과 깊이/그림자 맵을 유지하는 기법.Simulating transparency in the Opaque render queue with a 4x4 Bayer matrix pixel mask to preserve draw-call batching, depth writes, and shadow casting.

#Shader#URP#Dither
열기
Shader / URP Intermediate

시간 함수(Sine)와 프레넬, 스캔라인을 결합한 사이버펑크 홀로그램 글리치 셰이더Hologram Glitch Shader Combining Sine Scanlines and Fresnel Rim Lighting

Y축 월드/스크린 스캔라인 줄무늬 애니메이션과 림 프레넬 발광, 노이즈 기반 버텍스 오프셋 글리치를 결합한 반투명 홀로그램 셰이더.A translucent hologram shader combining vertical scanline animations, Fresnel rim emission, and optional vertex offset glitching in URP.

#Shader#URP#Hologram
열기
Shader / URP Intermediate

램프 텍스처(Ramp Texture)와 1D 룩업을 활용한 URP 카툰 셀 셰이딩(Toon Shading)URP Cel-Shading (Toon Shader) Using 1D Ramp Texture Lookups

Lambert N·L 조명 값을 연속적인 그라데이션 대신 계단식 셀 램프 텍스처로 매핑하여 셀 애니메이션 음영을 표현하는 URP 커스텀 라이팅 셰이더.Mapping Lambert N·L lighting values through a stepped 1D ramp texture instead of smooth gradients to achieve stylized cel-shaded lighting in URP.

#Shader#URP#Toon
열기
Shader / URP Intermediate

UV 언래핑 없이 월드 좌표 기반으로 텍스처를 투영하는 트라이플래너(Triplanar) 지형 셰이더Triplanar Mapping Terrain Shader Using World-Space Projections

동적 지형이나 절벽, 동굴 메시에서 UV 왜곡과 늘어남을 줄이기 위해 월드 X, Y, Z 세 축에서 텍스처를 투영하고 노멀 가중치로 합성하는 셰이더.Projecting textures along the world X, Y, and Z axes and blending them by surface normal weights to prevent UV stretching on cliffs, caves, and procedural terrains.

#Shader#URP#Triplanar
열기
Shader / URP Advanced

카메라 깊이 텍스처(_CameraDepthTexture) 페이드 기반 해안선 수면 폼(Foam) 셰이더Shoreline Water Foam Shader Using Camera Depth Texture Fade

수면 지오메트리의 스크린 깊이와 바닥 지형 깊이의 차이를 계산하여 해안선이나 바위 주변에 수면 거품(Foam)을 표현하는 URP 물 셰이더.A URP water shader that computes the difference between water surface depth and underlying scene geometry depth to generate shoreline and obstacle foam.

#Shader#URP#Water
열기
Unity / C# Intermediate

Addressable 에셋 번들 비동기 로딩 및 메모리 누수 없는 릴리즈(Release) 패턴Addressable AssetBundle Asynchronous Loading and Leak-Free Release Pattern

Resources 폴더의 메모리 낭비를 제거하고 원격/로컬 에셋을 비동기로 로드하며 참조 카운팅(Reference Counting) 기반으로 안전하게 언로드하는 실무 패턴.Eliminating Resources folder memory overhead by loading remote and local assets asynchronously and unloading them safely using reference counting.

#Unity#Addressables#AssetBundle
열기
Unity / C# Beginner

AudioMixer 스냅샷(Snapshot)을 활용한 동적 배경음 덕킹(Ducking) 및 공간 전환Dynamic BGM Ducking and Spatial Audio Transitions Using AudioMixer Snapshots

동굴 진입, 물속 잠수, 일시정지, 대화 이벤트 시 AudioMixer 파라미터 보간과 스냅샷 전환으로 사운드 연출을 구현하는 유니티 오디오 기법.Implementing sound transitions for caves, underwater zones, pause menus, and dialogue events using AudioMixer parameter interpolation and snapshot transitions.

#Unity#Audio#AudioMixer
열기
Unity / C# Beginner

신규 Unity Input System (Action Map) 이벤트 바인딩 및 크로스플랫폼 통합 제어Unity Input System Action Map Binding and Cross-Platform Input Control

레거시 Input.GetAxis 폴링을 탈피하여 키보드, 마우스, 게임패드, 터치스크린 입력을 단일 InputAction 에셋으로 일원화하는 실무 C# 이벤트 처리 아키텍처.A C# event-driven input architecture that replaces legacy Input.GetAxis polling and unifies keyboard, mouse, gamepad, and touchscreen inputs through a single InputAction asset.

#Unity#C##InputSystem
열기
Unity / C# Intermediate

Unity C# Job System과 Burst 컴파일러를 활용한 멀티스레드 병렬 연산 기초Multithreaded Parallel Computing Basics with Unity C# Job System and Burst Compiler

메인 스레드 병목을 줄이고 멀티코어 CPU를 활용하여 대량의 파티클 및 유닛 물리 연산을 병렬로 처리하는 IJobParallelFor 및 NativeArray 실무 패턴.Practical patterns using IJobParallelFor and NativeArray to distribute main-thread workloads across multi-core CPUs for large-scale particle and unit calculations.

#Unity#DOTS#JobSystem
열기
Unity / C# Beginner

비동기 씬 로드(LoadSceneAsync)와 페이드 인/아웃 로딩 바 연동 컨트롤러Asynchronous Scene Loading (LoadSceneAsync) with Fade Transition and Progress Bar

화면 멈춤(Freeze) 현상 없이 다음 씬을 백그라운드에서 로딩하고 allowSceneActivation 제어로 100% 로드 시점에 부드럽게 화면을 열어주는 트랜지션 매니저.A transition manager that loads scenes asynchronously in the background without freezing the screen and coordinates fade-in/out transitions using allowSceneActivation.

#Unity#SceneManagement#Async
열기
Unity / C# Intermediate

ScriptableObject 기반 모듈형 게임 변수 및 이벤트 아키텍처Modular Game Variables and Event Architecture Using ScriptableObjects

싱글톤 없이 ScriptableObject를 데이터 컨테이너와 이벤트 브로커로 사용하여 씬 간 데이터 공유와 UI-게임플레이 디커플링을 달성하는 라이언 히플(Ryan Hipple) 아키텍처.An architecture pattern inspired by Ryan Hipple that uses ScriptableObjects as data containers and event brokers to share data across scenes and decouple UI from gameplay without singletons.

#Unity#ScriptableObject#Architecture
열기
C / raylib Advanced

게임 프레임 단위를 위한 고성능 C 언어 선형 아레나 메모리 할당기(Arena Allocator)High-Performance C Linear Arena Memory Allocator for Per-Frame Lifetimes

malloc/free 반복으로 인한 힙 단편화와 시스템 콜 오버헤드를 줄이고, 프레임 종료 시 포인터 오프셋을 0으로 초기화해 일괄 해제하는 선형 메모리 아레나 구현입니다.A linear arena allocator in C that eliminates heap fragmentation and malloc/free overhead by advancing a single offset pointer and resetting it in O(1) at the end of each frame.

#C#Memory Management#Optimization
열기
C / raylib Intermediate

raylib 기반 델타 타임 누적 고정 프레임 레이트 게임 루프Fixed Timestep Accumulator Game Loop in raylib

물리 연산의 결정론(Determinism)을 확보하기 위해 렌더링 주기에 상관없이 일정한 시간 간격(Fixed dt)으로 로직을 갱신하는 Accumulator 기반 게임 루프입니다.An accumulator-based game loop pattern in C and raylib that steps physics at a constant time interval (Fixed dt) regardless of display refresh rate to ensure deterministic simulation.

#C#raylib#Game Loop
열기
Embedded / IoT Intermediate

ESP32 FreeRTOS 듀얼 코어 분산 태스크 및 스레드 세이프 큐(Queue) 통신ESP32 FreeRTOS Dual-Core Task Pinning and Thread-Safe Queue Communication

Core 0(Wi-Fi·센서 수집)과 Core 1(UI 렌더링·모터 제어)에 독립 태스크를 고정(PinToCore)하고 FreeRTOS Queue로 데이터를 안전하게 교환하는 멀티태스킹 패턴입니다.Pinning independent FreeRTOS tasks to Core 0 (Wi-Fi/sensor acquisition) and Core 1 (UI rendering/motor control) and exchanging data safely via FreeRTOS queues.

#Embedded#ESP32#FreeRTOS
열기
Embedded / IoT Advanced

ESP32 I2S DMA 기반 HUB75 RGB LED 매트릭스 패널 구동 및 더블 버퍼링Driving HUB75 RGB LED Matrix Panels with ESP32 I2S DMA and Double Buffering

CPU 개입을 줄이고 I2S 병렬 DMA 엔진이 프레임 버퍼를 LED 패널로 연속 스트리밍하도록 구성하여 플리커 현상 없는 화면을 출력하는 하드웨어 제어 기법입니다.Streaming framebuffers continuously to HUB75 RGB LED matrix panels via the ESP32 I2S parallel DMA engine for flicker-free graphics without CPU bit-banging overhead.

#Embedded#ESP32#HUB75
열기
Embedded / IoT Advanced

하드웨어 펄스 카운터(PCNT)를 활용한 지터 없는 로터리 엔코더 읽기Jitter-Free Rotary Encoder Reading with ESP32 Hardware Pulse Counter (PCNT)

소프트웨어 인터럽트 채터링이나 CPU 부하 없이 ESP32 내장 PCNT 하드웨어 주변장치가 엔코더의 A/B 위상 구형파를 직접 계수하는 입력 드라이버 구현입니다.An input driver using the ESP32's built-in PCNT hardware peripheral to count quadrature A/B phase pulses directly in hardware without GPIO interrupt overhead.

#Embedded#ESP32#Hardware
열기
Math & Physics Intermediate

목표 지점에 도달하기 위한 포물선 투사체 발사 각도 및 초기 속도 계산Calculating Ballistic Launch Angle and Initial Velocity to Hit a Target

중력 가속도(g)와 고도차(h)가 존재하는 2D/3D 환경에서 목표 좌표(Target)에 투사체를 도달시키기 위한 2차 방정식 탄도학 수식 풀이입니다.Solving the quadratic ballistic trajectory equations in 2D/3D space with gravity (g) and elevation difference (h) to compute the exact launch velocity vector.

#Math#Physics#Ballistics
열기
Math & Physics Intermediate

와이어 로프 진자 운동 시뮬레이션 및 릴리즈 횡속도 증폭 관성 물리Wire Rope Pendulum Simulation and Release Momentum Boost Physics

2D 힌지·로프 조인트 기반 진자 궤적에서 접선 벡터(Tangent Vector)를 추출하고 로프 해제 시 횡가속도(Horizontal Boost)를 보존하는 관성 물리 구현입니다.Extracting 2D tangent vectors along a pendulum arc to apply swing thrust and preserving amplified horizontal momentum upon rope release in Unity.

#Math#Physics#2D Platformer
열기
Math & Physics Advanced

짐벌락 없는 쿼터니언 부드러운 회전 보간(SmoothDamp Rotation)Gimbal-Lock-Free Quaternion SmoothDamp Rotation Interpolation

Vector3 오일러 각의 360도 경계 래핑 및 짐벌락 문제를 방지하고, 임계 감쇠 스프링-댐퍼 모델로 목표 회전에 부드럽게 수렴하는 쿼터니언 보간 기법입니다.A critically damped spring-damper quaternion interpolation method in C# that avoids Euler 360-degree wrapping and gimbal lock while smoothly converging on target rotations.

#Math#Quaternion#Rotation
열기
Math & Physics Intermediate

각도와 거리 가중치를 합산하는 스마트 타깃 조준 보정 알고리즘Smart Target Aim-Assist Scoring Algorithm with Angle and Distance Weights

고속 액션 환경에서 조준 방향과 후보 대상 간의 각도 오차, 정규화 거리 비율, 장애물 가림 여부를 평가해 최적의 타깃을 선별하는 조준 보정(Aim Assist) 수학입니다.Evaluating angular error, normalized distance ratio, and line-of-sight occlusion in C# to select the optimal grapple anchor or enemy target during fast-paced gameplay.

#Math#Algorithm#Aim Assist
열기
Shader / URP Intermediate

노이즈 텍스처와 스텝 함수 기반 URP 디졸브(Dissolve) 번 엣지 셰이더URP Dissolve Burn-Edge Shader Using Noise Textures and Step Functions

Simplex/Perlin 노이즈와 step/smoothstep 함수를 결합해 오브젝트가 타들어가며 사라지는 가장자리 발광(Emissive Burn Edge) 셰이더 구현.Implementing an emissive burn-edge dissolve shader in URP by combining Simplex/Perlin noise sampling with cutoff clipping and edge interpolation.

#Shader#URP#HLSL
열기
Shader / URP Beginner

뷰 벡터와 노멀 내적을 활용한 프레넬(Fresnel) 림라이트 HLSL 셰이더Fresnel Rim Light HLSL Shader Using View and Normal Dot Product

시선 방향(ViewDir)과 표면 노멀(Normal)의 각도 차이를 계산해 캐릭터 외곽선을 강조하는 경량 프레넬 림라이트 구현.A lightweight Fresnel rim lighting implementation that highlights character silhouettes by computing the angle between view direction and surface normal.

#Shader#URP#HLSL
열기
Shader / URP Advanced

깊이(Depth) 및 노멀 텍스처 기반 URP 풀스크린 렌더 피처 아웃라인URP Full-Screen Render Feature Outline Using Depth and Normal Buffers

소벨 필터(Sobel Filter)를 카메라 Depth/Normal 텍스처에 적용해 메시 지오메트리 변형 없이 외곽선을 추출하는 URP 스크린 스페이스 셰이더.Extracting clean outlines without mesh duplication by applying a Sobel filter to the camera Depth and Normal textures in a URP screen-space shader.

#Shader#URP#RenderFeature
열기
Shader / URP Beginner

피격 시 스프라이트를 순간적으로 발광시키는 2D 플래시(Flash) 셰이더2D Sprite Hit-Flash Shader Using RGB Color Interpolation

스프라이트 원본 알파 채널을 보존하면서 RGB를 단색(화이트/레드)으로 보간해 타격 피드백을 강조하는 2D 스프라이트 셰이더와 MaterialPropertyBlock 연동.A 2D sprite shader that preserves the source alpha channel while interpolating RGB toward a solid flash color to emphasize hit feedback.

#Shader#2D#Sprite
열기
Unity / C# Beginner

외부 패키지 없이 구현하는 감쇠 진폭 2D/3D 카메라 셰이크(Camera Shake)Dependency-Free Damped Amplitude 2D/3D Camera Shake Implementation

Perlin Noise와 지수 감쇠(Exponential Decay) 공식을 활용해 방향성 반동과 충격 강도를 자연스럽게 표현하는 경량 카메라 흔들림 컨트롤러.A lightweight camera shake controller using Perlin Noise and exponential trauma decay to express directional recoil and impact intensity.

#Unity#C##Camera
열기
Unity / C# Intermediate

컴포넌트 간 결합도를 낮추는 제네릭 타입 기반 EventBus 시스템Generic Type-Based EventBus System for Component Decoupling

문자열 식별자나 직접 참조 없이 구조체 이벤트 타입만으로 구독과 발행을 처리하는 무할당(Zero-Allocation) 유니티 C# EventBus 아키텍처.A zero-allocation C# EventBus architecture in Unity that handles event subscription and publishing using struct types without string identifiers or direct references.

#Unity#C##EventBus
열기
Unity / C# Intermediate

인터페이스 기반 유한 상태 머신(FSM)과 플레이어 액션 상태 전이 제어Interface-Based Finite State Machine (FSM) for Player Action Control

복잡한 Switch 분기를 제거하고 Enter/Execute/Exit 라이프사이클을 보장하는 C# 인터페이스 기반 유한 상태 머신(Finite State Machine) 아키텍처.A C# interface-based Finite State Machine architecture that replaces complex switch statements and enforces an Enter, Execute, and Exit lifecycle.

#Unity#C##FSM
열기
Unity / C# Advanced

인벤토리 및 타일 배치 검사를 위한 64비트 비트마스크(Bitmask) 연산64-Bit Bitmask Operations for Grid Inventory and Tile Placement

다차원 배열 2중 루프 순회를 단일 ulong 비트 연산(AND, OR, Shift)으로 치환하여 O(1) 복잡도로 오버랩과 경계를 검사하는 그리드 최적화 기법.A grid optimization technique that replaces nested 2D array loops with single ulong bitwise operations (AND, OR, Shift) for O(1) overlap and boundary checks.

#Unity#C##Bitmask
열기
Unity / C# Beginner

씬 전환에도 파괴되지 않는 제네릭 영속 싱글톤(Persistent Singleton) 패턴Generic Persistent Singleton Pattern Across Scene Transitions

DontDestroyOnLoad와 지연 초기화, 씬 종료 시 고스트 오브젝트 생성을 예방하는 스레드 세이프 유니티 C# 제네릭 싱글톤 템플릿.A thread-safe generic C# singleton template in Unity that handles DontDestroyOnLoad, lazy initialization, and prevents ghost object creation on application quit.

#Unity#C##Design Pattern
열기
Unity / C# Beginner

Unity C# 제네릭 오브젝트 풀링 (UnityEngine.Pool 최적화)Generic Object Pooling in Unity C# with UnityEngine.Pool

Instantiate/Destroy 반복으로 인한 GC 가비지와 프레임 드랍을 예방하는 UnityEngine.Pool.IObjectPool 기반 제네릭 풀 구현 및 실전 컴포넌트 래퍼.A generic pool implementation and practical component wrapper built on UnityEngine.Pool.IObjectPool to prevent GC allocations and frame drops caused by repeated Instantiate and Destroy calls.

#Unity#C##ObjectPool
열기