Display method, device and equipment

By displaying real-scene simulation images in the virtual space and simulating the lighting effects of the real world, it solves the problems of misalignment and abrupt boundaries between virtual and real scenes in the fusion of virtual and real scenes, and improves the presentation quality and user experience of the fusion scene.

CN118796031APending Publication Date: 2024-10-18CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410505208.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In existing virtual reality and augmented reality technologies, the fusion scene presentation quality of virtual objects and real objects is low, and there are problems such as misalignment of virtual and real images and abrupt fusion boundaries, which affects the user's immersive experience.

Method used

Display the real-scene simulation picture in the virtual space. By obtaining the user's visual range and orientation information, generate light and shadow information, adjust the panoramic video picture to simulate the lighting effect of the real world, and adopt a non-invasive virtual and real picture splicing scheme to avoid virtual content and Real images are superimposed over each other to reduce the misalignment of virtual and real images.

Benefits of technology

It improves the presentation quality of the fused scene after integrating virtual and real scenes, provides a more natural immersive experience, reduces the misalignment of virtual and real scenes, simplifies space expansion and rendering operations, and reduces computing power requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796031A_ABST
    Figure CN118796031A_ABST
Patent Text Reader

Abstract

The invention discloses a display method, device and equipment, and belongs to the technical field of computer vision. The method comprises the following steps: displaying a live-action simulation picture comprising a viewing window in a virtual space; according to the embodiment of the invention, the first visual range of the viewing window browsed by the user in the virtual space is obtained, and the picture of the simulated light and shadow in the first visual range of the viewing window is adjusted in real time, so that the real world panoramic picture can be presented to the user in the virtual space, and the abrupt feeling after virtual-real superposition does not exist; light and shadow information is generated according to orientation information corresponding to the first visual range, real scene geographic position information corresponding to the real scene simulation picture and first time, and the first time is time for the user to browse a viewing window; and displaying a panoramic video picture corresponding to the first visual range, the panoramic video picture being a picture after light and shadow information adjustment, so that the illumination effect of the real world corresponding to the actual geographic position information can be simulated, and the presentation quality of a fusion scene after the fusion of the real scene and the virtual scene is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer vision technology, and in particular, relates to a display method, device, equipment and storage medium. Background Art

[0002] The virtual-reality fusion scene refers to the fusion of real scenes and virtual scenes based on technologies such as Virtual Reality (VR), Augmented Reality (AR), and Mixed Reality (MR) to form a new fusion scene, making people feel as if they are personally on the scene.

[0003] In related technologies, the methods of fusing real scenes and virtual scenes include superimposing virtual objects on real scenes or superimposing real objects on virtual scenes. However, in terms of picture integration and natural law fitting between virtual objects and real objects, there are still problems such as misalignment of virtual and real scenes, difficulty in virtual and real interaction, and abrupt fusion boundaries, which will reduce the presentation quality of the fusion scene. Summary of the invention

[0004] The embodiments of the present application provide a display method, apparatus, device and storage medium, which can solve the problem of low presentation quality of a fused scene after the fusion of a real scene and a virtual scene in the related art.

[0005] In a first aspect, an embodiment of the present application provides a display method, which may include:

[0006] Displaying a real scene simulation picture in a virtual space, the real scene simulation picture including a viewing window;

[0007] Obtaining a first visual range of a user browsing a viewing window in a virtual space;

[0008] Generating light and shadow information according to the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real scene simulation picture, and the first time, where the first time is the time when the user browses the viewing window;

[0009] A panoramic video picture corresponding to the first visible range is displayed, where the panoramic video picture is a picture adjusted with light and shadow information.

[0010] In a second aspect, an embodiment of the present application provides a display device, which may include:

[0011] A display module is used to display a real scene simulation picture in a virtual space, and the real scene simulation picture includes a viewing window;

[0012] An acquisition module, used to acquire a first visual range of a user browsing a viewing window in a virtual space;

[0013] A generating module, configured to generate light and shadow information according to the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real scene simulation picture, and the first time, wherein the first time is the time when the user browses the viewing window;

[0014] The display module is also used to display a panoramic video picture corresponding to the first visible range, and the panoramic video picture is a picture adjusted by light and shadow information.

[0015] In a third aspect, an embodiment of the present application provides a computer device, the computer device comprising: a processor and a memory storing computer program instructions;

[0016] When the processor executes the computer program instructions, the display method shown in the first aspect is implemented.

[0017] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the display method shown in the first aspect is implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the display method shown in the first aspect.

