Virtual reality scene configuration method and device, equipment and medium

By obtaining spatial location information of the physical area to generate loading parameters and dynamically loading virtual resources, the problem of low configuration efficiency of underground virtual reality scenarios in different real-world scenarios is solved, and efficient virtual reality scenario adaptation and maintenance are achieved.

CN119088210APending Publication Date: 2024-12-06BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411029421.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In virtual reality scenarios, due to the different overall shapes, load-bearing column sizes and locations of different real scenes, the same VR scenario needs to produce VR scene data separately for each real scene, resulting in high maintenance costs and low configuration efficiency.

Method used

By obtaining the spatial location information of the physical area to be accessed and the reference physical area, generating the loading parameters of the virtual resource, realizing dynamic loading and unloading of the virtual resource, adapting to the layout of different real scenarios.

Benefits of technology

The content of the same virtual reality scenario is configured in different real scenarios, which greatly reduces maintenance costs and improves the configuration efficiency of virtual reality scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088210A_ABST
    Figure CN119088210A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a virtual reality scene configuration method and device, equipment and a medium, and the method is applied to virtual reality equipment, and comprises the steps: obtaining the target space position information of a to-be-accessed physical region and the reference space position information of a reference physical region based on a pre-configured configuration file; generating a loading parameter of a virtual resource in the physical area to be accessed based on the target spatial position information and the reference spatial position; and loading the virtual resources in the to-be-accessed physical area based on the loading parameters. According to the embodiment of the invention, the loading parameters can be generated based on the spatial position information of the to-be-accessed physical region and the reference physical region to load the virtual resources in the to-be-accessed physical region, so that the virtual resources of the same virtual reality scene can be configured in different reality scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of virtual reality technology, and in particular to a virtual reality scene configuration method, device, equipment and medium. Background Art

[0002] At present, in VR (Virtual Reality) offline experience scenarios, usually, corresponding VR scene data is produced according to information such as the shape of each real site. However, in actual applications, the overall shapes, sizes and positions of load-bearing columns of different real sites are different, resulting in the need to produce a separate set of VR scene data for each real site for the same VR scene, resulting in relatively high maintenance costs. Summary of the invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a virtual reality scene configuration method, device, equipment and medium.

[0004] An embodiment of the present disclosure provides a virtual reality scene configuration method, which is applied to a virtual reality device. The method includes: obtaining target spatial position information of a physical area to be visited and reference spatial position information of a reference physical area based on a preconfigured configuration file; generating loading parameters of virtual resources in the physical area to be visited based on the target spatial position information and the reference spatial position; and loading the virtual resources in the physical area to be visited based on the loading parameters.

[0005] Optionally, the generating of loading parameters of virtual resources in the physical area to be visited based on the target spatial position information and the reference spatial position includes: acquiring reference center point coordinates and reference positive direction information of the reference physical area based on the reference spatial position information; acquiring target center point coordinates and target positive direction information of the physical area to be visited based on the target spatial position information; calculating the coordinate displacement difference between the target center point coordinates and the reference center point coordinates to obtain displacement parameters; calculating the directional rotation difference between the target positive direction information and the reference positive direction information to obtain rotation parameters; and using the displacement parameters and the rotation parameters as loading parameters of virtual resources in the physical area to be visited.

[0006] Optionally, generating loading parameters of virtual resources in the physical area to be visited based on the target spatial position information and the reference spatial position includes: obtaining reference three-dimensional coordinate points of the reference physical area based on the reference spatial position information; obtaining target three-dimensional coordinate points of the physical area to be visited based on the target spatial position information; performing coordinate rotation calculation based on the reference three-dimensional coordinate points and the target three-dimensional coordinate points to obtain a rotation matrix, and using the rotation matrix as loading parameters of virtual resources in the physical area to be visited.

[0007] Optionally, the method further includes: determining the physical area to be visited based on the spatial position of the virtual reality device; and loading the virtual resources in the physical area to be visited based on the loading parameters, including: converting the spatial position of the virtual resources based on the loading parameters and then loading them into the virtual reality device for display.

[0008] Optionally, determining the physical area to be visited based on the spatial position of the virtual reality device includes: when the spatial position of the virtual reality device is at the target spatial position, determining the currently visited physical area corresponding to the target spatial position; and determining the physical area to be visited based on the currently visited physical area and a preset physical area rule.

