Use Scene Spacing Distance by default #99609

Open
opened 2022-07-11 14:26:44 +02:00 by Julien Kaspar · 5 comments
Member

NOTE: This design is still being investigated and discussed.

Issue

The default for brushes in every mode has always been to use view based spacing for each stroke.
This wasn't always an issue since brushes used to work via a projected falloff.

But when using a spherical falloff on curved surfaces this can lead to inconsistent spacing artefacts.
Since more painting and sculpting modes are implementing brushes with a spherical falloff by default, it is a reasonable adjustment to make the spacing also scene based.

First Steps

Before changing any defaults we should investigate any remaining issues, downsides or bugs if this behaviour would be implemented by default for all brushes.
Once it is clear that this change would be an overall improvement, and how feature might need to change.

Fix remaining bugs and issues

Further issues from using Scene Spacing need to be investigated.
The currently known reports are:

  • #98111 (Sculpt mode: Draw Sharp brush artefacts when using Scene Spacing in stroke settings)
  • #99638 (Line stroke method not working with Scene spacing)
  • #99642 (Clay strips brush freeze when coming from outside the horizon of surface curvature)
  • #99644 (Draw Sharp brush stops on anchored during the stroke)

Proposal

Scene spacing currently accomplishes two distinct behaviours:

  1. The spacing is consistent in 3 dimensions
  2. The spacing is consistent in world space (especially when zooming in/out)

Instead of just making Scene Spacing Distance the default, we should change the "View" scene spacing to work 3 dimensionally for a better brush behaviour in general.
This could be accomplished by associating these two different behaviours with distinct settings:

  1. Setting the falloff to be Spherical or Projected = 3D or projected spacing distance
  2. Switching between View & Scene spacing distance = The spacing is a percentage of the relative brush size diameter or an absolute world size

The UI should then also reflect that change, by changing the spacing slider value:

  • View = Percentage
  • Scene = Distance in units

This updated View spacing then needs to be integrated in every mode for 3D painting/sculpting.

NOTE: This design is still being investigated and discussed. # Issue The default for brushes in every mode has always been to use view based spacing for each stroke. This wasn't always an issue since brushes used to work via a projected falloff. But when using a spherical falloff on curved surfaces this can lead to inconsistent spacing artefacts. Since more painting and sculpting modes are implementing brushes with a spherical falloff by default, it is a reasonable adjustment to make the spacing also scene based. # First Steps Before changing any defaults we should investigate any remaining issues, downsides or bugs if this behaviour would be implemented by default for all brushes. Once it is clear that this change would be an overall improvement, and how feature might need to change. ### Fix remaining bugs and issues Further issues from using Scene Spacing need to be investigated. The currently known reports are: - #98111 (Sculpt mode: Draw Sharp brush artefacts when using Scene Spacing in stroke settings) - #99638 (Line stroke method not working with Scene spacing) - #99642 (Clay strips brush freeze when coming from outside the horizon of surface curvature) - #99644 (Draw Sharp brush stops on anchored during the stroke) # Proposal Scene spacing currently accomplishes two distinct behaviours: 1. The spacing is consistent in 3 dimensions 2. The spacing is consistent in world space (especially when zooming in/out) Instead of just making Scene Spacing Distance the default, we should change the "View" scene spacing to work 3 dimensionally for a better brush behaviour in general. This could be accomplished by associating these two different behaviours with distinct settings: 1. Setting the falloff to be Spherical or Projected = 3D or projected spacing distance 2. Switching between View & Scene spacing distance = The spacing is a percentage of the relative brush size diameter or an absolute world size The UI should then also reflect that change, by changing the spacing slider value: - View = Percentage - Scene = Distance in units This updated View spacing then needs to be integrated in every mode for 3D painting/sculpting.
Author
Member

Added subscribers: @JulienKaspar, @JosephEagar

Added subscribers: @JulienKaspar, @JosephEagar
Author
Member

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

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

From the recent module meeting:

A possible improvement to investigate further.
Julien will test the behaviour to try to find more issues.
Joe wants to look into one fix: Increase the minimum allowed spacing of stroke points with scene spacing. This could already improve performance.

From the recent module meeting: > A possible improvement to investigate further. >Julien will test the behaviour to try to find more issues. > Joe wants to look into one fix: Increase the minimum allowed spacing of stroke points with scene spacing. This could already improve performance.
Author
Member

Another big issue with scene spacing distance that would be worth investigating:
Depending on the world space dimensions of the object the brushes will behave very differently, because the brushes take absolute world space for the distance.
So brushes might work on a regular scale of 1 blender unit, but will use completely different spacing when sculpting micro details on a finger or broad shapes of a Kaiju ...

We might want to look into a solution. Because one important feature of scene spacing is not that it takes the absolute world scale into account, but that the spacing is working in 3 dimensions instead of being projected from the view.

That is something different from using Scene spacing to keep the spacing consistent when zooming in & out.

EDIT: I updated the description based on this.

Another big issue with scene spacing distance that would be worth investigating: Depending on the world space dimensions of the object the brushes will behave very differently, because the brushes take absolute world space for the distance. So brushes might work on a regular scale of 1 blender unit, but will use completely different spacing when sculpting micro details on a finger or broad shapes of a Kaiju ... We might want to look into a solution. Because one important feature of scene spacing is not that it takes the absolute world scale into account, but that the spacing is working in 3 dimensions instead of being projected from the view. That is something different from using Scene spacing to keep the spacing consistent when zooming in & out. EDIT: I updated the description based on this.
Author
Member

To fix the issues properly and improve stroke behaviour @JosephEagar created #99784

To fix the issues properly and improve stroke behaviour @JosephEagar created #99784
Julien Kaspar added this to the Sculpt, Paint & Texture project 2023-02-08 10:20:48 +01:00
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:11:16 +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
1 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#99609
No description provided.