In augmented reality, the visual consistency of virtual-real fusion is a difficult problem. For the problem of detecting and generating information about the shadows of virtual objects in complex scenes from a single viewpoint, a method is proposed to achieve the consistency of lighting on virtual objects based on a panoramic view, which makes up for the shortcomings of shadow information collection in complex real environments from a single viewpoint. First, the T-ORB algorithm is used for image stitching to generate the panorama. Then, the shaded information of the real environment is fully collected based on the panoramic view of the complex environment. Finally, the registration of virtual objects is completed according to the transformation matrix and rendered in combination with the shadow body. Experiments prove that the method proposed in this paper achieves shadow rendering of virtual objects, which greatly improves visual consistency and has obvious advantages in rendering time.
|