Lens dust, a New shader effect

Lens dust, a New shader effect

Postby samuncle » 27 Jul 2015, 01:27

Hello, I just finished to implement a new post processing effect. It's a dust lens flare simulation. Basically when a light source is strong enough, it will "lit" dust on the screen.

Currently you can test in the git branch lensdust

Here is a preview
ds.jpg


Now, just before merging I need some feedback. Should this effect be:

1) Always enabled no matter what's happening
2) Always enabled but you can "choose" the dust texture per track (so for instance a track with rain would have different dust effect compared to a mine)
3) Disabled, this effect is ugly and I don't like it

Any suggestions are welcome.
Image
User avatar
samuncle
STK Moderator
 
Posts: 752
Joined: 16 Mar 2010, 21:28

Re: Lens dust, a New shader effect

Postby 0zone0ne » 27 Jul 2015, 08:24

I like it a lot, however I feel the effect should be much larger + more transparent?
0zone0ne
 
Posts: 332
Joined: 26 Aug 2012, 02:34

Re: Lens dust, a New shader effect

Postby charlie » 27 Jul 2015, 09:39

#2
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
charlie
Global Moderator
 
Posts: 2131
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Re: Lens dust, a New shader effect

Postby Eldermê » 27 Jul 2015, 10:51

I like the effect.

4) Enabled only if a dust texture is defined in the track?

I think lens dust effect does not make sense for every track: during a sunny day, you don't see lens dust.
Eldermê
 
Posts: 6
Joined: 29 Jun 2015, 21:28

Postby tuxkartdriver » 27 Jul 2015, 11:06

-
Last edited by tuxkartdriver on 08 Jan 2016, 21:48, edited 2 times in total.
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Re: Lens dust, a New shader effect

Postby ArDanWol » 27 Jul 2015, 13:00

#2
I really like it!
I'm know pretty much everywhere else on the internet as "Kpenguin"
"Profanity is one language all computer users know" - Murphy's 50th Law of Computers
Software bugs are impossible to detect by anybody except the end user - Murphy's 31st law of software
Each computer code has five bugs, regardless of how many bugs have been already found - Murphy's 50th law of software
"That's not a bug, it's an undocumented feature!"
User avatar
ArDanWol
 
Posts: 181
Joined: 07 Nov 2014, 17:36
Location: Ohio, USA

Re: Lens dust, a New shader effect

Postby Akien » 27 Jul 2015, 13:13

Pretty cool effect! I'd be more for #2 too if you think that it would be worth the additional work, if not, #1 is already quite nice.

If it's something that might impact performance on lower-end hardware, or be a visual inconvenience to some users, you might want to consider make it possible to toggle it from the video settings.
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: Lens dust, a New shader effect

Postby samuncle » 27 Jul 2015, 13:26

Some precisions:

1) Performance wise it's only a read 512*256 texture + some very basic operation (adding and multiplication)
2) You can already disable it by disabling the bloom. Disabling the bloom disable Bloom, lens dust and lens flare
3) The effect is really very subtle. It's almost noticeable (and it's intended because we don't want a dirty camera simulator).
4) Even enabled during sunny days the effect is invisible because it only happens when you look directly at strong light source. In the case of the sun, the god ray isn't affected by the lens dust effect.
5) You can test by yourself the effect on the branch
6) And yes an intermediate solution would be one texture but only enabled in certain tracks
Image
User avatar
samuncle
STK Moderator
 
Posts: 752
Joined: 16 Mar 2010, 21:28

Re: Lens dust, a New shader effect

Postby charlie » 27 Jul 2015, 15:31

samuncle {l Wrote}:Some precisions:

You probably want to say, "Some specifics:"
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
charlie
Global Moderator
 
Posts: 2131
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Re: Lens dust, a New shader effect

Postby XGhost » 28 Jul 2015, 22:43

Looks nice samuncle!
I would go with #1
User avatar
XGhost
 
Posts: 147
Joined: 02 Jan 2014, 15:49
Location: Zurich (Switzerland)

Re: Lens dust, a New shader effect

Postby Arthur » 28 Jul 2015, 23:45

Option 2 would be my preferred one. Having rain drops in a rainy track would be nice.

Tbh, I am not a big fan of camera effects, since they kind of remind you that you are looking through a camera, which makes immersion more difficult. However since STK is in a 3rd person view that doesn't matter all that much in the end.
Hey pal, I took an oath for justice! "In happy days or tightest tights..." or something like that.
User avatar
Arthur
 
Posts: 1073
Joined: 06 Dec 2009, 00:49

Who is online

Users browsing this forum: No registered users and 1 guest