Round end-caps on Freestyle lines not working properly #88015

Closed
opened 2021-05-04 04:25:46 +02:00 by Tom Hartley · 12 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Intel(R) HD Graphics 620 Intel 4.5.0 - Build 27.20.100.8682

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: 02948a2cab
Worked: (none)

Short description of error
ROUND end-caps of Freestyle lines are currently not working properly. Please see attached images.

(Tested on the 4th of May 2021 in Blender 2.92 and 3.0 Alpha.)


[Screenshots of this bug exposed two more bugs, submitted separately:


Exact steps for others to reproduce the error
Open attached .blend file and press F12 ('Render')

BlenderFreestyleBug_Round_End-caps-02.png

BlenderFreestyleBug_Round_End-caps-01.png

BUG_Freestyle_ROUND_Endcaps_01.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Intel(R) HD Graphics 620 Intel 4.5.0 - Build 27.20.100.8682 **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `02948a2cab` Worked: (none) **Short description of error** ROUND end-caps of Freestyle lines are currently not working properly. Please see attached images. (Tested on the 4th of May 2021 in Blender 2.92 and 3.0 Alpha.) **** [Screenshots of this bug exposed two more bugs, submitted separately: - Freestyle Lines Stopping Short of Vertices & Partially Failing https://developer.blender.org/T88014 - Erroneous gap between object and its shadow https://developer.blender.org/T88013 ] **** **Exact steps for others to reproduce the error** Open attached .blend file and press F12 ('Render') ![BlenderFreestyleBug_Round_End-caps-02.png](https://archive.blender.org/developer/F10052215/BlenderFreestyleBug_Round_End-caps-02.png) ![BlenderFreestyleBug_Round_End-caps-01.png](https://archive.blender.org/developer/F10052216/BlenderFreestyleBug_Round_End-caps-01.png) [BUG_Freestyle_ROUND_Endcaps_01.blend](https://archive.blender.org/developer/F10052218/BUG_Freestyle_ROUND_Endcaps_01.blend)
Author

Added subscriber: @Quix

Added subscriber: @Quix
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Not sure, I can see a clear difference:

Butt
image.png
Round
image.png

Are you not seeing this difference?

Not sure, I can see a clear difference: Butt ![image.png](https://archive.blender.org/developer/F10056612/image.png) Round ![image.png](https://archive.blender.org/developer/F10056614/image.png) Are you not seeing this difference?
Author

Would someone please fix this ASAP.

(The current negligible, microscopic difference is obviously insufficient and not what users want or expect.
The inset in the bottom-left corner of the following image illustrates how 'butt', 'round' and 'square' endcaps should appear: https://developer.blender.org/F10052216 .)

In writing, that is:
Where 'e' is the line's endpoint and 'd' is the thickness of the line at e,

BUTT: The line should stop abruptly at e.
ROUND: A disc of diameter d should be printed with e as its centre.
SQUARE: A square of side-length d should be printed with e as its centre.

If someone would be kind enough to fix this, that would be much appreciated.
Thanks in advance.

Would someone please fix this ASAP. (The current negligible, microscopic difference is obviously insufficient and not what users want or expect. The inset in the bottom-left corner of the following image illustrates how 'butt', 'round' and 'square' endcaps should appear: https://developer.blender.org/F10052216 .) In writing, that is: Where 'e' is the line's endpoint and 'd' is the thickness of the line at e, BUTT: The line should stop abruptly at e. ROUND: A disc of diameter d should be printed with e as its centre. SQUARE: A square of side-length d should be printed with e as its centre. If someone would be kind enough to fix this, that would be much appreciated. Thanks in advance.
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

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

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

OK, also looking at the documentation it becomes apparent that this is not a "half circle centered at the end point of the line" (but instead more of a squashed version of it)
https://docs.blender.org/manual/en/dev/render/freestyle/parameter_editor/line_style/strokes.html#caps

image.png

So will confirm, culprit is RoundCapShader(StrokeShader) for anyone wanting to have a look at this.

OK, also looking at the documentation it becomes apparent that this is not a "half circle centered at the end point of the line" (but instead more of a squashed version of it) https://docs.blender.org/manual/en/dev/render/freestyle/parameter_editor/line_style/strokes.html#caps ![image.png](https://archive.blender.org/developer/F10133778/image.png) So will confirm, culprit is `RoundCapShader(StrokeShader)` for anyone wanting to have a look at this.

This issue was referenced by b529a84ec3

This issue was referenced by b529a84ec3864f83a00dd75e884598786134e563

This issue was referenced by 7b6c77aa84

This issue was referenced by 7b6c77aa84803e4268406e394aa4556ebf7980b0
Member

With patch:

image.png

With patch: ![image.png](https://archive.blender.org/developer/F10133842/image.png)
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Philipp Oeser self-assigned this 2021-07-12 22:20:22 +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
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#88015
No description provided.