[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the display method shown in the first aspect.

[0020] The display method, device, equipment and storage medium of the embodiments of the present application display a real-scene simulation picture in a virtual space, wherein the real-scene simulation picture includes a viewing window; obtain a first visual range of a user browsing the viewing window in the virtual space; generate light and shadow information according to orientation information corresponding to the first visual range, real-scene geographical location information corresponding to the real-scene simulation picture and a first time, wherein the first time is the time when the user browses the viewing window; and display a panoramic video picture corresponding to the first visual range, wherein the panoramic video picture is a picture adjusted by the light and shadow information. In this way, since the virtual content and the real picture content are not cross-overlapped, there is no need to perform too many modeling and rendering operations for space expansion, which can avoid the abrupt fusion boundary. In addition, a non-intrusive virtual and real picture splicing solution is adopted in the embodiment of the present application, that is, the simulated light and shadow picture within the first visible range of the viewing window is adjusted in real time according to the first visible range of the viewing window browsed by the user in the virtual space, so that the real world panoramic picture can be presented to the user in the virtual space, and there is no abrupt feeling after the virtual and real superposition. Through the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real-scene simulation picture and the first time, the lighting effect of the real world corresponding to the actual geographical location information can be simulated, so that the user has an immersive experience in the virtual space, reduces the dislocation of the virtual and real pictures, and improves the presentation quality of the fused scene after the fusion of the real scene and the virtual scene. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] Figure 1 A flow chart of a display method provided in an embodiment of the present application;

[0023] Figure 2 A schematic diagram of a viewing window of a display method provided in an embodiment of the present application;

[0024] Figure 3 A schematic diagram of a visible range of a display method provided in an embodiment of the present application;

[0025] Figure 4 One of the schematic diagrams of the relative positions of an observation point and a viewing window of a display method provided in an embodiment of the present application;

[0026] Figure 5 A second schematic diagram of the relative positions of an observation point and a viewing window in a display method provided in an embodiment of the present application;

[0027] Figure 6A schematic diagram of the solar altitude angle and azimuth angle of a display method provided in an embodiment of the present application;

[0028] Figure 7 A schematic diagram of a solar azimuth angle display method provided in an embodiment of the present application;

[0029] Figure 8 is a schematic diagram of the structure of a display device provided by an embodiment of the present application;

[0030] Fig. 9 It is a schematic diagram of the structure of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0031] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0032] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0033] The acquisition, storage, use, and processing of data (including but not limited to the features and information in the text) in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0034] Virtual reality technology, also known as virtual reality or spiritual technology, encompasses computer, electronic information, and simulation technology. The basic implementation method is mainly based on computer technology, using and integrating the latest developments of various high technologies such as three-dimensional graphics technology, multimedia technology, simulation technology, display technology, and servo technology. With the help of computer equipment, a realistic three-dimensional visual, tactile, olfactory and other sensory experiences are generated in the virtual world, so that people in the virtual world can feel immersive. Mixed reality technology introduces virtual scene information into the real environment, builds an interactive feedback information loop between the real world, the virtual world and the user, so as to enhance the sense of reality of the user experience. It has the characteristics of authenticity, real-time interactivity and conception. Augmented reality technology is a technology that cleverly integrates virtual information with the real world. It widely uses multimedia, three-dimensional modeling, real-time tracking and registration, intelligent interaction, sensing and other technical means to simulate and simulate computer-generated text, images, three-dimensional models, music, videos and other virtual information, and then applies them to the real world. The two types of information complement each other, thereby achieving "enhancement" of the real world.

[0035] Virtual-reality fusion scene refers to a new fusion scene formed by integrating real scenes and virtual scenes based on VR, AR, MR and other technologies. This fusion scene can include but is not limited to entertainment, education, medical care, etc., so that people can experience the scene more immersively. For example, in entertainment, the concept of virtual-reality fusion scene can be used in games, movies and other fields; in education, it can be used to help students better understand abstract knowledge; in medical care, it can be used for simulated surgery, rehabilitation treatment, etc.

[0036] Based on this, in the relevant technology, with the increasing popularity of the concept of the metaverse in recent years, hardware devices such as smart glasses and smart helmets based on virtual reality technology are considered to be the key to the interactive entrance of the metaverse, which can bring users a new sensory experience between virtual and real. The infinite expansibility and low cost of virtual space are incomparable to the real space. The virtual and real space fusion methods of the metaverse based on virtual reality technology can include two categories: superimposing virtual objects on real pictures and superimposing real pictures on virtual pictures. The superimposed panoramic picture can achieve the effect of virtual in real and real in virtual. Among them, for the case where virtual objects are superimposed on real pictures, it is usually an implementation based on AR enhancement in VR head display devices, and the matching degree of virtual and real objects and the real-time rendering performance of the equipment will restrict the user's immersive experience. In addition, a lot of modeling and rendering work is required when expanding virtual space and content, making virtual and real interaction difficult. And, for the case where real pictures are superimposed on virtual pictures, the real world pictures are embedded in virtual space, such as virtual cinemas, virtual live broadcasts, etc. The second type is presented in a flat picture-in-picture manner. What users see in the virtual space is a screen showing the real world. Users will intuitively find that they are watching a video on a display screen, and will not feel that they are in the real world, because no matter from what angle or distance they watch, the visual effect of the picture-in-picture is the same. In this way, there are still problems such as misalignment of virtual and real images and abrupt fusion boundaries in the integration of virtual objects and real objects and the fitting of natural laws, which will reduce the presentation quality of the fusion scene.

[0037] In order to solve the above technical problems, the embodiments of the present application provide a display method, an apparatus, a computer device and a storage medium.

