use mapMaterialIds on every material_id