3 ms·
Dissecting the 128-byte raycaster
Come have a look if you are interested in understanding how it works.
Original post here
https://news.ycombinator.com/item?id=7940212
- yzzxy 12y agoNice! Reminds me of The Business Card Raytracer[0]. [0]http://www.cs.utah.edu/~aek/code/card.cpp http://www.cs.utah.edu/~aek/code/card.cpp
- 3rd3 12y agoAnd the dissection: http://fabiensanglard.net/rayTracing_back_of_business_card/ http://fabiensanglard.net/rayTracing_back_of_business_card/
- huseyinkilic 12y agoAlso the 1bir (1 Block Interactive Raycaster), a raycaster for Commodore 64 in 254 bytes (source code included): http://www.pouet.net/prod.php?which=61298 http://www.pouet.net/prod.php?which=61298 Disclaimer: I am the author of 1bir.
- userbinator 12y agoRaymarching is one of those techniques that has extreme simplicity and yet can generate very complex scenes from an essentially mathematical description; I think it's one of the best examples of an elegant algorithm. More info here: http://iquilezles.org/www/material/nvscene2008/rwwtt.pdf http://iquilezles.org/www/material/nvscene2008/rwwtt.pdf http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm http://www.iquilezles.org/www/articles/distfunctions/distfun...