On this page

The Vellum Brush SOP is an interactive tool for shaping Vellum geometry such as cloth, grains, or fluid particles in the viewport. It is most commonly used to shape cloth or grass, and add detail to softbodies. However, you can also use it to brush Vellum grains into a pile or clear areas from sand and dust. This tool lets you add detail precisely where it is needed.

The brush SOP provides a built-in ground plane for collisions. It also uses its own minimal solver with force and quality settings, so you don’t have to press Play in the playbar to start the simulation. This means that you don’t need a Vellum Solver SOP. You can easily toggle between two simulation modes by pressing G in the viewport.

You can also add a Vellum Post-Process SOP, which will allow you to brush objects at a lower resolution and subdivide them later to create high-res versions and add thickness.

Example: Brushing cloth

Creating the cloth

This example sets up a standard cloth network, where the solver is replaced with a Vellum Brush SOP. A basic Grid SOP is deformed to give it a cloth-like look.

  1. Use the Grid tool on the Create shelf to put down a grid.

  2. Dive inside and select the Grid SOP.

  3. Set the Size to 5.5 and increase the Rows and Columns to 50 to get enough resolution. A value of 50 is a good compromise between resolution and speed.

  4. Add a Transform SOP and wire its input to the grid’s output. This node is optional, but helps you to position, scale, or rotate the grid if necessary.

  5. Add a Vellum Configure Cloth node, and connect its first input the Transform’s output. This is a preconfigured Vellum Constraints SOP and it’s optimized for cloth simulations.

  6. Put down a Vellum Brush SOP and connect the first two inputs with the first two outputs of vellumcloth1. This connects the Vellum Geometry (grid) and Constraint Geometry (connections between the cloth’s points). The third input isn’t required because there is no collision geometry in this scene.

Shaping the cloth

You're now ready to shape the cloth. When you select the node and turn on its blue Display/Render flag, you may notice that nothing happens. This is because you have to enter the brush’s edit mode.

  1. Move the mouse over the 3D viewport and press Enter. In the viewport’s upper left corner you can see a HUD with the most important parameters, shortcuts, and mouse actions. The mouse cursor also turns into a red circle, indicating the brush size.

  2. To change the brush size, scroll the up and down.

  3. With the pressed, draw on the grid to brush it. A fading red spot inside the brush indicates the brush’s Soft Edge size. By default, this parameter is set to 1.

  4. Press and hold the and drag the mouse to shape the cloth.

  5. Click Set Rest State in the parameter editor to save your work.

  6. Move the cursor over the viewport and press ⎋ Esc to exit brush mode.

This is a simple setup to illustrate brushing cloth. For more information on all of the ways you can shape cloth, see the How to section below.

Example: Brushing grains and fluids

Similar to the cloth setup above, you don’t need a Vellum Solver for brushing grains and fluids, and the entire simulation is controlled through the brush SOP. The simulation process relies on a minimal solver and runs entirely on the GPU.

Creating grains

  1. Use the box tool on the Create shelf to put down a grid. Double-click the node to dive inside. The box will act as a source object for Vellum grain particles.

  2. Put down a Vellum Configure Grain SOP and connect its first input to the output of the box.

    Note

    If you want to work with fluids instead of grains, add a Vellum Configure Fluid SOP instead. This node is also a Vellum Configure Grain SOP, but configured for fluids.

  3. Turn on Create Points from Volume to fill the box with grain particles.

  4. To get more grain particles, set Particle Size to 0.05 or less.

  5. Add another Box SOP and connect it to the third input of the vellumconstraints_grain1 node. This box will be a collision object.

  6. Set the second box’s Uniform Scale parameter to 3 to make it bigger and enclose the particles.

  7. Put down a Vellum Brush SOP and connect its 3 inputs with the 3 outputs of vellumconstraints_grain1.

Settling

Instead of brushing particles in the air, it’s more likely that you want to create a settled state first.

  1. Move the mouse cursor over the viewport and press Enter. In the viewport’s upper left corner you can now see a HUD with parameters, mouse actions, and shortcuts.

    Note

    The mouse cursor also turns into a red circle, indicating the brush size. You can use the to change the size interactively.

  2. Press G in the viewport to switch from Damped mode to Settle. This turns on Live Simulation and the particles will start to fall and collide the the surrounding box.

  3. Press G again to switch back to Dampen mode. This turns off Live Simulation.

Brushing and sculpting

  1. Press and hold the , then drag the mouse to shape the grains. The brush SOP’s Brush subpane provides different Mode options for customizing the brush effects.

    Note

    Grain and fluid particles only support the Screen brushing.

    For the final shape you can brush, sculpt, simulate, and settle the particles as often as necessary.

    Also consider the brush node’s Post Drag Frames parameter. When Live Simulation turned off, this parameter defines for how many frames particles are simulated after a brush stroke. This can be used to minimize gaps between particles while sculpting fluids and grains.

  2. Click Set Rest State in the parameter editor to save your work.

  3. Move the cursor over the viewport and press ⎋ Esc to exit brush mode.

