Skip to main content

History: -Raycasting

Source of version: 4 (current)

Copy to clipboard
            {INCLUDE(page="ogrelex ext tpl")/}
---
__Ray casting__ is the use of ray-surface intersection tests to solve a variety of problems in computer graphics. To do so you are figuratively shooting a ray in the scene and try to find all objects in its way, making it usefull for visibility checks and hit calculation, e.g. of bullets.

The easiest and fastest way is to just test for hits on ((-AABB|AABB)) level, which however may lead to results, where the ray is only hitting the bounding box, without actually touching the geometry / ((-mesh|mesh)) in the box. So the next step would be to perform another raycasting step for those hit boxes and check whether the ray is also touching the actual geometry on ((-polygon|polygon)) level which will also tell you the excact hit position. 

!!See also
* http://en.wikipedia.org/wiki/Raycasting
* ((Raycasting to the polygon level))