2 minute read

SuGaR๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ coarse_mesh PLY file, refine_mesh OBJ file, refined_ply PLY file์„ output ํ•ฉ๋‹ˆ๋‹ค.


COLMAP MipNeRF360 dataset (360_v2)

garden scene

3dgs 7,000 iters output PLY File

image

SuGaR coarse_mesh PLY file

image

SuGaR refine_mesh OBJ file

image

refine_mesh์—๋Š” verticies lines๊ฐ€ ๋‚จ์Šต๋‹ˆ๋‹ค.

์ด๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ ๋ Œ๋”๋ง ์†Œํ”„ํŠธ์›จ์–ด๊ฐ€ linear interpolation์„ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. image

Question about how to remove the verticies lines

์‚ผ๊ฐํ˜• ๊ฒฝ๊ณ„์„ ์„ ๋ถ€๋“œ๋Ÿฝ๊ฒŒ ๋งŒ๋“œ๋Š” ๋ฐฉ๋ฒ•: Blender์—์„œ Texture Interpolation ์„ค์ •ํ•˜๊ธฐ

  • 3D ๋ชจ๋ธ๋ง๊ณผ ๋ Œ๋”๋ง์„ ํ•  ๋•Œ, UV unwrapping ๊ณผ์ •์—์„œ ์‚ผ๊ฐํ˜• ๊ฒฝ๊ณ„์„ ์— ํ•˜์–€ ์„ ์ด ๋‚˜ํƒ€๋‚˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์ข…์ข… ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Š” Texture Interpolation ๋ฐฉ๋ฒ•๊ณผ UV ๋งตํ•‘ ๋ฐฉ์‹ ๋•Œ๋ฌธ์— ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค.
  • ์ด ๊ธ€์—์„œ๋Š” ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•๊ณผ ๊ทธ ์ด์œ ์— ๋Œ€ํ•ด ์„ค๋ช…ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

1. ๊ฐ„๋‹จํ•œ ํ•ด๊ฒฐ์ฑ…:

  • ์‚ผ๊ฐํ˜• ์‚ฌ์ด์— ๋‚˜ํƒ€๋‚˜๋Š” ํ•˜์–€ ์„ ์€ ๋ Œ๋”๋ง ์†Œํ”„ํŠธ์›จ์–ด์—์„œ ์‚ฌ์šฉํ•˜๋Š” Texture Interpolation ๋ฐฉ๋ฒ•๊ณผ UV unwrapping ๋ฐฉ์‹ ๋•Œ๋ฌธ์— ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
  • ๊ธฐ๋ณธ์ ์œผ๋กœ ๋ Œ๋”๋ง ์†Œํ”„ํŠธ์›จ์–ด๋Š” Linear Interpolation์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
  • ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด Texture Interpolation ๋ฐฉ๋ฒ•์„ โ€œClosest pixelโ€๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.
  • ์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ์‚ผ๊ฐํ˜• ๊ฒฝ๊ณ„์„ ์˜ โ€œํ™”์ดํŠธ ๋…ธ์ด์ฆˆโ€๊ฐ€ ์‚ฌ๋ผ์ง€๊ณ  ๋ฉ”์‰ฌ๊ฐ€ ํ›จ์”ฌ ๋” ๊นจ๋—ํ•˜๊ฒŒ ๋ณด์ผ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

2. ์ƒ์„ธํ•œ ์„ค๋ช… (๋ฌธ์ œ์˜ ์›๋ฆฌ ์ดํ•ดํ•˜๊ธฐ):

  • 3D ๋ฉ”์‰ฌ์— ํ…์Šค์ฒ˜๋ฅผ ์ ์šฉํ•˜๋ ค๋ฉด ๋จผ์ € UV ๋งต์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฉ”์‰ฌ๋ฅผ โ€œunwrappingโ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
  • ์ด ๊ณผ์ •์€ ๋ฉ”์‰ฌ์˜ ๊ฐ ์‚ผ๊ฐํ˜•์„ ํ…์Šค์ฒ˜ ์ด๋ฏธ์ง€์˜ ํ”ฝ์…€ ์ง‘ํ•ฉ์— ๋งคํ•‘ํ•ฉ๋‹ˆ๋‹ค.
  • ์ด์ƒ์ ์œผ๋กœ๋Š” 3D ๋ฉ”์‰ฌ์—์„œ ๊ฐ€๊นŒ์šด ์‚ผ๊ฐํ˜•๋“ค์ด UV ๋งต์—์„œ๋„ ๊ฐ€๊น๊ฒŒ ๋งคํ•‘๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๊ฒƒ์€ ๋งค์šฐ ์–ด๋ ต์Šต๋‹ˆ๋‹ค.

