Articles

How to Use Karma XPU With Houdini Vellum Cloth Simulations

ARTILABZ™

ARTILABZ™ gives you unlimited access to all Houdini courses, 3D assets, simulation files, textures and tools. updated every month.

Everything You Need to master Houdini.

01

Premium Houdini Tutorials

Full access to every course — fluid simulation, procedural FX, brand visuals and more.

02

Monthly New Content

Fresh tutorials and assets added every month — your library grows with you.

03

Instant Access to Everything

The moment you join, the full library is yours — no drip-feed, no waiting.

04

Project Files Included

Every tutorial comes with the full Houdini scene file — open every node, learn every detail.

FROM 14.99€/MONTH

Includes one exclusive complete course

The exclusive course — a full production tutorial you won't find anywhere else, never sold alone.

Best Seller
Most Loved
Tutorial Camera Rig

ADVANCED CUSTOM CAMERA RIG

ANIMATION · CONSTRAINTS · CUSTOM UI

BUILD A FULLY CUSTOM CONSTRAINT-BASED CAMERA RIG IN HOUDINI WITH A CUSTOM UI PANEL. DESIGN FLEXIBLE SYSTEMS FOR PRECISE, CINEMATIC CAMERA ANIMATION ON ANY PROJECT.

€29.99

Freebies
Free Studio HDRI Pack box by Artivoxa showing 60 studio lighting setups with softboxes wrapped around the packaging

Studio HDRI Collection

ASSETS · EXR & HDR · 60 HDRIS

DOWNLOAD 60 STUDIO HDRIS CAPTURED IN A REAL PHOTO STUDIO. LIGHT YOUR PRODUCT AND BEAUTY RENDERS LIKE A PHOTOGRAPHER — SOFTBOX, LANTERN, STRIP AND GRID SETUPS, READY FOR ANY RENDERER.

FREE

How to Use Karma XPU With Houdini Vellum Cloth Simulations

Are your cloth simulations slowing you down at the final render stage? Do you find yourself waiting minutes—or even hours—for each test frame, only to discover odd artifacts or jittering drape?

Working with Houdini Vellum to craft realistic cloth often means fighting a trade-off between stability and speed. Toss in complex lighting and motion blur, and it’s easy to feel stuck on the sidelines of your own creative process.

Enter Karma XPU—SideFX’s hybrid renderer that taps both GPU and CPU power. Yet, many of us hit the same roadblocks: unclear resource allocation, unexpected simulation drift, or simply not knowing where to start.

If you’ve ever wondered how to harness Karma XPU’s raw performance without sacrificing simulation fidelity, you’re not alone. Advanced users often struggle to align solver settings, rendering parameters, and hardware capabilities into a seamless workflow.

By addressing these bottlenecks head-on, you’ll gain clarity on configuration choices, optimize your hardware usage, and ultimately reclaim the time spent waiting for previews and final frames.

How do I prepare and cache a Houdini Vellum cloth simulation for Karma XPU (SOP/OBJ/LOP-compatible workflow)?

Simulation sampling, attribute preservation (v, rest, N, Cd) and substep considerations

Begin by setting your Vellum Solver to the target frame rate and enabling sufficient substeps (typically 2–4) to capture fast collisions. In the SOP context, use the “Pre-Solve” and “Post-Solve” flags on a Rop Geometry Output node to write per-frame caches with embedded attributes.

  • Velocity (v): Required for Karma XPU motion blur—export as vector.
  • Rest position (rest): Ensures correct UV and simulation resets—generate via Attribute Create.
  • Normals (N): Maintain shading continuity—compute in a Point Wrangle after sim.
  • Color (Cd): Transfer painted or procedural weights—use Attribute Copy or Capture Region.

Adjust the “Time Scale” and “Constraint Substeps” to avoid jitter. For high-speed cloth, sample every half frame using a Python script or TimeBlend SOP to prevent aliasing when playback in Karma XPU.

Baking strategies: Alembic vs BGEO vs USD (when to use each and how to retain topology/attributes)

Select the cache format based on pipeline stage:

Format Context Attribute Support Use Case
Alembic Interchange v, N, Cd, uv, rest Final export to other DCCs or render farms
BGEO Houdini SOP/OBJ All custom attributes Iterative sim tweaks; fastest load in SOP
USD LOP/Karma XPU v, N, Cd, packed topology Lighting and lookdev in LOPs

