Virtual scene loading method and device, computer readable medium and electronic device
By using the device information and posture data of nearby terminals in cloud virtual reality technology to cache and obtain virtual scene frames, the problem of high response delays caused by long network transmission links is solved, and the efficiency of virtual scene loading and user experience are improved.
Patent Information
- Application Number
- CN202210799399.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-06
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-07-06
AI Technical Summary
In cloud virtual reality technology, due to the long network transmission link, the response delay is high, which affects the user experience.
By obtaining the device information of the adjacent terminal that has established the target communication connection, sending it to the cloud server to cache the rendered virtual scene frame, and obtaining the target virtual scene frame from the adjacent terminal based on the current posture data, shortening the transmission path and reducing the hardware of the interactive terminal Request and response delays.
It effectively reduces the interaction delay when loading virtual scenes, makes full use of the network and storage capabilities of adjacent terminals, reduces hardware costs, and improves the loading efficiency of virtual scenes.
Smart Images

Figure CN115208935B_ABST
Abstract
Description
Background Art
[0002] Virtual Reality (VR) is a technology that uses computing devices to simulate virtual environments to give users a more realistic sense of immersion. However, due to the real-time rendering required by VR technology, it has high requirements for computing devices. With the application of the fifth generation mobile communication technology (5G), it is possible to transfer the real-time rendering part of VR to cloud computing.
[0003] At present, in the relevant cloud-based virtual reality technology, the cloud server generates a new panoramic frame in real time according to the changes in the coordinates of the user terminal and transmits it back to the terminal for display. However, in this solution, the network transmission link is long and the response delay is high, which affects the user experience. Summary of the invention
[0004] The purpose of the present disclosure is to provide a virtual scene loading method, a virtual scene loading device, a computer-readable medium and an electronic device, thereby overcoming the problems of long network transmission links and high response delays in related technologies at least to a certain extent.
[0005] According to a first aspect of the present disclosure, a virtual scene loading method is provided, which is applied to an interactive terminal, and the method includes:
[0006] Acquire device information of a neighboring terminal that has established a target communication connection;
[0007] Sending the device information to a cloud server, so that the cloud server caches the rendered virtual scene frame to the adjacent terminal according to the device information;
[0008] The current posture data is obtained, a target virtual scene frame is obtained from the neighboring terminal based on the current posture data, and the target virtual scene frame is loaded and displayed.
[0009] In an exemplary embodiment of the present disclosure, based on the above solution, the method further includes:
[0010] Get current location information;
[0011] The current position information is sent to the cloud server, so that the cloud server renders the virtual scene frame according to the current position information.
[0012] In an exemplary embodiment of the present disclosure, based on the above solution, the acquiring current posture data, and acquiring a target virtual scene frame from the neighboring terminal based on the current posture data, includes:
[0013] Acquire current posture data, and determine whether a target virtual scene frame exists in the neighboring terminal according to the current posture data;
[0014] If it is determined that the target virtual scene frame exists, acquiring the target virtual scene frame from the neighboring terminal;
[0015] If it is determined that the target virtual scene frame does not exist, new position information is generated according to the current posture data, and the new position information is sent to the cloud server, so that the cloud server renders and generates a new virtual scene frame including the target virtual scene frame according to the new position information, and caches the new virtual scene frame to the neighboring terminal.
[0016] In an exemplary embodiment of the present disclosure, based on the above solution, the target communication connection includes a wireless direct communication connection, and the method further includes:
[0017] In response to detecting a control request for loading a virtual scene, wireless direct communication is initiated to search for a terminal device corresponding to the current location information;
[0018] Sending a wireless direct communication request to the searched terminal device;
[0019] The terminal device that successfully establishes the wireless direct communication connection is regarded as the neighboring terminal.
[0020] According to a second aspect of the present disclosure, a virtual scene loading method is provided, which is applied to a cloud server, and the method includes:
[0021] Receiving device information uploaded by an interactive terminal, the device information being of a neighboring terminal with which a target communication connection has been established;
[0022] Rendering generates a virtual scene frame, and buffers the virtual scene frame in the adjacent terminal, so that the interactive terminal acquires and loads a display target virtual scene frame from the adjacent terminal according to the current posture data.
[0023] In an example embodiment of the present disclosure, based on the above solution, the rendering generates a virtual scene frame, including:
[0024] Acquiring current location information uploaded by the interactive terminal;
[0025] The virtual scene is meshed and rendered to generate a virtual scene frame corresponding to the current position information.
[0026] According to a third aspect of the present disclosure, a virtual scene loading device is provided, which is arranged in an interactive terminal, and includes:
[0027] A device information acquisition module, used to acquire device information of a neighboring terminal that has established a target communication connection;
[0028] A device information sending module, used to send the device information to a cloud server, so that the cloud server caches the rendered virtual scene frame to the adjacent terminal according to the device information;
[0029] The virtual scene frame display module is used to obtain current posture data, obtain a target virtual scene frame from the adjacent terminal based on the current posture data, and load and display the target virtual scene frame.
[0030] In an exemplary embodiment, the virtual scene loading device further includes a current position information sending module, and the current position information sending module can be used to:
[0031] Get current location information;
[0032] The current position information is sent to the cloud server, so that the cloud server renders the virtual scene frame according to the current position information.
[0033] In an exemplary embodiment, the virtual scene frame display module may be used to:
[0034] Acquire current posture data, and determine whether a target virtual scene frame exists in the neighboring terminal according to the current posture data;
[0035] If it is determined that the target virtual scene frame exists, acquiring the target virtual scene frame from the neighboring terminal;
[0036] If it is determined that the target virtual scene frame does not exist, new position information is generated according to the current posture data, and the new position information is sent to the cloud server, so that the cloud server renders and generates a new virtual scene frame including the target virtual scene frame according to the new position information, and caches the new virtual scene frame to the neighboring terminal.
[0037] In an exemplary embodiment, the target communication connection may include a wireless direct communication connection, and the virtual scene loading device may further include a neighboring terminal search module, which may be used to:
[0038] In response to detecting a control request for loading a virtual scene, wireless direct communication is initiated to search for a terminal device corresponding to the current location information;
[0039] Sending a wireless direct communication request to the searched terminal device;
[0040] The terminal device that successfully establishes the wireless direct communication connection is regarded as the neighboring terminal.
[0041] According to a fourth aspect of the present disclosure, a virtual scene loading device is provided, which is arranged in a cloud server, and includes:
[0042] A device information receiving module, used to receive device information uploaded by an interactive terminal, wherein the device information is of a neighboring terminal that has established a target communication connection with the interactive terminal;
[0043] The virtual scene frame cache module is used to render and generate a virtual scene frame, and cache the virtual scene frame in the adjacent terminal, so that the interactive terminal can obtain and load the display target virtual scene frame from the adjacent terminal according to the current posture data.
[0044] In an exemplary embodiment, the virtual scene frame buffer module may be used to:
[0045] Acquiring current location information uploaded by the interactive terminal;
[0046] The virtual scene is meshed and rendered to generate a virtual scene frame corresponding to the current position information.
[0047] According to a fifth aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.
[0048] According to a sixth aspect of the present disclosure, there is provided an electronic device, characterized in that it includes:
[0049] Processor; and
[0050] The memory is used to store one or more programs. When the one or more programs are executed by one or more processors, the one or more processors implement the above method.
[0051] The virtual scene loading method provided by an embodiment of the present disclosure can obtain the device information of the neighboring terminal that has established the target communication connection, and then send the device information to the cloud server, so that the cloud server can cache the rendered virtual scene frame to the neighboring terminal according to the device information, and then obtain the current posture data, and obtain the target virtual scene frame from the neighboring terminal based on the current posture data, and load and display the target virtual scene frame. On the one hand, a target communication connection is established with the neighboring terminal, and the device information of the neighboring terminal is sent to the cloud server. In this way, when the interactive terminal requests to load the virtual scene, the cloud server can pre-render the virtual scene frame that may be used and cache it in the neighboring terminal. The interactive terminal obtains the virtual scene frame that needs to be loaded from the neighboring terminal according to the current posture data, shortens the transmission path, and effectively reduces the interactive delay of the interactive terminal when loading the virtual scene frame; on the other hand, by establishing a target communication connection with the neighboring terminal, the network and storage capacity of the neighboring terminal are fully utilized, the hardware requirements for the interactive terminal when loading the virtual scene frame are reduced, the hardware cost is reduced, and the processing efficiency of the interactive terminal is improved, and the loading efficiency of the virtual scene is improved.
[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0054] Figure 1 A schematic diagram showing an exemplary system architecture to which embodiments of the present disclosure may be applied;
[0055] Figure 2 A schematic diagram of a process of loading a virtual scene in a related technical solution in an exemplary embodiment of the present disclosure is schematically shown;
[0056] Figure 3 A schematic diagram schematically illustrates a flow chart of a virtual scene loading method in an exemplary embodiment of the present disclosure;
[0057] Figure 4 A schematic diagram schematically illustrates a principle of a gridded virtual scene in an exemplary embodiment of the present disclosure;
[0058] Figure 5 A schematic diagram of a process of acquiring a target virtual scene frame in an exemplary embodiment of the present disclosure is schematically shown;
[0059] Figure 6 A schematic diagram schematically illustrates a flow chart of another virtual scene loading method in an exemplary embodiment of the present disclosure;
[0060] Figure 7 A schematic diagram of a process of implementing virtual scene loading through a neighboring terminal in an exemplary embodiment of the present disclosure is schematically shown;
[0061] Figure 8 A schematic diagram schematically shows the composition of a virtual scene loading device in an exemplary embodiment of the present disclosure;
[0062] Fig. 9 A schematic diagram schematically shows the composition of another virtual scene loading device in an exemplary embodiment of the present disclosure;
[0063] Fig.10 A schematic diagram of an electronic device to which the embodiments of the present disclosure can be applied is shown. DETAILED DESCRIPTION
[0064] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0065] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0066] Figure 1 A schematic diagram of a system architecture of an exemplary application environment to which a virtual scene loading method and device according to an embodiment of the present disclosure can be applied is shown.
[0067] like Figure 1As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with basic hardware for implementing virtual reality functions, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.
[0068] The virtual scene loading method provided in the embodiment of the present disclosure is generally executed by the terminal devices 101, 102, and 103, and accordingly, the virtual scene loading device is generally disposed in the terminal devices 101, 102, and 103. However, it is easy for those skilled in the art to understand that the virtual scene loading method provided in the embodiment of the present disclosure can also be executed by the server 105, and accordingly, the virtual scene loading device can also be disposed in the server 105, which is not particularly limited in the present exemplary embodiment.
[0069] Figure 2 A schematic diagram of a process of loading a virtual scene in a related technical solution in an exemplary embodiment of the present disclosure is schematically shown.
[0070] refer to Figure 2 As shown, in step S210, the interactive terminal 201 can send the current position coordinates to the cloud server 202; in step S220, the cloud server 202 can render and generate multiple virtual scene frames corresponding to the grids near the current position coordinates based on the received current position coordinates; in step S230, the interactive terminal 201 collects current posture data and generates new position coordinates based on the current posture data; in step S240, the interactive terminal 201 sends the determined new position coordinates to the cloud server 202; in step S250, the cloud server 202 matches the corresponding target virtual scene frame based on the new position coordinates, and sends the target virtual scene frame to the interactive terminal 201 for loading and display.
[0071] The cloud server generates a new panoramic frame in real time according to the changes in the user terminal coordinates and transmits it back to the terminal for display. In this solution, the transmission link of the virtual scene frame in the network is long and the response delay is high, which affects the user experience.
[0072] Based on one or more problems in the related art, the present disclosure first provides a virtual scene loading method, which can be executed by an interactive terminal that loads the virtual scene. The interactive terminal can be a terminal device 101, 102, or 103. The virtual scene loading method of an exemplary embodiment of the present disclosure is specifically described below.
[0073] Figure 3 The flow of a virtual scene loading method in this exemplary embodiment is shown, which may include the following steps S310 to S330:
[0074] In step S310, device information of a neighboring terminal with which a target communication connection has been established is obtained.
[0075] In an exemplary embodiment, the target communication connection refers to a communication connection method that enables direct data transmission between terminals. For example, the target communication connection can be a Bluetooth communication connection, or a wireless direct communication connection WiFi Direct (also known as WiFi peer-to-peer). Of course, it can also be other communication connection methods that enable direct data transmission between terminals. For example, the target communication connection can also be connected to an adjacent terminal via a wired connection. This exemplary embodiment does not specifically limit this.
[0076] A neighboring terminal refers to a terminal device that is within the searchable area of the interactive terminal's service and can establish a target communication connection. For example, a neighboring terminal can be Figure 1 Terminal devices 101, 102, 103 in.
[0077] Optionally, if the target communication connection supported by the interactive terminal is a wireless direct communication connection mode, the corresponding neighboring terminal may be a terminal device supporting the wireless direct communication connection mode; if the target communication connection supported by the interactive terminal is a Bluetooth communication connection, the corresponding neighboring terminal may be a terminal device supporting the Bluetooth communication connection. Of course, if the target communication connection supported by the interactive terminal is a Bluetooth communication connection and a wireless direct communication connection mode, the corresponding neighboring terminal may be a terminal device supporting the Bluetooth communication connection, or the wireless direct communication connection, or the Bluetooth communication connection and the wireless direct communication connection. Specifically, the interactive terminal may select a suitable target communication connection mode according to the distance and the required data transmission speed. This example embodiment does not impose any special limitation on the target communication connection mode between the interactive terminal and the neighboring terminal.
[0078] In step S320, the device information is sent to the cloud server, so that the cloud server caches the rendered virtual scene frame to the adjacent terminal according to the device information.
[0079] In an exemplary embodiment, device information refers to parameter data related to the neighboring terminal. After the interactive terminal establishes a target communication connection with the neighboring terminal, the neighboring terminal can send the device information to the interactive terminal. For example, the device information may include but is not limited to user account information of the cloud application of the neighboring terminal, IP address (Internet Protocol Address), and other information. Of course, it can also be other device information of the neighboring terminal that can be used by the cloud server to locate the neighboring terminal and realize data transmission. This exemplary embodiment is not limited to this.
[0080] The rendered virtual scene frame refers to the virtual scene frame near the current position coordinates of the interactive terminal. When the cloud server renders the virtual scene, the virtual scene can be gridded. Each time, only the virtual scene frames around the position coordinates of the interactive terminal need to be rendered.
[0081] After the cloud server renders and generates a virtual scene frame near the current position coordinates of the interactive terminal, the rendered virtual scene frame can be cached to the adjacent terminal according to the received device information of the adjacent terminal. At this time, when the interactive terminal generates a new position coordinate due to the change of the user's posture, the required virtual scene frame can be directly obtained from the adjacent terminal through the target communication connection, and the virtual scene is loaded through the virtual scene frame.
[0082] In step S330, current posture data is acquired, a target virtual scene frame is acquired from the neighboring terminal based on the current posture data, and the target virtual scene frame is loaded and displayed.
[0083] In an exemplary embodiment, the current posture data refers to the changes in camera posture generated when the user interacts with the interactive terminal. The current posture data of the interactive terminal can be estimated by the collected three-dimensional point cloud data, or the current posture data can be determined by the inertial navigation sensor associated with the interactive terminal. Of course, the current posture data of the interactive terminal can also be obtained by other means, and this exemplary embodiment does not specifically limit this.
[0084] The target virtual scene frame refers to the virtual scene frame that should be displayed in the interactive terminal under the current posture data. For example, assuming that for the interactive terminal under the current position coordinates, the cloud server renders and generates virtual scene frames in the four directions of southeast, northwest, and northeast of the current position coordinates, and the current posture data of the interactive terminal is moving eastward, at this time, the target virtual scene frame can be the corresponding virtual scene frame in the east direction; of course, this is only an illustrative example and should not impose any special limitations on this example embodiment.
[0085] The device information of the neighboring terminal with which the target communication connection has been established can be obtained, and then the device information can be sent to the cloud server. The cloud server can cache the rendered virtual scene frame to the neighboring terminal according to the device information, and then obtain the current posture data, and obtain the target virtual scene frame from the neighboring terminal based on the current posture data, and load and display the target virtual scene frame. The interactive terminal can directly obtain the target virtual scene frame to be loaded from the neighboring terminal according to the current posture data. Compared with obtaining the target virtual scene frame from the cloud server, it can effectively shorten the transmission path and reduce the interactive delay of the interactive terminal when loading the virtual scene frame; and in the process of loading the virtual scene, the network and storage capabilities of the neighboring terminal are fully utilized, which reduces the hardware requirements for the interactive terminal when loading the virtual scene frame, reduces the hardware cost of the interactive terminal, and at the same time improves the processing efficiency of the interactive terminal and the loading efficiency of the virtual scene.
[0086] The following is a detailed description of steps S310 to S330.
[0087] In an exemplary embodiment, the current position information may be acquired and then sent to a cloud server so that the cloud server renders a virtual scene frame according to the current position information.
[0088] The current position information refers to the coordinate information of the interactive terminal in the virtual scene. When the cloud server renders the virtual scene, the virtual scene can be gridded. Each time, only the virtual scene frames around the position coordinates of the interactive terminal need to be rendered.
[0089] By determining the position coordinates of the interactive terminal in the gridded virtual scene, the virtual scene frame that the cloud server needs to render at the current moment is determined. Compared with rendering the entire virtual scene, this can effectively reduce the rendering pressure of the cloud server, improve the rendering efficiency of the virtual scene frame, and reduce the response delay when the interactive terminal loads the virtual scene.
[0090] Optionally, when the interactive terminal generates a control request to load a virtual scene for the first time, the current position information and the device information of the neighboring terminal can be sent to the cloud server, so that the cloud server renders and generates the surrounding virtual scene frame according to the current position information, and sends the rendered surrounding virtual scene frame to the neighboring terminal for caching according to the device information of the neighboring terminal. In the subsequent process, the interactive terminal can only send the updated position information to the cloud server. After rendering the new virtual scene frame, the cloud server directly caches it in the neighboring terminal and waits for the call of the interactive terminal.
[0091] Figure 4 The schematic diagram schematically shows a principle of a gridded virtual scene in an exemplary embodiment of the present disclosure.
[0092] refer to Figure 4 As shown, for the gridded virtual scene 401 at time T-1, assuming that the user's position coordinate is 1, then the virtual scene that the user can observe at this moment is the virtual scene frame corresponding to position coordinate 2, position coordinate 3, position coordinate 4 and position coordinate 5. Therefore, when the user is at position coordinate 1, the cloud server only needs to render and draw the virtual scene frames corresponding to position coordinate 2, position coordinate 3, position coordinate 4 and position coordinate 5; for the gridded virtual scene 402 at time T, assuming that the user moves from position coordinate 1 to position coordinate 4, then the newly added virtual scene that the user can observe at this moment is position coordinate 1. The virtual scene frames corresponding to position coordinates 6, position coordinates 7 and position coordinates 8. Therefore, when the user is at position coordinates 4, the cloud server only needs to render and draw the virtual scene frames corresponding to position coordinates 6, position coordinates 7 and position coordinates 8; for the gridded virtual scene 403 at time T+1, assuming that the user moves from position coordinates 4 to position coordinates 8, then the newly added virtual scene that the user can observe at this moment is the virtual scene frame corresponding to position coordinates 9 and position coordinates 10. Therefore, when the user is at position coordinates 8, the cloud server only needs to render and draw the virtual scene frames corresponding to position coordinates 9 and position coordinates 10.
[0093] By determining the position coordinates of the interactive terminal in the gridded virtual scene, the virtual scene frame that the cloud server needs to render at the current moment is determined. Compared with rendering the entire virtual scene, this can effectively reduce the rendering pressure of the cloud server, improve the rendering efficiency of the virtual scene frame, and reduce the response delay when the interactive terminal loads the virtual scene.
[0094] In an exemplary embodiment, the Figure 5 The steps in the above are used to obtain the target virtual scene frame from the neighboring terminal. Figure 5 As shown, it may specifically include:
[0095] Step S510, acquiring current posture data, and determining whether a target virtual scene frame exists in the neighboring terminal according to the current posture data;
[0096] Step S520: if it is determined that the target virtual scene frame exists, acquiring the target virtual scene frame from the neighboring terminal;
[0097] Step S530, if it is determined that the target virtual scene frame does not exist, new position information is generated according to the current posture data, and the new position information is sent to the cloud server, so that the cloud server renders and generates a new virtual scene frame including the target virtual scene frame according to the new position information, and caches the new virtual scene frame to the neighboring terminal.
[0098] Among them, the target virtual scene frame of the corresponding orientation or viewing angle can be matched in the neighboring terminal according to the current posture data. If the orientation or viewing angle of the virtual scene frame in the neighboring terminal does not match the current posture data, it can be considered that the target virtual scene frame does not exist in the neighboring terminal.
[0099] For example, assuming that for an interactive terminal at the current position coordinates, the cloud server renders and generates virtual scene frames in the four directions of southeast, northwest, and northeast of the current position coordinates, and caches them in a neighboring terminal waiting for the interactive terminal to call; the interactive terminal obtains current posture data, and the orientation or viewing angle corresponding to the current posture data is southeast. At this time, there is no virtual scene frame in the southeast direction in the neighboring terminal, and it can be considered that there is no target virtual scene frame in the neighboring terminal.
[0100] When it is determined that the target virtual scene frame does not exist in the neighboring terminal, it can be considered that the current posture data corresponds to the new position coordinates. At this time, new position information can be generated based on the current posture data, and the new position information can be sent to the cloud server. The cloud server can render and generate a new virtual scene frame containing the target virtual scene frame based on the new position information, and cache the new virtual scene frame to the neighboring terminal. The interactive terminal continues to obtain the target virtual scene frame from the neighboring terminal based on the current posture data.
[0101] When it is determined that the target virtual scene frame does not exist in the neighboring terminal, new position information is generated through the current posture data, and the new position information is sent to the cloud server to update the virtual scene frame stored in the neighboring terminal, thereby improving the timeliness of the virtual scene frame in the neighboring terminal and further improving the efficiency of the interactive terminal in loading the virtual scene.
[0102] In an exemplary embodiment, the target communication connection may include a wireless direct communication connection. When a control request for loading a virtual scene is detected, the wireless direct communication function can be started, and the terminal device corresponding to the current location information can be searched through the search service provided by the wireless direct communication function. Then, a wireless direct communication request can be sent to the searched terminal device, and the terminal device with which the wireless direct communication connection is successfully established can be regarded as a neighboring terminal.
[0103] Secondly, the present disclosure also provides a virtual scene loading method, which can be executed by a cloud server. The cloud server can be a server corresponding to a cloud VR game application, or a server providing other cloud VR applications. This example embodiment is not limited to this.
[0104] Figure 6 A schematic flow chart of another virtual scene loading method in this exemplary embodiment is shown, which may include the following steps S610 to S620:
[0105] Step S610, receiving device information uploaded by an interactive terminal, the device information being of a neighboring terminal that has established a target communication connection with the interactive terminal;
[0106] Step S620: Rendering generates a virtual scene frame, and caching the virtual scene frame in the neighboring terminal, so that the interactive terminal obtains and loads the display target virtual scene frame from the neighboring terminal according to the current posture data.
[0107] Among them, device information refers to parameter data related to the neighboring terminal. After the interactive terminal establishes a target communication connection with the neighboring terminal, the neighboring terminal can send the device information to the interactive terminal. For example, the device information may include but is not limited to user account information of the cloud application of the neighboring terminal, IP address (Internet Protocol Address) and other information. Of course, it can also be other device information of the neighboring terminal that can be used by the cloud server to locate the neighboring terminal and realize data transmission. This example embodiment is not limited to this.
[0108] After the interactive terminal establishes a target communication connection with the neighboring terminal, the neighboring terminal can send device information to the interactive terminal through the target communication connection, and the interactive terminal sends the device information corresponding to the neighboring terminal to the cloud server.
[0109] Optionally, the interactive terminal can upload the current location information and the device information of the neighboring terminal to the cloud server. The cloud server can generate a virtual scene frame around the current location information based on the current location information and the gridded virtual scene rendering, and send the rendered virtual scene frame to the neighboring terminal for caching. Then, the interactive terminal can obtain and load the target virtual scene frame from the neighboring terminal based on the current posture data.
[0110] In an exemplary embodiment, the current location information uploaded by the interactive terminal can be obtained, the virtual scene can be gridded, and a virtual scene frame corresponding to the current location information can be rendered. When the cloud server renders the virtual scene, the virtual scene can be gridded, and only the virtual scene frame around the location coordinates of the interactive terminal needs to be rendered each time.
[0111] By determining the current position information of the interactive terminal in the gridded virtual scene, the virtual scene frame that the cloud server needs to render at the current moment is determined. Compared with rendering the entire virtual scene, this can effectively reduce the rendering pressure of the cloud server, improve the rendering efficiency of the virtual scene frame, and reduce the response delay when the interactive terminal loads the virtual scene.
[0112] Figure 7A schematic diagram of a process of implementing virtual scene loading through a neighboring terminal in an exemplary embodiment of the present disclosure is schematically shown.
[0113] refer to Figure 7 As shown, in step S710, the interactive terminal 701 turns on the wireless direct communication connection WiFi Direct function, and the adjacent terminal 702 turns on the wireless direct communication connection WiFi Direct function;
[0114] Step S720: The interactive terminal 701 and the neighboring terminal 702 establish a wireless direct communication connection through device and service discovery;
[0115] Step S730, the interactive terminal 701 obtains device information corresponding to the neighboring terminal from the neighboring terminal 702 through the wireless direct communication connection. For example, the device information may be an application account, an IP address, etc. of the neighboring terminal;
[0116] Step S740, the interactive terminal 701 reports the current location coordinates and the device information corresponding to the adjacent terminal 702 to the cloud server 703;
[0117] Step S750, the cloud server 703 renders and draws multiple virtual scene frames corresponding to nearby grids according to the current position coordinates;
[0118] Step S760, the cloud server 703 sends the rendered virtual scene frame to the neighboring terminal 702 for caching;
[0119] Step S770, the interactive terminal 701 collects the current posture data corresponding to the user;
[0120] Step S780, the interactive terminal 701 sends the current posture data to the neighboring terminal 702, so as to match the target virtual scene frame from the neighboring terminal 702 according to the current posture data;
[0121] In step S790, the neighboring terminal 702 transmits the matched target virtual scene frame to the interactive terminal 701 for display, thereby completing the loading of the virtual scene.
[0122] In summary, in this exemplary embodiment, the device information of the neighboring terminal with which the target communication connection has been established can be obtained, and then the device information can be sent to the cloud server, so that the cloud server can cache the rendered virtual scene frame to the neighboring terminal according to the device information, and then the current posture data can be obtained, and the target virtual scene frame can be obtained from the neighboring terminal based on the current posture data, and the target virtual scene frame can be loaded and displayed. On the one hand, a target communication connection is established with the neighboring terminal, and the device information of the neighboring terminal is sent to the cloud server. In this way, when the interactive terminal requests to load the virtual scene, the cloud server can pre-render the virtual scene frame that may be used and cache it in the neighboring terminal. The interactive terminal obtains the virtual scene frame that needs to be loaded from the neighboring terminal according to the current posture data, shortening the transmission path and effectively reducing the interactive delay of the interactive terminal when loading the virtual scene frame; on the other hand, by establishing a target communication connection with the neighboring terminal, the network and storage capacity of the neighboring terminal are fully utilized, the hardware requirements for the interactive terminal when loading the virtual scene frame are reduced, the hardware cost is reduced, and the processing efficiency of the interactive terminal is improved, and the loading efficiency of the virtual scene is improved.
[0123] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0124] For further reference, Figure 8 As shown, in the implementation of this example, a virtual scene loading device 800 is also provided, including a device information acquisition module 810, a device information sending module 820 and a virtual scene frame display module 830. Among them:
[0125] The device information acquisition module 810 is used to acquire device information of a neighboring terminal with which a target communication connection has been established;
[0126] The device information sending module 820 is used to send the device information to the cloud server, so that the cloud server caches the rendered virtual scene frame to the adjacent terminal according to the device information;
[0127] The virtual scene frame display module 830 is used to obtain current posture data, obtain a target virtual scene frame from the neighboring terminal based on the current posture data, and load and display the target virtual scene frame.
[0128] In an exemplary embodiment, the virtual scene loading device 800 further includes a current position information sending module, and the current position information sending module can be used to:
[0129] Get current location information;
[0130] The current position information is sent to the cloud server, so that the cloud server renders the virtual scene frame according to the current position information.
[0131] In an exemplary embodiment, the virtual scene frame display module 830 may be used to:
[0132] Acquire current posture data, and determine whether a target virtual scene frame exists in the neighboring terminal according to the current posture data;
[0133] If it is determined that the target virtual scene frame exists, acquiring the target virtual scene frame from the neighboring terminal;
[0134] If it is determined that the target virtual scene frame does not exist, new position information is generated according to the current posture data, and the new position information is sent to the cloud server, so that the cloud server renders and generates a new virtual scene frame including the target virtual scene frame according to the new position information, and caches the new virtual scene frame to the neighboring terminal.
[0135] In an exemplary embodiment, the target communication connection may include a wireless direct communication connection, and the virtual scene loading device 800 may further include a neighboring terminal search module, which may be used to:
[0136] In response to detecting a control request for loading a virtual scene, wireless direct communication is initiated to search for a terminal device corresponding to the current location information;
[0137] Sending a wireless direct communication request to the searched terminal device;
[0138] The terminal device that successfully establishes the wireless direct communication connection is regarded as the neighboring terminal.
[0139] For further reference, Fig. 9 As shown, in the implementation of this example, a virtual scene loading device 900 is also provided, which may include a device information receiving module 910 and a virtual scene frame buffer module 920. Among them:
[0140] The device information receiving module 910 is used to receive device information uploaded by an interactive terminal, where the device information is of a neighboring terminal that has established a target communication connection with the interactive terminal;
[0141] The virtual scene frame buffer module 920 is used to render and generate a virtual scene frame, and buffer the virtual scene frame in the adjacent terminal, so that the interactive terminal can obtain and load the display target virtual scene frame from the adjacent terminal according to the current posture data.
[0142] In an exemplary embodiment, the virtual scene frame buffer module 920 may be used to:
[0143] Acquiring current location information uploaded by the interactive terminal;
[0144] The virtual scene is meshed and rendered to generate a virtual scene frame corresponding to the current position information.
[0145] The specific details of each module in the above device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.
[0146] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0147] The exemplary embodiment of the present disclosure also provides an electronic device. The electronic device may be the above-mentioned terminal devices 101, 102, 103 and server 105. Generally, the electronic device may include a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to execute the above-mentioned virtual scene loading method by executing the executable instructions.
[0148] Below Fig.10 The mobile terminal 1000 in FIG. 1 is taken as an example to exemplify the structure of the electronic device. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Fig.10 The construction in can also be applied to fixed type equipment.
[0149] like Fig.10 As shown, the mobile terminal 1000 may specifically include: a processor 1001, a memory 1002, a bus 1003, a mobile communication module 1004, an antenna 1, a wireless communication module 1005, an antenna 2, a display screen 1006, a camera module 1007, an audio module 1008, a power module 1009 and a sensor module 1010.
[0150] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc. The virtual scene loading method in this exemplary embodiment may be executed by an AP, a GPU or a DSP. When the method involves processing related to a neural network, it may be executed by an NPU, for example, the NPU may load neural network parameters and execute algorithm instructions related to the neural network.
[0151] The encoder can encode (i.e. compress) an image or video to reduce the data size for easy storage or transmission. The decoder can decode (i.e. decompress) the encoded data of an image or video to restore the image or video data. The mobile terminal 1000 can support one or more encoders and decoders, such as: image formats such as JPEG (Joint Photographic Experts Group), PNG (Portable Network Graphics), BMP (Bitmap), and video formats such as MPEG (Moving Picture Experts Group) 1, MPEG10, H.1063, H.1064, and HEVC (High Efficiency Video Coding).
[0152] The processor 1001 may be connected to the memory 1002 or other components via a bus 1003 .
[0153] The memory 1002 may be used to store computer executable program codes, which may include instructions. The processor 1001 executes various functional applications and data processing of the mobile terminal 1000 by running the instructions stored in the memory 1002. The memory 1002 may also store application data, such as images, videos, and other files.
[0154] The communication function of the mobile terminal 1000 can be implemented by the mobile communication module 1004, antenna 1, wireless communication module 1005, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 1004 can provide 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 1000. The wireless communication module 1005 can provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. applied to the mobile terminal 1000.
[0155] The display screen 1006 is used to implement display functions, such as displaying user interfaces, images, videos, etc. The camera module 1007 is used to implement shooting functions, such as shooting images, videos, etc. The audio module 1008 is used to implement audio functions, such as playing audio, collecting voice, etc. The power module 1009 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc.
[0156] The sensor module 1010 may include one or more sensors for implementing corresponding sensing detection functions. For example, the sensor module 1010 may include an inertial sensor for detecting the motion posture of the mobile terminal 1000 and outputting inertial sensing data.
[0157] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.
[0158] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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.
[0159] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0160] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0161] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0162] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A virtual scene loading method, It is characterized in that Applied to an interactive terminal, the method includes: Acquiring device information of a neighboring terminal that has established a target communication connection; wherein the target communication connection refers to a communication connection mode in which data can be directly transmitted between terminals, and the neighboring terminal refers to a terminal that is within a searchable area of a service of the interactive terminal and can establish a target communication connection; the device information refers to parameter data related to the neighboring terminal, and after the interactive terminal establishes a target communication connection with the neighboring terminal, the neighboring terminal sends the device information to the interactive terminal; The device information is sent to a cloud server, so that the cloud server caches the rendered virtual scene frame to the adjacent terminal according to the device information; wherein the rendered virtual scene frame refers to a virtual scene frame near the current position coordinates of the interactive terminal, and when rendering the virtual scene, the cloud server performs grid processing on the virtual scene, and only needs to render the virtual scene frame around the position coordinates of the interactive terminal each time; Acquire the current posture data of the interactive terminal, and determine whether a target virtual scene frame exists in the neighboring terminal according to the current posture data; if it is determined that the target virtual scene frame exists, acquire the target virtual scene frame from the neighboring terminal; if it is determined that the target virtual scene frame does not exist, generate new position information according to the current posture data, and send the new position information to the cloud server, so that the cloud server renders and generates a new virtual scene frame including the target virtual scene frame according to the new position information, and caches the new virtual scene frame to the neighboring terminal, so as to acquire the target virtual scene frame from the neighboring terminal, and load and display the target virtual scene frame.
2. The method according to claim 1, It is characterized in that The method further comprises: Get current location information; The current position information is sent to the cloud server, so that the cloud server renders the virtual scene frame according to the current position information.
3. The method according to claim 2, It is characterized in that The target communication connection includes a wireless direct communication connection, and the method further includes: In response to detecting a control request for loading a virtual scene, wireless direct communication is initiated to search for a terminal device corresponding to the current location information; Sending a wireless direct communication request to the searched terminal device; The terminal device that successfully establishes the wireless direct communication connection is regarded as the neighboring terminal.
4. A virtual scene loading method, It is characterized in that Applied to a cloud server, the method includes: receiving device information uploaded by an interactive terminal, the device information being of a neighboring terminal with which the interactive terminal has established a target communication connection; the target communication connection refers to a communication connection mode in which data can be directly transmitted between terminals, and the neighboring terminal refers to a terminal that can establish a target communication connection within a searchable area of a service of the interactive terminal; the device information refers to parameter data related to the neighboring terminal, and after the interactive terminal establishes a target communication connection with the neighboring terminal, the neighboring terminal sends the device information to the interactive terminal; Rendering generates a virtual scene frame, and caching the virtual scene frame in the adjacent terminal, so that the interactive terminal obtains and loads the target virtual scene frame from the adjacent terminal according to the current posture data; wherein the virtual scene frame refers to the virtual scene frame attached to the current position coordinates of the interactive terminal, and when the cloud server renders the virtual scene, it grids the virtual scene, and only needs to render the virtual scene frame around the position coordinates of the interactive terminal each time; The interactive terminal obtains the target virtual scene frame from the neighboring terminal based on the current posture data, which can be achieved in the following manner: obtain the current posture data of the interactive terminal, and determine whether the target virtual scene frame exists in the neighboring terminal based on the current posture data; if it is determined that the target virtual scene frame exists, obtain the target virtual scene frame from the neighboring terminal; if it is determined that the target virtual scene frame does not exist, generate new position information based on the current posture data, and send the new position information to the cloud server, so that the cloud server renders and generates a new virtual scene frame containing the target virtual scene frame based on the new position information, and caches the new virtual scene frame to the neighboring terminal, so as to obtain the target virtual scene frame from the neighboring terminal.
5. The method according to claim 4, It is characterized in that The rendering generates a virtual scene frame, including: Acquiring current location information uploaded by the interactive terminal; The virtual scene is meshed and rendered to generate a virtual scene frame corresponding to the current position information.
6. A virtual scene loading device, It is characterized in that Set at an interactive terminal, the device includes: A device information acquisition module, used to acquire device information of a neighboring terminal that has established a target communication connection; wherein the target communication connection refers to a communication connection mode that can directly transmit data between terminals, and the neighboring terminal refers to a terminal that can establish a target communication connection within the searchable area of the service of the interactive terminal; the device information refers to parameter data related to the neighboring terminal, and after the interactive terminal establishes a target communication connection with the neighboring terminal, the neighboring terminal sends the device information to the interactive terminal; The device information sending module is used to send the device information to the cloud server, so that the cloud server caches the rendered virtual scene frame to the adjacent terminal according to the device information; wherein the rendered virtual scene frame refers to the virtual scene frame adjacent to the current position coordinates of the interactive terminal, and when rendering the virtual scene, the cloud server performs grid processing on the virtual scene, and only needs to render the virtual scene frame around the position coordinates of the interactive terminal each time; A virtual scene frame display module is used to obtain the current posture data of the interactive terminal, and determine whether there is a target virtual scene frame in the neighboring terminal based on the current posture data; if it is determined that the target virtual scene frame exists, the target virtual scene frame is obtained from the neighboring terminal; if it is determined that the target virtual scene frame does not exist, new position information is generated according to the current posture data, and the new position information is sent to the cloud server, so that the cloud server renders and generates a new virtual scene frame including the target virtual scene frame according to the new position information, and caches the new virtual scene frame to the neighboring terminal, so as to obtain the target virtual scene frame from the neighboring terminal, and load and display the target virtual scene frame.
7. A virtual scene loading device, It is characterized in that Set up in the cloud server, the device includes: The device information receiving module is used to receive device information uploaded by the interactive terminal, wherein the device information is of a neighboring terminal that has established a target communication connection with the interactive terminal; the target communication connection refers to a communication connection mode that can directly transmit data between terminals, and the neighboring terminal refers to a terminal that can establish a target communication connection within a searchable area of the service of the interactive terminal; the device information refers to parameter data related to the neighboring terminal, and after the interactive terminal establishes a target communication connection with the neighboring terminal, the neighboring terminal sends the device information to the interactive terminal; A virtual scene frame cache module is used to render and generate a virtual scene frame, and cache the virtual scene frame to the adjacent terminal, so that the interactive terminal can obtain and load the target virtual scene frame from the adjacent terminal according to the current posture data; wherein the virtual scene frame refers to the virtual scene frame attached to the current position coordinates of the interactive terminal. When rendering the virtual scene, the cloud server performs grid processing on the virtual scene, and only needs to render the virtual scene frame around the position coordinates of the interactive terminal each time; The interactive terminal obtains the target virtual scene frame from the neighboring terminal based on the current posture data, which can be achieved in the following manner: obtain the current posture data of the interactive terminal, and determine whether the target virtual scene frame exists in the neighboring terminal based on the current posture data; if it is determined that the target virtual scene frame exists, obtain the target virtual scene frame from the neighboring terminal; if it is determined that the target virtual scene frame does not exist, generate new position information based on the current posture data, and send the new position information to the cloud server, so that the cloud server renders and generates a new virtual scene frame containing the target virtual scene frame based on the new position information, and caches the new virtual scene frame to the neighboring terminal, so as to obtain the target virtual scene frame from the neighboring terminal.
8. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
9. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 5 by executing the executable instructions.
