Incorrect twist in bevel/extrusion using curve tangent mode #89828
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#89828
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system:
Graphics card:
Blender Version
Broken: present in 2.83.3, 2.91.0, and 3.0.0 alpha
Worked: ?
Short description of error
Both open and closed curves exhibit a "sausage effect" when a bevel is applied. This is not visible when the curve is closed and 'ResolutionU' is below 4. The issue is somehow attenuated by applying large amounts of smoothing (twist_smooth).
Below is a flat and symmetric curve showing this issue.
blender_sausage_bug.mp4
Exact steps for others to reproduce the error
Delete default cube. Create a Bèzier Circle. Enter Edit Mode, select all vertices, subdivide once.
In Object Data Properties, select Shape->Twist Method-> Tangent, and Geometry->Bevel->Depth: 0.2.
Toggle the Active Spline->Cyclic->U, and change the Active Spline->Resolution U between 4-5.
Your smooth symmetric curve will turn into sausages!
The effect is slightly different depending on the type of handles.
sausage_bug.blend
Added subscriber: @Ghaspias
Added subscriber: @PratikPB2123
Added subscriber: @HooglyBoogly
Thanks for the report. However, if this isn't a regression (which it doesn't seem it is, I don't think it's necessarily a bug. The different twist algorithms each have strengths and weaknesses, and the tangent method will have these inflection points. That's why the smooth input was added originally I think.
I'm not sure about that, but again, I would personally only consider this a bug if it was a regression.
Thanks for the feedback, @HooglyBoogly.
As a user, I see it as a bug. It is extremely undesirable to have the geometry change drastically by just changing the level of interpolation. That is why code to (supposedly) prevent it was included (function bevel_list_flip_tangents in curve.c). The smoothing doesn't fix it, it just maskerades it to some extent. Anyway, I think I have a fix for this, which I am currently testing. It does introduce some other changes in the behaviour, though, besides fixing (most of) the sharp twists.
I am convinced however that this has other, deeper, root causes, but it has been very difficult to follow the code, as I couldn't find a description of the intended behaviour or algorithms.
I submitted a patch (D11984) that fixes the issue presented here. It also addresses an asymmetry even in the absence of twists, and some issues with colinear edges.
I am aware that the curve handling is being re-worked in a new code base, so this may be useful only as some pitfalls to avoid in the new implementation.
I think the new behaviour with this patch is much more reasonable (perfectly symmetric about the x-axis and without unexpected twists):
blender_fix_T89828.mp4
For comparison, below is the screenshot from the same file as in the original report:
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
@HooglyBoogly : since we now have a patch for this, could you classify this report?
(dont think it would be reasonable to not consider this contribution -- thx @Ghaspias btw!)