UV Image Paint Bugs: Smear Tool Black Alpha and Radius Global Hotkey Broken #50541

Closed
opened 2017-01-27 18:22:46 +01:00 by Adam Janz · 16 comments

System Information
OS: Windows 8.1 64 bit
GPU: GTX 970

Blender Version
Broken: (2.78a Hash: e8299c8)
Worked: (issue has existed for awhile)

Short description of error

Hello, I thought I should report some bugs that have become quite prevalent now that I'm doing more texture painting in Blender.

  1. The first bug is with the Smear tool, which, when used in the UV Image Paint editor, results in solid black smearing on an image with an alpha channel IF any portion of the brush radius is touching the transparent alpha region when a stroke is made. (The black is the result of the base color of the image before 0 % alpha is selected. If your base color was white, then it will smear solid white in, etc.) This is illustrated in the attached photo: the bottom 3 strokes were made with the smear tool fully within the opaque pixels. The top 2 strokes were made with part of the brush overlapping into the alpha region, and the solid black result is visible.

Smear_Tool_Alpha_Bug.PNG

As you can see in the image below, smear strokes made from within the 3D viewport appear "correct", whether blending out into an alpha region or whether blending in from one. The 2 bottom strokes were made in the UV Image Paint Editor and you can see the difference.

Smear_Tool_Alpha_Bug2.PNG

However, something is still off with the way alpha is handled, even in the 3D viewport, as dark edging is clearly visible at the borders of the alpha. This resembles exactly what a premultiplied alpha image looks like when incorrectly set to straight, but it makes no difference switching between Straight or Premultiplied alpha in the image preferences within Blender.

Also, this incorrect darkened edge will be baked into the final texture if Blender is used for texture baking, however, if you export all your individual paint layers and composite in GIMP for example, the alpha will display correctly.

Dark_Edged_Alpha.PNG

  1. The final bug is with the UV Image Paint Editor not respecting the Global Hotkey setting for brush radius when I have the "F" key assigned to something else. I like to keep all transport controls at one hand, which is extremely useful for animation, hence I have Play/Pause = Spacebar; F = Step forward; D = Step backward; Q = Jump to start; E = Jump to end.

This all works perfectly fine in the 3D viewport even when Texture Painting, with the "F" key correctly adjusting brush size when the mouse focus is in the 3D viewport, and the "F" key correctly stepping forward 1 frame when the mouse focus is the Timeline. Unfortunately, the same cannot be said when the mouse focus is the UV image editor, resulting in the "F" key stepping playback forward rather than adjusting brush size.

It would be so fantastic to overcome these limitations, helping to make Texture Painting workflows in Blender even better. :-)

Thank you so much for your time in looking into this!

Sincerely,
Adam Janz

**System Information** OS: Windows 8.1 64 bit GPU: GTX 970 **Blender Version** Broken: (2.78a Hash: e8299c8) Worked: (issue has existed for awhile) **Short description of error** Hello, I thought I should report some bugs that have become quite prevalent now that I'm doing more texture painting in Blender. 1. The first bug is with the Smear tool, which, when used in the UV Image Paint editor, results in solid black smearing on an image with an alpha channel IF any portion of the brush radius is touching the transparent alpha region when a stroke is made. (The black is the result of the base color of the image before 0 % alpha is selected. If your base color was white, then it will smear solid white in, etc.) This is illustrated in the attached photo: the bottom 3 strokes were made with the smear tool fully within the opaque pixels. The top 2 strokes were made with part of the brush overlapping into the alpha region, and the solid black result is visible. ![Smear_Tool_Alpha_Bug.PNG](https://archive.blender.org/developer/F441035/Smear_Tool_Alpha_Bug.PNG) As you can see in the image below, smear strokes made from within the 3D viewport appear "correct", whether blending out into an alpha region or whether blending in from one. The 2 bottom strokes were made in the UV Image Paint Editor and you can see the difference. ![Smear_Tool_Alpha_Bug2.PNG](https://archive.blender.org/developer/F441059/Smear_Tool_Alpha_Bug2.PNG) However, something is still off with the way alpha is handled, even in the 3D viewport, as dark edging is clearly visible at the borders of the alpha. This resembles exactly what a premultiplied alpha image looks like when incorrectly set to straight, but it makes no difference switching between Straight or Premultiplied alpha in the image preferences within Blender. Also, this incorrect darkened edge will be baked into the final texture if Blender is used for texture baking, however, if you export all your individual paint layers and composite in GIMP for example, the alpha will display correctly. ![Dark_Edged_Alpha.PNG](https://archive.blender.org/developer/F441066/Dark_Edged_Alpha.PNG) 3. The final bug is with the UV Image Paint Editor not respecting the Global Hotkey setting for brush radius when I have the "F" key assigned to something else. I like to keep all transport controls at one hand, which is extremely useful for animation, hence I have Play/Pause = Spacebar; F = Step forward; D = Step backward; Q = Jump to start; E = Jump to end. This all works **perfectly fine in the 3D viewport** even when Texture Painting, with the "F" key correctly adjusting brush size when the mouse focus is in the 3D viewport, and the "F" key correctly stepping forward 1 frame when the mouse focus is the Timeline. Unfortunately, the same cannot be said when the mouse focus is the UV image editor, resulting in the "F" key stepping playback forward rather than adjusting brush size. It would be so fantastic to overcome these limitations, helping to make Texture Painting workflows in Blender even better. :-) Thank you so much for your time in looking into this! Sincerely, Adam Janz
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @AdamJanz

