Skip to content

RayTrancing

Vinicius Reif Biavatti edited this page Apr 16, 2021 · 3 revisions

Difference

Many people think that RayTracinng is the same of RayCasting, but the correct context of it is that the RayCasting is a sub-class of the RayTracing concept. RayTracing “determines the visibility of surfaces by tracing imaginary rays of light from viewer’s eye to the object in the scene” (Foley 701). The difference between these terms are:

RayCasting RayTracing
Fast and can be used for low performance devices Slow for the amout of processing it needs to calcule
Not realistic. This works with "blocks" Realistic, every canvas pixel is calculated
Can process simple geometric shapes only Can render almost every shape
The result image is stored on RAM memory The result genneraly is stored on disk memory
Easy to implement Complex to implement

RayCasting

RayCasting example

RayTracing

RayTracing example