Virtual Reality Scene Display Method and Device, Electronic Device, Readable Storage Medium

By directly retrieving the local loaded rendered image to map the three-dimensional model, the problem of too long loading time for virtual reality scenes is solved, and the user can timely view the virtual reality scene of the target house.

CN114387402BActive Publication Date: 2025-07-22BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210056993.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2025-07-22
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

The loading time of the virtual reality scene is too long, and users cannot view the virtual reality scene of the target house in time.

Method used

Directly retrieve the loaded target rendered image stored in the local storage area, and map the initial three-dimensional model according to the target rendered image to generate the target three-dimensional model and display the virtual reality scene.

Benefits of technology

Reduced the rendering time of the three-dimensional model, and users can view the virtual reality scenes of the target house in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114387402B_ABST
    Figure CN114387402B_ABST
Patent Text Reader

Abstract

The present invention provides a virtual reality scene display method, apparatus, electronic device, and readable storage medium. The virtual reality scene display method is used for displaying a house graphic, and includes: receiving a first input of a first display scheme for entering a target house, and retrieving a target rendering image stored in a first storage area, where the target rendering image has an associated relationship with the target house; performing texture mapping on an initial three-dimensional model in the first display scheme according to the target rendering image to generate a target three-dimensional model; and in response to the first input, displaying a virtual reality scene through the target three-dimensional model of the first display scheme. When the above method receives the first input of the first display scheme for entering the target house, it directly retrieves the loaded target rendering image associated with the target house to render the three-dimensional model, without downloading the target rendering image of the target house, reducing the time for the user to wait for loading the scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular, to a virtual reality scene display method and apparatus, an electronic device, and a readable storage medium. Background Art

[0002] With the development of technology, virtual reality scenes are increasingly widely used in the real estate field, such as VR house viewing. By displaying a house through a virtual reality scene, users can more clearly and intuitively understand the internal structural layout and functional division of the house.

[0003] Currently, a three-dimensional model roaming method can be used to display a virtual reality scene. However, during the display process of the above virtual reality scene, when roaming the three-dimensional model, the rendering time of the three-dimensional model is relatively long, resulting in an overly long loading time for the virtual reality scene, and users cannot view the virtual reality scene of the target house in a timely manner. Summary of the Invention

[0004] The purpose of the embodiments of the present application is to provide a virtual reality scene display method and apparatus, an electronic device, and a readable storage medium, which can solve the problem that the loading time of the virtual reality scene is too long and users cannot view the virtual reality scene of the target house in a timely manner.

[0005] In a first aspect, the embodiments of the present application provide a virtual reality scene display method. The virtual reality scene display method is used to display a house graphic, and the virtual reality scene display method includes: receiving a first input of a first display scheme for entering a target house, and retrieving a target rendered image stored in a first storage area. The target rendered image has an associated relationship with the target house; performing texture mapping processing on an initial three-dimensional model in the first display scheme according to the target rendered image to generate a target three-dimensional model; and in response to the first input, displaying a virtual reality scene through the target three-dimensional model of the first display scheme.

[0006] In a second aspect, the embodiments of the present application provide a virtual reality scene display apparatus. The virtual reality scene display apparatus is used to display a house graphic, and the virtual reality scene display apparatus includes: a receiving unit, configured to receive a first input of a first display scheme for entering a target house; a processing unit, configured to retrieve a target rendered image stored in a first storage area, where the target rendered image has an associated relationship with the target house; the processing unit is further configured to perform texture mapping processing on an initial three-dimensional model in the first display scheme according to the target rendered image to generate a target three-dimensional model; and a display unit, configured to display a virtual reality scene through the target three-dimensional model of the first display scheme in response to the first input.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory storing programs or instructions thereon; a processor configured to implement the steps of the virtual reality scene display method as described in the first aspect above when executing the programs or instructions.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium storing programs or instructions thereon, and when the programs or instructions are executed by a processor, the steps of the virtual reality scene display method as described in the first aspect above are implemented.

[0009] In an embodiment of the present application, when a first input of a first display scheme for entering a target house is received, a target rendered image associated with the target house and stored in a first storage area is directly retrieved to render a three-dimensional model, and the initial three-dimensional model in the first display scheme is textured according to the target rendered image to generate a target three-dimensional model, and then a virtual reality scene is displayed through the target three-dimensional model of the first display scheme. In this way, during the rendering process of the three-dimensional model, the target rendered image associated with the target house and stored is directly retrieved to render the three-dimensional model, without downloading the target rendered image of the target house, reducing the rendering time of the three-dimensional model, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 FIG. 1 shows one of the flowcharts of the virtual reality scene display method according to an embodiment of the present invention;

