3d printed capsules