[0038] Based on this, the following will combine the attached Figures 1 to 9 , describing in detail the display method, apparatus, computer equipment and storage medium of the embodiments of the present application. It should be noted that these embodiments are not intended to limit the scope of the present application.

[0039] Based on this, in order to better illustrate the contents of the embodiments of the present application, the following are respectively combined with Figure 1 A display method provided in an embodiment of the present application is described as follows.

[0040] Figure 1 A flowchart of a display method provided in an embodiment of the present application.

[0041] like Figure 1 As shown, the display method can be applied to a computer device, and the display method can specifically include the following steps:

[0042] Step 110, displaying a real-scene simulation picture in a virtual space, the real-scene simulation picture including a viewing window; Step 120, obtaining a first visual range of a user browsing the viewing window in the virtual space; Step 130, generating light and shadow information according to orientation information corresponding to the first visual range, real-scene geographical location information corresponding to the real-scene simulation picture, and a first time, the first time being the time when the user browses the viewing window; Step 140, displaying a panoramic video picture corresponding to the first visual range, the panoramic video picture being a picture adjusted by light and shadow information.

[0043] In this way, since the virtual content and the real picture content are not cross-overlapped, there is no need to perform too many modeling and rendering operations for space expansion, which can avoid the abrupt fusion boundary. In addition, a non-intrusive virtual and real picture splicing solution is adopted in the embodiment of the present application, that is, the simulated light and shadow picture within the first visible range of the viewing window is adjusted in real time according to the first visible range of the viewing window browsed by the user in the virtual space, so that the real world panoramic picture can be presented to the user in the virtual space, and there is no abrupt feeling after the virtual and real superposition. Through the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real-scene simulation picture and the first time, the lighting effect of the real world corresponding to the actual geographical location information can be simulated, so that the user has an immersive experience in the virtual space, reduces the dislocation of the virtual and real pictures, and improves the presentation quality of the fused scene after the fusion of the real scene and the virtual scene.

[0044] The above steps are described in detail below, as shown below.

[0045] First, step 110 is involved. In some embodiments of the present application, before step 110, the display method may further include:

[0046] A first input of a user selecting to browse a real scene simulation picture is received.

[0047] For example, the user selects the virtual space and remote panoramic video stream of his / her preference through the computer device. Among them, the computer device in the embodiment of the present application may have the following functions: providing a virtual-reality fusion scene, or cooperating with other computer devices to provide a virtual-reality fusion scene. The virtual-reality fusion scene may be a scene in the metaverse space.

[0048] Based on this, step 110 may specifically include step 1101, in response to a first input, displaying a real scene simulation picture corresponding to the first input in the virtual space.

[0049] Furthermore, step 1101 may specifically include step 11011 and step 11012.

[0050] Step 11011: In response to a first input, obtain a virtual space and a remote panoramic video stream corresponding to the first input.

[0051] Step 11012, when it is determined that the remote panoramic video stream meets the preset video playback conditions, the virtual space and the real-scene simulation picture preset in the remote panoramic video stream are spliced ​​according to the uniform resource location (URL) corresponding to the remote panoramic video stream to obtain the real-scene simulation picture in the virtual space, and the real-scene simulation picture includes a viewing window. In this way, the user can observe the outdoor real-scene simulation picture indoors in the virtual space through the viewing window in the virtual space.

[0052] It should be noted that the outdoor real scene simulation picture displayed through the viewing window of the virtual space is determined by the user's indoor observation point. Therefore, the outdoor real scene simulation picture displayed in the viewing window of the virtual space can be extracted from the outdoor complete preset real scene simulation picture. The extraction method is as follows: Figure 2 As shown, for irregular viewing windows such as circular and prismatic ones, a layer mask of a shape corresponding to the viewing window is added to the standard rectangular window, wherein the white part within the circle can be displayed as a real-life simulation picture that allows the user to observe the outdoor scene indoors in the virtual space through the viewing window.

[0053] Secondly, regarding step 120, in the embodiment of the present application, the first visible range is determined by the user's indoor observation point and the orientation of the viewing window in the virtual space. Therefore, the visual range of the user's real viewing window in the virtual space can be obtained based on the position of the user's indoor observation point in the virtual space and combined with the principle of optical imaging, so as to display the real-time real-life simulation picture of the real world in this orientation to the user through the viewing window. For example, Figure 3 As shown, when the user (such as Figure 3 The black dot in the left picture) is about the distance from the viewing window (such as Figure 3 When the rectangle in the left figure is far away, its visible range can be as follows Figure 3 The oval in the left figure; and, when the user (such as Figure 3 The black dot in the right picture) is about the distance from the viewing window (such as Figure 3 The visible range can be as follows: Figure 3 The oval in the right figure is composed of Figure 3Comparing the left and right images, it can be seen that when the distance to the viewing window is closer, the visible range will be correspondingly expanded, and when the distance to the viewing window is farther, the visible range will be proportionally reduced. Since the direction of the viewing window is consistent with the direction of the line connecting the user's indoor observation point in the virtual space and the center point of the viewing window, the first visible range can be determined by the relative distance between the observation point and the viewing window, as shown below. It should be noted that the real scene simulation picture in the embodiment of the present application refers to a panoramic picture.