[0009] Optionally, the method further includes: determining a visited physical area based on the currently visited physical area and preset physical area rules; and unloading virtual resources corresponding to the visited physical area so that the virtual reality device does not display the virtual resources corresponding to the visited physical area.

[0010] Optionally, the method further includes: receiving N virtual resources sent by a virtual reality server; wherein the virtual reality server divides the virtual reality scene data into the N virtual resources based on the experience scene content; wherein N is a positive integer greater than 1.

[0011] The embodiment of the present disclosure also provides a virtual reality scene configuration device, which is applied to a virtual reality device, and the device includes: an acquisition module, which is used to acquire target spatial position information of a physical area to be visited and reference spatial position information of a reference physical area based on a preconfigured configuration file; a generation module, which is used to generate loading parameters of virtual resources in the physical area to be visited based on the target spatial position information and the reference spatial position; and a loading module, which is used to load the virtual resources in the physical area to be visited based on the loading parameters.

[0012] An embodiment of the present disclosure also provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the virtual reality scene configuration method provided by the embodiment of the present disclosure.

[0013] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the virtual reality scene configuration method provided by the embodiment of the present disclosure.

[0014] The above technical solution provided by the embodiment of the present disclosure can generate loading parameters based on the spatial position information of the physical area to be visited and the reference physical area to load virtual resources in the physical area to be visited. There is no need to configure the virtual reality scene for each real scene separately. The virtual resources can be directly transformed in real time according to the spatial position information corresponding to each physical area of ​​the real scene in the configuration file to adapt to different real scenes. Compared with the existing technology, the above method can realize the configuration of the scene content of the same virtual reality scene in different real scenes, greatly reduce maintenance costs, and improve the efficiency of virtual reality scene configuration.

[0015] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] Figure 1 A flowchart of a virtual reality scene configuration method provided by an embodiment of the present disclosure;

[0019] Figure 2 A flowchart of a virtual reality scene configuration method provided by an embodiment of the present disclosure;

[0020] Figure 3 A schematic diagram of a virtual reality scene configuration process provided by an embodiment of the present disclosure;

[0021] Figure 4A schematic diagram of the structure of a virtual reality scene configuration device provided by an embodiment of the present disclosure;

[0022] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0025] In actual offline VR experience scenarios, generally small and medium-sized offline VR experiences can make the venues consistent, but large-scale offline VR experiences generally require 200-300 square meters of venues, and this type of venue is generally located in shopping malls and other venues. Therefore, the overall shape, load-bearing column size and position of different venues are different. The cost of packaging and maintaining VR experience content for each venue separately is too high. In addition, VR experience content that is not combined with the actual venue will be placed in a fixed position in advance, but because it is difficult to select a venue with exactly the same overall shape when selecting a site for a large-scale experience project, the VR experience is relatively poor.

[0026] In view of the above problems, the disclosed embodiment proposes a virtual reality scene configuration method, which divides the VR experience scene content into multiple virtual resources as units and can correspond to physical areas one by one. When the user experiences it, the loading parameters can be generated based on the spatial position information of the physical area to be visited and the reference physical area to load the virtual resources in the physical area to be visited, so that a set of packaged VR experience scene content can be adapted to venues with different layouts, greatly reducing maintenance costs and improving the efficiency of virtual reality scene configuration. The following is a detailed explanation:

[0027] Figure 1 This is a flow chart of a virtual reality scene configuration method provided by an embodiment of the present disclosure. The method can be applied to virtual reality devices, such as glasses, head-mounted display devices, contact lenses, etc., for realizing visual perception and other forms of perception, which are not limited here. Figure 1 As shown, the method mainly includes the following steps S102 to S106:

[0028] Step S102: acquiring target spatial position information of a physical area to be visited and reference spatial position information of a reference physical area based on a preconfigured configuration file.

[0029] In the embodiment of the present disclosure, the physical area to be visited may be a physical area adjacent to the currently visited physical area, or may be an interval physical area, which is specifically determined according to the set physical area rules; wherein the physical area rules are usually set according to the order of the experience scene content, or may be set according to user experience requirements, which is specifically selected according to the actual application scenario.

[0030] In the embodiment of the present disclosure, the reference physical area may be the currently visited physical area or any other designated physical area, such as the first visited physical area, etc., which is selected and set according to the application scenario.