[0011] Figure 2 FIG. 2 shows another flowchart of the virtual reality scene display method according to an embodiment of the present invention;

[0012] Figure 3 FIG. 3 shows yet another flowchart of the virtual reality scene display method according to an embodiment of the present invention;

[0013] Figure 4 FIG. 4 shows still another flowchart of the virtual reality scene display method according to an embodiment of the present invention;

[0014] Figure 5 FIG. 5 shows yet another flowchart of the virtual reality scene display method according to an embodiment of the present invention;

[0015] Figure 6 FIG. 6 shows still another flowchart of the virtual reality scene display method according to an embodiment of the present invention;

[0016] Figure 7 FIG. 7 shows a schematic block diagram of the virtual reality scene display device according to an embodiment of the present invention;

[0017] Figure 8A schematic block diagram of an electronic device according to an embodiment of the present invention is shown;

[0018] Figure 9 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application is shown. Specific embodiments

[0019] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0020] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means an "or" relationship between the associated objects before and after.

[0021] Next, in conjunction with the attached Figures 1 to 9 , the virtual reality scene display method and device, electronic device, and readable storage medium provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.

[0022] The execution subject of the technical solution of the virtual reality scene display method provided by the embodiments of the present application can be a virtual reality scene display device, which can be specifically determined according to actual usage requirements, and the embodiments of the present application do not make limitations. In order to more clearly describe the virtual reality scene display method provided by the embodiments of the present application, the following method embodiments will be exemplarily described with the execution subject of the virtual reality scene display method being a virtual reality scene display device.

[0023] As Figure 1 shown, in the embodiments of the present application, a virtual reality scene display method is provided, including the following steps S102 to S108:

[0024] Step S102, receiving a first input of a first display scheme for entering a target house.

[0025] Among them, the first display scheme is a three-dimensional roaming display scheme. When the target house is in the three-dimensional roaming display scheme, the user can comprehensively and stereoscopically view the internal structural layout and functional division of the target house by switching perspectives.

[0026] Further, the first input is the input operation of the user on the display interface of the target house under the current display scheme of the target house, or the first input is the input operation of the user on the indication identifier within the display interface of the target house under the current display scheme of the target house, wherein the above indication identifier is used to indicate the target house under the first display scheme. The virtual reality scene display device receives and responds to the first input operation of the user, and switches the display scheme of the target house from the current display scheme to the first display scheme.

[0027] Specifically, the above first input can specifically be the touch input of the user on the above display interface or indication identifier, and this touch input can specifically be single-click input, double-click input, long-press input, preset trajectory sliding input, etc., without specific limitation here.

[0028] Step S104, retrieve the target rendering image stored in the first storage area.

[0029] Among them, the target rendering image has an association relationship with the target house, and the target rendering image is the panoramic image of the target house. Specifically, when storing the target rendering image (i.e., the panoramic image of the target house) into the first storage area, the target rendering image can be named according to the name of the target house to establish the association relationship between the target rendering image and the target house. Based on the above association relationship, when receiving the first input to enter the first display scheme of the target house, the target rendering image stored in the first storage area is retrieved.

[0030] Specifically, the above panoramic image of the target house is an image obtained by shooting, or the above panoramic image of the target house is an image synthesized from multiple images, without specific limitation here.

[0031] Further, the first storage area is a local storage area, and all the images stored in the first storage area are images that have been successfully loaded. That is, the above target rendering image is the panoramic image of the target house that has been successfully loaded. In this way, when receiving the first input to enter the first display scheme of the target house, the panoramic image of the target house that has been successfully loaded is directly retrieved from the first storage area, without reloading the target rendering image, reducing the image loading time.

[0032] Step S106, perform texture mapping on the initial 3D model in the first display scheme according to the target rendering image to generate the target 3D model.

[0033] Among them, the target rendering image is the panoramic image of the target house. The initial 3D model in the first display scheme is texture-mapped with the panoramic image of the target house to perform 3D roaming on the initial 3D model, and then the target 3D model is obtained.

[0034] It is understandable that the initial 3D model is a 3D model without 3D roaming, and the target 3D model is a 3D model in the 3D roaming mode. When displaying the target house through the target 3D model, the user can comprehensively and stereoscopically view the internal structural layout and functional division of the target house by switching the display perspective of the target 3D model.

[0035] Furthermore, the initial 3D model is a 3D model established based on the feature points of the panoramic image of the target house. When establishing the initial 3D model based on the feature points of the panoramic image of the target house, the corresponding relationship between the initial 3D model and the panoramic image of the target house is established according to the above feature points, so as to perform texture mapping processing on the initial 3D model according to the corresponding relationship.

