Parenting breaks extract operations in sculpt mode #89603

Open
opened 2021-07-02 15:50:06 +02:00 by Julien Kaspar · 13 comments
Member

System Information
Operating system: Linux-5.4.0-77-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: Quadro GP100/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.80

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-07-02 04:03, hash: 9f5c0ffb5e

Short description of error
If an object is parented to another it will not take the position of the parent into account when extracting geometry from sculpt mode.
For example I can parent the object to an empty and move the empty. As a result the empty will have translation values but the main object does not.
If I now mask off some of the surface and use "Mask Extract" or "Mask Slice to New Object" it will only use the relative position of the object in relation to its parent instead of the actual position in the Scene and position the extracted geometry in the wrong location.
In the case of mask extract this will completely break since it will try to shrinkwrap the extracted geoemtry back onto the original object but from the wrong location.

Exact steps for others to reproduce the error
2021-07-02 15-44-32.mp4

**System Information** Operating system: Linux-5.4.0-77-generic-x86_64-with-glibc2.31 64 Bits Graphics card: Quadro GP100/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.80 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-07-02 04:03, hash: `9f5c0ffb5e` **Short description of error** If an object is parented to another it will not take the position of the parent into account when extracting geometry from sculpt mode. For example I can parent the object to an empty and move the empty. As a result the empty will have translation values but the main object does not. If I now mask off some of the surface and use "Mask Extract" or "Mask Slice to New Object" it will only use the relative position of the object in relation to its parent instead of the actual position in the Scene and position the extracted geometry in the wrong location. In the case of mask extract this will completely break since it will try to shrinkwrap the extracted geoemtry back onto the original object but from the wrong location. **Exact steps for others to reproduce the error** [2021-07-02 15-44-32.mp4](https://archive.blender.org/developer/F10209585/2021-07-02_15-44-32.mp4)
Author
Member

Added subscriber: @JulienKaspar

Added subscriber: @JulienKaspar

#103753 was marked as duplicate of this issue

#103753 was marked as duplicate of this issue
Member

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

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

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Philipp Oeser self-assigned this 2023-01-10 12:24:16 +01:00
Member

@JulienKaspar : would it be preferred to make this consistent with Mesh > Separate > Selection in that the new object would keep the parenting relationship as well as scale from the source object?
At the moment, you are getting an object outside the parenting hierarchy and with a scale of 1.

@JulienKaspar : would it be preferred to make this consistent with `Mesh` > `Separate` > `Selection` in that the new object would keep the parenting relationship as well as scale from the source object? At the moment, you are getting an object outside the parenting hierarchy and with a scale of 1.
Author
Member

@lichtwerk I think your suggestion is great. That would be best and more consistent.

@lichtwerk I think your suggestion is great. That would be best and more consistent.
Member

Also noticed that it doesnt preserve materials (which should be done I think?)

Also noticed that it doesnt preserve materials (which should be done I think?)
Member

Also noticed that the name for the new object is just "Mesh" (which should be based on the name of the object this was extracted from I think?)

Also noticed that the name for the new object is just "Mesh" (which should be based on the name of the object this was extracted from I think?)
Member

The way the new object is created in editmesh_mask_extract.c also causes #103773 (Assert hit on executing mask extract operations) btw...
I think when addressing the points above, we can also switch to a method that would eliminate the assert from #103773.

The way the new object is created in `editmesh_mask_extract.c` also causes #103773 (Assert hit on executing mask extract operations) btw... I think when addressing the points above, we can also switch to a method that would eliminate the assert from #103773.
Author
Member

All that sounds great! From what I read the the past these mask operators are not that well coded in the first place.
If you can fix these issues that would be fantastic!

All that sounds great! From what I read the the past these mask operators are not that well coded in the first place. If you can fix these issues that would be fantastic!
Member

Hi @lichtwerk , looks like you're working on this
Submitted the patch yesterday, turns out shirnkwrap option is not positioning new mesh vertices correctly
I think more modelling/transform knowledge is required to solve it.
I'll close my patch since it only handles one case

Hi @lichtwerk , looks like you're working on this Submitted the [patch ](https://developer.blender.org/D16962) yesterday, turns out `shirnkwrap` option is not positioning new mesh vertices correctly I think more modelling/transform knowledge is required to solve it. I'll close my patch since it only handles one case
Member

Sorry for the duplicate efforts @PratikPB2123

Sorry for the duplicate efforts @PratikPB2123
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:11:48 +01:00
Member

Stepping down since I currently do not plan on actually working on this

Stepping down since I currently do not plan on actually working on this
Philipp Oeser removed their assignment 2024-03-27 14:14:30 +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
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#89603
No description provided.