[0054] In some embodiments of the present application, the real-scene simulation screen includes an indoor real-scene simulation screen and an outdoor real-scene simulation screen, and the first visible range includes the range of the outdoor real-scene simulation screen observed by the user from the viewing window indoors. Based on this, before step 120, the display method may further include step 150, obtaining a first observation point of the user indoors corresponding to the first visible range.

[0055] Based on this, step 120 may specifically include:

[0056] When the first observation point coincides with the intersection of the diagonal of the viewing window, a first visible range corresponding to the first relative distance is obtained, where the first relative distance is the distance between the first observation point and the viewing window, and the first visible range is the maximum range of the real-life simulation picture observed by the user from the viewing window indoors to the outdoor scene.

[0057] Here, the embodiment of the present application can adjust the size of the user's visual range in real time according to the relative distance between the user's observation point and the viewing window in the virtual space. For example, when a simple panoramic video is played, the zooming in of the picture only enlarges the part but reduces the visual range. In the natural world, the picture outside the window seen by people through the window must follow the law of optical imaging. Figure 3 The closer the observation point is to the window, the larger the visible range is. When the distance remains unchanged, the larger the size of the viewing window is, the larger the visible range is. The larger the visible range is, the more content can be seen.

[0058] For example, Figure 4 As shown, when the first observation point X coincides with the intersection of the diagonal line of the viewing window, the angle β formed by the first observation point X and the diagonal vertices Y and Z of the viewing window is 180 degrees. At this time, the visible range is the largest, and the user can see the most content of the outdoor real-scene simulation picture based on the first observation point.

[0059] In addition, as the distance between the user and the intersection of the window diagonal increases, β will gradually decrease and its value range is (180,0). By multiplying the maximum visible range by the reduction ratio of β, the visible range of the user's location can be obtained. In this way, when the user moves from the first observation point to the second observation point, the second observation point does not coincide with the intersection of the viewing window diagonal, and the second observation point is on the side away from the intersection of the viewing window diagonal, the display method provided in the embodiment of the present application can also include steps 1601 and 1602, as shown below.

[0060] Step 1601, calculating a reduction ratio of a visible range based on a distance between a second observation point and each of at least two diagonal vertices of the viewing window, a length of a diagonal line of the viewing window, a distance between the second observation point and an intersection of an intersection of the diagonal lines of the viewing window, and a preset distance of virtual space blur processing;

[0061] Exemplarily, assuming that the reduction ratio of the visible range is S, the at least two diagonal vertices of the viewing window include two, namely, diagonal vertices Y and Z. Thus, the distances between the second observation point and the diagonal vertices Y and Z of the viewing window are a and b respectively, the length of the viewing window diagonal is c, the distance between the second observation point X and the intersection of the viewing window diagonal is D, and the preset distance for virtual space blurring is M. Then S can be obtained by the following calculation formula (1):

[0062]

[0063] Step 1602, according to the reduction ratio of the visible range, adjust the first visible range to the second visible range, wherein the first relative distance is smaller than the second relative distance, the viewing range in the second visible range is larger than the viewing range in the first visible range, and the second relative distance is the distance between the second observation point and the viewing window.

[0064] Furthermore, before step 1602, the display method may further include step 1603, generating a viewing angle vector from the second observation point to the intersection point based on the intersection point of the second observation point and the intersection line of the viewing window diagonal line;

[0065] Based on this, step 1602 may specifically include:

[0066] Based on the first visible range, the viewing range of the user observing the outdoor real scene simulation picture from the viewing window indoors is reduced according to the reduction ratio of the visible range and the viewing angle vector to obtain the second visible range.

[0067] For example, the viewing angle and display content of the outdoor real-scene simulation picture are adjusted in real time, such as Figure 5 As shown, the vector with the second position point X of the user in the virtual space as the starting point and the intersection point Z of the viewing window diagonal as the end point As the viewing angle vector of the panoramic video, in this way, based on the content of the real scene simulation picture of the entire outdoor room involved in the first visual range, the second visual range is adjusted in real time according to the reduction ratio of the visual range and the viewing angle vector, and the content of the real scene simulation picture of the entire outdoor room involved in the adjustment according to the second visual range. At this time, the content of the real scene simulation picture of the entire outdoor room involved in the second visual range is less than the content of the real scene simulation picture of the entire outdoor room involved in the first visual range.

[0068] Furthermore, involving step 130, in the embodiment of the present application, after obtaining accurate geographic location information, the azimuth and altitude of the sun at the geographic location in the real environment are calculated based on the current first time and longitude and latitude coordinates, thereby simulating the lighting effect of the viewing window in the virtual space, so that the lighting effect seen by the user in the virtual space is consistent with the real-time lighting effect at the location of the current video source.

[0069] Based on this, in some embodiments of the present application, the real-scene geographic location information includes the latitude and longitude coordinates of the geographic location represented by the real-scene simulation screen in a preset real-scene map. Based on this, step 130 may specifically include steps 1301 to 1303.