[0036] Step S108, in response to the first input, display the virtual reality scene through the target 3D model of the first display scheme.

[0037] Specifically, perform texture mapping processing on the initial 3D model in the first display scheme through the panoramic image of the target house, so as to perform 3D roaming on the initial 3D model to obtain the target 3D model, and then display the virtual reality scene of the target house through the target 3D model. In this display mode, the user can switch the display perspective of the virtual reality scene of the target house by switching the display perspective of the target 3D model, and then comprehensively and stereoscopically view the internal structural layout and functional division of the target house based on the virtual reality scene of the target house.

[0038] Through the above virtual reality scene display method provided by the embodiments of the present application, when receiving the first input for entering the first display scheme of the target house, directly retrieve the loaded target rendering image (panoramic image of the target house) associated with the target house stored in the first storage area to render the 3D model, perform texture mapping processing on the initial 3D model in the first display scheme according to the target rendering image to generate the target 3D model, and then display the virtual reality scene through the target 3D model of the first display scheme. In this way, during the rendering process of the 3D model, directly retrieve the loaded target rendering image associated with the target house to render the 3D model, without downloading the target rendering image of the target house, reducing the rendering time of the 3D model, thereby reducing the user's waiting time for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0039] In the embodiments of the present application, further, as Figure 2 shown, the above step S104 may specifically include the following steps S104a and S104b:

[0040] Step S104a: Confirm that the target house has been displayed through multiple rendered images in the second display scheme before receiving the first input.

[0041] Specifically, after receiving the first input for the first display scheme to enter the target house, confirm that the target house has been displayed through multiple rendered images in the second display scheme before receiving the above first input.

[0042] Among them, the multiple rendered images are panoramic images of the target house in different storage formats, and the multiple rendered images are stored in the above first storage area. That is, after receiving the first input for the first display scheme to enter the target house, confirm that before receiving the above first input, panoramic images of the target house that have been fully loaded are stored in the first storage area.

[0043] Furthermore, the second display scheme is a display scheme different from the first display scheme. Specifically, the second display scheme can be a panoramic display scheme, a two-dimensional display scheme, etc., which are not specifically limited here.

[0044] Step S104b: Determine and retrieve the target rendered image according to the identification information of the multiple rendered images.

[0045] Among them, the multiple rendered images are panoramic images of the target house in different storage formats, and the identification information is used to indicate the storage format of each rendered image. Specifically, the above identification information may include image information such as image name, image compression format, and image size that can be used to distinguish each rendered image. When it is confirmed that panoramic images of the target house that have been fully loaded (i.e., multiple rendered images) are stored in the first storage area before receiving the above first input, select the rendered image that meets the requirements as the target rendered image for retrieval according to the identification information of each rendered image.

[0046] In the above embodiment provided by the present application, after receiving the first input for the first display scheme to enter the target house, confirm that panoramic images of the target house that have been fully loaded (i.e., multiple rendered images) are stored in the first storage area before receiving the above first input, and then select the rendered image that meets the requirements as the target rendered image for retrieval according to the identification information of each rendered image. In this way, directly retrieve the panoramic image of the target house that has been loaded to render the 3D model, reducing the rendering time of the 3D model, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0047] In the embodiment of the present application, further, the above identification information includes name information. On this basis, as Figure 3 shown, the above step S104b may specifically include the following steps S104b1 to step S104b3:

[0048] Step S104b1: Traverse the name information of multiple rendered images stored in the first storage interval.

[0049] Among them, the multiple rendered images are panoramic images of the target house in different storage formats, and the identification information is used to indicate the storage format of each rendered image.

[0050] Specifically, the identification information includes name information. When it is confirmed that before receiving the above first input, panoramic images of the target house that have been loaded (i.e., multiple rendered images) are stored in the first storage interval, traverse the name information of the multiple rendered images stored in the first storage interval.

[0051] Step S104b2: Determine the target rendered image from the multiple rendered images according to the name information associated with the target house.

[0052] Specifically, the multiple rendered images are associated with the target house, and the multiple rendered images are the loaded panoramic images of the target house.

[0053] Specifically, when storing the multiple rendered images (i.e., the panoramic images of the target house) into the first storage interval, the multiple rendered images can be named according to the name of the target house to establish the association relationship between the multiple rendered images and the target house. Based on the above association relationship, when it is confirmed that before receiving the above first input, panoramic images of the target house that have been loaded (i.e., multiple rendered images) are stored in the first storage interval, determine the rendered image that meets the requirements as the target rendered image according to the name information of each rendered image.

[0054] Step S104b3: Retrieve the target rendered image from the first storage interval.

