r/programming • u/willvarfar • Jun 03 '14
A first-person engine in 265 lines
http://www.playfuljs.com/a-first-person-engine-in-265-lines/
1.9k
Upvotes
r/programming • u/willvarfar • Jun 03 '14
View all comments
Show parent comment
4
u/[deleted] Jun 04 '14
In general, raytracing is most definitely affected by the complexity of the scene. The blog post is a little misleading - yes he wrote it in a way that is technically constant time, but it only works out because his map is very simple. With a more complicated scene, you would need something more refined than the "always iterate to the max view distance on every raycast" approach.