Skip to main content Link Search Menu Expand Document (external link)

Check out the examples directory for a few examples of how to use the viewer:

  • animation.py: Example of how 3D primitives can be animated.

  • camera_path.py: Example how to use camera paths.

  • headless_rendering.py: Example how to render a video in headless mode.

  • load_3DPW.py: Loads an SMPL sequence from the 3DPW dataset and displays it in the viewer.

  • load_AMASS.py: Loads an SMPL sequence from the AMASS dataset and displays it in the viewer.

  • load_DIP.py: Loads an SMPL and IMU sequence taken from the TotalCapture dataset as used by DIP.

  • load_GLAMR.py: Loads a result obtained from GLAMR and displays it in the viewer both for 3D and 2D inspection.

  • load_obj.py: Loads meshes from OBJ files.

  • load_ROMP.py: Loads the result of ROMP and overlays it on top of the input image using the OpenCV camera model.

  • load_template.py: Loads the template meshes of SMPL-H, MANO, and FLAME.

  • load_VIBE.py: Loads the result of VIBE and overlays it on top of the input image.

  • missing_frames.py: Example how sequences with intermittent missing frames can be visualized.

  • quickstart.py: The above quickstart example.

  • render_primitives.py: Renders a bunch of spheres and lines.

  • stream.py: Streams your webcam into the viewer.

  • vertex_clicking.py: An example how to subclass the basic Viewer class for custom interaction.