Edit Dyntopo Detail Size: Add resolution value for visual feedback #106243
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#106243
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(NOTE) This task is part of the community & sub tasks of the workboard. Anyone is free to pick up this task and contribute. For any questions or needed reviewers, please tag @Sergey @HooglyBoogly and @JulienKaspar.
Resolution Value in the Viewport
(The initial solution of adding the resolution value to the header was already implemented with #118403)
To match the viewport overlay of
object.voxel_size_edit
, the dyntopo equivalentSCULPT_OT_dyntopo_detail_size_edit
should get a resolution value next to the grid, outside of the brush cursor.Edit Dyntopo Detail Size: Add value to overlayto Edit Dyntopo Detail Size: Add resolution value for visual feedback@JulienKaspar since no one has picked it up yet, can I pick it up as my first issue?
@Abhiyankar-Shakti Sure, go ahead 👍
@JulienKaspar It would be really helpful if you can elaborate on the issue and guide with some technicalities to help me get started with.
@Abhiyankar-Shakti Sorry for the late response! Do you have any questions on the task description? If anything is too unclear I'm happy to elaborate.
For technical questions it would be best to get in contact with @JosephEagar here or via blender.chat. He can give some needed pointers and help.
Like I wanted to know if you wanted to see the resolution size in the viewport itself? Like shown in the second picture? It would be really helpful if you can elaborate.
@JosephEagar it would be really helpful if you can help with some technicalities that are required to achieve this.
The most important implementation would be to include the resolution value in the header (Like when executing any other modal operator in object/edit mode).
The secondary implementation is to add it in the viewport which is not that clear yet. I added a mockup below.
The idea would be to:
The issue with this is that the triangle overlay rotation can sometimes not be ideal for this. So for this to work we should also try to force the top edge of the triangle to always be perfectly horizontal to have the text always readable.
Waiting for @JosephEagar on what he thinks and how this can be done.
This is pretty simple, you can use the existing
OBJECT_OT_voxel_size_edit
operator code (insource/blender/editors/object/object_remesh.cc
) as a template. The bug difference is how you build the text matrix. For that you need to build an orthonormal basis from the surface normal and the view vector:Note: you also have to check if the x and y axes need to be flipped. See how the code in
voxel_size_edit_invoke
does this.voxel_size_edit_invoke
projects to one of the face of the bounding box cube (not the view normal) but is otherwise similar.BTW, if you want to scale the grid to always have a fixed viewport size you do something like this:
This is really helpful, I will start working on a patch right away.
@JosephEagar This is a function that I wrote using the OBJECT_OT_voxel_size_edit operator code as a template.
I am not able to understand that where this should be called and what are the fixes that needs to be done.
@Abhiyankar-Shakti Are you planning on continuing to work on this? If not, I'm planning on taking up the work soon.Edit (2024-03-13): Not currently working on this at the moment, so this is free to be picked up by anyone else interested in working on the task.
@JulienKaspar - now that #118403 is merged in, should this task still always show the corresponding "resolution" value or should it show the value being edited within the viewport?
Additionally, I think this task can be clarified as addressing the second viewport solution now, since the operator now displays the value in the status bar with the previously mentioned PR.
@Sean-Kim Yes, now this task is only about showing the value next to the preview grid.
I'm not sure if this will work as expected but in that case it's already great to have the value in the header in
main
.I'll update the task descriptions 👍