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

Endless alphabet oc (DEMO)

by splashyideas

Project thumbnail
View Project

Scratch Party 2 - Star Scramble (Remix) Unlimited Coins & Stars

by tihobesirovic

Project thumbnail
View Project

Sprunki OC ultimate 2 - scratch port

by Kiruha73

Project thumbnail
View Project

AY black hole [FULL!]

by rodScratch11

Project thumbnail
View Project

Pocoyo And Pato behave during the tornado warning/UNGROUNDED

by ChaseJ15

Project thumbnail
View Project

Gubby Clicker! #games #art # forsaken # Clicker # gubby

by goodboi_12314

Project thumbnail
View Project

Make your own BFB / TPOT [Remake]

by denver454

Project thumbnail
View Project

AY In Metal Ball REDUX! [Remix #7 I 14 Players] remix

by jayjayy1809

Project thumbnail
View Project

sprunki oc real (edition)

by sprunki055

Project thumbnail
View Project

Sprunki Oc Update

by CooperFranson

Project thumbnail
View Project

Mythical Island Remixer (Composer Edition)

by PiplaFon61

Project thumbnail
View Project

dark metal sonic beat up!

by Sameyjak321

Project thumbnail
View Project

ロマンスカーNSEがはしる remix

by saira0

Project thumbnail
View Project

Lime Invasion! #All #Trending #Games #MobileFriendly

by BroomingSKILLS

Project thumbnail
View Project

espe sans phase1 hard mode (demo)

by saaaaaanschaaaaaaan

Project thumbnail
View Project

FNF spongebob parodies keyboard

by broomstich

Project thumbnail
View Project

Alphabet Lore starter pack

by klaskyfan123456Alt

Project thumbnail
View Project

ZIGGY EATS north remix

by MIRON0711

Project thumbnail
View Project

Undertale overworld - Asriel

by Corz-mp4

Project thumbnail
View Project

Beat Up Helmet Pig (60) (Added: Page 2)

by JPPORTUGAL

Project thumbnail
View Project

FNF - vs. Miku turbo

by jihyupl

Project thumbnail
View Project

Cinnamoroll Ragdoll

by BlueBunny_PinkBunny

Project thumbnail
View Project

Fidget spinner:)

by Bloxy01

Project thumbnail
View Project

Scratchtale Sonic BOSS FIGT

by Mi-Hello