
3D Ray Marching (simple shapes)
by Kouzone
Description
Raymarching references: https://youtu.be/Cp5WWtMoeKg (explanation) https://youtu.be/PGtv-dBi2wE (tutorials) https://youtu.be/Ff0jJyyiVyw (shapes) Unrealistic penumbra-shadowing reference: https://www.iquilezles.org/www/articles/rmshadows/rmshadows.htm SDF functions of shapes reference: https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm Reflected ray calculation reference: http://paulbourke.net/geometry/reflected/ The rest was built from scratch for Scratch. 7-Mar-2020: Applied new rendering features from Kouzerumatsu's remix (bugfix, fresnel reflectance, out-of-focus diffusion, hq) and added new shapes: octahedron and sphere arc. ray marching marcher tracer tracing 3d math
Instructions
Hit the green flag or [space] to show parameters. Press [space] key or green flag again or tap on the middle of the screen to start rendering. This is computationally expensive, and run it with turbo mode. See Inside > Edit tab > Turn turbo mode on or just [hold shift] + [green flag click] Render time of full-resolution by multiplying render time of resolution divisor 16 by 256, approximation. It took 40 seconds for me, which means it would take ~10240 seconds to render it with full resolution. Run it with forkphorus, if you have no patience: https://forkphorus.github.io/#372144443
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects

beat up sandbag
by Lestat1025

A Pizza Tower Screaming Meme| Russian Alphabet Lore
by BeastmodeM

Talking Tom & Ben News - World Cleanup in scratch new version
by Lunablz

Beat up R—l (beat up sonic)
by jayjayy1809

Interactive Spanish alphabet lore
by superscratcher10100

The Alpha-Herosons/Alphasons: A-D
by Rainbow_IA

Dream Dining: Disco!
by squig3

Peep and The Big Wide World Week upcoming! remix
by 123456789fdisk

Dragon Ball Z Xenoverse X
by amazingmario2011

Griffpatch's Maze Generation
by Ante603

Beat up baldi Fixed
by newmyles

Beat up game studios
by jayjay1i09

One Night in Among Us
by Creepydash101

TurboWarp & forkphorus detector
by GarboMuffin

McDonald's Logo
by jdnsp06

shark and fish simulation
by Vince033

Super Mario Bowser Chaos The Return of Cappy
by --MuffinHead--

among us stickman
by cwkrobert22174

UNDERTALE - Hard Mode Sans Fight (V2)
by cwkmifune37026

Dessert Clicker
by pimathawsome

m4dolab
by yutoshiro

Endless stampede
by stang999

Pizza Tower - Pizzaface boss fight
by jonathasgmc32

Beat up e-mail! remix
by SamiSamantaG