Tip

If you encounter misbehaving particles, consider increasing the brush SOP’s Substeps to improve simulation quality. See How to below for more information.

Handles

Translate, rotate, and scale handles are available for pinned points. These handles are especially useful for cloth-like objects, as they let you easily fold, drape, and stretch cloth. However, you can also use them with grains and fluids.

  1. Press K to turn on the handles.

  2. To create pins, drag ⇧ Shift + over the points you want to pin. Blue pins will appear where the pins are placed, and a handle is applied to the selection. This process can be repeated and each selection will get its own handle.

    Tip

    Another way to select points or edges is to press S, which will put you in Selection mode where you can select loops, edges, etc.

  3. Drag the handles to translate, rotate, and scale the pinned points.

    Tip

    You can toggle between individual handles using the T, R, and E hotkeys.

To remove a handle, press ⌃ Ctrl + and drag over the pins. Once the pins are completely removed, the handle disappears.

If you want to hide the handles, press K again and leave the brush’s handle mode.

How to

To...Do this

Turn on brush mode

  1. Select the Vellum Brush SOP node in the Network Editor.

  2. Move the mouse cursor to the viewport and press Enter.

Restore the brushed object’s initial state

In the Vellum Brush SOP, click the Reset All Changes button.

Increase the brush’s strength

Change the brush SOP’s Strength parameter.

Reduce gaps between grain/fluid particles

By default, points are only displaced as long as you're drawing strokes. If you want to keep the points moving after finishing a stroke, increase Post Drag Frames. This parameter lets you adjust how many frames are solved after finishing the drag. As a result, the particles have more time to settle and gaps are minimized.

Pin points

  1. Select the Vellum Brush SOP. If there’s a HUD in the upper left corner of the viewport, then you're in edit mode. If not, place the mouse cursor over the viewport and press Enter.

  2. Use the to adjust the brush size.

  3. ⇧ Shift + and drag over the points you want to pin.

    Note

    This operation also selects hidden or occluded points.

    Pinned points appears a blue cubes. To remove pins, drag over pins with ⌃ Ctrl + .

Control forces

The Forces section on the Vellum Brush SOP has parameters for turning on Gravity and adjusting other forces like Static Friction.

The Live Simulation checkbox turns on the brush’s simulation mode and its effect on the points depends on Simulation Mode. Normally, you don’t have to worry about this toggle, because it’s turned on and off automatically when you change from Damped to Settle and vice versa.

  1. Damped is the default mode. In this mode, points will keep their positions after the stroke. This mode is used for sculpting. When you turn on Live Simulation, the points will arrange themselves after the stroke.

  2. Settle turns on Gravity and Live Simulation. You can stop the settling process at any time by switching to Damped. You can still brush points in Settle mode, and it’s often used for draping.

With grains and fluids, you normally brush the particles in Damped mode with Live Simulation turned on. Then you switch to Settle and stop the points' motion with Damped. You can repeat this process until you get the desired result.

Improve simulation quality

The Vellum Brush SOP’s Quality section is responsible for simulation quality. In Settle mode, the simulation requires more Substeps, but less iterations. When you change modes, the ideal number of steps and constraints is automatically adjusted. If you think you need more precision, increase Substeps. In this case you can also decrease iterations. Especially with fluids, it’s necessary to use at least 5 substeps.

To get an adequate number of iterations, divide the values by the number of substeps. For example, if you need 4 Substeps. Then, Constraint Iterations is 100/4 = 25. For Smoothing Iterations the value is 10/4 = 3 (iterations can only be integers). For fluids, Smoothing Iterations should be 0.

Work with self collisions and collision objects

  • In the brush’s Collisions tab there is a Self Collision checkbox. By default, this option is turned on. If you don’t need self collision, turn it off to accelerate the simulation.

  • To make the brushed objects/particles interact with other geometry, connect the collision object to the brush node’s third input (Collision Geometry).

Post-process your results

The Vellum Post Process SOP is a convenient method to fix collision errors, increase resolution, and add thickness to cloth objects.

  1. Recreate the Brushing cloth or Brushing grains setup from above.

  2. From the TAB menu, add a Vellum Post Process SOP and connect its inputs with the outputs of the Vellum Brush SOP.

  3. In the Smooth section, set Subdivision to Catmull-Clark.

  4. With Subdivision Steps you can create more polygons to smooth the cloth.

  5. To create a thick sheet of cloth instead of a paper-thin surface, urn on Extrude by Thickness in the Thicken section.

Brush other types of Vellum constraints

The workflows presented above are also valid for hair or balloons. Replace the cloth and grain/fluid constraints node through a Vellum Constraints SOP. From the node’s Constraint Type, choose Hair, Struts, or any other type. Alternatively, you can use preconfigured tools from the Tab menu, e.g. Vellum Configure Balloon.

Tutorial

Vellum

Cloth

Softbody

Fluid

Constraints

Grains

Collisions

Other

Advanced