3D Ray Marching (simple shapes)

3D Ray Marching (simple shapes)

by Kouzone

👁 2,749 ❤️ 212 ⭐ 170 🔄 6
Created: Feb 28, 2020 Last modified: Aug 3, 2021 Shared: Mar 2, 2020

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

Project thumbnail
View Project

totally realistic reactor

by FreakoutMeter

Project thumbnail
View Project

Windows Scratch (How Original)

by 54325

Project thumbnail
View Project

game for cuddles

by sam02h

Project thumbnail
View Project

Tilepgrade! [552]

by TGGGRC

Project thumbnail
View Project

FNF' Due Debts: 2HOT BF Mix

by PeelZy22

Project thumbnail
View Project

The Nickelodeon Creatures Show!: NYE Celebration 2026 - Netflix Family but accurate - numbers

by dkBay

Project thumbnail
View Project

KLASKY ERROR RETAKE

by carternh

Project thumbnail
View Project

Alphabet Lore but the word is “MOXIE” Instead of “FRIENDS”

by le_bacteria_alt

Project thumbnail
View Project

Super Phantom Cat HD remix remix remix

by Gkb_Sonic_HD

Project thumbnail
View Project

talking tom and ben news 3 remix remix remix-2 remix

by doddwell

Project thumbnail
View Project

イニクロの直感アニメ #111 - かき氷(塩)

by 1296-cat

Project thumbnail
View Project

Beat Up Bonzi Buddy! remix remix remix

by everton123E

Project thumbnail
View Project

37 new skins 2 player games

by harrisISPro

Project thumbnail
View Project

KyleWare: Ultimate Microgames! 2.0a

by himng0801

Project thumbnail
View Project

Beat Up Ernie Fitzpatrick

by whipnm

Project thumbnail
View Project

Triple Trouble eggman part

by Metal_Sonic_Games

Project thumbnail
View Project

Terraria v1.0 Crimson Mod

by scratchfan99999

Project thumbnail
View Project

beat up numberblock 1 remix remix fixed

by adith05

Project thumbnail
View Project

史萊姆點擊遊戲 V 1.2.15 (停止更新)

by ZXC_ZXC

Project thumbnail
View Project

Planet clicker 2.0

by liaoep

Project thumbnail
View Project

アニメ「The WeakMan」| 第1話「日本ぶっ壊し計画」

by Pikurin

Project thumbnail
View Project

Mike Salcedo's Endless Alphabet Lore | Letter Q

by 78jcas322

Project thumbnail
View Project

Chrisky's Vowel Jumpstart Shidinn Band

by Marvellonathan

Project thumbnail
View Project

Hickory Dickory Dock... with a twist.

by samsdi45