For Alembic, use the ROP Alembic Output and enable “Write UVs” and “Write Rest Positions.” For BGEO caching, use ROP Geometry Output with “Write All Points/Prims.” When targeting Karma XPU directly, employ the USD ROP to bake sim data into a USDA/USDZ, preserving topology via the “Pack USD Geom” option.

How do I assemble a USD/Karma XPU scene from my Vellum caches and set up the LOP stage correctly?

In Houdini’s Solaris context, you translate your Vellum caches into USD primitives and drive them through the Karma XPU renderer by building a concise LOP network. The goal is to import your cached cloth simulation, assign materials and lights, configure render settings, and output a scenegraph that Karma XPU can traverse efficiently.

Follow these core steps:

  • SOP Import LOP: Point to each Vellum cache (e.g., .bgeo.sc files). Set “Import Path” to /world/cloth and define unique prim names like /world/cloth/garmentA.
  • Time Code Mapping: Enable “Use Timeline” so USD gets correct frame sampling for motion blur. Confirm the “Frame” expression matches your cache naming (e.g., $F4).
  • Payload vs. Reference: For large simulations, toggle to “Payload” to defer loading until render time, reducing viewport overhead.
  • Material Library & Assign: Use a Material Library LOP to define a USD Preview Surface or Karma-compatible shader. Follow with a Material Assign LOP to bind the shader to /world/cloth/* prims.
  • Light Setup: Add your HDRI or area lights via Light LOPs under /stage/lights. Adjust intensity and exposure; link lights to your cloth prims if needed.
  • Render Settings LOP: Switch the renderer to “Karma XPU,” set pathtracing bounces, pixel variance, and enable velocity-based motion blur. Ensure “Session Layer” points to your render settings.
  • Render to Disk: Place a Karma ROP node at the end of your LOP chain. Specify output .exr or .pic, and confirm “Render Objects” references /world/cloth.

By structuring your LOP stage in this order, you ensure your USD scene is procedurally built, materialized, lit, and sent to Karma XPU with minimal manual tweaks. This workflow leverages Houdini’s procedural USD pipeline to maintain scene flexibility and optimize sim-heavy cloth renders.

How should I author and assign cloth materials and textures for Karma XPU (MaterialX/MDL/Principled workflows)?

When targeting Karma XPU, choose between three primary shading setups. The MaterialX path uses Houdini’s built-in Material Library and a standard surface with cloth-specific controls. The MDL workflow leverages NVIDIA’s Material Definition Language for advanced layering and accurate energy conservation. Finally, the Principled shader offers a single-node approach with parameters directly mapped from tools like Substance Designer.

Begin by unwrapping your cloth mesh with consistent UV tiling or UDIM layout. Export texture maps—base color, roughness, normal, displacement and optionally a sheen mask—from your painting tool. Keep your file names consistent (e.g. cloth_diffuse_.exr) so Houdini’s USD loader can automatically resolve the sequence at render time.

In Solaris, drop down a Material Library LOP and select the MaterialX “standard_surface_cloth” shader. Hook your base color map into the base_color input, roughness into specular_roughness, and normals via the normal_map port. Tweak anisotropy and anisotropy_rotation to simulate woven fibers. Use the sheen and sheen_tint parameters to mimic surface fuzz on fabrics like velvet or silk.

For the MDL route, import the mdl::standard_surface cloth node. Link your texture primvars (e.g. primvar:diffuseTexture, primvar:roughnessTexture) through the MDL inputs. MDL’s layered structure lets you stack microdetail: add a microfacet layer for fine weave and a clearcoat for glossy finishes. Remember to set shading model to cloth in the MDL material attributes to enable energy-preserving fabric response.

If you prefer the Principled shader, instantiate the Principled Shader Builder in Solaris and feed in your Substance-exported outputs. The Principled workflow automatically assigns maps to Base Color, Metallic (0.0 for cloth), Roughness and Normal. Use the Sheen parameter to dial in soft highlights and drive it with a grayscale mask for selective areas like folds or edges.

  • Assign materials per-geo with a Material Assign LOP using your USD path (e.g. /stage/world/cloth_mesh).
  • Ensure your textures are referenced as UDIM sequences so Karma XPU can stream tiling data on demand.
  • For layered effects, duplicate your cloth prim’s shading variants and swap between MaterialX and MDL to compare final look.

How do I ensure accurate motion blur, velocity, and deformation-driven shading for Vellum cloth in Karma XPU?

In a Vellum cloth sim the per‐point v attribute is your primary source for velocity blur, but you must propagate it correctly into Karma XPU. After you import your DOP geometry, insert a Trail SOP set to “Compute Velocity” over two frames. That guarantees a stable v even under heavy subframe interpolation. In your Karma XPU ROP, open the Geometry Motion Blur tab and enable both “Use Deformation Motion Blur” and “Use Object Velocity Blur.” This dual approach tells Karma XPU to sample rest‐to‐deformed positions alongside the velocity vectors during the shutter interval.

To drive wrinkle patterns and anisotropic highlights, output per-point restP alongside P. In the Vellum Solver, activate “Output Rest Attributes” or append a Rest SOP pre-render. In your MaterialX network, feed the Rest Position node into an Attribute VOP where you compute the deformation gradient (∂P/∂restP). Use that gradient to orient noise or anisotropic normals. This ensures wrinkles follow the exact stretch and fold of your cloth.

  • Trail SOP: Compute Velocity between frames for robust v vectors
  • Vellum Solver/Rest SOP: Bake restP for deformation-driven shading
  • Karma XPU ROP – Geometry Motion Blur: Enable Deform & Velocity Blur
  • MaterialX – Rest Position → Gradient → Anisotropy/Noise → Surface Normal

For crisp blur on fast cloth motion, sample your DOP sim at subframes. In the DOP Network, set Frame Sample Count ≥ 2. Then in Karma XPU’s Sampling tab raise “Shutter Samples” to 3–5. Relying solely on velocity blur can miss nonlinear folding; combining deformation blur with velocity vectors captures true motion trails and prevents ghosting.

This workflow synchronizes your Vellum sim’s internal state with Karma XPU’s motion blur engine and shading context, preserving every fold, stretch and collision detail in the final render.

How can I optimize Karma XPU render settings and Vellum simulation parameters to minimize render time without sacrificing quality?

At the DOP level, reduce Vellum substeps and constraint iterations to trim simulation overhead. For subtle cloth details, lower Constraint Iterations from 20 to 15 and validate solver stability in playblast. Drive cloth resolution with attribute-based LOD—use pscale or a Rest Blend SOP to decimate regions away from primary camera view.

Employ a low-res guide simulation: solve coarse geometry in Vellum Solver, then deform a high-res mesh via Vellum Guide Deform for final render. Cache both guide and high-res frames to disk to avoid repeated solves during lighting and material look-dev passes, cutting turnaround time by 50–70% on heavy cloth scenes.

On the Karma XPU side, balance ray samples and variance. Set Primary Ray Samples to 8–12 and Reflection/Refraction to 4–6. Enable Progressive Sampling with a variance threshold of 0.005 to auto-stop noisy pixels. Use Shared Memory buffers, tune GPU batch size, and disable subpixel jitter on cloth normals to avoid excess shading rays.

  • Adjust Vellum Solver → Substeps and Constraint Iterations in the DOP Network
  • Configure Cloth Particle Separation via pscale or attribute-driven LOD
  • Enable Progressive Sampling with a 0.005 variance threshold in Karma XPU
  • Set Reflection/Refraction Ray Samples to 4–6 in the Sampling tab
  • Disable micropolygon tessellation for shadow rays under Geometry settings
  • Activate Bounding Box Culling and Shared Memory buffers in Render Controls

— FOREVER FREE —

Free Studio HDRI Pack box by Artivoxa showing 60 studio lighting setups with softboxes wrapped around the packaging
  • Blender
  • Cinema 4D
  • Houdini
  • Maya
  • 3ds Max
  • Unreal
  • Redshift
  • Octane
  • Karma
  • Cycles
  • Arnold
  • V-Ray
  • Corona

60 studio lighting HDRIs in one free pack — softboxes, lanterns, strip boxes, grids, top-light and three-point setups, all shot in a real photo studio.