1. A method for representing a virtual object in a real environment, having the following steps: generating at least one two-dimensional image of a real environment by means of a recording device, ascertaining a position of the recording device relative to at least one component of the real environment, segmenting at least one area of the real environment in the two-dimensional image on the basis of non-manually generated 3D information for identifying at least one segment of the real environment in distinction to a remaining part of the real environment while supplying corresponding segmentation data, merging the virtual object with the two-dimensional image of the real environment or, by means of an optical, semitransparent element, directly with reality with consideration of the segmentation data.