Weight paint brush: front faces only not working. #75518

Open
opened 2020-04-08 09:54:51 +02:00 by Vyacheslav Kobozev · 13 comments

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.59

Blender Version
Broken: version: 2.83 (sub 11), branch: master, commit date: 2020-04-01 17:35, hash: a9963669f9
Also 2.82a broken
disabling and enabling «Front faces only» do nothing. Brush still paint backfaces.

2020-04-08_10-48-06.mp4

**System Information** Operating system: Windows-7-6.1.7601-SP1 64 Bits Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.59 **Blender Version** Broken: version: 2.83 (sub 11), branch: master, commit date: 2020-04-01 17:35, hash: `a9963669f9` Also 2.82a broken disabling and enabling «Front faces only» do nothing. Brush still paint backfaces. [2020-04-08_10-48-06.mp4](https://archive.blender.org/developer/F8456350/2020-04-08_10-48-06.mp4)

Added subscriber: @Vyach

Added subscriber: @Vyach
Vyacheslav Kobozev changed title from Weight paint brush: front facs only not working. to Weight paint brush: front faces only not working. 2020-04-08 09:55:11 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Confirmed, checking...

Confirmed, checking...
Philipp Oeser self-assigned this 2020-04-08 12:21:39 +02:00
Member

Note this works with projected falloff shape (but spherical falloff shape is the default -- will check for a possible reason why this 'fails' with spherical falloff)
#75518.png

Note this works with projected falloff shape (but spherical falloff shape is the default -- will check for a possible reason why this 'fails' with spherical falloff) ![#75518.png](https://archive.blender.org/developer/F8456499/T75518.png)
Philipp Oeser removed their assignment 2020-04-08 15:25:59 +02:00
Member

Added subscribers: @PabloDobarro, @ideasman42

Added subscribers: @PabloDobarro, @ideasman42
Member

This is something I dont fully understand tbh.
This also seems to be inconsistent between sculpt mode and vertexpaint / weightpaint.

Sculptmode seems to always use the StrokeCache viewnormal [even in Sphere falloff shape], see SCULPT_brush_strength_factor() / frontface()
Weightpaint / Vertexpaint either take the StrokeCache viewnormal [when in Projected falloff shape, but use the StrokeCache sculpt_normal_symm], see SCULPT_brush_frontface_normal_from_falloff_shape

So whenever you use spherical falloff together with FrontFace options (Front Faces Only / Front-face Falloff) in vertexpaint/weightpaint these will look like not working and still wrap nicely around your model or allow to paint on backfaces.
So whenever you use spherical falloff together with FrontFace options (Front Faces Only / Front-face Falloff) in sculptmode these will use the viewnormal [not sure if this has unexpected consequences somewhere?]

Imho (and also looking at the tooltips: Front Faces Only: "...that face the viewer" / Front-face Falloff "...face the front" [well, what is the front here?]), using these options should always use the viewnormal.
Or, using Spherical falloff should disable the FrontFace options?

relevant commits:
b2a10fa615
d8509b349d
6c43490616
8ef757df3

Not really sure what to do with this report (how to classify)

@ideasman42 , @PabloDobarro : opinions?

This is something I dont fully understand tbh. This also seems to be inconsistent between sculpt mode and vertexpaint / weightpaint. Sculptmode seems to always use the `StrokeCache` viewnormal [even in `Sphere` falloff shape], see `SCULPT_brush_strength_factor()` / `frontface()` Weightpaint / Vertexpaint either take the `StrokeCache` viewnormal [when in `Projected` falloff shape, but use the `StrokeCache` sculpt_normal_symm], see `SCULPT_brush_frontface_normal_from_falloff_shape` So whenever you use spherical falloff together with FrontFace options (`Front Faces Only` / `Front-face Falloff`) in **vertexpaint/weightpaint** these will look like not working and still wrap nicely around your model or allow to paint on backfaces. So whenever you use spherical falloff together with FrontFace options (`Front Faces Only` / `Front-face Falloff`) in **sculptmode** these will use the viewnormal [not sure if this has unexpected consequences somewhere?] Imho (and also looking at the tooltips: `Front Faces Only`: "...that face the viewer" / `Front-face Falloff` "...face the front" [well, what is the front here?]), using these options should always use the viewnormal. Or, using Spherical falloff should disable the FrontFace options? relevant commits: b2a10fa615 d8509b349d 6c43490616 8ef757df3 Not really sure what to do with this report (how to classify) @ideasman42 , @PabloDobarro : opinions?

@lichtwerk
For Sculpt «front faces» means «not backfaces». And all over the Blender the same: backface vs frontface.
This why users expect to exclude backfaces, when they turn on this setting.

If «front face» will mean «faces in front of others» (z-index), there should be another aditional name, like «cut/ignore backfaces»

Also backface culling in workbench do not lock backfaces for weight painting.
I think, it should. Otherwise it is bad design to allow paint something, that you don`t see

2020-04-09_14-00-46.mp4

@lichtwerk For Sculpt «front faces» means «not backfaces». And all over the Blender the same: backface vs frontface. This why users expect to exclude backfaces, when they turn on this setting. If «front face» will mean «faces in front of others» (z-index), there should be another aditional name, like «cut/ignore backfaces» Also backface culling in workbench do not lock backfaces for weight painting. I think, it should. Otherwise it is bad design to allow paint something, that you don`t see [2020-04-09_14-00-46.mp4](https://archive.blender.org/developer/F8459553/2020-04-09_14-00-46.mp4)
Philipp Oeser self-assigned this 2020-04-14 15:12:22 +02:00
Member

Will get back to this shortly... Marking as Known Issue for now [since code kind of works as expected here -- already have green light though to change it to always use the view normal for vertex/weight painting]

Will get back to this shortly... Marking as Known Issue for now [since code kind of works as expected here -- already have green light though to change it to always use the view normal for vertex/weight painting]

@lichtwerk okay, thanks!

@lichtwerk okay, thanks!

Poke. Sadly for weight paint it works like «any visible face» but for sculpt brushes it works like «for faces with similar normals»

Guys, can you swap em? :-)

Poke. Sadly for weight paint it works like «any visible face» but for sculpt brushes it works like «for faces with similar normals» Guys, can you swap em? :-)

Added subscriber: @Jern

Added subscriber: @Jern
Philipp Oeser removed their assignment 2022-01-18 21:20:22 +01:00
Member

Will have to concentrate on triaging for a while (and step down).

Will have to concentrate on triaging for a while (and step down).
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:12:34 +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 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#75518
No description provided.