/visual_utils

Visualization utilities for WARP projects.

Primary LanguagePythonMIT LicenseMIT

Visualization utilities for WARP projects

This repo contains visualization utilities for WARP projects pertaining to CS 535P: Digital Humans offered at UBC.

Installation

  1. Install Git LFS.
  2. Recursively clone the repo and its submodule:
git clone --recurse-submodules -j8 <url to the repo>
  1. Install conda and create a conda environment.
  2. Install packages in requirements.txt.
  3. Go to render_usd.render_cylinder() of your local WARP installation. Replace the implementation of the function with the implementation provided in this codebase.

Example

Run python/examples/render_sheet.py to render simulations of a mass-spring sheet to USD files.

APIs

visual_utils.sheet.define_rectangular_sheet(): Define a 2D, rectangular-shaped sheet of particles and springs

visual_utils.render.render_usd(): Renders a rollout of a mass-spring system to a USD file