  A specific, genuinely three-dimensional mechanism of rogue wave formation, ina late stage of the modulational instability of a perturbed Stokes deep-waterwave, is recognized through numerical experiments. The simulations are based onfully nonlinear equations describing weakly three-dimensional potential flowsof an ideal fluid with a free surface in terms of conformal variables.Spontaneous formation of zigzag patterns for wave amplitude is observed in anonlinear stage of the instability. If initial wave steepness is sufficientlyhigh ($ka>0.06$), these coherent structures produce rogue waves. The most tallwaves appear in ``turns'' of the zigzags. For $ka<0.06$, the structures decaytypically without formation of steep waves.
The simulations are based on fully nonlinear equations describing weakly three-dimensional potential flows of an ideal fluid with a free surface in terms of conformal variables.