pyrender_visualizer_4.py 545 B

123456789101112131415161718
  1. def render_callback(self, frame_num):
  2. self.render_ground(
  3. size=[100, 100],
  4. color=[0.8, 0.8, 0.8, 1.0],
  5. axis="y", # utils.axis_to_str(self.motions[0].skel.v_up_env),
  6. origin=not self.hide_origin,
  7. use_arrow=True,
  8. )
  9. colors = [
  10. np.array([123, 174, 85]) / 255.0, # green
  11. np.array([255, 255, 0]) / 255.0, # yellow
  12. np.array([85, 160, 173]) / 255.0, # blue
  13. ]
  14. self._render_characters(colors, frame_num)
  15. color, depth = self.r.render(self.scene)
  16. return color