ScratchData LogoScratchData
Back to squarepoint's profile

Verlet Image Renderer

SQsquarepoint•Created March 15, 2024
Verlet Image Renderer
90
72
635 views
View on Scratch

Instructions

USE TURBOWARP FOR BEST RESULTS: https://turbowarp.org/983545159 A quick experiment. Since verlet is entirely deterministic, it is possible to predict exactly where each ball will end up given an initial set of parameters. We can then find the color of each ball's ending position and rerun the script and we are now guaranteed that each ball will end up in the right place! Hope you enjoy, and feel free to try it with your own images too! The antialiasing option sets the ball color to the average color of the surface it covers. Everything else is pretty self explanatory

Description

NOTES: - If the balls start moving uncontrollably at step 3, stop the project and rerun it with a lower "solidity" value (around 0.1-0.2). This will allow the balls to slightly overlap each other, preventing them from storing too much velocity. - If you add your own images, try to use images with well defined shapes (the amongus is PERFECT for this) or it will just turn into an unrecognizable soup of fat round pixels. Adding more resolution either makes the thing super slow or straight up broken, sorry! - Please don't use this code for games or stuff, i was too lazy to optimize it, code your own physics engine instead, it isn't that hard CREDITS: - Griffpatch for the scanner - Pezza's Work on yt for inspiration (he does the same thing on his vid about verlet that i'm too lazy to look up) - The people i stole their pfps from (i originally thought @123768631's pfp would look great, but it turns out his hexagon isn't facing the same way as the naturally forming hexagon pattern :( Why would a hexagon walk on his tip anyway?!) Song: Define Light - Strength (we goin back to 2015 with that one) Tags (idk if it still works since the search system seems to be way glitchier now): #verlet #image #renderer #physics #squarepoint #math #simulation #simulations #realistic #ball #balls #chaos #chaotic #deterministic #amgous #mind #blown #wow #amazing

Project Details

Project ID983545159
CreatedMarch 15, 2024
Last ModifiedFebruary 18, 2025
SharedFebruary 18, 2025
Visibilityvisible
CommentsAllowed