Fix #112018: increase AgX LUT resolution #113253

Merged
Nathan Vegdahl merged 1 commits from nathanvegdahl/blender:agx_banding_fix into blender-v4.0-release 2023-10-06 10:12:33 +02:00
Member

AgX exhibited some banding-like artifacts that were due to being
approximated with a 3D LUT. This commit resolves that by increasing
the LUT resolution enough to mitigate the artifacts and make them
unnoticeable.

Additionally:

  • The previous LUTs were written in a space-inefficient way, using
    e.g. "0.000000" instead of "0". The new LUTs are written more
    efficiently, avoiding quite as dramatic a file size increase as
    usually accompanies 3D LUT resolution increases.
  • The previous LUTs included output values greater than 1.0, which was
    both incorrect for a tone mapper, and also pointless since Blender
    immediately clips them anyway. The new LUTs clip to 1.0. This also
    allows the more efficient writing to squeeze even more space savings
    out of the LUTs.
  • The previous inverse AgX LUT contained NaNs. Those have been
    replaced with 0.0 in the new inverse LUT.

Note that due to discrepancies between the LUTs previously provided
to Blender and the AgX scripts that were later published, the color
transform in these LUTs are slightly different. But they are close, and
equivalently good.

AgX exhibited some banding-like artifacts that were due to being approximated with a 3D LUT. This commit resolves that by increasing the LUT resolution enough to mitigate the artifacts and make them unnoticeable. Additionally: - The previous LUTs were written in a space-inefficient way, using e.g. "0.000000" instead of "0". The new LUTs are written more efficiently, avoiding quite as dramatic a file size increase as usually accompanies 3D LUT resolution increases. - The previous LUTs included output values greater than 1.0, which was both incorrect for a tone mapper, and also pointless since Blender immediately clips them anyway. The new LUTs clip to 1.0. This also allows the more efficient writing to squeeze even more space savings out of the LUTs. - The previous inverse AgX LUT contained NaNs. Those have been replaced with 0.0 in the new inverse LUT. Note that due to discrepancies between the LUTs previously provided to Blender and the AgX scripts that were later published, the color transform in these LUTs are slightly different. But they are close, and equivalently good.
Nathan Vegdahl added 1 commit 2023-10-04 19:29:15 +02:00
AgX exhibited some banding-like artifacts that were due to being
approximated with a 3D LUT.  This commit resolves that by increasing
the LUT resolution enough to mitigate the artifacts and make them
unnoticeable.

Additionally:
- The previous LUTs were written in a space-inefficient way, using
  e.g. "0.000000" instead of "0".  The new LUTs are written more
  efficiently, avoiding quite as dramatic a file size increase as
  usually accompanies 3D LUT resolution increases.
- The previous LUTs included output values greater than 1.0, which was
  both incorrect for a tone mapper, and also pointless since Blender
  immediately clips them anyway.  The new LUTs clip to 1.0.  This also
  allows the more efficient writing to squeeze even more space savings
  out of the LUTs.
- The previous inverse AgX LUT contained NaNs.  Those have been
  replaced with 0.0 in the new inverse LUT.
Nathan Vegdahl requested review from Sergey Sharybin 2023-10-04 19:30:05 +02:00
Nathan Vegdahl requested review from Brecht Van Lommel 2023-10-04 19:30:16 +02:00
Author
Member
Before After
lights_on_plane_before.jpg lights_on_plane_after.jpg
| Before | After | |----|----| | ![lights_on_plane_before.jpg](/attachments/8b6e6d4c-d8ab-47bf-95ee-532c9351e10a) | ![lights_on_plane_after.jpg](/attachments/2d0900de-47ef-40da-9a5e-fdba16f97f42) |
Sergey Sharybin approved these changes 2023-10-05 09:37:28 +02:00
Brecht Van Lommel approved these changes 2023-10-05 18:01:20 +02:00
Nathan Vegdahl merged commit e26d287520 into blender-v4.0-release 2023-10-06 10:12:33 +02:00
Nathan Vegdahl deleted branch agx_banding_fix 2023-10-06 10:12:38 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113253
No description provided.