[0031] In an embodiment of the present disclosure, multiple physical areas are arranged in advance based on physical area information of real scenes, such as the overall shape of the on-site venue, and each physical area is measured based on the position arrangement result to determine the corresponding spatial position information such as center point coordinates, positive direction information, and three-dimensional coordinate points, and a reference physical area is determined from the multiple physical areas, so that the center point coordinates and positive direction information corresponding to each physical area, the reference center point coordinates and reference positive direction information of the reference physical area are stored in a configuration file, and the three-dimensional coordinate points corresponding to each physical area and the reference three-dimensional coordinate points of the reference physical area are stored in the configuration file.

[0032] In the embodiment of the present disclosure, the target spatial position information of the physical area to be visited may be the target center point coordinates, target positive direction information and target three-dimensional coordinate points; the reference spatial position information of the reference physical area may be the reference center point coordinates, reference positive direction information and reference three-dimensional coordinate points.

[0033] Step 104 : generating loading parameters of the virtual resources in the physical area to be accessed based on the target spatial position information and the reference spatial position.

[0034] In the disclosed embodiment, the virtual reality device pre-receives the virtual reality scene data divided into N virtual resources and stored based on the experience scene content by the virtual reality server, where N is a positive integer greater than 1, that is, the virtual reality device locally stores N virtual resources.

[0035] In the embodiments of the present disclosure, the loading parameters refer to the displacement data, rotation data, rotation matrix, etc. between the physical area to be visited and the reference physical area. The displacement data and rotation data can be obtained by calculating the center point coordinates and positive direction information of the physical area to be visited and the reference center point coordinates and reference positive direction information of the reference physical area as the loading parameters. The rotation matrix can also be obtained by calculating the target three-dimensional coordinate point of the physical area to be visited and the reference three-dimensional coordinate point of the reference physical area as the loading parameters.

[0036] Step 106: Load virtual resources in the physical area to be accessed based on the loading parameters.

[0037] In the disclosed embodiment, after the loading parameters are obtained, the virtual resources corresponding to the physical area to be visited are spatially converted using the loading parameters and then loaded into the virtual reality device for display, thereby satisfying the user experience.

[0038] It should be noted that there may be one or more physical areas to be accessed, and therefore virtual resources may be loaded simultaneously to multiple physical areas to be accessed, so as to improve processing efficiency and meet different usage requirements of users.

[0039] In the above embodiment, loading parameters can be generated based on the spatial position information of the physical area to be visited and the reference physical area to load virtual resources in the physical area to be visited. There is no need to configure the virtual reality scene for each real scene separately. The virtual resources can be directly transformed in real time according to the spatial position information corresponding to each physical area of ​​the real scene in the configuration file to adapt to different real scenes. Compared with the prior art, the above method can realize the configuration of the scene content of the same virtual reality scene in different real scenes, greatly reduce maintenance costs, and improve the efficiency of virtual reality scene configuration.

[0040] In some embodiments, loading parameters of virtual resources in the physical area to be accessed are generated based on the target spatial position information and the reference spatial position, including: obtaining reference center point coordinates and reference positive direction information of the reference physical area based on the reference spatial position information, obtaining target center point coordinates and target positive direction information of the physical area to be accessed based on the target spatial position information, calculating the coordinate displacement difference between the target center point coordinates and the reference center point coordinates to obtain displacement parameters, calculating the directional rotation difference between the target positive direction information and the reference positive direction information to obtain rotation parameters, and using the displacement parameters and rotation parameters as loading parameters of virtual resources in the physical area to be accessed.

[0041] In an embodiment of the present disclosure, the center point coordinates and positive direction information of each physical area are obtained, and the reference center point coordinates and reference positive direction information of the reference physical area are determined; wherein, the center point coordinates and positive direction information of each physical area are obtained by measurement based on the real scene area information, and pre-configuration is performed based on the center point coordinates and positive direction information of each physical area and the reference center point coordinates and reference positive direction information of the reference physical area to obtain a configuration file.

[0042] In the disclosed embodiment, all physical areas are arranged in advance according to the real scene area information, and each physical area is measured according to the position arrangement result to determine the center point coordinates and positive direction information of the corresponding physical area, and a reference physical area is determined from all physical areas, as well as the reference center point coordinates and reference positive direction information of the physical area. Finally, the center point coordinates and positive direction information corresponding to each physical area and the reference center point coordinates and reference positive direction information of the reference physical area are stored in a configuration file. That is to say, the configuration file stores the center point coordinates and positive direction information corresponding to each measured physical area and the reference center point coordinates and reference positive direction information of the determined reference physical area, so that when virtual resources are dynamically loaded later, calculations are performed based on the target center point coordinates and target positive direction information of the physical area to be visited and the reference center point coordinates and reference positive direction information of the reference physical area to determine the displacement parameters and rotation parameters of the physical area to be visited as the loading parameters of the physical area to be visited.

