Notice how pygfx has sphere_geometry and not SphereGeometry, box_geometry and not BoxGeometry, cylinder_geometry and not CylinderGeometry. Make sure to use the correct function names when creating geometries with pygfx.

Notice how pygfx doesn't allow for mesh_object.rotation, it's mesh_object.local.rotation instead. Make sure to set rotations using the local attribute. 

Notice how we set local.rotation = gfx.linalg.Euler(...) directly instead of using set_from_euler. Position also needs to be set with local.position = ..., not .set(...).

Notice how pygfx does not have a gfx.linalg.Euler([x, y, z]) method, you need to import pygfx.linalg as la and use la.quat_from_euler(np.array([x, y, z], dtype=np.float32)) instead. 