3d Terrain Raycaster v1.1

3d Terrain Raycaster v1.1

by Howtomakeausername

👁 6,429 ❤️ 301 ⭐ 241 🔄 15
Created: Nov 2, 2020 Last modified: Jun 13, 2022 Shared: Nov 6, 2020

Description

Made completely by me :) although the original lighting scripts from @geotale's tutorial. So how does this work? It's actually really simple. Basically, there is a ray which moves forward a certain number of steps until the y position is below the height of the procedurally generated plane (gets a y-coordinate from the x and z position of the ray). Then I calculate the surface normal and do lighting and this happens! ^-^ Changelog: v1.1 - added actual grass textures Tags: #RAY #MADNESS #SHADER #3d #raycast #ray #cast #ray #trace #3d #open #world #textured #terrain #howtomakeausername #raytrace

Instructions

-Just a quick idea I had- Set the resolution and click the flag again to re-render. On turbowarp you can move in realtime using WASDQE and ARROW keys. Also, stop the program to see final render. Turbowarp link - https://turbowarp.org/444263092/fullscreen I apologise for it taking a while, but scratch is slow so it is expected. It has to raycast a large distance each pixel, so it isn't going to be fast.

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

Preview 2 Scratch Cat in G Major 660

by gamerboy1228

Project thumbnail
View Project

beat up 4 ( number lore)

by Draven1205

Project thumbnail
View Project

endless music page1-2

by pinkchknnugg

Project thumbnail
View Project

Numberblocks times table 1.5 remix

by numberblocks117

Project thumbnail
View Project

my DEC 2023 past OC :3

by ItzZainu-Officail

Project thumbnail
View Project

Cursor Test 2

by JohaReborn2

Project thumbnail
View Project

Super mario maker 5

by soly-7

Project thumbnail
View Project

Incredibox - Sprunki (Pyramixed) retake OC remix

by Wenda_Sprunki_Rus

Project thumbnail
View Project

ball clicker #games #all

by fififield

Project thumbnail
View Project

Lucy and Leo misbehave at Sky Zone/Grounded/Punishment Day

by Mimikat_S2

Project thumbnail
View Project

The Swimming Game

by MegaX

Project thumbnail
View Project

UncannyBlocks Band Different (1TG-1UTG Season 4 is here) [UPDATED]

by PJKirby7785

Project thumbnail
View Project

Genesis Modern Sonic Engine IN SCRATCH 3

by hahasamian

Project thumbnail
View Project

Samsung Galaxy ACE logo

by Sergio-brito-2022

Project thumbnail
View Project

Fade Fight (a multiplayer fighting game)

by shadow______________

Project thumbnail
View Project

GLOW DODGE

by opticist

Project thumbnail
View Project

[BETA] Automata v0.1

by hubblefam

Project thumbnail
View Project

jumpstart AABBCC band (Band Version)

by atakan9

Project thumbnail
View Project

All Different Kinds Of Alphabet Lore B remix remix

by harveybalphabetlore

Project thumbnail
View Project

Burmese Alphabet Lore

by AlfabetonsOfficial

Project thumbnail
View Project

おにごっこ~the cruel fate~第陸拾壱話「開幕」

by tyomuko22

Project thumbnail
View Project

Count up 0-99999 remix

by NikoDGreat

Project thumbnail
View Project

Cuphead - Stickman's Basics in "Ferocious" (unfinished)

by Hun78

Project thumbnail
View Project

Make your own TPOT!, but I added Winner, Price Tag and Teardrop

by TheRedMarill2007