[0043] Therefore, when visiting each physical area, by moving in the horizontal direction, based on the displacement parameter and the rotation parameter as the loading parameter of the physical area to be visited, the virtual resources of the physical area to be visited can be quickly loaded to meet the user experience.

[0044] Therefore, the spatial position information of the physical area to be visited and the reference physical area can be dynamically obtained from the configuration file to generate loading parameters for subsequent conversion and loading of virtual resources corresponding to the physical area to be visited, thereby meeting the virtual reality scene experience requirements and realizing that the scene content of the same virtual reality scene can be configured in different real scenes.

[0045] In some embodiments, loading parameters of virtual resources in the physical area to be visited are generated based on the target spatial position information and the reference spatial position, including: obtaining a reference three-dimensional coordinate point of the reference physical area based on the reference spatial position information, obtaining a target three-dimensional coordinate point of the physical area to be visited based on the target spatial position information, performing coordinate rotation calculation based on the reference three-dimensional coordinate point and the target three-dimensional coordinate point to obtain a rotation matrix, and using the rotation matrix as the loading parameters of the virtual resources in the physical area to be visited.

[0046] In an embodiment of the present disclosure, three-dimensional coordinate points of each physical area are obtained, and reference three-dimensional coordinate points of a reference physical area are determined; wherein the three-dimensional coordinate points of each physical area are obtained by measuring based on information of the real scene area, and pre-configuration is performed based on the three-dimensional coordinate points of each physical area and the reference three-dimensional coordinate points of the reference physical area to obtain a configuration file.

[0047] In an embodiment of the present disclosure, all physical areas are arranged in advance according to the real scene area information, and each physical area is measured according to the position arrangement result to determine the three-dimensional coordinate points of the corresponding physical area, and a reference physical area is determined from all physical areas, and the reference three-dimensional coordinate points of the physical area are determined. Finally, the three-dimensional coordinate points corresponding to each physical area and the reference three-dimensional coordinate points of the reference physical area are stored in a configuration file. That is to say, the configuration file stores the measured three-dimensional coordinate points corresponding to each physical area and the reference three-dimensional coordinate points of the determined reference physical area, so that when virtual resources are dynamically loaded later, calculations are performed based on the target reference three-dimensional coordinate points of the physical area to be visited and the reference reference three-dimensional coordinate points of the reference physical area to determine the rotation matrix of the physical area to be visited as the loading parameter of the physical area to be visited.

[0048] Therefore, when the VR device enters a multi-connected physical area, the VR device can obtain virtual resources of multiple physical areas to be visited that are connected to the physical area, and is not limited to horizontal, vertical, and diagonal movement. Based on the rotation matrix as the loading parameter of the physical area to be visited, the virtual resources of multiple physical areas to be visited in different directions can be quickly loaded to meet the user experience.

[0049] Therefore, the spatial position information of the physical area to be visited and the reference physical area can be dynamically obtained from the configuration file to generate loading parameters for subsequent conversion and loading of virtual resources corresponding to the physical area to be visited, thereby meeting the virtual reality scene experience requirements and realizing that the scene content of the same virtual reality scene can be configured in different real scenes.

[0050] In some embodiments, determining a physical area to be visited based on a spatial position of a virtual reality device, and loading virtual resources in the physical area to be visited based on loading parameters include: converting the spatial position of the virtual resources based on the loading parameters and then loading them into the virtual reality device for display.

[0051] In the embodiments of the present disclosure, the real-time position of the virtual reality device is obtained to determine the spatial position of the virtual reality device. As an example, an inertial measurement unit built into the virtual reality device includes an accelerometer and a gyroscope. The acceleration signal is obtained through the accelerometer, and the angular velocity signal is obtained by the gyroscope. The posture of the virtual reality device is determined as the real-time position of the virtual reality device according to the angular velocity and acceleration of the virtual reality device in three-dimensional space.

[0052] As another example, based on the spatial positioning system of the infrared camera on the virtual reality device, the user wears a reflective marker, the infrared camera emits infrared rays to illuminate the reflective marker, obtains the reflected infrared signal for calculation, and obtains the real-time position of the virtual reality device. The above is only an example, and the embodiments of the present disclosure do not specifically limit the acquisition of the real-time position of the virtual reality device.

