Page MenuHome

Voxel Remesh: Edit Voxel Size operator
Needs ReviewPublic

Authored by Pablo Dobarro (pablodp606) on Dec 18 2019, 10:53 PM.
Tokens
"Love" token, awarded by franMarz."Like" token, awarded by Constantina32."Love" token, awarded by lopoIsaac."Like" token, awarded by Debuk."Love" token, awarded by amonpaike."Love" token, awarded by MetinSeven."Love" token, awarded by Kronk."Love" token, awarded by xrg."Love" token, awarded by TheFlow."Love" token, awarded by RC12."100" token, awarded by Frozen_Death_Knight."Love" token, awarded by sam_vh."Burninate" token, awarded by Zino."Love" token, awarded by CobraA."Love" token, awarded by RodDavis."Like" token, awarded by Maged_afra."Mountain of Wealth" token, awarded by Brandon777.

Details

Reviewers
Jeroen Bakker (jbakker)
Group Reviewers
User Interface
Summary

This operator lets the user control the voxel/detail size of the voxel remesher directly from the 3D view in a similar way the Brush radius and strength are controlled. The shorcut from sculpt mode is Shift + R (similar to Shift + F for brush strength).

It shows a grid that represents the real voxel size of the object. The grid and the text are automatically aligned to the view to avoid rendering all voxels with thousands of lines.

It also has a slow mode when pressing shift that works like the slow mode of the brush radius control.

Diff Detail

Repository
rB Blender
Branch
sculpt-voxel-size-edit (branched from master)
Build Status
Buildable 6075
Build 6075: arc lint + arc unit

Event Timeline

Pablo Dobarro (pablodp606) edited the summary of this revision. (Show Details)
  • Scale the grid from the center instead of from a corner

I think it looks better this way

This looks great! It would be good to add the units to the number as well though, it could be confusing working at different scales than this.

Hi Pablo, thats great. As the visualization seems placed at the meshes frontfacing boundingbox side rather than the current mouse position. Is it possible that you also enable this visualization while dragging the slider in the toolsettings remesh popup at the top of the viewport? I think it's as helpful if its contolled from there.

And even if it's slightly offtopic I'd find it very useful to have it the same way for radius and strength previews placed at the boundingbox side if brush radius and strength is setup from within the toolsettings.

  • Fix bug when rendering the grid

On architecture side I think it is better to implement this as a gizmo as that will make it usable in other areas of blender.
I also added the UX team as reviewer to comment on the design and usability.

I also would like to mention that right now this is a workaround for an important bug in sculpt mode. When editing the voxel size directly in the mesh property Blender is constantly rebuilding the PBVH as you drag to tweak the value. That makes impossible to tweak the value in high poly meshes as the rebuild usually takes about 3 seconds. When you use this operator that does not happen.

Think this is an awesome feature - a very nice way to visualize what the operator does. I agree with Jeroen though, this should be implemented using gizmos.

@Jeroen Bakker (jbakker) @Julian Eisel (Severin) Is there any other functionality in Blender similar to this that uses gizmos to use as a reference for implementation? The most similar thing I found are the brush radius controls like WM_OT_radial_control and they are implemented the same way as this, they just let you choose a data path for the property to control (I can easily add that to this patch, but I don't think that makes much sense now).