[0070] Step 1301, based on the latitude and longitude coordinates and the first time, generate the altitude angle and azimuth angle of the sun at the geographical location, wherein the altitude angle is the angle between the horizon of the geographical location and the line connecting the sun, and the altitude angle is used to indicate the height of the sun in the sky, and the azimuth angle is the angle between the zenith of the geographical location and the line connecting the geographical location and the sun, and the azimuth angle is used to indicate the position of the sun in the sky.

[0071] Specifically, step 1301 may include step 13011 and step 13012.

[0072] Step 13011, calculate the solar altitude angle of the geographical location based on the longitude and latitude coordinates, the first time, the hour angle and the declination angle.

[0073] For example, according to the first time (the first time includes the dimensions of year, month, date, hour, minute, and second), the longitude and latitude coordinates, and the time zone where the longitude and latitude coordinates are located, the solar altitude angle HS can be calculated by the following formula (2):

[0074] HS = arcsin(sinφ×sinδ+cosφ×cosδ×cosΩ) (2)

[0075] Among them, φ is the latitude coordinate in the longitude and latitude coordinates, δ is the declination angle, and Ω is the hour angle.

[0076] Step 13012, calculate the azimuth of the sun at the geographical location based on the altitude angle, the time zone information corresponding to the longitude and latitude coordinates, and the rotation angle of the viewing window relative to the longitude in the longitude and latitude coordinates.

[0077] Exemplarily, the azimuth angle can be calculated by the following formula (3) and formula (4), as shown below.

[0078] AS= arccos((sinHS×sinφ-sinδ) / (cosHS×cosφ)) (3)

[0079] Since AS is the preliminarily calculated azimuth, the AS calculated by formula (3) is in the range of [0,180] degrees. For areas between the Tropic of Cancer and the Tropic of Capricorn, the azimuth still has negative angles. Therefore, when the direct sun latitude is higher than the local latitude, the sun's azimuth is the opposite of AS. The azimuth calculated so far is the real azimuth outdoors. For virtual windows, due to the orientation problem, the azimuth AS1 needs to be further calculated in combination with the orientation, which is calculated by the following formula (4):

[0080] AS1=AS+TS (4)

[0081] Among them, Figure 7 As shown, TS in the above formula represents the rotation angle of the viewing window relative to the longitude in the latitude and longitude coordinates. Starting from the north direction, it is a negative number [0, -180] degrees when rotating from west to east, and a positive number [0, 180] degrees when rotating from east to west. Based on this, AS1 calculated by formula (4) is the azimuth of the sun at the geographical location in step 13012.

[0082] Step 1302, calculating first light and shadow information of the geographical location where the sun shines according to the altitude angle and the azimuth angle, the first light and shadow information including at least one of the following: light effect, light intensity.

[0083] The light effect includes at least one of the following: halo, beam shape or direction, and Tyndall effect.

[0084] Step 1303: Generate light and shadow information corresponding to the orientation information according to the first light and shadow information.

[0085] Specifically, the first light and shadow information includes light intensity, and step 1303 may specifically include step 13031 and step 13032.

[0086] Step 13031: Generate second light and shadow information according to the first light and shadow information, where the second light and shadow information includes light intensity of at least two areas in the first visible range.

[0087] Step 13032: Generate light and shadow information according to the light intensity of each area of ​​at least two areas, where the light and shadow information includes the average light intensity within the first visible range.

[0088] Exemplarily, the illumination angle of the viewing window is set according to the altitude angle HS and the azimuth angle AS1 calculated above, and the average brightness of the content in the outdoor real-life simulation screen observed by the user from the viewing window is used as the illumination intensity. In addition, before step 1303, the display method may also include step 1304, in which, when the azimuth angle satisfies the first preset condition and the altitude angle satisfies the second preset condition, the step of generating light and shadow information corresponding to the orientation information according to the first light and shadow information is not performed; wherein, the azimuth angle satisfies the first preset condition, including that the azimuth angle is less than or equal to the first preset threshold value or that the azimuth angle is greater than or equal to the second preset threshold value; and the altitude angle satisfies the second preset condition, including that the altitude angle is less than or equal to the first preset threshold value.

[0089] Exemplarily, the illumination angle of the viewing window is set according to the altitude angle HS and the azimuth angle AS1 obtained by the above calculation, and when AS1<=0∪AS1>=180∪HS<=0, no illumination effect will be generated.

[0090] Then, involving step 140, in some embodiments of the present application, the light intensity of the content in the first visible range can be adjusted by light and shadow information to obtain a panoramic video picture corresponding to the first visible range, and then, the adjustment is performed by using at least one technology of virtual reality, augmented reality, and mixed reality to display the panoramic video picture corresponding to the first visible range.

[0091] It should be noted that in the embodiments of the present application, the above-mentioned Figures 1 to 7 The display method shown, specifically, the computer device may include a management module, a display module and a panoramic video collector.

[0092] Specifically, the management module is used to store information such as the latitude and longitude coordinates, time zone, etc. of the remote panoramic video stream in the real world; it is also used to store the viewing window orientation, virtual space, and preset virtual-real pairing information selected by the user.

[0093] The display module is used to stitch the remote panoramic video streams of the virtual space and the real world through the viewing window; adjust the visible range and angle of the real world picture according to the user's position in the viewing window; calculate the real world's solar altitude angle and azimuth in real time and adjust the window lighting effect.

