반응형

Variance shadow maps are a type of shadow mapping technique used in 3D graphics to accurately represent the shadows cast by 3D objects in a scene. They are designed to eliminate the artifact known as "shadow acne" (where shadows appear as dots or jagged lines on the surface of objects) and provide more consistent and smooth shadows.

The variance shadow map algorithm uses two maps to store information about the depth of the shadow: a depth map, which stores the depth of each pixel from the light source, and a variance map, which stores the variance of that depth value. The depth map is used to calculate the shadows and the variance map is used to determine the quality of the shadows.

Variance shadow maps provide more accurate shadows by using a statistical approach to calculate the shadow values. They are also faster than traditional shadow maps because they reduce the number of samples needed to get accurate shadow results.

Overall, variance shadow maps offer a better representation of shadows in 3D graphics compared to traditional shadow maps, making them an important tool for creating realistic and immersive 3D environments.


분산 그림자 맵은 장면에서 3D 객체가 드리우는 그림자를 정확하게 표현하기 위해 3D 그래픽에 사용되는 일종의 그림자 매핑 기술입니다. 그들은 "그림자 여드름"(그림자가 개체 표면에 점이나 들쭉날쭉한 선으로 나타나는 현상)으로 알려진 아티팩트를 제거하고 보다 일관되고 부드러운 그림자를 제공하도록 설계되었습니다.

분산 그림자 맵 알고리즘은 그림자의 깊이에 대한 정보를 저장하기 위해 두 개의 맵을 사용합니다. 광원에서 각 픽셀의 깊이를 저장하는 깊이 맵과 해당 깊이 값의 분산을 저장하는 분산 맵입니다. 깊이 맵은 그림자를 계산하는 데 사용되고 분산 맵은 그림자의 품질을 결정하는 데 사용됩니다.

분산 그림자 맵은 그림자 값을 계산하기 위해 통계적 접근 방식을 사용하여 보다 정확한 그림자를 제공합니다. 또한 정확한 그림자 결과를 얻는 데 필요한 샘플 수를 줄이기 때문에 기존 그림자 맵보다 빠릅니다.

전반적으로 분산 그림자 맵은 기존 그림자 맵에 비해 3D 그래픽에서 그림자를 더 잘 표현하므로 사실적이고 몰입감 있는 3D 환경을 만드는 데 중요한 도구입니다.

반응형
반응형

맥에서 윈도우 영역 캡쳐를 했을 경우 윈도우 바깥 영역의 그림자까지 캡쳐가 된다.

바깥 그림자 영역까지 캡쳐된 모습

임시로 캡쳐해서 보고 버릴거면 상관없지만 블로그 등에 포스트하기 위한 캡쳐에 저렇게 외곽 영역이 있으면 신경쓰인다.

이 외곽 그림자 영역을 제외하고 캡쳐하는 방법이 있다.

 

다음과 같이 터미널에서 명령어를 입력하면 간단하게 설정해줄 수 있다.

defaults write com.apple.screencapture disable-shadow -bool true;
killall SystemUIServer

첫번째 라인은 그림자영역 캡쳐를 비활성화하는 명령어이고, 두 번째 라인은 맥 UI 시스템을 다시 실행하여 변경된 설정을 적용하는 거 같다.

 

위와 같이 설정한 뒤 캡쳐하면 다음과 같이 깔끔하게 윈도우만 캡쳐된 것을 볼 수 있다.

왜 기본설정이 그림자까지 캡쳐인지 이해할 수 없다.

 

윈도우만 깔끔하게 캡쳐된 모습

 

반응형

+ Recent posts