Fix: Smear brush on sculpt mode is causing vertex color alpha to keep increasing #115292

Merged
Raul Fernandez Hernandez merged 1 commits from rifai.id/blender:sculpt-paint-on-transparent into main 2024-02-19 16:06:49 +01:00
Contributor

The smear brush on sculpt mode is causing vertex color alpha to keep increasing (see before video). I think the amount of alpha should decrease the further away it gets.
My solution is to remove the blending of accum with interp_color and eliminate the usage of interp_color altogether. This will correct the behavior, as seen in the after video below.
I provided a blend file for you to test.

Before After
The smear brush on sculpt mode is causing vertex color alpha to keep increasing (see `before` video). I think the amount of alpha should decrease the further away it gets. My solution is to remove the blending of `accum` with `interp_color` and eliminate the usage of `interp_color` altogether. This will correct the behavior, as seen in the `after` video below. I provided a [blend file ](/attachments/470b7c27-5707-4d8a-83ea-28a7423f7092) for you to test. | Before | After | | -------- | -------- | |<video src="/attachments/8f28899e-13f2-455f-ac42-dd1464330f3a" title="demo_before.mp4" controls></video>|<video src="/attachments/041389b7-350e-44e2-84cb-a41f26905880" title="demo_after.mp4" controls></video>|
Iliya Katushenock added this to the Sculpt, Paint & Texture project 2023-11-23 17:07:28 +01:00
Iliya Katushenock changed title from fix: Smear brush on sculpt mode is causing vertex color alpha to keep increasing. to Fix: Smear brush on sculpt mode is causing vertex color alpha to keep increasing 2023-11-23 17:07:36 +01:00

Hi, just for note, video examples haven't be uploaded.

Hi, just for note, video examples haven't be uploaded.
Author
Contributor

Oops, sorry. I just updated the links.

Oops, sorry. I just updated the links.
rifai.id force-pushed sculpt-paint-on-transparent from d0b8c4fb9f to 6d3c4a689d 2023-12-07 10:46:45 +01:00 Compare
Julien Kaspar requested review from Julien Kaspar 2024-02-19 12:16:45 +01:00
Julien Kaspar requested review from Raul Fernandez Hernandez 2024-02-19 12:16:49 +01:00
Julien Kaspar added the
Module
Sculpt, Paint & Texture
label 2024-02-19 12:17:06 +01:00
Julien Kaspar approved these changes 2024-02-19 12:19:08 +01:00
Julien Kaspar left a comment
Member

I tested this out and it behaves much better on all falloff shapes.
Thanks for the PR!

I tested this out and it behaves much better on all falloff shapes. Thanks for the PR!
Raul Fernandez Hernandez approved these changes 2024-02-19 16:06:13 +01:00
Raul Fernandez Hernandez merged commit 71261f5212 into main 2024-02-19 16:06:49 +01: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 Assignees
4 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#115292
No description provided.