2012. 11. 8. 17:01

 

Ray Casting Algorithm

 

The number of intersections for a ray passing from the exterior of the polygon to any point; if odd, it shows that the point lies inside the polygon. If it is even, the point lies outside the polygon; this test also works in three dimensions.

어느 한 point가 object의 inside에 있느냐 outside에 있느냐를 결정할 때 제일 빠르고 손쉬운 방법.
6개의 축(x, -x, y, -y, z, -z) 방향으로 laser pointer로 vector를 쏜다. 그 vector가 어떠한 벽에 맞으면
그걸 counting을 한다. (primitive의 normal 방향은 상관없다.)

'CGI > Basic' 카테고리의 다른 글

Fresnel Effect에 대하여  (0) 2013.02.16
How we see color - Colm Kelleher (RBG를 쓰는 이유)  (0) 2013.02.16
Euler Angles  (0) 2012.11.01
Three-Point Lighting for 3D Renderings  (0) 2012.10.08
Normal  (0) 2012.05.14
Posted by innie