[0055] Specifically, after determining the rendered image that meets the requirements as the target rendered image according to the name information of each rendered image, directly retrieve the target rendered image from the first storage interval to render the 3D model.

[0056] In the above embodiments provided by the present application, when it is confirmed that before receiving the first input, panoramic images of the target house that have been loaded (i.e., multiple rendered images) are stored in the first storage interval, select the rendered image that meets the requirements as the target rendered image for retrieval according to the name information of each rendered image. In this way, directly retrieve the loaded panoramic image of the target house according to the name information to render the 3D model, ensuring the accuracy of retrieving the target 3D model. At the same time, it reduces the rendering time of the 3D model, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0057] In an embodiment of the present application, further, the multiple rendered images are compressed files loaded from a cloud server to a first storage area.

[0058] Specifically, when the panoramic image of the target house is loaded for the first time, that is, when the above-mentioned multiple rendered graphics are obtained for the first time, an image loading request is sent to the cloud server, and then the corresponding rendered images in the cloud server are loaded to the first storage area for local storage, and then the target rendered image is retrieved from the first storage area to render the 3D model.

[0059] Among them, the multiple rendered images are compressed files, that is, the multiple rendered images are images that have been compressed, specifically, the multiple rendered images are high-compression-rate images.

[0060] It can be understood that the compression rate of the rendered image is inversely proportional to the image quality of the rendered image, the image quality of the rendered image is directly proportional to the quality of the virtual reality scene, and the quality of the virtual reality scene is directly proportional to the rendering time of the 3D model.

[0061] That is to say, the higher the compression rate of the rendered image, the shorter the time required to render the 3D model through the rendered image, and the lower the compression rate of the rendered image, the longer the time required to render the 3D model through the rendered image.

[0062] In the above embodiment provided by the present application, the above-mentioned multiple rendered images are high-compression-rate images. In this way, when selecting a rendered image that meets the requirements from the multiple rendered images as the target rendered image to render the 3D model, the rendering time of the 3D model can be further reduced, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0063] In an embodiment of the present application, further, as Figure 4 shown, the above virtual reality scene display method may further include the following steps S110 and S112:

[0064] Step S110, confirm that the target house has not been displayed through a second display scheme before receiving the first input.

[0065] Specifically, after receiving the first input of the first display scheme for entering the target house, confirm that the target house has never been displayed through the second display scheme before receiving the above first input, that is, confirm that the panoramic image of the target house has not been loaded before receiving the above first input, that is, confirm that there is no panoramic image of the target house stored in the first storage area before receiving the above first input.

[0066] Among them, the second display scheme is a display scheme different from the first display scheme. Specifically, the second display scheme can be a panoramic display scheme or a two-dimensional display scheme, which is not specifically limited herein.

[0067] Step S112: Request the cloud server to load the first rendering material and render the initial 3D model according to the first rendering material.

[0068] Among them, the first rendering material is a panoramic image of the target house stored in the cloud server that has not been loaded.

[0069] Specifically, send a material loading request to the cloud server to request the loading of the first rendering material, receive the first rendering material sent by the cloud server, and render the initial 3D model according to the first rendering material.

[0070] Further, after receiving the first rendering material sent by the cloud server, name the first rendering material according to the name of the target house to establish a correspondence between the first rendering material and the target house, and then store the first rendering material in the above-mentioned first storage area for directly calling the first rendering material to render the 3D model next time.

[0071] Further, the first rendering material can be a compressed file loaded from the cloud server.

[0072] In the above embodiments provided by the present application, after receiving the first input of the first display scheme for entering the target house, it is confirmed that the panoramic image of the target house has not been loaded before receiving the above first input, and then the panoramic image of the target house is loaded from the cloud server to render the initial 3D model to obtain a virtual reality scene of the target house.

[0073] In the embodiments of the present application, further, as Figure 5 shown, the above step S106 may specifically include the following steps S106a and S106b:

[0074] Step S106a: Perform downsampling on the target rendering image to obtain a texture image.

[0075] It can be understood that the resolution of the target rendering image is inversely proportional to the image quality of the target rendering image, the image quality of the target rendering image is proportional to the quality of the virtual reality scene, and the quality of the virtual reality scene is proportional to the rendering time of the 3D model.

[0076] That is to say, the higher the resolution of the target rendering image, the longer the time required to render the 3D model through the target rendering image, and the lower the resolution of the target rendering image, the shorter the time required to render the 3D model through the target rendering image.

[0077] Step S106b: Texture the initial 3D model according to the texture image.

[0078] Specifically, the texture image is an image obtained by downsampling the target rendering image. Texturing the initial 3D model with the texture image for rendering the initial 3D model can further reduce the rendering time of the initial 3D model.

