High-resolution transmission X-ray microscopy (HRTXM), combined with X-ray diffraction, is a valuable tool for the volume-specific studies of periodic mesoscopic structures, such as photonic crystals. A case study performed on a prototypical photonic crystal - gem opal - sheds some light on the opals genesis processes.