[0053] In some embodiments, determining the physical area to be visited based on the spatial position of the virtual reality device includes: when the spatial position of the virtual reality device is at the target spatial position, determining the currently visited physical area corresponding to the target spatial position; and determining the physical area to be visited based on the currently visited physical area and a preset physical area rule.

[0054] In the embodiment of the present disclosure, the real-time position of the virtual reality device is determined, thereby determining the spatial position of the virtual reality device. When the spatial position of the virtual reality device is at the target spatial position, the currently visited physical area corresponding to the target spatial position is determined, and the physical area to be visited can be determined according to the pre-set physical area rules.

[0055] When the physical area to be visited is an interval physical area, the scene data across the physical areas is automatically configured to further increase the flexibility of the overall content configuration.

[0056] It should be noted that, in multiple virtual reality device experience scenarios, if any virtual reality device enters the current physical area, the physical area to be visited can be determined.

[0057] In the embodiment of the present disclosure, physical area rules are preset, for example, N physical areas, and each physical area is experienced in order from 1 to N; for another example, each physical area is experienced in order from N to 1, and the specific setting is selected according to the actual application.

[0058] In the embodiment of the present disclosure, a corresponding target space position is set for each physical area, such as a trigger box space. When the real-time position of the virtual reality device is at the target space position, the physical area corresponding to the target space position is the current physical area, so that the physical area to be visited corresponding to the current physical area is queried according to the physical area rules.

[0059] Therefore, the current physical area is determined by setting the target spatial position, and the physical area to be visited is determined according to the current physical area according to the physical area rules, thereby further improving the efficiency of virtual reality scene configuration.

[0060] In some embodiments, the method further includes: determining a visited physical area based on the currently visited physical area and a preset physical area rule, and unloading virtual resources corresponding to the visited physical area so that the virtual reality device does not display the virtual resources corresponding to the visited physical area.

[0061] In the embodiment of the present disclosure, the visited physical area may be a physical area adjacent to the current physical area, or may be an interval physical area, which is selected according to the application scenario.

[0062] In the embodiment of the present disclosure, the virtual resources corresponding to the visited physical area refer to the virtual resources experienced before the virtual resources corresponding to the current physical area. In order to improve processing efficiency, after entering the current physical area, the virtual resources corresponding to the visited physical area are unloaded to improve the efficiency of virtual reality scene configuration.

[0063] In some embodiments, the method further includes: receiving N virtual resources sent by a virtual reality server; wherein the virtual reality server divides the virtual reality scene data into N virtual resources based on the experience scene content; wherein N is a positive integer greater than 1.

[0064] In the disclosed embodiment, the experience scene content can be understood as the specific content of the experience scene, such as the scene space area in the game, such as a dock, a church, etc. In the process of the virtual reality server making the virtual reality scene data, the virtual reality scene data can be divided into virtual resources of N physical areas according to the experience scene content and then sent to the virtual reality device.

[0065] Therefore, the virtual reality device can determine the physical area to be visited in real time based on the positioning data, and obtain the loading parameters corresponding to the physical area to be visited, convert the virtual resources corresponding to the physical area to be visited, and then load them, so that the scene content of the same virtual reality scene can be configured in different real scenes.

[0066] Based on the description of the foregoing embodiments, by dividing the experience scene content into multiple physical areas corresponding to the real physical space, parameter configuration and dynamic loading are performed for each physical area separately, so as to achieve the purpose of adapting the scene content of a set of virtual reality scenes to different layout venues.

[0067] It is also understandable that in order to make the offline experience content adaptable to venues of different overall shapes, the venue is pre-divided into M (M is a positive integer greater than 1, usually M is less than or equal to N) fixed-size physical areas, and then the physical areas are placed according to the overall shape of the venue (which can be understood as determining the experience order of each physical area), and the configuration file is dynamically loaded at runtime to ensure that the same virtual reality scene data can be adapted to venues of different shapes. Figure 2 Take this as an example for detailed description.

[0068] Figure 2 A flowchart of a virtual reality scene configuration method provided by an embodiment of the present disclosure is provided. The method mainly includes the following steps S202 to S210:

[0069] Step S202, receiving N virtual resources sent by the virtual reality server; wherein the virtual reality server divides the virtual reality scene data into N virtual resources based on the experience scene content; wherein N is a positive integer greater than 1.

[0070] Step S204, determining the physical area to be visited based on the spatial position of the virtual reality device, and acquiring the target spatial position information of the physical area to be visited and the reference spatial position information of the reference physical area based on the preconfigured configuration file.

