
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

⁘✰ Ice Cream Catch 2 {Mobile Friendly} (With different ice cream cones)
by Twin138956Scratch

Beat up @Whitteyboom
by TaterTotKitten

Beat Up The Vegan DLC
by hyd3ns33k

[100%pen]Animation Creation
by _applemango_

Secret Staycation Run
by supereagle153

set variable color
by badstratch12

Add yourself/your oc singing Endless
by DeanDaCat

Ethereal Workshop Scratch cats
by vscphuminh

Endless Numbers: Number Factory
by Joaoelismoura

Beat up riggy (1)
by splashyideas

雷電異世界漂流記 #15:「雷の勇者」
by _kamenobu_

ScratchGPT Plus
by games-coder

beat up the bully remix #2
by yamper960

脱出×人狼 脱出ゲームSeason1 #3 はじまり 60FPSターボワープ版
by SC_Tsuru

Xx_FreshSans_xX fight demo
by Heartfulisland13-jp

endless reader
by NumberMaster999

Glitching over it
by ZBiddy

Among us jester mod (online)
by reppa12

I made a Youtube Channel!!!
by Bearguy4550

beat up scratch 2.0 remix
by sebaspa13

Paper Minecraft (2D Minecraft)1.0.0
by Yannic2308

calculator
by lollipop672016

BFB TEAMS
by Johnny123_1

numberblocks band quarters 0.25-99.75
by xanti556