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

BEAT UP tv Itacolomi 1955 (14)

by matheusmaccamargo

Project thumbnail
View Project

【日本語訳】 Hill Climb Racing // ヒルクライムレーシング!!

by Maruh2013

Project thumbnail
View Project

BFB Intro with 2010 assets

by paplochicken

Project thumbnail
View Project

Mario + Sonic Battle for the land Demo

by JABryant7

Project thumbnail
View Project

Beat up Jack Truck in Mickey Mouse Costume (WIP) kidtomme branch remix remix remix remix remi… remix

by carcthedodecahedron

Project thumbnail
View Project

Let's Draw!

by skylight-animator

Project thumbnail
View Project

Roblox || Online

by -Katana_Gaming-

Project thumbnail
View Project

Beat Up Bonzi Buddy 2: The revenge of Bonzi Buddy remix remix

by everton123E

Project thumbnail
View Project

Mario Party 2

by giantboa

Project thumbnail
View Project

Oggy and the Cockroaches intro

by lexsonic

Project thumbnail
View Project

[V1.009] Wavering Spirit (Inverted Fate AU)

by philiplol

Project thumbnail
View Project

Beat Up Gelatin remix remix

by Kmorell

Project thumbnail
View Project

FNF - (VsTabi) FULL WEEK

by Bradk2005

Project thumbnail
View Project

Final Results | OS Wars VI

by OSWars-VI

Project thumbnail
View Project

sreny stickmin the evil stickmin tortarial

by matteosonic10

Project thumbnail
View Project

第一回scratch逃走中【宇宙からの侵入者】Part2

by syunku

Project thumbnail
View Project

鬼畜すぎるシューティングゲームver.0.41

by HAMRINYA

Project thumbnail
View Project

Sky Force [Scratch Remake] REMASTERED v7.0 HACKED

by monhongphuc

Project thumbnail
View Project

Beauty and The Beast -Belle - Emma Watson -Blockshade

by Genny11

Project thumbnail
View Project

Add a button to beat up Microsoft Sam! remix

by Miguelfsm

Project thumbnail
View Project

Black hole add round 1

by wlck3d

Project thumbnail
View Project

virtual fidget spinner

by pikminie

Project thumbnail
View Project

G,T,M,A,F EAS alarms has a remix remix

by Diegol112345_alt2

Project thumbnail
View Project

Vyond Effects Kit 3

by lateone1