ScratchData LogoScratchData
Back to SpinningCube's profile

Planet Generator

SPSpinningCube•Created August 10, 2020
Planet Generator
849
723
11457 views
View on Scratch

Instructions

IMPORTANT: Use Turbo Mode (shift+green flag) and TurboWarp: https://turbowarp.org/416842874?turbo&hqpen Smaller pen size is higher image resolution, and the noise offsets control the shape of the terrain. Drag the sliders, and click the screen to begin rendering. - @SpinningCube

Description

A planet generator made using my new ray marcher. It uses layers of 3D value noise to displace the surface of spheres. The ray marching process finds an intersection point for each pixel. Once the end of the ray has entered the planet's bounding sphere, it takes small steps, sampling the noise texture after each step, until the ray has hit the surface. Value noise tends to look unnatural and grid-like by itself, but these artifacts become somewhat hidden if you layer the noise multiple times at different sizes. The resulting noise isn't the best, but it's good enough that patterns in the noise are not immediately noticeable. @piano_miles for the filmic tonemapping curve Minor update 2024-08-30 - embedded TurboWarp settings in project #3D #Raymarcher #Renderer #Pen #Planet #Generator #Procedural #Generation #Ray #Madness

Project Details

Project ID416842874
CreatedAugust 10, 2020
Last ModifiedOctober 15, 2024
SharedOctober 24, 2020
Visibilityvisible
CommentsAllowed