Grease Pencil: Better render Anti-Aliasing #85619

Open
opened 2021-02-14 01:46:17 +01:00 by Clément Foucault · 10 comments

Motivations:

Thin lines are correctly rendered using grease pencil with the currently implemented post process Anti-Aliasing. This is done by making sure the line width is not less than 1.3 and by modulating its opacity.
However, there is cases where this is not enough. For instance really dense drawings with small lines with little to no curvature still tends to flicker a lot.
Another case is when the gpencil strokes intersects the scene geometry. This makes the line less thick to the post process which makes it too small.

Proposed solution:

We propose to implement a Temporal AntiAliasing solution. It is robust and will match Cycles & EEVEE's film filtering if using the same filtering function. This only adds one temporary buffer (low VRAM usage compared to rendering at higher resolution) and is completely self contained (works with transparency and don't interfere with other features).

I propose to only implement this for final rendering since it might introduce flickering that might be annoying while drawing.

However this wouldn't solve the issue of gpencil strokes intersecting geometry.
For this I propose to erode or reproject the render's depth to match the render sample of the new AA scheme. This should fix the second problem completely.

Technical details:

  • Implementation just need to be ported from Workbench which has a lighter form of TAA than EEVEE. Also D10414 can be of great help to reduce render/convergence time.
  • Depth buffer modification can be implemented after new AA is in.
## Motivations: Thin lines are correctly rendered using grease pencil with the currently implemented post process Anti-Aliasing. This is done by making sure the line width is not less than 1.3 and by modulating its opacity. However, there is cases where this is not enough. For instance really dense drawings with small lines with little to no curvature still tends to flicker a lot. Another case is when the gpencil strokes intersects the scene geometry. This makes the line less thick to the post process which makes it too small. ## Proposed solution: We propose to implement a Temporal AntiAliasing solution. It is robust and will match Cycles & EEVEE's film filtering if using the same filtering function. This only adds one temporary buffer (low VRAM usage compared to rendering at higher resolution) and is completely self contained (works with transparency and don't interfere with other features). I propose to only implement this for final rendering since it might introduce flickering that might be annoying while drawing. However this wouldn't solve the issue of gpencil strokes intersecting geometry. For this I propose to erode or reproject the render's depth to match the render sample of the new AA scheme. This should fix the second problem completely. ## Technical details: - Implementation just need to be ported from Workbench which has a lighter form of TAA than EEVEE. Also [D10414](https://archive.blender.org/developer/D10414) can be of great help to reduce render/convergence time. - Depth buffer modification can be implemented after new AA is in.
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member

Added subscriber: @fclem

Added subscriber: @fclem

#85808 was marked as duplicate of this issue

#85808 was marked as duplicate of this issue
Clément Foucault changed title from Better Grease Pencil Render Anti-Aliasing to Grease Pencil; Better render Anti-Aliasing 2021-02-14 01:54:41 +01:00
Author
Member

Added subscribers: @ZedDB, @Jeroen-Bakker, @antoniov

Added subscribers: @ZedDB, @Jeroen-Bakker, @antoniov

Added subscriber: @GoofyTheHeavenkeeper

Added subscriber: @GoofyTheHeavenkeeper

I don't really get how to fix this

I don't really get how to fix this
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Is this Design or To Do?

Is this `Design` or `To Do`?
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor

Added subscriber: @olliebarbs

Added subscriber: @olliebarbs
Philipp Oeser removed the
Interest
Grease Pencil
label 2023-02-09 15:19:42 +01:00
Philipp Oeser changed title from Grease Pencil; Better render Anti-Aliasing to Grease Pencil: Better render Anti-Aliasing 2023-05-10 10:29:38 +02:00
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
5 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#85619
No description provided.