Graphics

Framebuffers

May 22 2022

๋ฒ„ํผ๋ž€? Buffer ๋ฐ์ดํ„ฐ๋ฅผ ํ•œ ๊ณณ์—์„œ ๋‹ค๋ฅธ ๊ณณ์œผ๋กœ ์ „์†กํ•˜๋Š” ๋™์•ˆ ์ผ์‹œ์ ์œผ๋กœ ๊ทธ ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด๊ด€ํ•˜๋Š” ๋ฉ”๋ชจ๋ฆฌ ์˜์—ญ

Transforming - World

November 15 2021

Translation ์–ด๋–ค P1 (x, y)๋ฅผ P2(xโ€™, yโ€™)๋กœ ์ด๋™ ๋‘ ์  ์‚ฌ์ด์˜ ๊ฑฐ๋ฆฌ๋Š” (Tx, Ty) xโ€™ = x + Tx yโ€™ = y + Ty

VSync์™€ Anti Aliasing

November 12 2021

์ˆ˜์ง๋™๊ธฐํ™” VSync ํ™”๋ฉด์ฃผ์‚ฌ์œจ๊ณผ ๊ฒŒ์ž„ ํ™”๋ฉด์˜ FrameRate๋ฅผ ๋™๊ธฐํ™” ๋ชจ๋‹ˆํ„ฐ๋Š” ๊ฐ๊ฐ ๊ณ ์œ ์˜ ์ฃผ์‚ฌ์œจ์ด ์žˆ๋‹ค 60Hz๋Š” 1์ดˆ์— 60๋ฒˆ ์Šคํฌ๋ฆฐ์„ ์—…๋ฐ์ดํŠธ ํ•œ๋‹ค๋Š” ์˜๋ฏธ ํ•˜๋“œ์›จ์–ด ๊ณ ์œ ์˜ ์ œํ•œ ์‚ฌํ•ญ์ด๋ฏ€๋กœ, ํ”„๋กœ๊ทธ๋žจ ๋ฐ PC ์„ฑ๋Šฅ๊ณผ ๋ฌด๊ด€ ๊ฒŒ์ž„ ํ”„๋ ˆ์ž„์€ ๊ฒŒ์ž„ Scene์„ 1์ดˆ์— ๋ช‡ ๋ฒˆ ๊ทธ๋ฆฌ๋Š”์ง€๋ฅผ ์˜๋ฏธ ...

Texture ์‚ฌ์ด์ฆˆ

July 30 2021

Texture ์‚ฌ์ด์ฆˆ๋ฅผ 2์˜ ์ œ๊ณฑ์ˆ˜๋กœ ์„ธํŒ…ํ•˜๋Š” ์ด์œ  ์˜ค๋Š˜๋‚  ๋Œ€๋ถ€๋ถ„์˜ GPU๋Š” ์ด๋Ÿฌํ•œ ์ œ์•ฝ์œผ๋กœ๋ถ€ํ„ฐ ์ž์œ ๋กญ๋‹ค (NPOT) RAM์„ ์‚ฌ์šฉํ•  ๋•Œ NPOT ์ด๋ฏธ์ง€๋Š” ๊ทธ๋ณด๋‹ค ํฐ ์‚ฌ์ด์ฆˆ์˜ POT๋กœ ํ™•์žฅ๋œ๋‹ค ์ด ๊ณผ์ •์—์„œ ๋ฉ”๋ชจ๋ฆฌ๋Š” ๋‚ญ๋น„๋œ๋‹ค ํ™•์žฅ๋œ ์‚ฌ์ด์ฆˆ๋งŒํผ ๊ฐ€์žฅ์ž๋ฆฌ์— edging artifact๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค ...

3D Picking

February 08 2020

Painterโ€™s Algorithm ๊ฐ object๋งˆ๋‹ค ๊ณ ์œ  ์ƒ‰๊น”์„ ์ง€์ • offline buffer (screen์— ๋…ธ์ถœ๋˜์ง€ ์•Š๋Š” ๋ฒ„ํผ)๋ฅผ ๊ธฐ๋ณธ framebuffer size๋งŒํผ ์‚ฌ์šฉ Two pass ์‚ฌ์šฉ picking pass (1st pass) offline color ๋ฒ„ํผ์— ๊ณ ์œ  ...

Skybox

February 04 2020

Reflection

Forward Rendering & Deferred Rendering

February 04 2020

ํฌ์›Œ๋“œ ๋ Œ๋”๋ง(Forward Rendering) ๊ฐ€์žฅ ๋ณดํŽธ์ ์ด๊ณ  ์ผ๋ฐ˜์ ์ธ ๋ Œ๋”๋ง ๋ฐฉ๋ฒ• ํ”ฝ์…€ ๋‹น ์‰์ด๋”ฉ๊ณผ ๋ผ์ดํŒ… ์—ฐ์‚ฐ ๊ฐ’์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ์‹ ๊ฐ fragment shader์—์„œ ์—ฐ์‚ฐ ๋น›์˜ ๊ฐœ์ˆ˜ ๋งŒํผ ํ•จ ํˆฌ๋ช…๋„ ์ฒ˜๋ฆฌ, ์•ˆํ‹ฐ์–ผ๋ผ์ด์ง• ๊ฐ€๋Šฅ ๋ผ์ดํŒ… ๋ฐ ์‰์ด๋”ฉ ์—ฐ์‚ฐ ์˜ค๋ฒ„ํ—ค๋“œ