Experimental Sunsprite Shaders

share shaders here
  • Author
  • Message
Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Experimental Sunsprite Shaders

First of all, please forgive my english, I'm french :D

Always thought the enbsunsprite.fx hasn't been worked (twisted ? :lol: ) enough, so I've been trying some things, and Boris helped me in implementing an RGB control for EACH lenz flare in it.
The file allows for control in size / color / offset / intensity / opacity for each of the lenz flares, will work with any .tga, and of course you can add as many passes as you want in it.
I *only* included 11, as an example.

My motivation was to build some sun lenz effects ressembling to the ones we've seen in "Tomb Raider" recently.

Also, via creating Draw2, Draw3, ect... passes and techniques with the right TGA textures, I think some of us can improve this shader's effects MUCH further.

Don't be too hard on me, as I'm no code monkey :D , and enjoy, if even possible...

Best to all
Oyama aka Kyo

HERE YOU GO

07/12/13 :
Expanded the code a bit further, allowing to draw entire new lines of flares with horizontal and vertical displacements, enable/disable defines, etc...
This is set as an EXAMPLE, so it's up to you about the right tweaking ;)
Now on my way for the additions Boris suggested.

HERE IT IS

07/17/13 :
Expanded the code MUCH further. Several additions.
Download it on Nexus or HERE

07/23/13 :
Several additions. Lens Distortion, Cubic, Chromatic aberration, techniques, timer-related vars, ect...
Download it on Nexus or HERE
Last edited by Oyama on 23 Jul 2013, 01:31, edited 6 times in total.
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop

Offline
User avatar
*blah-blah-blah maniac*
Posts: 734
Joined: 26 Jan 2012, 17:56

Re: Experimental Sunsprite Shaders

Don't give that Frenchie any sympathy for his poor English (merde!)! :D

Looking good bro, I'll give this a try later on tonight.

Should throw up some pics here so people get a visual representation and feel more motivated to go and download it.
_________________
Unreal Cinema ENB

ENB Binary Archive

Intel i5 3570k @4.4ghz, 8gb Corsair Vengeance @1667hz, MSI Twin Frozr III R7950 BE @1.2ghz

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Re: Experimental Sunsprite Shaders

Unreal Warfare wrote:Don't give that Frenchie any sympathy for his poor English (merde!)! :D

Looking good bro, I'll give this a try later on tonight.

Should throw up some pics here so people get a visual representation and feel more motivated to go and download it.
I love your "merde !" thing.... :lol:
And you're right, so here's what it allows for, and I didn't use color.RGB on these. Effect is a bit exagerated (well... more than a bit :lol: )
Also, these were with another .tga than the one provided, but it's Matso's, and unreleased, so...

Image

Image

Image

Image

Image
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17444
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: Experimental Sunsprite Shaders

Why don't you make that dispersion circle as rays changing by sun intensity and timer? Could be much more realistic and not such expensive as computation from hdr image.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Re: Experimental Sunsprite Shaders

ENBSeries wrote:Why don't you make that dispersion circle as rays changing by sun intensity and timer? Could be much more realistic and not such expensive as computation from hdr image.
;) Thats' why I need some advices !!
On my way, will be done ;)
Thanx Boris, once more.
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop

Offline
*sensei*
Posts: 373
Joined: 07 Mar 2013, 10:14

Re: Experimental Sunsprite Shaders

One word..... SHINY!!!!!!

Looking good though, and I like where it seems to be going! Will most certainly keep an eye out for your future tweaks to the code!

Wonder how this will affect the issue with hyper bright skies when there is a fog, or snow storm etc. I personally find that one of the bigger annoyances atm.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 734
Joined: 26 Jan 2012, 17:56

Re: Experimental Sunsprite Shaders

Not seeing it in the code if it's there, but separate parameters for day, night, sunrise, sunset, etc would be good so that we can edit colouring for each parameter.

Also seems I'm here and had a play I thought I'd throw up a screenshot of it in action using Unreal Cinema.

Image
_________________
Unreal Cinema ENB

ENB Binary Archive

Intel i5 3570k @4.4ghz, 8gb Corsair Vengeance @1667hz, MSI Twin Frozr III R7950 BE @1.2ghz

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Re: Experimental Sunsprite Shaders

:shock:
Works REALLY nice with your setup !
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop

Offline
User avatar
*blah-blah-blah maniac*
Posts: 734
Joined: 26 Jan 2012, 17:56

Re: Experimental Sunsprite Shaders

Thanks!

Here's a few more...

Image

Image

Image

Image

Image
_________________
Unreal Cinema ENB

ENB Binary Archive

Intel i5 3570k @4.4ghz, 8gb Corsair Vengeance @1667hz, MSI Twin Frozr III R7950 BE @1.2ghz

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Re: Experimental Sunsprite Shaders

Uploaded a more complex version above ;)
I don't know if DNI things are doable...
If Boris adds vars to the binary, it won't affect Sunrise / Sunsets I guess, since they're read from horizon colors to my knowing, not from a TRUE D/N/I thing. The game engine doesn't allow for this..
Then, a true D/N/I separation (as in color correction shaders) would be of no interest with Sun Flares I guess.... Dunno.
Boris ?....
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop
Post Reply