Jump to content

Lens flare is not working for standalone executable.


kc_retro
 Share

Recommended Posts

Hi,

I'm new here. I've been using Leadwerks 4.6 Standard for around 4 days now. 
So far it has mostly gone smooth and I love how easy it is to pick up. 


My map uses the Sewers assets so it is fairly reliant on spotlights, point lights etc.
I added a wall light that had a lens flare effect attached to it. This looked great from 
the editor. When I ran the game standalone it was flickering.

I have done a few hours of experimentation trying to track down the cause. 

I don't think it is anything to do with shaders. I can switch the lensflare diffuse.shader off 
from within lensflare.mat and it just results in a flickering square.     

It is nothing to do with windowed/fullscreen as I tested the standalone game in both modes, same problem. 

The main question I have is why would lensflare work fine when I run the map from within the editor and
not work when I run it from the standalone executable.

I created the project from the FPS template.    

Any question / help would be greatly appreciated.

Thanks.

Link to comment
Share on other sites

Hi,

Thanks for getting back. 

I actually managed to replicate on AMD and Nvidia. I'm almost certain it is a problem with vsync. The reason it wasn't happening in the editor was I didn't have vsync enabled but did on the standalone. It's not a showstopper for me at the moment. It is one of my favorite effects and I can work around by using frame rate limiting for 60fps in the Nvidia driver rather than vsync which fixes the problem for the standalone app. My Radeon Vega driver doesn't have that option unfortunately.   

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...