그림자 높이 맵을 이용한 실시간 그림자

Real-time Soft Shadowing of Dynamic Height Map Using a Shadow Height Map

  • 발행 : 2008.03.01

초록

본 논문에서는 지형 맵에 실시간으로 부드러운 그림자를 드리우는 방법에 대해 소개한다. 이 방법은 셀프 셰도우 뿐만 아니라, 다른 물체에 그림자를 드리우는 것도 가능하다. 또한 이 방법은 지형에 대해 미리 계산해 두는 과정이 없기 때문에 지형이 변화하는 경우에도 적합하다. Shadow height map(SHM)이라는 새로운 자료구조는 높이 맵의 각 좌표에 해당하는 그림자의 높이를 기록한다. n 이 SHM 안에 있는 텍셀 수라고 할 때, SHM을 계산하는 것은 O(n)의 알고리즘 복잡도를 가진다. 그림자는 이 맵을 이용해 단순하고 빠르게 계산할 수 있다. 예제들은 실시간으로 표현할 수 있는 좋은 성능을 보이며, 적절한 시각적 품질을 보인다.

This paper introduces a novel real-time soft shadowing method applicable for height maps. As well as supporting self-shadowing of the height map, our method allows shadows to be caught on other objects. The method is very suitable for dynamically changing height maps because it requires no precomputation. A shadow height map (SHM) is a new structure which represents the height of the shadow at each discretized coordinate of a height map. Constructing the SHM is O(n), where n is the number of texels in the SHM. Shadow can be computed from this map quickly and simply, using a pixel shader. Examples demonstrate good real-time performance and plausible visual quality.

키워드