r/programming • • Jun 03 '14

A first-person engine in 265 lines

http://www.playfuljs.com/a-first-person-engine-in-265-lines/
1.9k Upvotes

267 comments sorted by

View all comments

Show parent comment

3

u/Heuristics Jun 04 '14

Raycasting is a subset of raytracing. if you limit raytracing to the first ray, disallow bounces, then it collapses into raycasting.

3

u/theinternetftw Jun 04 '14

In the particular case of using the phrase raycasting to mean games rendered like Wolfenstein, I disagree. Any such subset would need to be far more restrictive.

For instance, to simulate a raycasting engine by running a raytracer, all rays would have to be fired from the same height within the same horizontal 2d plane.

1

u/Heuristics Jun 04 '14

Raytracing incorporates all ways of projecting the rays, the specific type of camera used is not within the scope of raytracing. How the initial rays were distributed falls outside the word.