1. A method of printing an object on a support, said object having a surface of varying height, by a printer configured to print a number of pass images on top of each other in a number of passes, the method comprising the steps of: defining an object image comprising height data for indicating a height of each pixel of the object image; deriving from the object image a number of pass images to be printed on top of each other, comprising: establishing pass pixels of the pass images for which pass pixels a pass pixel height is defined, wherein a sum of the defined heights of a sequence of pass pixels that corresponds to a respective pixel of the object image equals the height of that pixel of the object image; and printing the pass images on top of each other, comprising: varying an amount of printed material that is printed per printed pass pixel of a pass image in accordance with the defined pass pixel heights of the pass pixels, wherein said establishing of pass pixels comprises: selecting, based on random data, pass pixel heights for pass pixels to be established from a respective set of at least two positive pass pixel heights, and wherein at least one set of respective pass pixel heights is used for said selecting, which set comprises a first pass pixel height and a second pass pixel height, which is at least 1.5 times the first pass pixel height.