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

Gameboy Emulator Test - Dr. Mario

by DCPU-16

Project thumbnail
View Project

Cube Buddies Basics

by Diabolo55

Project thumbnail
View Project

Geometry Dash |Geometry Dash simple| Geometry Dash Easy

by rehanscratch

Project thumbnail
View Project

Super Mario World Physics

by Brad-Games

Project thumbnail
View Project

Turtle Clicker

by V-Crab

Project thumbnail
View Project

Super Mario Bros. 3 Expanded Alpha 1.5.0 #games #all

by Vlad9407

Project thumbnail
View Project

Beat up Bambom! v1.1

by 12361380cvusd

Project thumbnail
View Project

Scratch inside of Scratch

by INSERT-USER_NAME

Project thumbnail
View Project

Murder time trio [undertale AU] Phase 3 BATTLE

by potetohedo

Project thumbnail
View Project

閒数電卓 ALGEAN Calc & Plot Ver 1.2

by Jinenjo_000

Project thumbnail
View Project

Monster World v.1.2 - PREVIEW

by Apfellord

Project thumbnail
View Project

Add a button to heal bluey

by crazkitty

Project thumbnail
View Project

Diep.io (100% Pen) v0.5 ζ—₯本θͺžη‰ˆ

by tantan9024

Project thumbnail
View Project

World Time

by 100000rockets

Project thumbnail
View Project

Beat up Erork tye remix remix

by jayjayy1809

Project thumbnail
View Project

Bdfhyierdrwfvhfrhfuorbfihbv remix

by jakubko2010

Project thumbnail
View Project

beat up the scratch cat remix remix remix remix remix remix remix remix remix remix remix rem… remix

by MyCottage

Project thumbnail
View Project

sky γƒœγƒΌγƒ«γ“γ‚γ“γ‚13

by skyblueball2

Project thumbnail
View Project

THE STATE OF SCRATCH IN 2022

by horse_music123

Project thumbnail
View Project

(LOUD) Takaki's Jumpstart Bad Apple Band

by tvokids4017

Project thumbnail
View Project

Pixel Editor

by pooiod7

Project thumbnail
View Project

Eeveelutions Squad Funny Movie Maker V.3

by Louispluspizza

Project thumbnail
View Project

The History Of MLK.JR

by PixelMakr

Project thumbnail
View Project

γƒžγ‚€γƒ³γ‚―γƒ©γƒ•γƒˆ 3D

by TUKACCHAN