Works best when downloaded (very, VERY slow online).
This is a raycaster, ported over to Scratch. A raycaster allows for 3D scenes to be rendered from a 2D grid. Use the arrow keys to position the camera, then press space to render the scene.
The original code for this raycaster was written in BlitzBasic; I simply ported it to Scratch and optimized some things. It is still too slow for real-time calculations, but much faster than Canthiar's raytracer (because raycasting is much simpler than raytracing; raycasting in Scratch needs 480 calculations and draws, while raytracing needs 172800, assuming you're drawing pixel by pixel).
Comments
You need to be logged in to post comments
Add a Comment
... ******* slow
(view all replies)Comment Reply
no, that's raytracing. Raytracing is much more advanced than raycasting, and can allow for much more detail.
(view all replies)Comment Reply
oh, so in the new mario video game for the wii where u go from 2d to 3d is that raycasting?
(view all replies)Comment Reply
hey! thanks u took the sonic watings songs out they made the down load twice as fast (it was only like 25secs. though for the one with song)
(view all replies)Comment Reply
its rendering for to long i think
(view all replies)Comment Reply
I downloaded it and it didn't load within 20 minutes :P
(view all replies)Comment Reply
download it, it doesn;t work online
(view all replies)Comment Reply
doesnt work? keeps rendering for a loooooonnnnnnnngggggggg time
(view all replies)Comment Reply