[0079] In the above embodiments provided by this application, the target rendering image is downsampled, and the initial 3D model is textured with the downsampled image for rendering the initial 3D model. In this way, the rendering time of the initial 3D model can be further reduced, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0080] In the embodiments of this application, further, as Figure 6 shown, the above step S106b may specifically include the following steps S106b1 to S106b3:

[0081] Step S106b1: Determine multiple first feature points in the initial 3D model.

[0082] Step S106b2: Determine multiple second feature points in the texture image.

[0083] Step S106b3: Paste the texture image onto the initial 3D model according to the multiple first feature points and the multiple second feature points.

[0084] Among them, the multiple first feature points and the multiple second feature points correspond one by one.

[0085] Specifically, the initial 3D model is a 3D model established according to the feature points of the panoramic image of the target house. When establishing the initial 3D model according to the feature points of the panoramic image of the target house, the corresponding relationship between the initial 3D model and the panoramic image of the target house is established according to the above feature points at the same time, that is, the feature points in the panoramic image of the above target house and the feature points in the initial 3D model correspond one by one.

[0086] In the above embodiments provided by the present application, according to multiple first feature points in the initial three-dimensional model and multiple second feature points in the texture map image, the texture map image is pasted on the initial three-dimensional model, wherein the multiple first feature points and the multiple second feature points correspond one by one. In this way, while ensuring the accuracy of the texture mapping process for the initial three-dimensional model, based on the one-to-one correspondence between the multiple first feature points and the multiple second feature points, the speed of the texture mapping process for the initial three-dimensional model is accelerated, thereby reducing the rendering time of the initial three-dimensional model and reducing the time for the user to wait for loading the virtual reality scene, ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0087] In the virtual reality scene display method provided by the embodiments of the present application, the execution subject may be a virtual reality scene display device. In the embodiments of the present application, taking the virtual reality scene display device executing the virtual reality scene display method as an example, the virtual reality scene display device provided by the embodiments of the present application is described.

[0088] As Figure 7 shown, in the embodiments of the present application, a virtual reality scene display device 700 is proposed. The virtual reality scene display device 700 is used to display a house graphic. The virtual reality scene display device 700 includes:

[0089] A receiving unit 702, configured to receive a first input of a first display scheme for entering a target house;

[0090] A processing unit 704, configured to retrieve a target rendering image stored in a first storage area, where the target rendering image has an association relationship with the target house;

[0091] The processing unit 704 is further configured to perform texture mapping processing on the initial three-dimensional model in the first display scheme according to the target rendering image to generate a target three-dimensional model;

[0092] A display unit 706, configured to respond to the first input and display a virtual reality scene through the target three-dimensional model of the first display scheme.

[0093] In the virtual reality scene display device 700 provided by the embodiment of the present application, when the receiving unit 702 receives the first input of the first display scheme for entering the target house, the processing unit 704 directly retrieves the loaded target rendering image (panoramic image of the target house) associated with the target house stored in the first storage area to render the three-dimensional model, performs texture mapping on the initial three-dimensional model in the first display scheme according to the target rendering image to generate the target three-dimensional model, and the display unit 706 then displays the virtual reality scene through the target three-dimensional model of the first display scheme. In this way, during the rendering process of the three-dimensional model, the loaded target rendering image associated with the target house is directly retrieved to render the three-dimensional model, without downloading the target rendering image of the target house, reducing the rendering time of the three-dimensional model, thereby reducing the time for the user to wait for loading the virtual reality scene, and ensuring that the user can promptly view the virtual reality scene of the target house.

[0094] In the embodiment of the present application, optionally, the processing unit 704 may specifically be used to: confirm that before receiving the first input, the target house has been displayed through multiple rendering images in the second display scheme, and the multiple rendering images are stored in the first storage area; determine and retrieve the target rendering image according to the identification information of the multiple rendering images.

[0095] In the embodiment of the present application, after the receiving unit 702 receives the first input of the first display scheme for entering the target house, the processing unit 704 confirms that before the receiving unit 702 receives the above first input, the panoramic images (i.e., multiple rendering images) of the target house that have been loaded are stored in the first storage area, and then according to the identification information of each rendering image, selects the rendering image that meets the requirements as the target rendering image for retrieval. In this way, the loaded panoramic image of the target house is directly retrieved to render the three-dimensional model, reducing the rendering time of the three-dimensional model, thereby reducing the time for the user to wait for loading the virtual reality scene, and ensuring that the user can promptly view the virtual reality scene of the target house.

[0096] In the embodiment of the present application, optionally, the identification information includes name information, and the processing unit 704 may specifically be used to: traverse the name information of the multiple rendering images stored in the first storage area; determine the target rendering image from the multiple rendering images according to the name information having an associated relationship with the target house; retrieve the target rendering image from the first storage area.

