Welcome, Guest.
Username: Password: Remember me

TOPIC: Anamflare Shader Not Functioning

Anamflare Shader Not Functioning 1 year 4 months ago #1

Trying to use the ANAMFLARE shader by Ganossa. However it does not seem to function.
I am wanting to add anamorphic lens flares to the scene without white objects recieving them; which the "FLARE_DEPTH_CHECK" setting seems to describe.
No matter what settings I apply, I cannot get them in my scene.
I have attached the settings below.
////-------------//
///**ANAMFLARE**///
//-------------////
#define USE_ANAMFLARE 1 //[Bloom] //-Anamorphic Lensflare: adds some horizontal light flare, simulating the use of an anamorphic lens while recording.

//>Anamorphic Lens Flare<\\
#define FLARE_DEPTH_CHECK 1 //[0:1] //-if 1, only pixels with depth = 1 get an anamflare, this prevents white objects from getting flare source which would normally happen in LDR
#define fFlareLuminance 0.97 //[0.000:1.000] //-bright pass luminance value 
#define fFlareBlur 9999999.0 //[1.0:10000.0] //-manages the size of the flare
#define fFlareIntensity 1.27 //[0.20:5.00] //-effect intensity
#define fFlareTint float3(1.0, 0.137, 0.216) //[0.000:2.000] //-effect tint RGB
Any help to get this to work would be appreciated.
The administrator has disabled public write access.

Anamflare Shader Not Functioning 1 year 4 months ago #2

  • WLHM15
  • WLHM15's Avatar
  • Offline
  • Everything started from the end
  • Posts: 42
  • Thank you received: 11
Hi Lazmarr...

Are you still use 2.0 Framework..?
The administrator has disabled public write access.

Anamflare Shader Not Functioning 1 year 4 months ago #3

WLHM15 wrote:
Hi Lazmarr...

Are you still use 2.0 Framework..?
Hi WLHM15,

Thanks for getting back to me. Yes I think I am. I believe it is 2.0.3.1121
The administrator has disabled public write access.

Anamflare Shader Not Functioning 1 year 4 months ago #4

  • Marty McFly
  • Marty McFly's Avatar
  • Offline
  • We've tried nothing and we're all out of ideas!
  • Posts: 980
  • Thank you received: 978
1) the blur is orders of magnitude larger than it should be.
2) Do the flares show up if you disable the depth check? If yes, something with your depth buffer settings is bad.
3) Ganossa is not the actual author of the anamflare shader, it's me, we just ordered the effects like this when we merged gemfx, mastereffect and sweetfx
The administrator has disabled public write access.

Anamflare Shader Not Functioning 1 year 4 months ago #5

Marty McFly wrote:
1) the blur is orders of magnitude larger than it should be.
2) Do the flares show up if you disable the depth check? If yes, something with your depth buffer settings is bad.
3) Ganossa is not the actual author of the anamflare shader, it's me, we just ordered the effects like this when we merged gemfx, mastereffect and sweetfx
Hi Marty,
The flares do not show up at all if I disable the depth check or even replace the settings with their default values.
If I use Guassian_Anamflare the flares do show up, so I am lead to believe that it may be a problem with the shader.
The administrator has disabled public write access.

Anamflare Shader Not Functioning 1 year 4 months ago #6

  • Marty McFly
  • Marty McFly's Avatar
  • Offline
  • We've tried nothing and we're all out of ideas!
  • Posts: 980
  • Thank you received: 978
Oh right, this is the one originally from Matso, my bad. The gaussian is from me. Nevermind. Uhm what happens when you set the bright pass value to something low, like 0.6?
The administrator has disabled public write access.

Anamflare Shader Not Functioning 1 year 4 months ago #7

Marty McFly wrote:
Oh right, this is the one originally from Matso, my bad. The gaussian is from me. Nevermind. Uhm what happens when you set the bright pass value to something low, like 0.6?
Disabling depth check and changing to braight pass to 0.6 and reducing the flare blur gets the flares to show up. However they are on most objects including ones that appear white.
Enabling depth check completely removes them from all objects.
The administrator has disabled public write access.