adds a sample for 3D