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
-

16 Marble Race Ep. 7: Rising Lava
by NotBananaBoy
-

Seadtime Font V5
by BonesonScratch
-

漢漢パニック(ちょいむず)
by KakarotJapan
-

Windows Scratch XP
by WindowsScratch-gt90m
-

Geometry Dash || Online
by -Katana_Gaming-
-

Interactive Calculator
by cool-_-scratcher
-

Talking Tom and Ben News EXTRAVAGANZA! remix
by Vovavovavovavovavova
-

angry oobi Has a Klasky Csupo Error
by oobi122
-

cersed x + x^2 + x^3 + Sigma function Numberblocks band
by km_scratch17
-

Scratch Cat's Adventure! #all #all #games #games
by bigstunstar
-

Store
by charmander4782
-

【リメイク版】正月まであと何日何時何分何秒ですか? copy copy
by Pikurin
-

Super Mario Maker 2 Trailer
by paddynintendo
-

【マイクラMOD】1ブロック+
by horiyouta
-

Numberblocks Band Sixteenths 38 (For @Bfdityler2021)
by AidanScratchMaker
-

Playkids band 179
by ScratchMited34
-

Tower Defence 4.5
by OMGG123
-

[My take] Spacedrift All Phase
by chara-YTsab
-

特急あずさ(E353系)運転シミュレーター(千葉〜立川) remix
by kaikaihama-2
-

FNF Reanimated BF test v2
by Jayden40175
-

The Mast [3D]
by awesome-llama
-

Beat up spongebob squarepants remix
by kubaIsbackagain
-

F N A F 2 V1.04
by megamoung_6000
-

Windows crazy error remix
by KingOfSiberya