4 ms·
My favourite javascript raycaster was P01's "Wolf5k" (http://www.wolf5k.com/ http://www.wolf5k.com/) - a raycaster in 5k of Javascript: before there was any suc
by mrspeaker 15y ago
My favourite javascript raycaster was P01's "Wolf5k" (http://www.wolf5k.com/ http://www.wolf5k.com/) - a raycaster in 5k of Javascript: before there was any such thing as canvas! It worked using an obscure, two colour, but programable image format - .xbm files, now killed by the browsers, so it won't work anymore.
But there is a great article on the Opera Dev blog about how to build your own like the parent's: http://dev.opera.com/articles/view/creating-pseudo-3d-games-with-html-5-can-1/ http://dev.opera.com/articles/view/creating-pseudo-3d-games-... (in fact, looking at the code it seems like this post is just a re-write of the Opera code by Jacob Seidelin - though it might me a coincidence)
- BruuD 15y agoIf I get bored again, I will make a version without canvas using only <div> elements :) Code was written from scratch, so any similarities with the code you are referring to are coincidental, although the technique I used is exactly the same.