To operate an optical device comprising an SLM with a two-dimensional
array of controllable phase-modulating elements groups of individual
phase-modulating elements are delineated, and control data selected from
a store for each delineated group of phase-modulating elements. The
selected control data are used to generate holograms at each group and
one or both of the delineation of the groups and the selection of control
data is/are varied. In this way upon illumination of the groups by light
beams, light beams emergent from the groups are controllable
independently of each other.