A faster* 3d minecraft renderer (octree traversal algorithm)

A faster* 3d minecraft renderer (octree traversal algorithm)

by Howtomakeausername

👁 3,705 ❤️ 227 ⭐ 211 🔄 3
Created: Jan 21, 2023 Last modified: Jan 22, 2023 Shared: Jan 21, 2023

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

Project thumbnail
View Project

Geometry Dash Revamped - Marauder

by ASC-095

Project thumbnail
View Project

Hill Climb Racing Multiplayer

by Cadjavica

Project thumbnail
View Project

Minecraft HACKER!? - Animation Fight Scene

by cozycabin

Project thumbnail
View Project

Materians on Fire Haven

by FrosguinComedian

Project thumbnail
View Project

Beat Up Lollipop V

by tnwlss1013

Project thumbnail
View Project

Beat up Sonic but [insert a title for the remix here]

by sethblond

Project thumbnail
View Project

beat up soncs2

by Alfie_Ben16

Project thumbnail
View Project

Island Mania

by Tomi_games

Project thumbnail
View Project

Beat up Numberblock 1.875 v0.1

by zoomanimal

Project thumbnail
View Project

Taking Tom and Ben News remix Friends Bloopers AVS Video Editor Pree On Scratch 2.0 R.I.P Tom… remix

by everton_trader

Project thumbnail
View Project

Beat Up Bonzi Buddy my way

by mixels38797286871

Project thumbnail
View Project

---ᴛʜᴇ ᴀᴅᴠᴇɴᴛᴜʀᴇ--- 2

by -PierrotB-84-

Project thumbnail
View Project

エセ:ボールコロコロ

by takutci

Project thumbnail
View Project

Floppa Clicker Version 1.7

by cuteseal2

Project thumbnail
View Project

Beat Up Al Nassr (Full Version)

by JPPORTUGAL

Project thumbnail
View Project

Beat up Peppa Pig! remix remix

by zombies2000

Project thumbnail
View Project

Yoshi67057 Beat up Isaac Mii (1)

by newmyles

Project thumbnail
View Project

FNF - Funkin Bad (Breaking bad) [VERY HARD]

by chucky_lee

Project thumbnail
View Project

VALORANT 2D [NEW MAP] #games #all

by high_digital

Project thumbnail
View Project

Beat Up Scratch Cat Extended 1.3 remix remix

by everton_trader

Project thumbnail
View Project

cuphead but better

by Im-Bad-At-Scratch-

Project thumbnail
View Project

Paper Minecraft Mobile Multiplayer

by ywps211313

Project thumbnail
View Project

Talking 4 And 2 News 2

by JojosWorld32

Project thumbnail
View Project

Minecraft Clicker 1 (v0.7.2) !!! Stop Update!!!

by huuphuc2008duahauvn