Jump to content

Recommended Posts

Posted

I got one ready to go with the daynight cycle and bloom. 20 passes at 1/4 resolution is hardly noticable on the fps.

However I feel we should probably have some sort of lensflare to go with this.

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

If i remember correctly i have seen a lensflare class in the C++ headers of Leadwerks. Not sure if that works already since it is obviously undocumented.

Posted

Looks like this with these adjustables:

 

uniform float fExposure=0.26;
uniform float fDecay=0.9999;
uniform float fDensity=0.8;
uniform float fWeight=0.24;
uniform float fClamp=1.0;
const int iSamples = 30;

 

  • Upvote 2

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

Looks like this with these adjustables:

 

uniform float fExposure=0.26;
uniform float fDecay=0.9999;
uniform float fDensity=0.8;
uniform float fWeight=0.24;
uniform float fClamp=1.0;
const int iSamples = 30;

 

Video is private

System:

Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k

Posted

Here is the full daynight shader cycle with godrays and an example map.

Several bugs including the wierd offset for the sun was fixed, also lensflare shader inpout is ready, but the lensflare shader isn't yet.

 

Godrays settings have several tweaks wich is read from camara:GetKeyvalue(), easily set from your app in lua or cpp.

 

 --godray
local fExposure=camera:GetKeyValue("godray_fExposure","0.3")
local fDecay= camera:GetKeyValue("godray_fDecay","0.97")
local fDensity= camera:GetKeyValue("godray_fDensity","0.6")
local fWeight= camera:GetKeyValue("godray_fWeight","0.24")
local fClamp= camera:GetKeyValue("godray_fClamp","1.0")
local fWhiteOnly=camera:GetKeyValue("godray_fWhiteOnly","0")

 

if fWhiteOnly is set to 1 it will not bleed colors. But I kinda like non white.

 

Forum only allows 5 mb uploads so here is a dropbox link :

 

EDIT: soon in the ws.

  • Upvote 7

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

  • 3 months later...
  • 2 weeks later...
Posted

This is very awesome! Is there a fix for the black square that is shown when firing at the sky?

Also it would be very cool if the ratio of day to night could be adjusted, but without making the stars move un naturally fast.

Posted

Im not geting the godray effect here.

 

I have to put this where?

 

--godray
    local fExposure=camera:GetKeyValue("godray_fExposure","0.3")
    local fDecay=   camera:GetKeyValue("godray_fDecay","0.97")
    local fDensity= camera:GetKeyValue("godray_fDensity","0.6")
    local fWeight=  camera:GetKeyValue("godray_fWeight","0.24")
    local fClamp=   camera:GetKeyValue("godray_fClamp","1.0")
    local fWhiteOnly=camera:GetKeyValue("godray_fWhiteOnly","0")

  • 2 weeks later...

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.

×
×
  • Create New...