Please use english language
It is currently 26 Feb 2020, 10:30

All times are UTC





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: SSAO scales
PostPosted: 22 Sep 2013, 16:43 
Offline
*sensei*
User avatar

Joined: 10 Jun 2012, 12:31
Posts: 420
Location: Sweden
Hey folks!
Been thinking of this for some time. You see all kind of presets with different SSAO scales from around 0.5 to above 1.0.
But these scales really is a mystery to me.
For example K ENB Extensive .195 uses SSAO scale 0.7745966692414834, Somber ENB 186 uses 0.806225774829855 and so on...
I highly doubt that these values is a result of just bashing the numpad. :P
Is there some sort of math behind determine the "correct" scale for your resolution? Been searching the ENB forum for it but can't find anything.
Thanks for reading!

_________________
| i5 | 8gb RAM | GTX660 | Windows 8 | Skyrim on SSD |
My music project, Akira Project, website at Sound Cloud



Top
 Profile  
 
Tomoko
 Post subject: Re: SSAO scales
PostPosted: 22 Sep 2013, 17:03 
Offline
*blah-blah-blah maniac*
User avatar

Joined: 27 Dec 2011, 08:53
Posts: 14816
Location: Russia
0.7745966692414834^2 is 0.6
0.806225774829855^2 is 0.65
This just means that users undestand how much performance preset will cost. Scaling 0.5 means, that half of width and half of height of screen will be used to compute effect, but amount of pixels matter for performance, so it's 4 times smaller and faster. (DisplayWidth*SizeScale)*(DisplayHeight*SizeScale) is actual math to compute performance (pixels count).

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


Top
 Profile  
 
 Post subject: Re: SSAO scales
PostPosted: 22 Sep 2013, 18:54 
Offline
*sensei*
User avatar

Joined: 02 Aug 2013, 23:06
Posts: 477
Location: New Hampshire, US
ENBSeries wrote:
0.7745966692414834^2 is 0.6
0.806225774829855^2 is 0.65
This just means that users undestand how much performance preset will cost. Scaling 0.5 means, that half of width and half of height of screen will be used to compute effect, but amount of pixels matter for performance, so it's 4 times smaller and faster. (DisplayWidth*SizeScale)*(DisplayHeight*SizeScale) is actual math to compute performance (pixels count).


I know I am being dense here but could you give an actual example of how they get those numbers? I tried a few things and can't seem to get my head around it. I am working on those settings now in an ENB and I would like to know the actual calculation to get a value like 0.7745966692414834.

Or is it fine to just use something like .78? Although I am curious on it.

_________________
Intel Core i9-9900K CPU @ 3.6 GHz // GeForce RTX 2080 Ti VRAM 11GB // Win10 64 and 64GB Ram // Monitor 2560x1440@144


Top
 Profile  
 
 Post subject: Re: SSAO scales
PostPosted: 23 Sep 2013, 04:03 
Offline
*blah-blah-blah maniac*
User avatar

Joined: 27 Dec 2011, 08:53
Posts: 14816
Location: Russia
0.7745966692414834*0.7745966692414834=0.6

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


Top
 Profile  
 
 Post subject: Re: SSAO scales
PostPosted: 23 Sep 2013, 04:10 
Offline
*sensei*
User avatar

Joined: 03 Oct 2012, 06:12
Posts: 385
Location: Ottawa, Canada
@ wolfgrimdark
If I want SSAO to compute, let's say, 70% of the screen (resolution is afterthought, as SSAO does the math internally, like Boris pointed out). Then do root of 0.70 to get the SizeScale and SourceTexturesScale values, value being 0.836660027.

For instance, here are my SSAO scale value, having 70% of my screen-space calculate SSAO appropriately:

[SSAO_SSIL]
SizeScale=0.836660027
SourceTexturesScale=0.836660027

Therefore equation might be SizeScale = SourceTexturesScale = sqrt( (% of screen)/100 )

_________________
Intel Core i7 8700K @4.7GHz | GIGABYTE Z370 AORUS Ultra Gaming | NVIDIA - EVGA RTX 2080 XC Ultra | 32GB DDR4 Corsair Vengeance RGB PRO | XPG SX6000 Lite 1TB

Flickr
Twitter
Tumblr


Top
 Profile  
 
 Post subject: Re: SSAO scales
PostPosted: 23 Sep 2013, 13:10 
Offline
*sensei*
User avatar

Joined: 02 Aug 2013, 23:06
Posts: 477
Location: New Hampshire, US
Ah many thanks ZeroKing. Feel foolish now ... hard to know I was a math major for 3 years in college and should have figured that out :p Its been to long since I worked on things like this (close to three decades).

_________________
Intel Core i9-9900K CPU @ 3.6 GHz // GeForce RTX 2080 Ti VRAM 11GB // Win10 64 and 64GB Ram // Monitor 2560x1440@144


Top
 Profile  
 
 Post subject: Re: SSAO scales
PostPosted: 23 Sep 2013, 15:42 
Offline
*sensei*
User avatar

Joined: 10 Jun 2012, 12:31
Posts: 420
Location: Sweden
Thanks Boris! And thank you Zero! You spread some light on that equation. :)
I've never been good with either math or numbers. That, combinated with me skipping most of the school makes those figures look like greek to me. :lol:

_________________
| i5 | 8gb RAM | GTX660 | Windows 8 | Skyrim on SSD |
My music project, Akira Project, website at Sound Cloud



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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