Realistic Lens Flare

Realistic Lens Flare

by SpinningCube

👁 2,159 ❤️ 355 ⭐ 288 🔄 4
Created: Mar 27, 2022 Last modified: Nov 29, 2024 Shared: Apr 4, 2022

Description

A quick test project I made to generate lens flares, the kind of lens effect which would be visible when you point a camera at a bright light source like the sun. The end result is a quite nice-looking effect. The effect is composed of many individual lens flare elements. I made two of the lens flare textures using external image editing software, each one is a simple shape colored white with a radial gradient ranging from opaque at the edges to partially transparent at the center. More transparency is added by the project itself. This is a clone-based method, which means each lens element is a clone (A stamp-based version is perfectly doable, though). The clone is assigned a random size, position factor, shape, and transparency. There are 30 clones in total, though this can be changed in the code depending on how many lens elements are needed. The lens elements' positions are all multiples of the sun position. Everything is done in 2D, but this can be applied to a 3D project if Sun X and Sun Y are set to the projected coordinates of the sun. This project doesn't lag very much, but it does look smoother on TurboWarp with these settings: https://turbowarp.org/666704223?hqpen&fps=60&limitless Updated 16 April 2022 - Added exposure adjustment, where the background darkens when looking directly at the sun. Changed the sun streaks to make them fade in when looking directly at the sun. Released 3 April 2022 Anyway here's a bunch of tags: #Sun #Light #Sunlight #Day #Sky #Glare #Camera #Lens #Flare #Effect #2.5D #3D #Math #Clones #Mobile

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

My Evil Clone In Ohio Lol

by IIAndSDFan2k7

Project thumbnail
View Project

Epic Mario Starmageddon Ultimate Hype Train!!

by wificom

Project thumbnail
View Project

Beat Up Spiffy Pictures Super Duper Mega Hyper Ulimate Extreme FINAL remix remix

by bonzi346

Project thumbnail
View Project

Beat Up Stepshape [22]

by Delightful2025

Project thumbnail
View Project

Титры из Маша и Медведь.

by vol_wubbox12

Project thumbnail
View Project

Nickelodeon Creatures Text Engine 9.36

by siddharth1717

Project thumbnail
View Project

scratch 2007-2025

by Coding_Goof

Project thumbnail
View Project

第4話「四天王」デストロイワールド io's determination

by suppaityuu

Project thumbnail
View Project

Numberblocks Times Table Grid remix remix

by -_rarehoola_-

Project thumbnail
View Project

Beat up Edward DLC Reimagined 9-10 Released

by TAHFalternate

Project thumbnail
View Project

art - try to forget her

by -Queenie-Bunny-

Project thumbnail
View Project

add a button to Beat Up MarioBro 5

by NES2006

Project thumbnail
View Project

Farm Clicker #games #all

by Saturn-Rings

Project thumbnail
View Project

Beat up bandu (original)

by like_a_foae1

Project thumbnail
View Project

Fidget Spinner ONLINE!

by -0N3-

Project thumbnail
View Project

Dodge Game

by DarioGAMER64

Project thumbnail
View Project

夜に駆ける/YOASOBI ピアノロール

by fireshukkun1214

Project thumbnail
View Project

Add A Button To Beat Up Coiny! [0]

by newmyles

Project thumbnail
View Project

アンデットサバイバル 捨話 激闘

by midoridaiou

Project thumbnail
View Project

All Feelings Numberblock 3 Collection

by zoomanimal

Project thumbnail
View Project

The REAL Giraffe Cone Puppet Scene

by ScoutScratch09

Project thumbnail
View Project

Narajar Artistic Alphabet (my ver.) remix

by ErrorLine9

Project thumbnail
View Project

beat up bowser remix

by Bioshy_2012

Project thumbnail
View Project

Numberblocks Band ReTrillion Remastered (10.0Demicrillion-100.0Cemicrillion)

by Numberblocksbandddd