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
Beat Up Classic Numberblock 10 remix remix remix
by chrisdberry
Beat up Bonzi buddy 3 (2)
by lukemanolopoulos8
Beat Up Shark Fin Noob (3)
by galaxylgnokiasamsung
Galaga
by Simoneek12
Make A BFDIA
by JJGames2016
Beat Up Spectrum 3.0 remix
by jasiel37
KingToons - It's about the end of the planet! (Nick Jr. Pluto TV, 2019)
by LittleKJ20
棒人間アスレチック【オンライン】壁ジャンプ3 remix
by KUSAKABENOMIKO
Random BMPJ: 97,088
by KrazyMan79
Just shapes and beats UNLOCKED
by BobstewartDuns
Geometry Dash | A Platformer
by YungSky
Spotdodge Simulator v0.634b
by _aitchFactor
Safe-chat server! v2.0 || By @torti12!
by torti12
Old Super Mario Bros. Wii ver. 2.5
by LG125
【初~五段】太鼓の達人 段位道場2021 ニジイロver. v4.0.1.4
by Kuppi-scratch
Project
by FIowermanvista
Beat up the Racoon Family V2
by christywifi
New Fortnite Online ☁ /新フォートナイトオンライン☁
by UXRCF
3D Maze
by MemoVM9
Beat up John ( JGW RESTORE )
by The_SMTPV_Maker_YT
✯ Fnati Scratch Port Collection ✯
by Doommarine1993
太鼓ですドンV2 ソーラン節
by programing-kaisya
Beat up Sonic remix remix
by KubaKo_2010
Omega Flowey Boss Fight
by Zecker123