DOI QR코드

DOI QR Code

A Shadow Mapping Technique Separating Static and Dynamic Objects in Games using Multiple Render Targets

다중 렌더 타겟을 사용하여 정적 및 동적 오브젝트를 분리한 게임용 그림자 매핑 기법

  • Lee, Dongryul (Dept. of Game and Multimedia Engineering, Korea Polytechnic University) ;
  • Kim, Youngsik (Dept. of Game and Multimedia Engineering, Korea Polytechnic University)
  • 이동렬 (한국산업기술대학교 게임공학과) ;
  • 김영식 (한국산업기술대학교 게임공학과)
  • Received : 2015.07.07
  • Accepted : 2015.08.05
  • Published : 2015.10.20

Abstract

To identify the location of the object and improve the realism in 3D game, shadow mapping is widely used to compute the depth values of vertices in view of the light position. Since the depth value of the shadow map is calculated by the world coordinate, the depth values of the static object don't need to be updated. In this paper, (1) in order to improve the rendering speed, using multiple render targets the depth values of static objects stored only once are separated from those of dynamic objects stored each time. And (2) in order to improve the shadow quality in the quarter view 3D game, the position of the light is located close to dynamic objects traveled along the camera each time. The effectiveness of the proposed method is verified by the experiments according to the different static and dynamics object configuration in 3D game.

3D 게임에서 오브젝트의 위치를 파악하거나 사실감을 높이기 위하여 광원의 시점에서 정점의 깊이 값을 계산하는 그림자 매핑 기법이 많이 사용된다. 그림자 맵의 깊이 값은 월드 좌표를 통해 계산되기 때문에 월드 좌표가 변하지 않는 정적 오브젝트는 깊이 값을 갱신할 필요가 없다. 본 논문에서는, (1) 렌더링 속도를 향상시키기 위하여 한번만 저장하는 정적 오브젝트 깊이 값과 매번 갱신하는 동적 오브젝트의 깊이 값을 다중 렌더 타겟을 이용하여 따로 관리한다. 또한 (2) 쿼터 뷰 기반 3D 게임에서 동적 오브젝트 그림자 품질을 높이기 위하여 광원의 위치가 카메라를 따라다니며 동적 오브젝트에 가깝게 변동한다. 제안하는 방법의 효율성을 3D 게임의 다양한 정적 및 동적 오브젝트 구성에 따른 실험을 통하여 검증하였다.

Keywords

References

  1. Media It News, "Flower of Gaming PC, Graphics Card", http://www.it.co.kr/news/article.html?no=2801565, 2015.06.06.
  2. Media It News, "Faster! Faster! The Reason of Performance Improvement of CPU and Graphics Card", http://www.it.co.kr/news/article.html?no=2799487, 2015.04.25.
  3. Do-Hyoung Kim, "Real Time Shadow Processing Techniques in 3D Game Graphics Engine", The Magazine of the IEIE, Vol. 34, No. 10, pp. 54-62, 2007.10.
  4. Young-Jung Yu and Jin-Ho Choi, "An Improved PCF Technique for The Generation of Shadows", J. Korea Inst. Inf. Commun. Eng., Vol. 11, No. 8, pp. 1442-1449, 2007.8.
  5. Tae-Soo Kwon, A Shadow Mapping Method of Nonuniform Sampling, Master Thesis. Seoul National Univ. 2002.
  6. Nah, Jae-Ho, Woo-Chan Park, and Tack-Don Han. "A Shadow Culling Algorithm for Interactive Ray Tracing." Journal of Korea Game Society, Vol. 9, No. 6, pp. 179-189, Dec. 2009.
  7. Sangduk Kim, Jin-Woo Kim, Woo-Chan Park, and Tack-Don Han, "Bounding Box based Shadow Ray Culling Method for Real-Time Ray Tracer", Journal of Korea Game Society, Vol. 13, No. 3, pp. 85-94, June 2013. https://doi.org/10.7583/JKGS.2013.13.3.85
  8. Sanghun Kim, Mincheol Kim, and Wonik Choi, "Variance-blended Cascaded Shadow Mapping Algorithm for Addressing a Seam Problem in Cascaded Shadow Maps", Journal of KIISE : Software and Applications Vol. 39, No. 5, pp. 355-366, 2012.5.
  9. Kyoung-su Oh and Byeong-Seok Shin, "Shadow Texture Generation Using Temporal Coherence", Journal of Korea Multimedia Society, Vol. 7, No. 11, pp. 1550-1555, Nov., 2004.
  10. Microsoft MSDN: Common Techniques to Improve Shadow Depth Maps, https://msdn.microsoft.com/en-us/library/windows/desktop/ee416324(v=vs.85).aspx
  11. JungHyun Han, 3D Graphics for Game Programming, CRC Press, pp. 246-250, 2011.
  12. Pope Kim, Introduction to Shader Programming, Hanbit Media, pp. 209, 2012.