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
Macedonian Alphabet Lore
by jtc25
Lost AumSum Video
by scratchcatfan2014
Beat Up Kijobal 0.1
by TheCarlos3214
My New Buttons (14)
by bonzi346
Beat_up_Charlie_the_Steak_All_Buttons
by kubakoodziejczak
Geometry Dash v1.5
by Anninha_2013
Two bfdi
by mineta-stickyhair
Talking News (My most viewed Project Ever!) remix remix vs (March 15 2022) remix vs Numberblo… remix
by veziravcisi
Beat Up Evilbross 2 V0.3
by meowflash
Pokémon Battle Simulator v.3.4
by skinick25
青の塔24階
by sakaryuu
Robot Constructor Tournament Edition
by cs3342310
Helicopter Battle
by eggeater43
InkFell!Sans Fight! REMAKE
by KatyPichu
pokemon 20 minute timer
by rafa670
時間を飛ばせるとどうなるのか?{突撃!SCRATCH}!【アニメ】
by DINOMAHTER
(Reupload)Beat Up Edward remix
by Andricxa
mii contest channel V5.0
by fireboy808
Fish Simulation (remix)
by bluedragonfly28
3D Open World Game WIP
by BambozzIe
We Are Inside D's Cave! :DDDD
by WalletAnimation
☁️ Among Us Mod v0.0.1 (online)
by KYMario4
Black Hole Add Round 2 remix-2
by Linesta
beat up the slender
by Azriea_the_2nd