[0094] Panoramic video collectors, including high-definition panoramic cameras, camera groups that can stitch panoramic images, etc., are used to collect remote panoramic images of designated locations in real time and push them to the cloud for distribution.

[0095] Therefore, compared with the existing virtual-real fusion technologies, such as virtual-real object superposition, virtual picture-in-picture, etc., this proposal does not need to consider the matching and behavior synchronization of virtual objects with real pictures, simulates natural phenomena through virtual windows, and stitches virtual space with real panoramic pictures, which has the advantages of low computing power requirements, simple architecture and easy implementation. In addition, the display method provided by the embodiment of the present application does not cross-superimpose virtual content with real picture content, does not require excessive modeling and rendering operations for space expansion, and adopts a non-intrusive virtual-real picture splicing solution. According to the user's viewing window range and observation point in the virtual space, the perspective of the remote panoramic video is switched and the visual range is adjusted in real time, and the corresponding real-world panoramic picture is presented to the user in the virtual space, without the abrupt feeling after the virtual-real superposition. In addition, the embodiment of the present application is based on the simulation method of real-world lighting effects, and can simulate the real-world lighting effects in the virtual space according to the latitude, longitude, and time of the real-world location. Combined with the picture splicing solution of this solution, it can allow users to have an immersive experience in the virtual space, reduce the misalignment of virtual and real pictures, and improve the presentation quality of the fused scene after the fusion of the real scene and the virtual scene.

[0096] It should be noted that the display method provided in the embodiment of the present application can be applied to scenarios such as simulation training based on VR virtual-reality fusion technology, VR exhibition halls, VR scenic spot roaming, VR business halls, metaverse business halls, and family metaverse applications.

[0097] The present application also provides a display device, specifically in combination with Figure 8 Provide detailed explanation.

[0098] Figure 8 It is a schematic diagram of the structure of a display device provided by an embodiment of the present application.

[0099] In some embodiments of the present application, Figure 8 The display device shown can be set in the computing device provided in the embodiment of the present application.

[0100] like Figure 8 As shown, the display device 80 may specifically include:

[0101] The display module 801 is used to display the real scene simulation picture in the virtual space, and the real scene simulation picture includes a viewing window;

[0102] An acquisition module 802 is used to acquire a first visual range of a user browsing a viewing window in a virtual space;

[0103] A generating module 803 is used to generate light and shadow information according to the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real scene simulation picture, and the first time, where the first time is the time when the user browses the viewing window;

[0104] The display module 801 is also used to display a panoramic video picture corresponding to the first visible range, and the panoramic video picture is a picture adjusted by light and shadow information.

[0105] In this way, the display device in the embodiment of the present application can display a real-scene simulation picture in a virtual space, the real-scene simulation picture includes a viewing window, and generates light and shadow information based on the orientation information corresponding to the first visible range of the user browsing the viewing window in the virtual space, the real-scene geographical location information corresponding to the real-scene simulation picture, and the first time, wherein the first time is the time when the user browses the viewing window; and displays a panoramic video picture corresponding to the first visible range, wherein the panoramic video picture is a picture adjusted by the light and shadow information. In this way, since the virtual content and the real picture content are not cross-overlapped, there is no need to perform too many modeling and rendering operations for space expansion, which can avoid the abrupt fusion boundary. In addition, a non-intrusive virtual and real picture splicing solution is adopted in the embodiment of the present application, that is, the simulated light and shadow picture within the first visible range of the viewing window is adjusted in real time according to the first visible range of the viewing window browsed by the user in the virtual space, so that the real world panoramic picture can be presented to the user in the virtual space, and there is no abrupt feeling after the virtual and real superposition. Through the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real-scene simulation picture and the first time, the lighting effect of the real world corresponding to the actual geographical location information can be simulated, so that the user has an immersive experience in the virtual space, reduces the dislocation of the virtual and real pictures, and improves the presentation quality of the fused scene after the fusion of the real scene and the virtual scene.

[0106] The display device 80 in the embodiment of the present application is described in detail below.

[0107] In some embodiments of the present application, the acquisition module 802 may also be used to, when the real scene simulation screen includes indoor and outdoor real scene simulation screens, and the first visible range includes a range from the user observing the outdoor real scene simulation screen from the viewing window indoors, acquire a first observation point of the user indoors corresponding to the first visible range;

[0108] When the first observation point coincides with the intersection of the diagonal of the viewing window, a first visible range corresponding to the first relative distance is obtained, where the first relative distance is the distance between the first observation point and the viewing window, and the first visible range is the maximum range of the real-life simulation picture observed by the user from the viewing window indoors to the outdoor scene.

[0109] In some embodiments of the present application, the display device 80 in the embodiments of the present application may further include a calculation module and an adjustment module; wherein,

[0110] a calculation module, configured to calculate a reduction ratio of a visible range based on a distance between the second observation point and each of at least two diagonal vertices of the viewing window, a length of the viewing window diagonal, a distance between the second observation point and an intersection of the viewing window diagonal, and a preset distance of virtual space blur processing when a user moves from a first observation point to a second observation point, the second observation point does not overlap with an intersection of a viewing window diagonal, and the second observation point is located on a side away from the intersection of the viewing window diagonal;