[0071] Step S206, obtaining reference center point coordinates and reference positive direction information of the reference physical area based on the reference spatial position information, and obtaining target center point coordinates and target positive direction information of the physical area to be visited based on the target spatial position information.

[0072] Step S208, calculate the coordinate displacement difference between the target center point coordinates and the reference center point coordinates to obtain displacement parameters, calculate the direction rotation difference between the target positive direction information and the reference positive direction information to obtain rotation parameters, and use the displacement parameters and rotation parameters as loading parameters for the virtual resources in the physical area to be accessed.

[0073] Step S210: The virtual resource is spatially converted based on the loading parameters and then loaded into the virtual reality device for display.

[0074] Step S212, determining the visited physical area based on the currently visited physical area and the preset physical area rule, and unloading the virtual resources corresponding to the visited physical area so that the virtual reality device does not display the virtual resources corresponding to the visited physical area.

[0075] For example, the virtual reality scene data can be produced in the virtual reality server by using a common 3D engine "unity" or "unreal engine". Assume that the virtual reality scene data corresponds to N virtual resources, for example, N is 3, which are A1, B1 and C1.

[0076] Exemplarily, the venue is divided into three physical areas of fixed size, and then the three physical areas are placed according to the overall shape of the venue, such as A2, B2 and C2; wherein the physical area A2 corresponds to the virtual resource A1, the physical area B2 corresponds to the virtual resource B1, and the physical area C2 corresponds to the virtual resource C1.

[0077] Exemplarily, the physical area A2 is taken as the reference physical area, that is, the center point coordinates TA of the physical area A2 are agreed to be the world coordinate origin, the direction WA is the positive direction of the coordinate system X-axis as the positive direction information, the coordinate system can use a left-handed system or a right-handed system, and the center point coordinates TB and the positive direction WB of the physical area B2 are measured on-site; the center point coordinates TC and the positive direction WC of the physical area C2 are measured, and the center point coordinates and positive direction information corresponding to A2, B2 and C2 are stored in the configuration file.

[0078] In this way, the center point coordinates and positive direction information of each physical area can be recorded in the configuration file.

[0079] Exemplarily, the offset data DTB=TB-TA and the rotation data DQB=WB-WA of the physical area B2 are calculated. The offset data DTC=TC-TA and the rotation data DQC=WC-WA of the physical area C2 are calculated and used as loading parameters.

[0080] For example, when the player starts playing, the virtual resource A1 of the physical area A2 is first loaded at the coordinate origin, and the virtual resource C1 of the physical area B2 is loaded after the position transformation parameters DTB and DQB are transformed (for example, the virtual resource B1 corresponding to the physical area B2 is first rotated as specified, and then the scene data is translated as specified). The player continues to play, and when entering the physical area B2, the scene data of the physical area A2 is unloaded, and the virtual resource C1 of the physical area C2 is loaded after the transformation of DTC and DQC.

[0081] It should be noted that, in order to improve processing efficiency, the virtual resource B1 and the virtual resource C1 may be loaded at the same time to further meet the user's usage requirements.

[0082] It should be noted that if there are more physical areas, they can all be calculated in the same manner as the translation and rotation of the physical area B2 and the physical area C2.

[0083] Exemplarily, when loading and unloading virtual resources, for venues with multiple physical areas, the disclosed embodiment supports a linear sequential tour experience of the physical areas. When the player enters the Pth physical area, P is a positive integer greater than 0, and a space trigger box is placed at the entrance of the physical area. The positioning of the virtual reality device can be set to trigger after entering the trigger box space. After the trigger, the scene data in the P+1th physical area is loaded, and the scene data in the P-1th physical area is unloaded.

[0084] In the above embodiment, the virtual device side stores N virtual resources locally in advance, divides M physical areas according to the actual site, M is less than or equal to N, performs real-world measurements on the M object areas, obtains, for example, the center point and direction of two-dimensional coordinates, or three-dimensional coordinate points, etc. and stores them in the configuration file, so that during the experience process, all virtual resources can be loaded at once if the memory is large enough, or, if the actual application memory is limited, the real-time location determines, for example, a physical area to be visited, and uses the loading parameters to load the virtual resources corresponding to the physical area to be visited. This further improves the flexibility of virtual reality scene configuration.

[0085] Therefore, venues with different layouts do not need to be repackaged, and only the configuration files need to be updated when the venue is adapted. This allows it to be used in VR offline experience scenarios. Through one VR experience content, different configurations can be used to adapt to venues with different layouts, greatly reducing maintenance costs.

