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 unmarked in reality in the two-dimensional image 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 such that at least one part of the segment of the real environment is removed from the image of the real environment.