it isn't faster computers; it's just that scratch is much, much slower than most text-based programming languages. However, I'm working on a new caster, so far it renders 15x faster than this one but it has much less detail. also music is from remixes of Thunder Force/Lightening Force songs (it was a Genesis game)
This is an optimized version of my raycaster. A raycaster creates a 3D rendering from a 2D map or array. It does this by shooting rays for each vertical line of the screen (for speed, this raycaster does every 4 vertical lines) and marks the distance from the player position to the wall (gotten from the ray). This raycaster also supports lighting.
This optimized version is about 10x faster than my old one. I optimized the raycasting cycle by removing unnecessary variables that were being used, and also now 5 raycasters are working in unison, speeding it up even more.
I didn't write the original code for this raytracer; the original code was written in BlitzBasic. I simply ported it over to Scratch and hugely optimized it.
Comments
You need to be logged in to post comments
Add a Comment
when gobo quest gona come out?
(view all replies)Comment Reply
dosent work
(view all replies)Comment Reply
no worky.
(view all replies)Comment Reply
i know, it doesn't work when downloaded. I'm currently trying to code a new one from scratch, maybe that one will work both online and offline
(view all replies)Comment Reply
i downloaed it and i don't get it every time i click space after i've moved the exact same screen coes up (it's all green)
(view all replies)Comment Reply
it isn't faster computers; it's just that scratch is much, much slower than most text-based programming languages. However, I'm working on a new caster, so far it renders 15x faster than this one but it has much less detail. also music is from remixes of Thunder Force/Lightening Force songs (it was a Genesis game)
(view all replies)Comment Reply
Not bad. Where is the music from?
(view all replies)Comment Reply
i agree with paddle2see! faster computers please, computer manufacturers!
(view all replies)Comment Reply
this isn't ray tracing though, it's ray casting =P
(view all replies)Comment Reply
Great Ray tracing project S65! It's 99% better then the last 3D ray tracer.^_^ Good job!
(view all replies)Comment Reply
Very impressive! If computational speed increases another 1000 fold, we can use this for real-time rendering! Very impressive!
(view all replies)Comment Reply
Wow, amazing project!
(view all replies)Comment Reply
And lighting too... holy cow!
(view all replies)Comment Reply
Awesome! Nice rendering music! Go Wolfenstine!
(view all replies)Comment Reply