[0086] As an example scenario, Figure 3 As shown, the translation and rotation data of the real space area surveyed on site are stored in the configuration file. The virtual reality device obtains the positioning data according to the positioning system. The VR server reads the configuration file and sends the translation and rotation data corresponding to the physical area to the virtual reality device. The virtual reality device performs the translation and rotation according to the translation and rotation data corresponding to the physical area. Figure 3 The VR experience A scene data, VR experience B scene data, VR experience C scene data to VR experience N scene data are loaded and unloaded. It can also be understood that the virtual reality device can directly read data from the configuration file for processing, and the specific settings are selected according to the application scenario.

[0087] Therefore, by splitting the VR experience content into multiple virtual resources that can correspond one-to-one with the physical room, when the user is experiencing it, the configuration file is dynamically loaded and unloaded, so that a set of packaged VR content can be adapted to venues with different layouts, greatly reducing maintenance costs.

[0088] Corresponding to the aforementioned virtual reality scene configuration method, the embodiment of the present disclosure further provides a virtual reality scene configuration device, Figure 4This is a structural diagram of a virtual reality scene configuration device provided in an embodiment of the present disclosure. The device can be implemented by software and / or hardware and applied to a virtual reality device. The device includes:

[0089] The acquisition module 402 is used to acquire the target spatial position information of the physical area to be visited and the reference spatial position information of the reference physical area based on the pre-configured configuration file.

[0090] The generating module 404 is configured to generate loading parameters of the virtual resources in the physical area to be accessed based on the target spatial position information and the reference spatial position.

[0091] The loading module 406 is configured to load the virtual resource in the physical area to be accessed based on the loading parameters.

[0092] The above-mentioned device provided by the embodiment of the present disclosure can generate loading parameters based on the spatial position information of the physical area to be visited and the reference physical area to load virtual resources in the physical area to be visited. There is no need to configure the virtual reality scene for each real scene separately. The virtual resources can be directly transformed in real time according to the spatial position information corresponding to each physical area of ​​the real scene in the configuration file to adapt to different real scenes. Compared with the existing technology, the above-mentioned method can realize the configuration of the scene content of the same virtual reality scene in different real scenes, greatly reduce maintenance costs, and improve the efficiency of virtual reality scene configuration.

[0093] In some embodiments, the generation module 404 is specifically used to: obtain the reference center point coordinates and reference positive direction information of the reference physical area based on the reference spatial position information; obtain the target center point coordinates and target positive direction information of the physical area to be visited based on the target spatial position information; calculate the coordinate displacement difference between the target center point coordinates and the reference center point coordinates to obtain displacement parameters; calculate the directional rotation difference between the target positive direction information and the reference positive direction information to obtain rotation parameters; and use the displacement parameters and the rotation parameters as loading parameters of the virtual resources in the physical area to be visited.

[0094] In some embodiments, the generation module 404 is specifically used to: obtain a reference three-dimensional coordinate point of the reference physical area based on the reference spatial position information; obtain a target three-dimensional coordinate point of the physical area to be visited based on the target spatial position information; perform coordinate rotation calculation based on the reference three-dimensional coordinate point and the target three-dimensional coordinate point to obtain a rotation matrix, and use the rotation matrix as a loading parameter of the virtual resources in the physical area to be visited.

[0095] In some embodiments, the apparatus further includes: a determination module for determining the physical area to be visited based on the spatial position of the virtual reality device; and the loading module 406 is specifically used to: perform spatial position conversion on the virtual resource based on the loading parameters and then load it to the virtual reality device for display.

[0096] In some embodiments, the determination module is specifically used to: when the spatial position of the virtual reality device is at the target spatial position, determine the currently visited physical area corresponding to the target spatial position; and determine the physical area to be visited based on the currently visited physical area and a preset physical area rule.

[0097] In some embodiments, the apparatus further includes: determining an unloading module, for determining a visited physical area based on the currently visited physical area and a preset physical area rule; and unloading virtual resources corresponding to the visited physical area so that the virtual reality device does not display the virtual resources corresponding to the visited physical area.

[0098] In some embodiments, the device further includes: a receiving module for receiving N virtual resources sent by a virtual reality server; wherein the virtual reality server divides the virtual reality scene data into the N virtual resources based on the experience scene content; wherein N is a positive integer greater than 1.