[0111] The adjustment module is used to adjust the first visible range to the second visible range according to the reduction ratio of the visible range, wherein the first relative distance is smaller than the second relative distance, the viewing range in the second visible range is larger than the viewing range in the first visible range, and the second relative distance is the distance between the second observation point and the viewing window.

[0112] In some embodiments of the present application, the generating module 803 may also be used to generate a viewing angle vector from the second observation point to the intersection point based on the intersection point of the second observation point and the intersection line of the viewing window diagonal line;

[0113] The generation module 803 can be specifically used to reduce the viewing range of the user's indoor viewing window to the outdoor real scene simulation picture based on the first visible range according to the reduction ratio of the visible range and the viewing angle vector to obtain the second visible range.

[0114] In some embodiments of the present application, the generation module 803 can be specifically used to:

[0115] The real-scene geographical location information includes, when the geographical location represented by the real-scene simulation screen is in the latitude and longitude coordinates in the preset real-scene map, the altitude angle and azimuth angle of the sun at the geographical location are generated based on the latitude and longitude coordinates and the first time, wherein the altitude angle is the angle between the horizon of the geographical location and the line connecting the sun, and the altitude angle is used to indicate the height of the sun in the sky, and the azimuth angle is the angle between the zenith of the geographical location and the line connecting the geographical location and the sun, and the azimuth angle is used to indicate the position of the sun in the sky;

[0116] Calculate first light and shadow information of the sun illuminating the geographical location according to the altitude angle and the azimuth angle, where the first light and shadow information includes at least one of the following: light effect and light intensity;

[0117] According to the first light and shadow information, light and shadow information corresponding to the orientation information is generated.

[0118] In some embodiments of the present application, the generation module 803 may be specifically used to:

[0119] Calculate the solar altitude angle at the geographical location based on the latitude and longitude coordinates, first time, hour angle and declination angle;

[0120] The azimuth of the sun at the geographic location is calculated based on the altitude angle, the time zone information corresponding to the longitude and latitude coordinates, and the rotation angle of the viewing window relative to the longitude in the longitude and latitude coordinates.

[0121] In some embodiments of the present application, the generating module 803 may be specifically configured to generate second light and shadow information according to the first light and shadow information when the first light and shadow information includes light intensity, where the second light and shadow information includes light intensity of at least two areas in the first visible range;

[0122] Light and shadow information is generated according to the light intensity of each area of ​​the at least two areas, where the light and shadow information includes an average light intensity within a first visible range.

[0123] In some embodiments of the present application, the generation module 803 can also be used to, when the azimuth angle satisfies a first preset condition and the altitude angle satisfies a second preset condition, not execute the step of generating light and shadow information corresponding to the orientation information according to the first light and shadow information; wherein the azimuth angle satisfies the first preset condition including the azimuth angle being less than or equal to a first preset threshold or the azimuth angle being greater than or equal to a second preset threshold; the altitude angle satisfies the second preset condition including the altitude angle being less than or equal to the first preset threshold.

[0124] Based on the same inventive concept, the present application also provides a computer device. Fig. 9 Provide detailed explanation.

[0125] Fig. 9 It is a schematic diagram of the structure of a computer device provided by an embodiment of the present application.

[0126] like Fig. 9 As shown, the computer device may include at least one of the following involved in the embodiments of the present application: an electronic device, a server. The computer device may include a processor 901 and a memory 902 storing computer program instructions.

[0127] Specifically, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit (ASTC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0128] The memory 902 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 902 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory. In a specific embodiment, the memory 902 includes a solid-state storage (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0129] The processor 901 implements any one of the display methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .

[0130] In one example, the computer device may further include a communication interface 903 and a bus 910. Fig. 9 As shown, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 910 and communicate with each other.

[0131] The communication interface 903 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0132] Bus 910 includes hardware, software or both, and the parts of flow control device are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industry standard system (ETSA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard system (TSA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel system (MCA) bus, peripheral component interconnection (PCT) bus, PCT-Express (PCT-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 910 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0133] The display device can execute the display method in the embodiment of the present application, thereby realizing the combination Figures 1 to 9 The display method and device described.

[0134] In addition, in combination with the display method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the display methods in the above embodiment is implemented.

[0135] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0136] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0137] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0138] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A display method, characterized in that: include: Displaying a real scene simulation picture in a virtual space, wherein the real scene simulation picture includes a viewing window; Acquire a first visual range of a user browsing the viewing window in the virtual space; generating light and shadow information according to the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real scene simulation picture, and a first time, wherein the first time is the time when the user browses the viewing window; A panoramic video picture corresponding to the first visible range is displayed, wherein the panoramic video picture is a picture adjusted by the light and shadow information.

