ScratchData LogoScratchData
Back to papipupepappa's profile

Accurate Motion Blur

PApapipupepappa•Created April 13, 2024
Accurate Motion Blur
235
200
2222 views
View on Scratch

Instructions

Click the green flag (several times if you like) and then play around with the sliders.

Description

◑ ◑ ◑ Notes ◑ ◑ ◑ Why does motion blur occur? Because cameras require a certain amount of light to hit the film or sensor in order to produce an image, and that is not an instantaneous process. If the object moves during that time, the light hitting the film/sensor will change, producing blur. The following project demonstrates that process in slow motion: https://scratch.mit.edu/projects/605362322/ This project is focused on the resulting motion blur rather than the process itself. To that end, it emulates the result in real time instead of slowed down. It does that by breaking down the movement each frame in 100 substeps, each time moving the sprite one substep and stamping a 96% transparent version in that position. Physics are applied each substep, so the motion is not necessarily linear. This will be apparent if you set horizontal speed and gravity to 100. Lower the playback speed to get a better look at each frame. Note that motion blur occurs when using a global shutter, meaning that the entire image is registered each moment. Digital cameras in phones often use rolling shutters, meaning that they register the image line by line. In that case, you don't get blur - you get something entirely different, which is demonstrated in the following projects. Rolling Shutter Simulation by me: https://scratch.mit.edu/projects/601654386/ Griffpatch's Blue Line Filter by griffpatch: https://scratch.mit.edu/projects/678512904/ Lastly, there are several other factors that affect blurriness, such as the aperture, the lens F-number and film speed, but that is beyond the scope of this project. If you take a photography class you will learn all about it :) ◑ ◑ ◑ Credits ◑ ◑ ◑ All graphics are from the Scratch library.

Project Details

Project ID1000539260
CreatedApril 13, 2024
Last ModifiedApril 16, 2024
SharedApril 13, 2024
Visibilityvisible
CommentsAllowed