[0097] In the embodiment of the present application, when the processing unit 704 confirms that before the receiving unit 702 receives the first input, a panoramic image (i.e., multiple rendered images) of the target house that has been completely loaded is stored in the first storage area, the rendered images that meet the requirements are selected as the target rendered images for retrieval according to the name information of each rendered image. In this way, the panoramic image of the target house that has been loaded is directly retrieved according to the name information to render the 3D model, ensuring the accuracy of retrieving the target 3D model. At the same time, the rendering time of the 3D model is reduced, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0098] In the embodiment of the present application, optionally, the multiple rendered images are compressed files loaded from the cloud server to the first storage area.

[0099] In the embodiment of the present application, the above-mentioned multiple rendered images are high-compression-rate images. In this way, when selecting the rendered images that meet the requirements from the multiple rendered images as the target rendered images to render the 3D model, the rendering time of the 3D model can be further reduced, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0100] In the embodiment of the present application, optionally, the processing unit 704 is further configured to: confirm that the target house has not been displayed through the second display scheme before receiving the first input; request the cloud server to load the first rendering material, and render the initial 3D model according to the first rendering material.

[0101] In the embodiment of the present application, after the receiving unit 702 receives the first input of the first display scheme for entering the target house, the processing unit 704 confirms that before the receiving unit 702 receives the above-mentioned first input, the panoramic image of the above-mentioned target house has not been loaded, and then loads the panoramic image of the target house from the cloud server to render the initial 3D model to obtain the virtual reality scene of the target house.

[0102] In the embodiment of the present application, optionally, the processing unit 704 may specifically be configured to: perform a resolution reduction process on the target rendered image to obtain a texture image; perform a texture process on the initial 3D model according to the texture image.

[0103] In the embodiment of the present application, the processing unit 704 performs a resolution reduction process on the target rendered image, and then performs a texture process on the initial 3D model through the image after the resolution reduction process to render the initial 3D model. In this way, the rendering time of the initial 3D model can be further reduced, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0104] In an embodiment of the present application, optionally, the processing unit 704 may specifically be configured to: determine a plurality of first feature points in the initial three-dimensional model; determine a plurality of second feature points in the texture image, where the plurality of second feature points correspond one-to-one to the plurality of first feature points; and paste the texture image on the initial three-dimensional model according to the plurality of first feature points and the plurality of second feature points.

[0105] In an embodiment of the present application, the processing unit 704 pastes the texture image on the initial three-dimensional model according to a plurality of first feature points in the initial three-dimensional model and a plurality of second feature points in the texture image, where the plurality of first feature points and the plurality of second feature points correspond one-to-one. In this way, while ensuring the accuracy of the texture processing of the initial three-dimensional model, the speed of the texture processing of the initial three-dimensional model is increased according to the one-to-one correspondence between the plurality of first feature points and the plurality of second feature points, thereby reducing the rendering time of the initial three-dimensional model and reducing the waiting time for the user to load the virtual reality scene, ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0106] The virtual reality scene display device in an embodiment of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than a terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiment of the present application does not make a specific limitation.

[0107] The virtual reality scene display device in an embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiment of the present application does not make a specific limitation.

[0108] The virtual reality scene display device provided in the embodiment of the present application can implement the above Figures 1 to 6For the sake of brevity, the processes implemented in the method embodiments are not described again here to avoid repetition.

[0109] Optionally, as Figure 8 shown, in an embodiment of the present application, an electronic device 800 is provided, including a memory 802 and a processor 804. A program or instruction is stored on the memory 802. When the processor 804 executes the above program or instruction, each step of the above embodiment of the virtual reality scene display method is implemented, and the same technical effect can be achieved. For the sake of brevity, it is not described again here.

[0110] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0111] Figure 9 FIG. is a schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application.

[0112] The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0113] Those skilled in the art can understand that the electronic device 1000 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 1010 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The structure of the electronic device shown in does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which are not described again here.

[0114] Among them, the user input unit 1007 is used to receive a first input of a first display scheme for entering a target house.

[0115] The processor 1010 is used to retrieve a target rendering image stored in a first storage area, and the target rendering image has an association relationship with the target house.

[0116] The processor 1010 is further used to perform texture mapping on the initial three-dimensional model in the first display scheme according to the target rendering image to generate a target three-dimensional model.

[0117] The display unit 1006 is used to display a virtual reality scene through the target three-dimensional model of the first display scheme in response to the first input.

