ACES filmic tone mapping

General discussion for players of Oolite.

Moderators: winston, another_commander

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

ACES filmic tone mapping

Post by another_commander »

I was recently reading about HDR and somehow came across this page, which had an implementation of the Academy Color Encoding System (ACES) filmic tone mapper. It looked very compact and portable, so I gave it a go with Oolite, temporarily replacing the Hejl / Burgess-Dawson tone mapper we currently utilize. Here are some results and comparisons. Top is Hejl / Burgess-Dawson, bottom is ACES:

Image
Image

Image
Image

Image
Image

As you can see, ACES produces better detail in the dark areas and it looks just as good in the bright parts and as vivid as H/B-D. Actually, the bright parts are very slightly brighter with ACES. I'm liking it also because it takes into account the brightness of each fragment in its calculations. It is not by accident that ACES is one of the default tone mappers in the Unreal 4 engine (although its implementation there is slightly more complex than this).

I would be interested to hear what you think and the best way to form an opinion is to take a look at it on your screens. I have uploaded the ships and planets modified fragment shaders here. Just copy them over to the Resources/Shaders folder and run Oolite normally.

For reference, all above images are shot using light source radiance 3.75, exposure 1.38 in the shaders and ambient light level 0.1 in planetinfo.
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2685
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: ACES filmic tone mapping

Post by Redspear »

another_commander wrote: Mon Jun 20, 2022 10:12 pm
ACES produces better detail in the dark areas and it looks just as good in the bright parts
Sold! :D

It perhaps looks a little more 'full on' in the first comparison but I do think it's an improvement FWIW.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: ACES filmic tone mapping

Post by Cody »

another_commander wrote: Mon Jun 20, 2022 10:12 pm
For reference, all above images are shot using light source radiance 3.75, exposure 1.38 in the shaders...
Those would make good defaults, Admiral.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Old Murgh
Wiki Wizard
Wiki Wizard
Posts: 640
Joined: Sat Dec 04, 2021 11:01 pm

Re: ACES filmic tone mapping

Post by Old Murgh »

another_commander wrote: Mon Jun 20, 2022 10:12 pm
I would be interested to hear what you think and the best way to form an opinion is to take a look at it on your screens..
From looking at your examples above (and a brief run of the shaders on my Mac), my reaction is that while the ACES images certainly provide more information in the dark range, to my eyes, the tones in the shadows get a somewhat muddy character. The more dramatic, –slightly higher contrast, slightly less bright– Hejl/Burgess-Dawson is the one more pleasing to me, closer to how I would prefer to B/C-adjust the image. I suppose it is subjective how much of a sucker one is for tenebrism.

Testing them in the game gave the impression my distant sun OXP had given me a warmer system colour, and the textural effects of normal map details seemed to have visibly diminished, but of course I never feel I know when Macs aren't entirely invited to the party.. :?
I was young, I was naïve. [EliteWiki] Jonny Cuba made me do it!
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: ACES filmic tone mapping

Post by phkb »

Samples look great! Subtle, but noticeable. Two thumbs, way way up!
User avatar
Cholmondely
Archivist
Archivist
Posts: 5364
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: ACES filmic tone mapping

Post by Cholmondely »

I'm not sure that I can tell any difference on my computer. But if it makes a difference for others, that's more than good enough, no?



On a related point, I'm now noticing that there are "patches" or seams in space around the nebulae (I didn't with v.1.88). I've not tried with every single .oxp (Zygo Cinematic Sky & Nebulas, Submersible Nebulae & DarkSoul Nebulae) to see if some are better than others. Or maybe I've just turned up the brightness on my monitor too much...

One presumes that this is a corollary of the improvements in graphics. Is there an easy fix?

Reference: Guide to Ambience OXPs: Skies (light & nebulae)

