Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Lens Flare shader?

Author
Message
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 27th Mar 2012 20:14
Is there such a thing - found some lens flares in code snippets - but no evidence of an .fx one?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 27th Mar 2012 22:15
I think that particles work for lens flare, but I don't know about shaders doing the same thing.

Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 27th Mar 2012 22:18
@ Pincho Paxton - how would you use particles to achieve a lens flare effect - sounds v complicate - my only thought is the serious of hoops and crosses as carefully alpha'd and placed semi-transparent, semi-coloured objected between the camera eye and the light source/sun.... the maths though are daunting...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Mar 2012 22:22
Sounds like a variation of bloom to me. I'd suggest looking at the various bloom demos and try modifying them to give what you want.

The heat haze demo posted by Sixty Squares might be another possibility.
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 27th Mar 2012 22:26
@ Green Gandalf - good idea, will have a look... but just in case, I am talking about the number of halos that together have the effect of the lens flare...

http://www.ogre3d.org/tikiwiki/Displaying+LensFlare&structure=Cookbook

http://wiki.beyondunreal.com/Legacy:Lens_Flare

These two links, particularly the latter, show what I'm after... not as flash as bloom...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 27th Mar 2012 22:32
Quote: "@ Pincho Paxton - how would you use particles to achieve a lens flare effect - sounds v complicate - my only thought is the serious of hoops and crosses as carefully alpha'd and placed semi-transparent, semi-coloured objected between the camera eye and the light source/sun.... the maths though are daunting..."


I have one for Dark Basic, and I slightly altered it to work with DBPro, but it went through some walls. So it doesn't work 100%. If you want to try, and fix it I will post it.

Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 27th Mar 2012 23:27
@ Pinco P,

Yeah - go for it - that would be v helpful...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 28th Mar 2012 00:58 Edited at: 28th Mar 2012 01:00
Ok.. The flares also need to be downloaded, I have attached them. Some of the flares are remmed out, because I wanted more speed. This was by Van-B so he might help you to fix it...



mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 28th Mar 2012 14:37
Evolved have lens flare effect for every light
source on screen at one time. Just explore his example codes. But I'am not 100% sure that it's pure fx.

Login to post a reply

Server time is: 2026-07-09 15:46:54
Your offset time is: 2026-07-09 15:46:54