For a wide variety of model calculations a hypothetical 3D microstructure is required as input. Although experimental data are frequently used to this purpose, 3D microstructures are difficult to measure experimentally. In order to circumvent these difficulties, a virtual microstructure generator to simulate a specific 3D material microstructure is proposed. Such a virtual microstructure could serve as input for different types of models, would allow a faster model prototyping, would help to explore the boundary conditions of models and reduces the number of unnecessary experimental measurements. In the current paper, the method to generate and to control the grain size distribution as well as texture are discussed.