ScratchData LogoScratchData
Back to _nix's profile

Voxel rendering test

_N_nix•Created December 16, 2022
Voxel rendering test
39
23
340 views
View on Scratch

Description

Here's a really rough "voxel" rendering experiment! I haven't researched how voxel rendering actually works at all, but this project draws each layer furthest-to-closest as a set of vertical lines which it pulls (with some bad math) from a dynamic height map. Click the screen or press space to get a slider for the field of view (again, rough math here lol), and a readout which shows the row and column which the line closest to the mouse is pulling its height from. Press V to show the full list of the current voxel height map (it's a 40x40 grid, which is already kind of a lot for Scratch to fill every frame—a remix idea retaining this dynamic map could be calculating only the height for the row-column combinations getting displayed). Press S to stop the project and get a screenshot-ready view of the current render (I used this to prepare the project thumbnail :P The border overlay is just for fun!

Project Details

Project ID778163821
CreatedDecember 16, 2022
Last ModifiedDecember 16, 2022
SharedDecember 16, 2022
Visibilityvisible
CommentsAllowed