[0099] The virtual reality scene configuration device provided in the embodiments of the present disclosure can execute the virtual reality scene configuration method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device embodiment can refer to the corresponding process in the method embodiment, and will not be repeated here.

[0101] An embodiment of the present disclosure provides an electronic device, which includes: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of any method in the present disclosure.

[0102] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device 500 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0103] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0104] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0105] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0106] In addition to the above-mentioned methods and devices, the embodiments of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, cause the processor to perform the image processing method provided by the embodiments of the present disclosure. The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present disclosure, the programming languages ​​including object-oriented programming languages ​​such as Java, C++, etc., and also conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0107] In addition, the embodiment of the present disclosure may also be a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the virtual reality scene configuration method provided by the embodiment of the present disclosure.

[0108] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0109] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which implements the virtual reality scene configuration method in the embodiments of the present disclosure when the computer program / instruction is executed by a processor.

[0110] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0111] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0112] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0113] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0114] It should be noted that, in this article, relational terms such as "first" and "second" 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 sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0115] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A virtual reality scene configuration method, characterized in that: Applied to virtual reality equipment, the method comprises: Acquire target spatial location information of a physical area to be visited and reference spatial location information of a reference physical area based on a preconfigured configuration file; generating loading parameters of the virtual resources in the physical area to be accessed based on the target spatial position information and the reference spatial position; The virtual resource is loaded in the physical area to be accessed based on the loading parameter.

2. The method according to claim 1, characterized in that: The generating the loading parameters of the virtual resources in the to-be-accessed physical area based on the target spatial position information and the reference spatial position includes: Acquire reference center point coordinates and reference positive direction information of the reference physical area based on the reference spatial position information; Acquire the target center point coordinates and target positive direction information of the physical area to be visited based on the target spatial position information; Calculating the coordinate displacement difference between the target center point coordinates and the reference center point coordinates to obtain a displacement parameter; Calculate the direction rotation difference between the target positive direction information and the reference positive direction information to obtain a rotation parameter; The displacement parameter and the rotation parameter are used as loading parameters of the virtual resource in the physical area to be accessed.

3. The method according to claim 1, characterized in that The generating the loading parameters of the virtual resources in the to-be-accessed physical area based on the target spatial position information and the reference spatial position includes: Acquire a reference three-dimensional coordinate point of the reference physical area based on the reference spatial position information; Acquire a target three-dimensional coordinate point of the physical area to be visited based on the target spatial position information; Coordinate rotation calculation is performed based on the reference three-dimensional coordinate point and the target three-dimensional coordinate point to obtain a rotation matrix, and the rotation matrix is ​​used as a loading parameter of the virtual resource in the physical area to be accessed.

4. The method according to claim 1, characterized in that: Also includes: Determine the physical area to be visited based on the spatial position of the virtual reality device; The loading of the virtual resource in the to-be-accessed physical area based on the loading parameter includes: The virtual resource is spatially converted based on the loading parameters and then loaded into the virtual reality device for display.

5. The method according to claim 4, characterized in that The determining the physical area to be visited based on the spatial position of the virtual reality device includes: When the spatial position of the virtual reality device is at the target spatial position, determining the currently visited physical area corresponding to the target spatial position; The physical area to be visited is determined based on the currently visited physical area and a preset physical area rule.

6. The method according to claim 5, characterized in that Also includes: Determining a visited physical area based on the currently visited physical area and a preset physical area rule; The virtual resources corresponding to the visited physical area are uninstalled so that the virtual reality device does not display the virtual resources corresponding to the visited physical area.

7. The method according to claim 1, characterized in that The method further comprises: Receive N virtual resources sent by a virtual reality server; wherein the virtual reality server divides the virtual reality scene data into the N virtual resources based on the experience scene content; wherein N is a positive integer greater than 1.

8. A virtual reality scene configuration device, characterized in that: The device is applied to a virtual reality device, and comprises: An acquisition module, used to acquire target spatial position information of a physical area to be visited and reference spatial position information of a reference physical area based on a preconfigured configuration file; A generating module, configured to generate loading parameters of the virtual resources in the physical area to be accessed based on the target space position information and the reference space position; A loading module is used to load the virtual resource in the physical area to be accessed based on the loading parameters.

9. An electronic device, characterized in that: The electronic device comprises: a storage device having a computer program stored thereon; A processing device, used to execute the computer program in the storage device to implement the steps of the virtual reality scene configuration method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the virtual reality scene configuration method described in any one of claims 1 to 7.