def METHOD_NAME(self, dt):
    # change camera location
    self.scene_widget1._angles[2] += np.deg2rad(1)
    self.scene_widget1.scene.set_camera(self.scene_widget1._angles)
    # change scene
    if len(self.scene_widget2.scene.graph.nodes) < 100:
        geom = trimesh.creation.icosphere(radius=0.01)
        geom.visual.face_colors = np.random.uniform(0, 1, (3,))
        geom.apply_translation(np.random.uniform(-0.3, 0.3, (3,)))
        self.scene_widget2.scene.add_geometry(geom)
        self.scene_widget2._draw()
    # change image
    image = np.random.randint(0,
                              255,
                              (self.height - 10, self.width // 3 - 10, 3),
                              dtype=np.uint8)
    with io.BytesIO() as f:
        PIL.Image.fromarray(image).save(f, format='JPEG')
        self.image_widget.image = pyglet.image.load(filename=None, file=f)