For more on this see a_c_'s post with a fixed version of ZygoUgo here
Last edited by Cholmondely on Tue Jun 21, 2022 1:37 pm, edited 2 times in total.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
szaumix
Deadly
Deadly
Posts: 171
Joined: Sun Apr 24, 2022 4:23 am

Re: ACES filmic tone mapping

Post by szaumix »

Cholmondely wrote: Tue Jun 21, 2022 6:51 am
I'm not sure that I can tell any difference on my computer.
I thought that too at first. Try this:
1. Download all of the pictures and put them in the same folder somewhere.
2. Open an image viewer
3. "Scroll" back and forth between the two images to be compared
It's very subtle but the contrast/lighting effect should become evident that way.
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: ACES filmic tone mapping

Post by cbr »

Image
Image
Image
Image

Subtleness ( shader 1.25 1.25 )
User avatar
Cholmondely
Archivist
Archivist
Posts: 5364
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: ACES filmic tone mapping

Post by Cholmondely »

Nope. Don't see any difference there either!

Must be an AppleMac thing - or maybe that both Murgh and I are devotees of the CGC and are blinded by our faith!
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Nite Owl
---- E L I T E ----
---- E L I T E ----
Posts: 556
Joined: Sat Jan 20, 2018 4:08 pm
Location: In The Dark

Re: ACES filmic tone mapping

Post by Nite Owl »

Agree with the others, subtle changes yet noticeably better. Nice Find.
Humor is the second most subjective thing on the planet

Brevity is the soul of wit and vulgarity is wit's downfall

Good Night and Good Luck - Read You Soon
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: ACES filmic tone mapping

Post by another_commander »

ACES is now the new tone mapper in trunk. See here for details and Windows binary.
User avatar
tsoj
Deadly
Deadly
Posts: 199
Joined: Wed May 18, 2016 8:19 pm
Location: Berlin
Contact:

Re: ACES filmic tone mapping

Post by tsoj »

another_commander wrote: Sat Jun 25, 2022 9:41 am
ACES is now the new tone mapper in trunk. See here for details and Windows binary.
Somehow this doesn't compile anymore for me on Linux.

Code: Select all

/usr/bin/ld: ./obj.spk/oolite.obj/OOSkyDrawable.m.o: in function `_i_OOSkyQuadSet__initWithQuadsWithTexture_inArray_count_':
OOSkyDrawable.m:(.text+0x1b6b): undefined reference to `max'
Could it be that here it should be fmax instead of max?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: ACES filmic tone mapping

Post by another_commander »

Replace max with MAX and it should compile.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: ACES filmic tone mapping

Post by another_commander »

FYI, ACES may be the current standard in tone mapping, but no tone mapper is without its flaws. We have already transitioned to the actual "proper" ACES inmplementation in trunk (not just the approximation this thread started with) and this has some known issues with certain color tones despite looking wonderful overall. The most serious issue being that overexposed or bright blues often tend towards purple hues.

Thankfully there is a fix in the wild written by ACES experts. For those who might be interested, check out this link. This fix is now implemented in trunk and boy, does it improve some scenes with intense blue tones. I have exaggerated a bit the example below in order to showcase the issue and the fix. The planet shown has bright blue oceans and I've switched the sun color to blue for more ehm... blueness in the scene. Above is the ACES tone mapping without the fix, below is with the fix applied. The scene above shows intense blues taking an electric blue or even purplish tone after tone mapping, while below you can see the scene as it was meant to be. The issue is obviously apparent on the planet, but it is also visible on the Cobra. The fix takes care of other small-scale hue transitions too, but blue is (intentionally) the most obvious one. So I be;ieve this will be it with tone mapping for now - I think we've got the best possible solution at the moment and the ACES development will continue to be monitored in case further improvements that can be ported over take place.

Image

Image
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: ACES filmic tone mapping

Post by Cody »

another_commander wrote: Mon Jun 27, 2022 4:55 pm
This fix is now implemented in trunk...
Will this become a new nightly?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Post Reply