Skip to content

Commit

Permalink
Added BVH example.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaufManu committed Mar 8, 2024
1 parent 043fb43 commit 23fe0a0
Show file tree
Hide file tree
Showing 2 changed files with 1,455 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/load_BVH.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2023 ETH Zurich, Manuel Kaufmann, Velko Vechev, Dario Mylonopoulos
from aitviewer.renderables.skeletons import Skeletons
from aitviewer.viewer import Viewer

if __name__ == "__main__":
"""Load a BVH file and display it."""
skeletons = Skeletons.from_bvh(r"./resources/bvh/sample.bvh")
viewer = Viewer()
viewer.scene.add(skeletons)

# Place the camera such that the skeleton is in the center of the view.
viewer.center_view_on_node(skeletons)
viewer.auto_set_camera_target = False

viewer.run_animations = True
viewer.run()
Loading

0 comments on commit 23fe0a0

Please sign in to comment.