Anamflare Shader Not Functioning

  • Lazmarr
  • Topic Author
More
8 years 10 months ago #1 by Lazmarr Anamflare Shader Not Functioning was created by Lazmarr
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.

Please Log in or Create an account to join the conversation.

  • WLHM15
More
8 years 10 months ago #2 by WLHM15 Replied by WLHM15 on topic Anamflare Shader Not Functioning
Hi Lazmarr...

Are you still use 2.0 Framework..?

Please Log in or Create an account to join the conversation.

  • Lazmarr
  • Topic Author
More
8 years 10 months ago #3 by Lazmarr Replied by Lazmarr on topic Anamflare Shader Not Functioning

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

Please Log in or Create an account to join the conversation.

  • Marty McFly
More
8 years 10 months ago #4 by Marty McFly Replied by Marty McFly on topic Anamflare Shader Not Functioning
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

Please Log in or Create an account to join the conversation.

  • Lazmarr
  • Topic Author
More
8 years 10 months ago #5 by Lazmarr Replied by Lazmarr on topic Anamflare Shader Not Functioning

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.

Please Log in or Create an account to join the conversation.

  • Marty McFly
More
8 years 10 months ago #6 by Marty McFly Replied by Marty McFly on topic Anamflare Shader Not Functioning
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?

Please Log in or Create an account to join the conversation.

  • Lazmarr
  • Topic Author
More
8 years 10 months ago #7 by Lazmarr Replied by Lazmarr on topic Anamflare Shader Not Functioning

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.

Please Log in or Create an account to join the conversation.