2. The method according to claim 1, characterized in that The real scene simulation picture includes indoor and outdoor real scene simulation pictures, and the first visible range includes the range of the outdoor real scene simulation picture observed by the user from the viewing window in the room; Before the user observes the range of the outdoor real scene simulation picture from the viewing window in the room, the method further includes: Acquire a first observation point of the user in the room corresponding to the first visible range; The obtaining of a first visible range of the user browsing the viewing window in the virtual space includes: When the first observation point coincides with the intersection of the diagonal of the viewing window, a first visible range corresponding to a first relative distance is obtained, where the first relative distance is the distance between the first observation point and the viewing window, and the first visible range is the maximum range of a real-life simulation picture observed by a user from the viewing window indoors to the outdoor scene.

3. The method according to claim 2, characterized in that The method further comprises: When the user moves from the first observation point to the second observation point, the second observation point does not overlap with the intersection of the diagonal lines of the viewing window, and the second observation point is located on a side away from the intersection of the diagonal lines of the viewing window, the reduction ratio of the visible range is calculated based on the distance between the second observation point and each of the at least two diagonal vertices of the viewing window, the length of the viewing window diagonal, the distance between the second observation point and the intersection of the diagonal lines of the viewing window, and the preset distance of the virtual space blurring process; According to the reduction ratio of the visible range, the first visible range is adjusted to the second visible range, wherein the first relative distance is smaller than the second relative distance, the viewing range in the second visible range is larger than the viewing range in the first visible range, and the second relative distance is the distance between the second observation point and the viewing window.

4. The method according to claim 3, characterized in that Before adjusting the first visible range to the second visible range according to the reduction ratio of the visible range, the method further includes: Based on the intersection of the second observation point and the intersection of the diagonal lines of the viewing window, generating a viewing angle vector from the second observation point to the intersection point; The adjusting the first visible range to the second visible range according to the reduction ratio of the visible range includes: Based on the first visible range, the viewing range of the real scene simulation picture observed by the user from the viewing window indoors to the outdoor is reduced according to the reduction ratio of the visible range and the viewing angle vector to obtain the second visible range.

5. The method according to claim 1, characterized in that The real-scene geographical location information includes the latitude and longitude coordinates of the geographical location represented by the real-scene simulation screen in a preset real-scene map; The generating of light and shadow information according to the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real scene simulation picture, and the first time includes: Based on the latitude and longitude coordinates and the first time, generate an altitude angle and an azimuth angle of the sun at the geographical location, wherein the altitude angle is the angle between the horizon at the geographical location and the line connecting the sun, and the altitude angle is used to indicate the height of the sun in the sky, and the azimuth angle is the angle between the zenith of the geographical location and the line connecting the geographical location and the sun, and the azimuth angle is used to indicate the position of the sun in the sky; Calculate first light and shadow information of the sun illuminating the geographical location according to the altitude angle and the azimuth angle, wherein the first light and shadow information includes at least one of the following: light effect and light intensity; According to the first light and shadow information, light and shadow information corresponding to the orientation information is generated.

6. The method according to claim 5, characterized in that The step of generating the altitude angle and azimuth angle of the sun at the geographical location based on the latitude and longitude coordinates and the first time includes: Calculate the altitude angle of the sun at the geographical location based on the longitude and latitude coordinates, the first time, the hour angle and the declination angle; The azimuth of the sun at the geographical location is calculated according to the altitude angle, the time zone information corresponding to the longitude and latitude coordinates, and the rotation angle of the viewing window relative to the longitude in the longitude and latitude coordinates.

7. The method according to claim 5, characterized in that The first light and shadow information includes light intensity; and generating light and shadow information corresponding to the orientation information according to the first light and shadow information includes: generating second light and shadow information according to the first light and shadow information, wherein the second light and shadow information includes light intensity of at least two areas in the first visible range; The light and shadow information is generated according to the light intensity of each of the at least two areas, where the light and shadow information includes an average light intensity within the first visible range.

8. The method according to claim 5, characterized in that Before generating light and shadow information corresponding to the orientation information according to the first light and shadow information, the method further includes: When the azimuth angle satisfies a first preset condition and the altitude angle satisfies a second preset condition, the step of generating light and shadow information corresponding to the orientation information according to the first light and shadow information is not performed; Among them, the azimuth angle satisfies the first preset condition, including that the azimuth angle is less than or equal to a first preset threshold or that the azimuth angle is greater than or equal to a second preset threshold; the altitude angle satisfies the second preset condition, namely that the altitude angle is less than or equal to the first preset threshold.

9. A display device, characterized in that: include: A display module, used for displaying a real scene simulation picture in a virtual space, wherein the real scene simulation picture includes a viewing window; An acquisition module, used for acquiring a first visual range of a user browsing the viewing window in the virtual space; A generating module, configured to generate light and shadow information according to the orientation information corresponding to the first visible range, the real scene geographical location information corresponding to the real scene simulation picture, and a first time, wherein the first time is the time when the user browses the viewing window; The display module is further used to display a panoramic video picture corresponding to the first visible range, and the panoramic video picture is a picture adjusted by the light and shadow information.

10. A computer device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the steps of the display method according to any one of claims 1 to 8 are implemented.

11. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the display method according to any one of claims 1 to 8 are implemented.

12. A computer program product, characterized in that The program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the display method according to any one of claims 1 to 8.