Please use english language
It is currently 26 Feb 2020, 09:56

All times are UTC





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 05 Jul 2013, 04:18 
Offline

Joined: 12 Jun 2013, 07:19
Posts: 66
Hi Boris, is the bloom texture just a blurred version of the original image? I'd like to know if there's significant color/luminance change during blurring process. Because if the bloom texture is close to a gaussian blur, I can use it as an unsharp mask to increase local contrast.

I guess i can check it by outputing bloom color to the screen, but I don't trust my eyes. So a little help from you is appreciated :)


Top
 Profile  
 
Tomoko
PostPosted: 05 Jul 2013, 05:34 
Offline
*blah-blah-blah maniac*
User avatar

Joined: 27 Dec 2011, 08:53
Posts: 14816
Location: Russia
Hi. Bloom in enbbloom.fx is same as internal when this file deleted, as i remember (just backup), so you can see how it work. Bloom is blurring, but not standart of any kind, i experimented with it to make look like it should in real world, but with limitation to performance, so different bloom files have different code, some have middle of summ, some combine maximal and middle values on one of blurring passes. In short, it's approximation, not very bad as in most games, but far not ideal. In one project i did full screen bloom computation and it looked wonderful, but that game was cpu limited and that bloom was performance free as running in parallel, i can't do this in the mod as it kill fps too much, but current 512*512 image of bloom is always bad and require to be blurred too much to hide aliasing, so whatever you try to do with bloom now, it can't be sharp (except if you compute sharper low range in enbeffect.fx and mix it with bloom texture). What i guarantee is that bloom is never bigger than brigtness of underlying pixels which where used for blurring (i mean maximal by range used, not individual pixels) and bloom is very close by intensity to original image blurred, no color changes are made of any kind.

_________________
i5-4690k, 16Gb RAM, GTX 1060 6Gb, X-Fi Titanium, Win7 x128
I am INFP, not the brutal, godamnit.


Top
 Profile  
 
PostPosted: 05 Jul 2013, 05:39 
Offline

Joined: 12 Jun 2013, 07:19
Posts: 66
My problem is that I am yet to learn the bloom math in enbbloom.fx. I knew nothing about shader or color programming before so it takes so much time to understand the bloom sampling code in that file.

Quote:
bloom is very close by intensity to original image blurred, no color changes are made of any kind.


that sounds good enough for me. I'll try to use it as local contrast mask. what a wonderful thing that one texture can be used as both bloom and contrast mask!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group