Page MenuHome

Sculpt: Cloth brush
Needs ReviewPublic

Authored by Pablo Dobarro (pablodp606) on Wed, Jan 29, 9:40 PM.
Tokens
"Love" token, awarded by dgsantana."Love" token, awarded by billreynish."Love" token, awarded by Shimoon."Love" token, awarded by TerraformTrent."100" token, awarded by sami_yanezcarbonell."100" token, awarded by Tetone."Love" token, awarded by theRAIN."Love" token, awarded by Yegor."Like" token, awarded by Constantina32."Pirate Logo" token, awarded by shader."Love" token, awarded by vignette."100" token, awarded by mywa880."Love" token, awarded by BlenderRoot."Burninate" token, awarded by RoseKolodny."100" token, awarded by Onion_Samurai."Love" token, awarded by Dspazio."Burninate" token, awarded by dcvertice."Party Time" token, awarded by VaguelyButter."Love" token, awarded by jmztn."Love" token, awarded by Ravenman13."Love" token, awarded by tushantin."Burninate" token, awarded by sopranoo."100" token, awarded by Frozen_Death_Knight."Love" token, awarded by evilvoland."Love" token, awarded by christianclavet."Love" token, awarded by georg."Love" token, awarded by Alrob."Love" token, awarded by nacioss."Love" token, awarded by thomas_p."Love" token, awarded by symstract."100" token, awarded by 616."Burninate" token, awarded by Spatz."Burninate" token, awarded by slowburn."Love" token, awarded by imad_mss."Love" token, awarded by user1."Love" token, awarded by ilia_kole."Love" token, awarded by kynu."Love" token, awarded by Alex_Andr."Love" token, awarded by Noss."Like" token, awarded by hitrpr."Burninate" token, awarded by Slir."Love" token, awarded by RodDavis."Love" token, awarded by icappiello."Love" token, awarded by andruxa696."Party Time" token, awarded by franMarz."Love" token, awarded by 0o00o0oo."Love" token, awarded by RC12."Love" token, awarded by klutz."Burninate" token, awarded by Ztreem."Love" token, awarded by tiagoffcruz."Love" token, awarded by VertexPainter."Love" token, awarded by vitorbalbio."Love" token, awarded by astrand130."Love" token, awarded by SavMartin."Love" token, awarded by asmitty."Like" token, awarded by slumber."Burninate" token, awarded by LapisSea."Dat Boi" token, awarded by monio."Burninate" token, awarded by fin.eskimo."Love" token, awarded by wilBr."Love" token, awarded by pablovazquez."Mountain of Wealth" token, awarded by Brandon777."100" token, awarded by TheRedWaxPolice."Love" token, awarded by xrg."Mountain of Wealth" token, awarded by satishgoda."Love" token, awarded by Rusculleda."Love" token, awarded by SteffenD."Love" token, awarded by belich.

Details

Summary

This brush has a simple physics solver that helps when sculpting cloth
(which is one of the hardest things to do in any sculpting software).
The mass and the damping of the simulation properties of the brush.
It has 4 deformation modes that control how the forces are created.

The brush can create the constraints only on the required PBVH nodes, so
it should be easy to isolate the simulation on high poly meshes. As long
as the brush size is not too big it should be possible to keep it real
time.

Known issues:

  • The way constraints are created is extremely basic and it creates repeated constraints. Maybe there is another way to create fewer constraints while keeping the simulation quality decent. This part can also be multithreaded. (As it is it works ok, but it could be better)

Diff Detail

Repository
rB Blender
Branch
sculpt-cloth-brush (branched from master)
Build Status
Buildable 6467
Build 6467: arc lint + arc unit

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Pablo Dobarro (pablodp606) updated this revision to Diff 21312.EditedSat, Feb 1, 1:01 AM
  • Refactor cloth brushes, add pin mask
  • Pinch perpendicular
  • Enable simulation falloff and limits
  • Add Cursor

  • Use fixed time step
  • Fix pinch perpendicular
  • Tweak cursor opacity

Awesome! I've noticed some weird behaviour when using mirroring.

First with mirror X axis enabled. Same brush properties and mode.

Otherwise looks excellent.

  • Cloth Brush refactor
  • Add comments
  • Fix symmetry
  • Add plane falloff
  • Add constraints reallocation
  • Sample normal and area only when needed
  • Implement expand deform type
  • Fix memory leak
Pablo Dobarro (pablodp606) updated this revision to Diff 21329.EditedSun, Feb 2, 1:10 AM
  • Add the sculpt gravity as part of the simulation

The gravity is usually added in another iteration over the nodes, but that does not make much sense in this case.

That moment when you go to sleep but Pablo is working till late making our dreams true..

Macro itsawesome:

The brush work great, but one question. I hardly see differences (probably because the in progress status) between the different modes of the brush. Specially the Grab mode. I think that I will wait that in that mode or similar, I can grab a part of the mesh and see the cloth tension effect in the border of my brush. Similar to the pinch.

  • Fix push deform type

Im sorry, i new on this site. How install that? Pls tell me, this looks so cool!

  • Cleanup
  • Fix crash with anchored and drag dot stroke types
  • Change how pinch point works with plane falloff
  • Better grab deform type
  • Add plane falloff preview

  • Display simulation limits when sculpting outside them
  • Configure the brush strength for expand and the rest of the deform types