New sculpting tools #67518

Closed
opened 2019-07-23 15:07:22 +02:00 by Brecht Van Lommel · 16 comments

The sculpt branch has new tools for masking, filtering, transforming, etc. This task is about merging those tools to master, and issues to solve before that is possible.

Mesh Data Structures

The main issue right now is that they only work for regular meshes, not multires and dyntopo.

For dyntopo using BMesh, some abstraction can be added in the code mainly to access neighboring vertices, and storing temporary per-vertex data. This data can be stored in arrays in SculptSession, and BM_elem_index_get(v) can be used for indexing into the arrays. This data does not need to preserved when changing topology, so we can just remove then to avoid accessing invalid data.

For multires things are more complicated. What we propose to do here instead is to remove the multires memory optimization which avoids creating a full Mesh and keeps data in grids in sculpt mode. The real-world advantages of this are questionable in the current architecture anyway. Instead there would just be a Mesh and BMesh for the sculpting and drawing code to deal with, and data would be synced to/from grids when exiting/entering sculpt mode. This will hopefully lead to much simplified code, but we have to verify that performance and memory usage remains acceptable.

The sculpt branch has new tools for masking, filtering, transforming, etc. This task is about merging those tools to master, and issues to solve before that is possible. **Mesh Data Structures** The main issue right now is that they only work for regular meshes, not multires and dyntopo. For dyntopo using BMesh, some abstraction can be added in the code mainly to access neighboring vertices, and storing temporary per-vertex data. This data can be stored in arrays in `SculptSession`, and `BM_elem_index_get(v)` can be used for indexing into the arrays. This data does not need to preserved when changing topology, so we can just remove then to avoid accessing invalid data. For multires things are more complicated. What we propose to do here instead is to remove the multires memory optimization which avoids creating a full Mesh and keeps data in grids in sculpt mode. The real-world advantages of this are questionable in the current architecture anyway. Instead there would just be a Mesh and BMesh for the sculpting and drawing code to deal with, and data would be synced to/from grids when exiting/entering sculpt mode. This will hopefully lead to much simplified code, but we have to verify that performance and memory usage remains acceptable.
Author
Owner

Added subscriber: @brecht

Added subscriber: @brecht
Author
Owner

Added subscriber: @PabloDobarro

Added subscriber: @PabloDobarro
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke

Added subscriber: @ErickNyanduKabongo

Added subscriber: @ErickNyanduKabongo

This comment was removed by @ErickNyanduKabongo

*This comment was removed by @ErickNyanduKabongo*
Author
Owner

Rewriting multires is not related to this task, let's stay on topic here.

Rewriting multires is not related to this task, let's stay on topic here.
Member

I made the first version of the API and the mask by normal operator seems to be working fine with dyntopo. I'm going to port the mask expand operator and the smooth mesh filter. If those two work, I think it's safe to say that every tool in the sculpt branch is going to work.

I made the first version of the API and the mask by normal operator seems to be working fine with dyntopo. I'm going to port the mask expand operator and the smooth mesh filter. If those two work, I think it's safe to say that every tool in the sculpt branch is going to work.
Member

Everything seems to be working just fine. I will prepare the final patch to be reviewed as soon as possible. 2019-07-26 19-25-20.mp4.

Everything seems to be working just fine. I will prepare the final patch to be reviewed as soon as possible. [2019-07-26 19-25-20.mp4](https://archive.blender.org/developer/F7630145/2019-07-26_19-25-20.mp4).

Looking good :)

Looking good :)

Added subscriber: @ebarranco

Added subscriber: @ebarranco

Added subscriber: @TonatiuhdeSanJulian

Added subscriber: @TonatiuhdeSanJulian

Added subscriber: @JulianPerez

Added subscriber: @JulianPerez

Added subscriber: @DanieleViagi

Added subscriber: @DanieleViagi

Added subscriber: @SpectreFirst

Added subscriber: @SpectreFirst

Added subscriber: @CMC

Added subscriber: @CMC
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Pablo Dobarro self-assigned this 2019-11-26 18:55:45 +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
10 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#67518
No description provided.