A faster* 3d minecraft renderer (octree traversal algorithm)
Instructions
Turbowarp link: https://turbowarp.org/791498815 ------------------------------ Instructions ----------------------------- WASDQE to move, ARROW keys to rotate. Move your mouse to the top of the screen to see the options menu. -------------------------------- Options -------------------------------- Algorithm - determines whether an octree traversal algorithm (0) or voxel traversal algorithm is used (1) Max iterations - maximum raycasting iterations Show iterations - Shows the number of times a ray had to repeat, where white is 0 and black is the maximum. Setting this to (1) allows you to see the octree at work! (you may need to turn max iterations down) ----------------------- How does this work? ----------------------- Unlike a normal voxel traversal algorithm, which steps across each voxel (or cube) in space, this algorithm first splits the world into an octree (a 3d version of a quadtree) and traverses across that. ---------------------------- Is this faster? ----------------------------- Generally, yes. Splitting the world into an octree saves repetitions, which you can observe by setting show iterations to (1) and swapping between the two algorithms. However, the octree makes the traversal process more complex, which means that each iteration takes longer. This means that the algorithm is faster in worlds with a more optimised octree (generally worlds with large cubes of empty space such as the superflat world), but slower otherwise. ----- Is this better than a normal traversal algorithm? ------- Probably not. The octree takes more computational power to generate, meaning that adding and breaking blocks would likely result in lag spikes. Furthermore, the algorithm isn't always faster and is harder to work with. Tags: #raycast #raycaster #voxel #raycasting #minecraft #textures #ray #madness #demo #3d #3D #world
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
Bfb Your Way but the assets are hd W.I.P
by YNHNHYNH
Wii Menu new
by leon_237
Numbericons 1-1400
by jayden2015paul
Windows 11 Scratch Edition 2.0
by Flixxz_1
Beat up Scratch Cat v2.0 remix
by MeWantMobs
talking tom and ben news HD 2 ERREAPE remix remix
by azoriad
Tower Defence (updating) V1.2
by tomstudyscratch
Elmo's world 2016 school song fixed!
by 13and14plus15
Yearblocks band 1231-1240
by numberblock1296
pt reny
by Kaiohshin
Fidget spinners
by Unicorngirl300
Snow Roll [Fixed]
by kevin_eleven_1234
Beat up Elmo 12 (BONUS UPDATE 2
by MarioCraft2020
ʀʜʏᴛʜм
by so-se_san
Piggy Springs
by ReindessaJr
東方妖々夢 Extra 霊夢 夢符Ver
by cosmo-zero
昔のブロックがScratch3.0にあったら…
by -GUI--CUI-
[150] FREE TEMPLATE!! ≫ Pentro for you!!
by -OneforAll
Beat Up Gelatin 2021 edition remix-2
by Traw2016
Bonus Buttons Spiffy Exe Buttons Halloween Soul 2 remix
by BeiMLGGod
[UPDATE] SFNF vs. stev
by FastyRBLX
GNAW || PMV
by TheWolfyGirl
If The MouseHeadz Have Jumpscare Modes Part 2
by oladejiolamya
Trevor Henderson giants size comparison remix
by doomkidaiden