Added subscriber: @AdamJanz
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Please upload a simple test file that demonstrates this issue.

Please upload a simple test file that demonstrates this issue.
Author

Hi Aaron,

Thanks so much for your response. I've uploaded a test file you can use to see the issue, as well as a link to an accompanying video showing the problem in realtime.

Thanks for looking into this!

~Adam

SmearAlphaTEST.blend

Hi Aaron, Thanks so much for your response. I've uploaded a test file you can use to see the issue, as well [as a link to an accompanying video ](https://youtu.be/UCurad91aMI) showing the problem in realtime. Thanks for looking into this! ~Adam [SmearAlphaTEST.blend](https://archive.blender.org/developer/F444556/SmearAlphaTEST.blend)
Member

Thank you, I will look at it later.

Thank you, I will look at it later.
Author

Thanks guys! Don't forget to check the link to the video example. It shows pretty clearly how the different bugs react. My apologies for becoming braindead momentarily in the video when switching between bug subjects, LOL, that was my first-ever screen recording.

  • Adam
Thanks guys! Don't forget to check the link to the video example. It shows pretty clearly how the different bugs react. My apologies for becoming braindead momentarily in the video when switching between bug subjects, LOL, that was my first-ever screen recording. - Adam

Added subscribers: @ideasman42, @dfelinto

Added subscribers: @ideasman42, @dfelinto

Thanks for the file. It's not ideal to report multiple issues in the same report, but I can confirm the (first) bug.

@ideasman42 could you take a look at this? It's really easy to reproduce, just drag from outside the opaque area into the opaque area.

Thanks for the file. It's not ideal to report multiple issues in the same report, but I can confirm the (first) bug. @ideasman42 could you take a look at this? It's really easy to reproduce, just drag from outside the opaque area into the opaque area.
Author

You're welcome. Thanks for looking into this. I'll remember to break issues up next time.

You're welcome. Thanks for looking into this. I'll remember to break issues up next time.

Added subscriber: @brecht

Added subscriber: @brecht

The 2D paint smear issue was solved in 0d4fd7528f.

The F key behaving different in the 3D view is due to 9a7099f428. In all editors except Text and 3D View the Frames keymap takes precedence over others. We could changing the Frames keymap (and maybe others) to have lower precedence in all editors, but changing this for 2.79 still is too risky and might break unknown use cases.

The 2D paint smear issue was solved in 0d4fd7528f. The F key behaving different in the 3D view is due to 9a7099f428. In all editors except Text and 3D View the Frames keymap takes precedence over others. We could changing the Frames keymap (and maybe others) to have lower precedence in all editors, but changing this for 2.79 still is too risky and might break unknown use cases.
Author

Thanks so much, Brecht, for the update! That's great to hear the smear tool has been fixed. As far as the F key is concerned, I have created 2 different keymaps and switch between them depending on whether painting or animating (this is a pretty handy work-around for the present).

Thank you for all your excellent work in developing Blender!

  • Adam
Thanks so much, Brecht, for the update! That's great to hear the smear tool has been fixed. As far as the F key is concerned, I have created 2 different keymaps and switch between them depending on whether painting or animating (this is a pretty handy work-around for the present). Thank you for all your excellent work in developing Blender! - Adam

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Germano Cavalcante self-assigned this 2019-10-28 14:27:14 +01:00

Since the first bug has been fixed, I will close this report as resolved.
Other bugs must be reported separately.

Since the first bug has been fixed, I will close this report as resolved. Other bugs must be reported separately.
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
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#50541
No description provided.