[0118] In an embodiment of the present application, when the user input unit 1007 receives a first input for a first display scheme to enter a target house, the processor 1010 directly retrieves a loaded target rendering image (a panoramic image of the target house) associated with the target house stored in the first storage area to render a 3D model, performs texture mapping on the initial 3D model in the first display scheme according to the target rendering image to generate a target 3D model, and the display unit 1006 then displays a virtual reality scene through the target 3D model of the first display scheme. In this way, during the process of rendering the 3D model, the loaded target rendering image associated with the target house is directly retrieved to render the 3D model, without downloading the target rendering image of the target house, reducing the rendering time of the 3D model, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can promptly view the virtual reality scene of the target house.

[0119] Optionally, the processor 1010 may specifically be configured to: confirm that before receiving the first input, the target house has been displayed through multiple rendering images in a second display scheme, and the multiple rendering images are stored in the first storage area; determine and retrieve the target rendering image according to the identification information of the multiple rendering images.

[0120] In an embodiment of the present application, after the user input unit 1007 receives a first input for a first display scheme to enter a target house, the processor 1010 confirms that before the user input unit 1007 receives the above first input, a panoramic image (i.e., multiple rendering images) of the target house that has been completely loaded is stored in the first storage area, and then according to the identification information of each rendering image, selects a rendering image that meets the requirements as the target rendering image for retrieval. In this way, the loaded panoramic image of the target house is directly retrieved to render the 3D model, reducing the rendering time of the 3D model, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can promptly view the virtual reality scene of the target house.

[0121] Optionally, the identification information includes name information, and the processor 1010 may specifically be configured to: traverse the name information of the multiple rendering images stored in the first storage area; determine the target rendering image from the multiple rendering images according to the name information having an associated relationship with the target house; retrieve the target rendering image from the first storage area.

[0122] In the embodiments of the present application, when the processor 1010 confirms that before the first input is received by the user input unit 1007, a panoramic image (i.e., multiple rendered images) of the target house that has been completely loaded is stored in the first storage area, according to the name information of each rendered image, the rendered image that meets the requirements is selected as the target rendered image for retrieval. In this way, the panoramic image of the target house that has been loaded is directly retrieved according to the name information to render the three-dimensional model, ensuring the accuracy of retrieving the target three-dimensional model. At the same time, the rendering time of the three-dimensional model is reduced, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0123] Optionally, the multiple rendered images are compressed files loaded from the cloud server to the first storage area.

[0124] In the embodiments of the present application, the above multiple rendered images are high-compression-rate images. In this way, when selecting the rendered image that meets the requirements from the multiple rendered images as the target rendered image to render the three-dimensional model, the rendering time of the three-dimensional model can be further reduced, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0125] Optionally, the processor 1010 is further configured to confirm that the target house has not been displayed through the second display scheme before receiving the first input; request the cloud server to load the first rendering material, and render the initial three-dimensional model according to the first rendering material.

[0126] In the embodiments of the present application, after the user input unit 1007 receives the first input of the first display scheme for entering the target house, the processor 1010 confirms that before the user input unit 1007 receives the above first input, the panoramic image of the above target house has not been loaded, and then loads the panoramic image of the target house from the cloud server to render the initial three-dimensional model to obtain the virtual reality scene of the target house.

[0127] Optionally, the processor 1010 may specifically be configured to: perform a resolution reduction process on the target rendered image to obtain a texture image; and perform a texture process on the initial three-dimensional model according to the texture image.

[0128] In the embodiments of the present application, the processor 1010 performs a resolution reduction process on the target rendered image, and then performs a texture process on the initial three-dimensional model through the image after the resolution reduction process to render the initial three-dimensional model. In this way, the rendering time of the initial three-dimensional model can be further reduced, thereby reducing the time for the user to wait for loading the virtual reality scene and ensuring that the user can view the virtual reality scene of the target house in a timely manner.

[0129] Optionally, the processor 1010 may specifically be configured to: determine a plurality of first feature points in the initial three-dimensional model; determine a plurality of second feature points in the texture map image, where the plurality of second feature points correspond one-to-one to the plurality of first feature points; and paste the texture map image onto the initial three-dimensional model according to the plurality of first feature points and the plurality of second feature points.

[0130] In the embodiment of the present application, the processor 1010 pastes the texture map image onto the initial three-dimensional model according to the plurality of first feature points in the initial three-dimensional model and the plurality of second feature points in the texture map image, where the plurality of first feature points and the plurality of second feature points correspond one-to-one. In this way, while ensuring the accuracy of the texture mapping process for the initial three-dimensional model, the speed of the texture mapping process for the initial three-dimensional model is accelerated based on the one-to-one correspondence between the plurality of first feature points and the plurality of second feature points, thereby reducing the rendering time of the initial three-dimensional model and reducing the waiting time for the user to load the virtual reality scene, ensuring that the user can promptly view the virtual reality scene of the target house.