๋”ฐ๋ผ์„œ, ์—ฌ๊ธฐ์„œ๋Š” ๋งค์šฐ ๋‹จ์ˆœํ•œ ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค: ๋ชจ๋“  ์‚ผ๊ฐํ˜•์„ UV ๋งต์˜ ๋ฌด์ž‘์œ„ ์œ„์น˜์— ๋‚˜๋ž€ํžˆ ๋งคํ•‘ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋ฐฉ๋ฒ•์€ ๊ฐ„๋‹จํ•˜์ง€๋งŒ ์‚ฌ์šฉํ•˜๋Š” Texture Interpolation ๋ฐฉ๋ฒ•์— ๋”ฐ๋ผ artifacts๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Texture Interpolation ๋ฐฉ๋ฒ•์€ 3D ๋ฉ”์‰ฌ์—์„œ ์‚ผ๊ฐํ˜•์˜ ์ƒ‰์ƒ์„ ํ…์Šค์ฒ˜์˜ ํ”ฝ์…€ ์ƒ‰์ƒ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ Œ๋”๋งํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๊ฒฐ์ •ํ•ฉ๋‹ˆ๋‹ค.

  • ์„ ํ˜• ๋ณด๊ฐ„(Linear Interpolation)์€ ํ…์Šค์ฒ˜์—์„œ ์ธ์ ‘ ํ”ฝ์…€์˜ ์ƒ‰์ƒ์„ ํ˜ผํ•ฉํ•˜๋Š” ๋ฐฉ์‹
  • ๊ฐ€์žฅ ๊ฐ€๊นŒ์šด ํ”ฝ์…€(Closest Pixel)์€ ๊ฐ€์žฅ ๊ฐ€๊นŒ์šด ํ”ฝ์…€์˜ ์ƒ‰์ƒ์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค.
  • Blender์—์„œ ์ด ์ฐจ์ด๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • โ€œClosestโ€ ์„ค์ •์„ ์‚ฌ์šฉํ•˜๋ฉด ํ…์Šค์ฒ˜๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๋ Œ๋”๋ง๋ฉ๋‹ˆ๋‹ค.
  • ๊ทธ๋Ÿฌ๋‚˜ โ€œLinearโ€ ์„ค์ •์„ ์‚ฌ์šฉํ•˜๋ฉด ์‚ผ๊ฐํ˜• ์‚ฌ์ด์— ํ•˜์–€ ์„ ์ด ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค. ์ด๋Š” UV ๋งต์—์„œ ์ธ์ ‘ํ•œ ํ”ฝ์…€์ด ์‹ค์ œ๋กœ๋Š” ๋ฉ”์‰ฌ์—์„œ ๋‹ค๋ฅธ ์‚ผ๊ฐํ˜•์— ๋งคํ•‘๋˜์–ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.

์ถ”๊ฐ€ ํŒ:

  • Blender์—์„œ SuGaR์˜ ๋ฉ”์‰ฌ๋ฅผ ์‹œ๊ฐํ™”ํ•  ๋•Œ๋Š” โ€œEmission Shaderโ€๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ์ด๋Š” ํ…์Šค์ฒ˜๋ฅผ ๋‹ค๋ฅธ ์กฐ๋ช…/๊ทธ๋ฆผ์ž ํšจ๊ณผ ์—†์ด ๋ Œ๋”๋งํ•˜๋Š” ๊ฐ€์žฅ ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.
  • ๋˜ ๋‹ค๋ฅธ ๋ฐฉ๋ฒ•์€ ํ™˜๊ฒฝ ์กฐ๋ช…์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด์ง€๋งŒ, Blender์—์„œ๋Š” Emission Shader๊ฐ€ ๋” ๊ฐ„๋‹จํ•ฉ๋‹ˆ๋‹ค.

๊ฒฐ๋ก 

  • UV unwrapping ํ›„ ์‚ผ๊ฐํ˜• ๊ฒฝ๊ณ„์„ ์˜ ํ•˜์–€ ์„  ๋ฌธ์ œ๋Š” Texture Interpolation ๋ฐฉ๋ฒ•์„ โ€œClosest Pixelโ€๋กœ ๋ณ€๊ฒฝํ•จ์œผ๋กœ์จ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์ด๋ฅผ ํ†ตํ•ด ๋ฉ”์‰ฌ๊ฐ€ ๋” ๋ถ€๋“œ๋Ÿฝ๊ณ  ๊นจ๋—ํ•˜๊ฒŒ ๋ณด์ผ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
  • Emission Shader๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋”์šฑ ํšจ๊ณผ์ ์œผ๋กœ ์‹œ๊ฐํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

blender์—์„œ SuGaR์˜ refined_mesh์ธ OBJ file์„ drag & drop์œผ๋กœ open ํ•ฉ๋‹ˆ๋‹ค. image

Viewport Shading์„ Object mode์—์„œ Material Preview mode๋กœ ๋ฐ”๊ฟ”์ค๋‹ˆ๋‹ค. image

Material Preview mode๋กœ ๋ฐ”๊พธ๋ฉด Texture๊ฐ€ ์ž…ํ˜€์ง‘๋‹ˆ๋‹ค. image

Blender์—์„œ Interpolation ๋ฐฉ์‹์„ Linear์—์„œ Closest๋กœ ๋ฐ”๊ฟˆ์œผ๋กœ์จ vertices line์ด ํ•˜์–—๊ฒŒ ๋‚˜ํƒ€๋‚˜๋Š” ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Material -> Surface -> Linear interpolation (vertices line์ด ํ•˜์–—๊ฒŒ ๋‚˜ํƒ€๋‚จ) image

Material -> Surface -> Closest (vertices line์ด ํ•˜์–—๊ฒŒ ๋‚˜ํƒ€๋‚˜๋˜ ๋ฌธ์ œ๊ฐ€ ์‚ฌ๋ผ์ง) image


SuGaR refined_ply PLY file

image

Leave a comment