Brush Falloff normalized on many brushes #116747

Open
opened 2024-01-03 15:21:34 +01:00 by Julien Kaspar · 3 comments
Member

System Information
Operating system: Linux-6.6.7-gentoo-x86_64-AMD_Ryzen_Threadripper_1950X_16-Core_Processor-with-glibc2.37 64 Bits, X11 UI
Graphics card: AMD Radeon RX 7900 XT (radeonsi, navi31, LLVM 16.0.6, DRM 3.54, 6.6.7-gentoo) AMD 4.6 (Core Profile) Mesa 23.3.1

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2024-01-03 00:09, hash: 29b1658124b8
Worked: (newest version of Blender that worked as expected)

Short description of error
When reducing the value of the highest point in the falloff curve of the brush settings, some brushes will reduce the maximum Strength as a result.
(Grab, Snake Hook, Clay Strips, Layer, Paint)

But there are many brushes seem to instead normalize the curve back to a 0-1 range, making it impossible to fine tweak the brush strength.
(Draw, Draw Sharp, Inflate, Blob, Pinch)

image

I didn't test all sculpt mode brushes for this yet.

Exact steps for others to reproduce the error

  • In sculpt mode, use the Draw brush
  • Set the Strength to 1
  • Set the Falloff Curve to "Custom" and use the Linear preset
  • Test the brush with different vertical values for the highest point in the falloff curve
**System Information** Operating system: Linux-6.6.7-gentoo-x86_64-AMD_Ryzen_Threadripper_1950X_16-Core_Processor-with-glibc2.37 64 Bits, X11 UI Graphics card: AMD Radeon RX 7900 XT (radeonsi, navi31, LLVM 16.0.6, DRM 3.54, 6.6.7-gentoo) AMD 4.6 (Core Profile) Mesa 23.3.1 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2024-01-03 00:09, hash: `29b1658124b8` Worked: (newest version of Blender that worked as expected) **Short description of error** When reducing the value of the highest point in the falloff curve of the brush settings, some brushes will reduce the maximum Strength as a result. (Grab, Snake Hook, Clay Strips, Layer, Paint) But there are many brushes seem to instead normalize the curve back to a 0-1 range, making it impossible to fine tweak the brush strength. (Draw, Draw Sharp, Inflate, Blob, Pinch) ![image](/attachments/2fe48974-1321-4633-8ed2-8caf99955b77) I didn't test all sculpt mode brushes for this yet. **Exact steps for others to reproduce the error** - In sculpt mode, use the Draw brush - Set the Strength to 1 - Set the Falloff Curve to "Custom" and use the Linear preset - Test the brush with different vertical values for the highest point in the falloff curve
Julien Kaspar added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-01-03 15:21:35 +01:00
Richard Antalik added
Module
Sculpt, Paint & Texture
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-01-03 21:19:49 +01:00
Member

Starting to take a look at this.

Starting to take a look at this.
Member

I may have to let someone else more experienced with this area of the code take over; I've hit a wall with my investigation into the issue and can't seem to find any particular leads. I've checked the sculpt_brush_types.cc file and don't see any major differences between brushes that see this issue and ones that don't.

Ultimately, every brush from sculpt_brush_types.cc ends up calling SCULPT_brush_strength_factor in sculpt.cc which evaluates the curve with BKE_brush_curve_strength inside colortools.cc.

To add onto Julien's comments of the bug, the only values that seem to apply when modifying the curve are either 1 or 0. If the falloff curve is at a non-0 value on the leftmost point it applies the full strength, only if it's at y=0 does it seem to be factored into the brush stroke.

I may have to let someone else more experienced with this area of the code take over; I've hit a wall with my investigation into the issue and can't seem to find any particular leads. I've checked the `sculpt_brush_types.cc` file and don't see any major differences between brushes that see this issue and ones that don't. Ultimately, every brush from `sculpt_brush_types.cc` ends up calling `SCULPT_brush_strength_factor` in `sculpt.cc` which evaluates the curve with `BKE_brush_curve_strength` inside `colortools.cc`. To add onto Julien's comments of the bug, the only values that seem to apply when modifying the curve are either 1 or 0. If the falloff curve is at a non-0 value on the leftmost point it applies the full strength, only if it's at y=0 does it seem to be factored into the brush stroke.
Member

If it helps in further debugging, I can also repro this behavior on the current 3.6 LTS release (3.6.8, f6ae60f3ee)

If it helps in further debugging, I can also repro this behavior on the current 3.6 LTS release (3.6.8, f6ae60f3eeda)
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#116747
No description provided.