The interaction of non-monochromatic radiation with two types of arrays comprising both plasmonic and dielectric nanoparticles has been studied in detail. We have shown that dielectric nanoparticle arrays provide a complete selective reflection of an incident plane wave within a narrow spectral line of collective lattice resonance with a Q-factor of $10^3$ or larger, whereas plasmonic refractory TiN and chemically stable Au nanoparticle arrays demonstrated high-Q resonances with moderate reflectivity. The spectral position of these resonance lines is determined by the lattice period, as well as the size, shape and material composition of the particles. Moreover, the arrays, with fixed dimensional parameters make it possible to fine-tune the position of a selected resonant spectral line by tilting the array relative to the direction of the incident radiation. These effects provide possibilities for engineering of novel selective tunable optical high-Q filters in a wide range of wavelengths: from visible to middle IR. Several highly refractive dielectric nanoparticle materials with low absorption are proposed for various spectral ranges, such as LiNbO$_3$, TiO$_2$, GaAs, Si, and Ge.