[0131] It should be understood that in the embodiment of the present application, the input unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. The other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.

[0132] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.

[0133] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 1010 either.

[0134] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each step of the virtual reality scene display method in the above embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0135] Among them, the processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.

[0136] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned embodiment of the virtual reality scene display method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0137] It should be understood that the chip mentioned in the embodiment of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0138] The embodiment of the present application provides a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above-mentioned embodiment of the virtual reality scene display method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0139] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without more limitations, the element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device including that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.

[0140] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.

[0141] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A virtual reality scene display method, characterized in that, The virtual reality scene display method is used to display a house graphic, and the virtual reality scene display method includes: Receiving a first input of a first display scheme for entering a target house, and retrieving a target rendering image stored in a first storage area, where the target rendering image has an associated relationship with the target house; Performing texture mapping on an initial three-dimensional model in the first display scheme according to the target rendering image to generate a target three-dimensional model; In response to the first input, displaying a virtual reality scene through the target three-dimensional model of the first display scheme; The retrieving the target rendering image stored in the first storage area specifically includes: Confirming that before receiving the first input, the target house has been displayed through a plurality of rendering images in a second display scheme, and the plurality of rendering images are stored in the first storage area; Determining and retrieving the target rendering image according to the identification information of the plurality of rendering images; Performing texture mapping on the initial three-dimensional model in the first display scheme according to the target rendering image includes: Performing a resolution reduction process on the target rendering image to obtain a texture mapping image; The virtual reality scene display method further includes: Confirming that before receiving the first input, the target house has not been displayed through the second display scheme; Requesting a cloud server to load first rendering materials, and rendering the initial three-dimensional model according to the first rendering materials.

2. The virtual reality scene display method according to claim 1, wherein The identification information includes name information, and the determining and retrieving the target rendering image according to the identification information of the plurality of rendering images specifically includes: Traversing the name information of a plurality of rendering images stored in the first storage area; Determining the target rendering image from the plurality of rendering images according to the name information having an associated relationship with the target house; Retrieving the target rendering image from the first storage area.

3. The virtual reality scene display method according to claim 1, wherein The plurality of rendering images are compressed files loaded from a cloud server to the first storage area.

4. The virtual reality scene display method according to any one of claims 1 to 3, characterized in that, Performing texture mapping on the initial three-dimensional model in the first display scheme according to the target rendering image further includes: Performing texture mapping on the initial three-dimensional model according to the texture mapping image.

5. The virtual reality scene display method according to claim 4, characterized in that The performing texture mapping on the initial three-dimensional model according to the texture mapping image specifically includes: Determining a plurality of first feature points in the initial three-dimensional model; Determining a plurality of second feature points in the texture mapping image, where the plurality of second feature points correspond one-to-one to the plurality of first feature points; Pasting the texture mapping image on the initial three-dimensional model according to the plurality of first feature points and the plurality of second feature points.

6. A virtual reality scene display device, characterized in that, The virtual reality scene display device is used to display a house graphic, and the virtual reality scene display device includes: A receiving unit, configured to receive a first input of a first display scheme for entering a target house; A processing unit, configured to retrieve a target rendering image stored in a first storage area, where the target rendering image has an associated relationship with the target house; The processing unit is further configured to perform texture mapping on the initial 3D model in the first display scheme according to the target rendered image to generate a target 3D model; The display unit is configured to, in response to the first input, display a virtual reality scene through the target 3D model of the first display scheme; The processing unit is specifically configured to confirm that the target house has been displayed through a plurality of rendered images in a second display scheme before receiving the first input, and the plurality of rendered images are stored in the first storage interval; determine and retrieve the target rendered image according to the identification information of the plurality of rendered images; The processing unit is further configured to perform downsampling on the target rendered image to obtain a texture image; confirm that the target house has not been displayed through the second display scheme before receiving the first input; request the cloud server to load first rendering materials, and render the initial 3D model according to the first rendering materials.

7. An electronic device, characterized in that, Comprising: A memory, on which programs or instructions are stored; A processor, configured to implement the steps of the virtual reality scene display method according to any one of claims 1 to 5 when executing the programs or instructions.

8. A readable storage medium, on which a program or instructions are stored, characterized in that, The programs or instructions, when executed by the processor, implement the steps of the virtual reality scene display method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Two-dimensional image display method and device for virtual object, equipment and storage medium

    CN112156464A

  • Virtual scene display method and device, equipment and storage medium

    CN112370784A

  • Image processing method and electronic equipment

    CN113706681A