Paint Mode: Clone Brush #98601

Open
opened 2022-06-04 22:23:28 +02:00 by Julien Kaspar · 2 comments
Member

Goal

There are two very different implementations of the clone brush in Blender. Each with their own disadvantages.

In the image editor it is essentially just a brush that can use a stencil texture (Including the texture you're painting).:

  • Cloning is with the purpose of cloning from the view, with the same zoom & rotation. This is hard to do with a stencil.
  • You need to choose a texture first, which is redundant since you would want yo use the same one you are painting.
  • The stencil is very visually obstructive.

The texture paint mode which uses the 3D cursor position to sample the colors to clone:

  • The 3D cursor is fixed in place, which makes repeated strokes very difficult. The needed default behaviour is to have the cloning target follow the brush cursor.
  • The 3D cursor is a point in 3D space. Ideally the cloning target should be screen based.
  • The cloning is also being tiled in an unpredictable way

Proposal

There are established standards that we can follow for a more intuitive behaviour of the clone brush.

Basic Behaviour

We should follow the design of Krita for the new Clone brush. There you have the main brush cursor and a clone target cursor:

  • The clone target can be set anywhere on the screen and stay there until the the next brush stroke.
  • For each following brush stroke the clone target follows the movement of the brush and ends on a new screen location.
  • After the first stroke the clone target will also follow the brush movement even without doing a stroke.
  • Once a new clone target is set on the screen it will stick to that position again until the next stroke.

Picking a target

Picking a clone target should not be tied to the 3D cursor and related shortcuts. A more intuitive and standard approach is to use the shortcut S for color picking.
An eyedropper button should then also be added to the brush settings to use instead of the shortcut.

It should also be possible to set a fixed clone target that won't move on repeated strokes.
By default that is the less desired behaviour but it can be useful when cloning a specific spot multiple times.
While this can be a setting in the brush, It can also be included via holding Ctrl while holding S to set the target.

clone_brush_mockup.png

Painting in 3D

It's important that the colors are always picked from the screen view and painted via the view plane.
But the brush itself should be able to have a spherical falloff. Projection painting should not be strictly required.

It could also be very intuitive to pick a clone target in 3D space instead of a fixed point on the screen.
This would then allow to target a certain surface and still rotate the viewport to get the correct angle before painting.
This needs to be tested though which approach is more intuitive. Supporting both could is also an option.

# Goal There are two very different implementations of the clone brush in Blender. Each with their own disadvantages. In the image editor it is essentially just a brush that can use a stencil texture (Including the texture you're painting).: - Cloning is with the purpose of cloning from the view, with the same zoom & rotation. This is hard to do with a stencil. - You need to choose a texture first, which is redundant since you would want yo use the same one you are painting. - The stencil is very visually obstructive. The texture paint mode which uses the 3D cursor position to sample the colors to clone: - The 3D cursor is fixed in place, which makes repeated strokes very difficult. The needed default behaviour is to have the cloning target follow the brush cursor. - The 3D cursor is a point in 3D space. Ideally the cloning target should be screen based. - The cloning is also being tiled in an unpredictable way # Proposal There are established standards that we can follow for a more intuitive behaviour of the clone brush. ### Basic Behaviour We should follow the design of Krita for the new Clone brush. There you have the main brush cursor and a clone target cursor: - The clone target can be set anywhere on the screen and stay there until the the next brush stroke. - For each following brush stroke the clone target follows the movement of the brush and ends on a new screen location. - After the first stroke the clone target will also follow the brush movement even without doing a stroke. - Once a new clone target is set on the screen it will stick to that position again until the next stroke. ### Picking a target Picking a clone target should not be tied to the 3D cursor and related shortcuts. A more intuitive and standard approach is to use the shortcut `S` for color picking. An eyedropper button should then also be added to the brush settings to use instead of the shortcut. It should also be possible to set a fixed clone target that won't move on repeated strokes. By default that is the less desired behaviour but it can be useful when cloning a specific spot multiple times. While this can be a setting in the brush, It can also be included via holding `Ctrl` while holding `S` to set the target. ![clone_brush_mockup.png](https://archive.blender.org/developer/F13132876/clone_brush_mockup.png) ### Painting in 3D It's important that the colors are always picked from the screen view and painted via the view plane. But the brush itself should be able to have a spherical falloff. Projection painting should not be strictly required. It could also be very intuitive to pick a clone target in 3D space instead of a fixed point on the screen. This would then allow to target a certain surface and still rotate the viewport to get the correct angle before painting. This needs to be tested though which approach is more intuitive. Supporting both could is also an option.
Author
Member
Added subscribers: @JulienKaspar, @Jeroen-Bakker, @JosephEagar

Added subscriber: @Sergi-Alberca-Santamaria

Added subscriber: @Sergi-Alberca-Santamaria
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:18 +01:00
Iliya Katushenock removed the
Status
Needs Triage
label 2023-08-24 17:38:07 +02: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
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#98601
No description provided.