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

Plants vs. Zombies (PVZ) V1.5

by mattycoder1458

Project thumbnail
View Project

windows scratch 2.0

by a2zuk1

Project thumbnail
View Project

Beat Up Spiffy Pictures Super Duper Mega Hyper Ulimate Extreme FINAL remix remix remix remix

by bonzi346

Project thumbnail
View Project

Incredibox - Sprunki Fate Swap

by Sontrol_3

Project thumbnail
View Project

Sprunki - Deluxe

by FDKCW2015

Project thumbnail
View Project

Tayinbox v4c - The Thick Of It Piano'd

by mikey_mike

Project thumbnail
View Project

My Russian JumpStart Letters (Poses)

by LylesJM

Project thumbnail
View Project

project sekai remix :)

by Maddyidk123

Project thumbnail
View Project

Undertale Omega Flowey Fight

by huythanh2026

Project thumbnail
View Project

we be dancin!!!

by TheMascotFan_555

Project thumbnail
View Project

Marble Racer2

by Vanslar

Project thumbnail
View Project

Merrie Melodies (1938-1940s) Opening & Extro Remake

by Boris_Dunwoody

Project thumbnail
View Project

Numberblocks But the tones are weird

by oisintheblue

Project thumbnail
View Project

Ultra Custom Night Scratch Addition (W.I.P)

by fnafvrhelpwanted

Project thumbnail
View Project

Bad Time Trio Fight (Completed)

by bruhba

Project thumbnail
View Project

PTE

by TheGoatedBoat

Project thumbnail
View Project

Robin Hoppe: Ace Attorney :: Part 1

by CAPHE10

Project thumbnail
View Project

PLS DONATE Nuke Effect

by Yugihan1

Project thumbnail
View Project

Add A Button To Beat Up D Billions [1]

by newmyles

Project thumbnail
View Project

SCP: Project Insidious [ALPHA]

by mynamejosef

Project thumbnail
View Project

omnilovania [my take] battle by Akaneko0221 [undertale fan game]

by Akaneko0221

Project thumbnail
View Project

Universe Size Comparison remix-6

by AaryanPatil21

Project thumbnail
View Project

Undershuffle: Sans Battle (Genocide) remix you unbeatable youl understand

by Aegislashboi

Project thumbnail
View Project

ساعت دیجیتال - digital clock

by Hosseino_O