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

the great image escape dvd menu

by sonic-billie

Project thumbnail
View Project

Klasky Csupo logo in Different Languages (1)

by ManuTheFantastic

Project thumbnail
View Project

Virus - Horro V0.2

by AnonymusScratcher19

Project thumbnail
View Project

Incredibox - Sploink (sprunki but actually bad)

by R-185ALTS

Project thumbnail
View Project

sprunki pyrami :)

by tepdung

Project thumbnail
View Project

Evil Tera's Punishment Day EXTENDED

by yourpalado

Project thumbnail
View Project

Windows 7x

by AmogusISSUSUKNOW

Project thumbnail
View Project

sans fights sylebro: The remake. but better

by sylebro

Project thumbnail
View Project

Four Nights at Among Us

by sdumi

Project thumbnail
View Project

Windows 88 killscreen

by SpaceeBoyy17

Project thumbnail
View Project

Behind The Scenes: The Scratch Saga - Part 2.0

by Astro947RMXs

Project thumbnail
View Project

ゾă‚ȘュトăƒȘăƒŒăƒ€ăƒƒă‚·ăƒ„ [æ—„æœŹèȘžç‰ˆ]

by 596-3

Project thumbnail
View Project

Talking Tom Cat 2

by gerofernandez

Project thumbnail
View Project

ćź‡ćź™ă‚ŽăƒŸă‚’ć†ćˆ©ç”šă—ă‚ˆă†ïŒ

by PUPUPULAND

Project thumbnail
View Project

New Fortnite Online ☁ /æ–°ăƒ•ă‚©ăƒŒăƒˆăƒŠă‚€ăƒˆă‚Șăƒłăƒ©ă‚€ăƒłâ˜ă€€

by UXRCF

Project thumbnail
View Project

Absurd Appel v2.5.1 - Down and Up

by jlp-141304

Project thumbnail
View Project

Talking Tom & Ben News (tHe JoY CrEaTiOn StOrY mOdE 4 Edition)

by WindowsUser911

Project thumbnail
View Project

Oblitus Casa : Scratch Edition (UPT: Post-Mortem)

by lordmario04

Project thumbnail
View Project

Angry Birds Epic V2.51

by Angryteam2424

Project thumbnail
View Project

TADEK

by smorrebrot

Project thumbnail
View Project

My take of Russian Alphabet Lore

by NJsaurus

Project thumbnail
View Project

Mateo Inc Logo Bloopers: Take 34: Studio Expansion

by leidymateo

Project thumbnail
View Project

AY in Ball Rush REDUX (Remix 13 | 27 Players)

by Kylermario_Gamer

Project thumbnail
View Project

Beat up Colombiaball! (37 buttons)

by Joseph-9c