Skip to content

Commit

Permalink
fix: 6 channel bvh parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nmvrs committed Nov 6, 2024
1 parent 6552741 commit ba57fc8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rerun_animation/bvh.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ def load(filename: str) -> typing.Tuple[
positions[i] = data_block[0:3]
rotations[i, :] = data_block[3:].reshape(N, 3)
elif channels == 6:
data_block = data_block.reshape(N, 6)
# positions[i, :] = data_block[:, 0:3]
positions[i] = data_block[:, 0:3]
rotations[i, :] = data_block[:, 3:6]
positions[i] = data_block[0:3]
rotations[i, :] = data_block.reshape(N, 6)[:, 3:6]
elif channels == 9:
# positions[i, 0] = data_block[0:3]
positions[i] = data_block[0:3]
Expand Down

0 comments on commit ba57fc8

Please sign in to comment.