ID channel AntiAliasing edge artefacts #46751

Closed
opened 2015-11-12 20:15:40 +01:00 by Anna Celarek · 7 comments

System Information
Windows 10, GTX 950M

Blender Version
Blender 2.76 3bc5399

Short description of error
AntiAliasing option on ID channel causes gap between different ID areas.
The AntiAliasing is not "symmetrical" on the both sides of the border, it eats into the ID area instead of "expanding" some grey value pixels towards the outside.

Exact steps for others to reproduce the error
See the file.
Therea are 2 different material IDs on the cube.
I assign 2 different colors based on ID. The AntiAliasing option causes a white line (from the background color) to appear on the border between the different IDs.

ID_AA.jpg
ID_AA.blend

**System Information** Windows 10, GTX 950M **Blender Version** Blender 2.76 3bc5399 **Short description of error** AntiAliasing option on ID channel causes gap between different ID areas. The AntiAliasing is not "symmetrical" on the both sides of the border, it eats into the ID area instead of "expanding" some grey value pixels towards the outside. **Exact steps for others to reproduce the error** See the file. Therea are 2 different material IDs on the cube. I assign 2 different colors based on ID. The AntiAliasing option causes a white line (from the background color) to appear on the border between the different IDs. ![ID_AA.jpg](https://archive.blender.org/developer/F254191/ID_AA.jpg) [ID_AA.blend](https://archive.blender.org/developer/F254193/ID_AA.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @AnnaCelarek

Added subscriber: @AnnaCelarek

Added subscriber: @Sergey

Added subscriber: @Sergey

I don't really see a way to merge images with antialiased mask back together to the same exact combined image, there'll be some extent of "blur" over the edges anyway. However there's a proper point raised that the antialias option is only working in a single direction. Also, adding AA-ed ID masks should in theory give constant 1.0 across full frame i think.

Here's a patch which partially solves the issue D1617. At least it makes edges to be symmetrically darkened and lighetened, but as said even then you can't merge combined image back because of the reason described above.

I don't really see a way to merge images with antialiased mask back together to the same exact combined image, there'll be some extent of "blur" over the edges anyway. However there's a proper point raised that the antialias option is only working in a single direction. Also, adding AA-ed ID masks should in theory give constant 1.0 across full frame i think. Here's a patch which partially solves the issue [D1617](https://archive.blender.org/developer/D1617). At least it makes edges to be symmetrically darkened and lighetened, but as said even then you can't merge combined image back because of the reason described above.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sergey Sharybin self-assigned this 2015-11-25 17:20:57 +01:00

Committed D1617 now. This is perhaps as good as we can make AA now. From quick tests masks are now giving constant 1 when adding together, so they're totally symmetrical now. But as was explained above -- merging combined image back from such masks is more tricky and not rea;;y sure if we can really do this.

So thanks for the report, but closing it now!

Committed [D1617](https://archive.blender.org/developer/D1617) now. This is perhaps as good as we can make AA now. From quick tests masks are now giving constant 1 when adding together, so they're totally symmetrical now. But as was explained above -- merging combined image back from such masks is more tricky and not rea;;y sure if we can really do this. So thanks for the report, but closing it now!
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
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
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
2 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#46751
No description provided.