A data processing method, apparatus and device
By leveraging GPU rasterization and ray tracing technologies through collaborative processing between the terminal and the cloud, the challenges of rendering extended reality scenes under conditions of insufficient network and computing power have been solved, achieving efficient global illumination effects and ensuring user experience.
Patent Information
- Application Number
- CN202210093285.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-01-26
AI Technical Summary
How to efficiently render extended reality scenes of varying complexity under conditions of network transmission latency and insufficient computing power, especially in real-time cloud XR scenes, to improve global illumination effects and ensure user experience.
Through the collaborative efforts of the terminal and cloud server, the terminal's GPU processing power is used to perform rasterization operations with low computational cost, while the cloud server performs ray tracing processing and combines user movement speed information to sample light, compensating for the shortcomings of the terminal's rendering effect and improving the global illumination effect.
It outputs rasterized rendering images directly to users without being affected by network latency, reducing data transmission latency, improving global illumination effects, and ensuring user experience.
Smart Images

Figure CN116543092B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data processing method, apparatus, and equipment. Background Technology
[0002] Currently, extended reality (XR) technology is developing rapidly. The low latency and high bandwidth characteristics of future communication networks bring tremendous opportunities for the in-depth development of XR technology. XR cloud rendering technology fully utilizes the massive computing power of the cloud to create immersive 3D virtual environments for users and supports low-latency interaction. In cloud rendering technology, ray tracing and rasterization technologies can complement each other in terms of light processing. Compared with rasterization, ray tracing can generate higher quality images in real-time applications such as VR games.
[0003] With the support of existing hardware, GPU-accelerated ray tracing has made significant progress. Real-time ray tracing technology allows XR content creators to freely transform any object in a scene, and the lighting and shadow effects change naturally with the object's movement, greatly enriching the user experience. In some real-time rendered cloud XR scenarios, high-quality real-time ray tracing processing is often required. How to efficiently render scenes of varying complexity using rendering algorithms remains a challenging problem. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a data processing method, apparatus and device that, through the collaboration of a terminal and a cloud server, utilizes the GPU processing power of the terminal to perform rasterization operations with low computational requirements, enabling it to directly output rasterized rendering images to users without being affected by network latency.
[0005] To address the aforementioned technical problems, embodiments of the present invention provide a data processing method applied to a cloud server, the method comprising:
[0006] The first rendering result obtained by rendering the model data is sent by the receiving terminal;
[0007] Perform ray tracing processing on the first rendering result to obtain the ray tracing processing result;
[0008] The ray tracing processing results are sent to the terminal.
[0009] Optionally, the first rendering result is subjected to ray tracing processing to obtain a ray tracing processing result, including:
[0010] Based on the computing power and / or network transmission of the cloud server, ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result.
[0011] Optionally, based on the computing power and / or network transmission conditions of the cloud server, ray tracing processing is performed on the first rendering result to obtain a ray tracing processing result, including:
[0012] When the computing power and / or network transmission of the cloud server meet the requirements for ray tracing processing, global illumination ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result; or
[0013] When the computing power and / or network transmission of the cloud server do not meet the requirements of ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays; ray tracing processing of the first rendering result is performed on the sampled rays according to the preset number of sampled rays to obtain the ray tracing processing result.
[0014] Optionally, data processing methods applied to cloud servers also include:
[0015] The receiving terminal transmits the user's movement speed information;
[0016] When the computing power and / or network transmission of the cloud server do not meet the requirements for ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays, including:
[0017] When the user's movement speed exceeds a preset threshold, the light in the gaze area is sampled to obtain a first preset number of sampled light rays; or
[0018] When the user's movement speed is less than the preset threshold, the light in the gaze point area is sampled to obtain a second preset number of sampled light rays; the second preset number is greater than the first preset number.
[0019] Optionally, data processing methods applied to cloud servers also include:
[0020] Light is sampled in the non-focal area to obtain a third preset number of sampled light rays, which is less than the first preset number.
[0021] Embodiments of the present invention also provide a data processing method applied to a terminal, the method comprising:
[0022] Obtain model data;
[0023] The model data is processed to obtain a first processing result;
[0024] The first processing result is rasterized to obtain the first rendering result.
[0025] Optionally, the model data is processed to obtain a first processing result, including:
[0026] The model data is geometrically processed to obtain a first processing result, which includes scene information.
[0027] Optionally, the data processing method applied to the terminal also includes:
[0028] Obtain the user's movement speed information;
[0029] The movement speed information is sent to the cloud server.
[0030] Optionally, the data processing method applied to the terminal also includes:
[0031] Receive the ray tracing processing results sent by the cloud server;
[0032] Based on the ray tracing processing results and the first rendering result, a second rendering result with global illumination is obtained.
[0033] Embodiments of the present invention also provide a data processing apparatus applied to a cloud server, the apparatus comprising:
[0034] The receiving module is used to receive the first rendering result obtained by rendering the model data sent by the terminal;
[0035] The processing module is used to perform ray tracing processing on the first rendering result to obtain the ray tracing processing result;
[0036] The sending module is used to send the ray tracing processing results to the terminal.
[0037] Embodiments of the present invention also provide a terminal, comprising:
[0038] The transceiver module is used to acquire model data;
[0039] The processing module is used to process the model data to obtain a first processing result; and to perform a rasterization operation on the first processing result to obtain a first rendering result.
[0040] Embodiments of the present invention also provide a computing device, including: a processor and a memory storing a computer program, wherein the computer program, when executed by the processor, performs the data processing method as described above.
[0041] Embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the data processing method as described above.
[0042] The above-described solution of the present invention has at least the following beneficial effects:
[0043] The first rendering result, obtained by rendering model data sent by the receiving terminal, reduces transmission latency and fully guarantees user experience. The high GPU processing power of the cloud server is used to perform ray tracing on the first rendering result, obtaining a ray tracing processing result. This compensates for the shortcomings of the terminal's raster effect and improves global illumination. Combined with the user's movement speed information, the cloud selects sampled rays, maximizing the use of limited computing resources on rays that best reflect the value of light, ensuring user experience even under poor network conditions and insufficient computing power. The cloud server then sends the ray tracing processing result back to the terminal, further improving global illumination. Attached Figure Description
[0044] Figure 1 This is a flowchart of a data processing method applied to a cloud server provided in an embodiment of the present invention;
[0045] Figure 2 This is a flowchart of cloud server light selection provided in an embodiment of the present invention;
[0046] Figure 3 This is a flowchart illustrating the specific implementation of the data processing method provided in this embodiment of the invention.
[0047] Figure 4 This is a schematic diagram of a data processing device applied to a cloud server according to an embodiment of the present invention. Detailed Implementation
[0048] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0049] like Figure 1 As shown, an embodiment of the present invention provides a data processing method applied to a cloud server, the method comprising:
[0050] Step 11: Receive the first rendering result obtained by rendering the model data sent by the terminal;
[0051] Step 12: Perform ray tracing processing on the first rendering result to obtain the ray tracing processing result;
[0052] Step 13: Send the ray tracing processing results to the terminal.
[0053] In this embodiment, the model data can be raw lighting and scene data information directly captured by the terminal, or raw lighting and scene data information acquired by the terminal in the corresponding scene. The terminal performs rendering processing on the model data, which can utilize the terminal's GPU processing power to perform rasterization operations with low computational requirements. This allows the terminal to directly output a rasterized rendered image to the user without network interference, simultaneously obtaining a first rendering result. The first rendering result can be a rasterized rendering result based on direct lighting. Rasterization simultaneously generates a G-buffer buffer containing information such as color, normals, world space coordinates, and relevant material parameters.
[0054] The cloud server receives the model data processed by the terminal, which is the first rendering result. Compared with receiving the original data, this reduces the amount of data transmission and fully guarantees the user experience. The cloud server performs computationally intensive ray tracing processing on the first rendering result, making full use of GPU computing resources to compensate for the deficiencies in the terminal's rendering effect, improve global illumination effects, and ensure the user experience. By receiving the first rendering result processed by the terminal through the cloud service and performing ray tracing processing on it, the combined processing of model data by the terminal and the cloud server allows both the terminal and the cloud server to make full use of their processing resources, reduce rendering latency, and the ray tracing processing of the first rendering result by the cloud server can compensate for the deficiencies in the terminal's rendering, further improving the rendering effect.
[0055] In an optional embodiment of the present invention, step 12 above may include:
[0056] Step 121: Based on the computing power and / or network transmission of the cloud server, perform ray tracing processing on the first rendering result to obtain the ray tracing processing result.
[0057] In this embodiment, the cloud server uses the first rendering result as input and performs ray tracing processing based on its own computing power and / or the current network transmission status.
[0058] In an optional embodiment of the present invention, step 121 above may include:
[0059] Step 1211: When the computing power and / or network transmission of the cloud server meet the requirements for ray tracing processing, perform global illumination ray tracing processing on the first rendering result to obtain the ray tracing processing result; or
[0060] When the computing power and / or network transmission of the cloud server do not meet the requirements of ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays; ray tracing processing of the first rendering result is performed on the sampled rays according to the preset number of sampled rays to obtain the ray tracing processing result.
[0061] like Figure 2 As shown in this embodiment, when the computing power and / or network transmission in the cloud meet the requirements of ray tracing processing, the cloud server uses the first rendering result as input data to generate rays, performs pixel-by-pixel illumination calculations, and performs global illumination ray tracing processing on the first rendering result, so as to make full use of its own computing resources to make up for the deficiencies of the terminal rendering result.
[0062] When the computing power and / or network transmission in the cloud cannot meet the requirements of ray tracing processing, the cloud server performs ray sampling. It can collect a preset number of rays based on the current network conditions and / or the computing power of the cloud to obtain sampled rays. The ray tracing processing is then performed on the rays generated from the first rendering result based on the sampled rays to meet the latency requirements of network transmission.
[0063] In an optional embodiment of the present invention, based on step 1211, the method further includes:
[0064] Step 1212: Receive the user's movement speed information sent by the receiving terminal; when the computing power and / or network transmission conditions of the cloud server do not meet the requirements of ray tracing processing, perform ray sampling to obtain a preset number of sampled rays, including:
[0065] Step 1213: When the user's movement speed exceeds a preset threshold, sample the light in the gaze area to obtain a first preset number of sampled light rays; or
[0066] When the user's movement speed is less than the preset threshold, the light in the gaze point area is sampled to obtain a second preset number of sampled light rays; the second preset number is greater than the first preset number.
[0067] like Figure 2 As shown in this embodiment, when the computing power and / or network transmission of the cloud server do not meet the requirements of ray tracing processing, ray sampling is required to obtain a preset number of sampled rays. In the process of selecting sampled rays, the user's movement speed needs to be considered. The cloud server receives the user's movement speed information obtained by the speed sensor installed on the terminal, and determines the selection of the number of sampled rays based on the user's movement speed information.
[0068] The preset threshold can be set according to the needs of the application scenario. When the user's movement speed is less than the preset threshold, the light in the gaze point area is sampled according to the second preset number. When the user's movement speed is greater than the preset threshold, the light in the gaze point area is sampled according to the first preset number. Light sampling is then performed according to the user's movement speed. When the movement speed is high, the user does not have high requirements for the ray tracing rendering effect of objects in the field of vision. At this time, the number of light samples in the gaze point area can be reduced. When the movement speed is low, the user has high requirements for the ray tracing rendering effect of objects in the field of vision. At this time, the number of light samples in the gaze point area needs to be increased. Therefore, the second preset number should be greater than the first preset number.
[0069] Furthermore, light samples are taken from the non-focal area to obtain a third preset number of sampled light rays, which is less than the first preset number. Regardless of whether the user's movement speed is greater than a preset threshold, since objects in the non-focal area are not noticed by the user, in order to ensure rendering latency, the number of light samples taken from the non-focal area can be reduced while ensuring the number of light samples taken from the focal area. The third preset number can be set much smaller than the first preset number.
[0070] Embodiments of the present invention also provide a data processing method applied to a terminal, the method comprising:
[0071] Step 21, Obtain model data;
[0072] Step 22: Process the model data to obtain the first processing result;
[0073] Step 23: Perform a rasterization operation on the first processing result to obtain the first rendering result.
[0074] In this embodiment, the terminal processes the model data by performing geometric processing operations on the model data based on its own computing power to obtain a first processing result, and then performing rasterization rendering operations on the first processing result to obtain a first rendering result. This allows the terminal to directly output the rasterized rendering image, i.e., the first rendering result, to the user without being affected by network latency, thereby ensuring user experience. At the same time, it provides a computing foundation for the cloud server, reducing the latency of subsequent data transmission and the latency of the entire lighting rendering process.
[0075] In an optional embodiment of the present invention, step 22 may include:
[0076] Step 221: Perform geometric processing on the model data to obtain a first processing result, which includes scene information.
[0077] In this embodiment, the data model can be a data model under the corresponding application scenario. The terminal performs geometric processing on the data model to obtain a first processing result. The first processing result includes scene information under the corresponding application scenario. The scene information includes at least one of the following: geometric position, normal, material and light source information.
[0078] In an optional embodiment of the present invention, the data processing method applied to the terminal further includes:
[0079] Obtain the user's movement speed information; send the movement speed information to the cloud server.
[0080] In this embodiment, the terminal can collect the user's movement speed based on the speed acquisition module of the speed sensor installed on it, and transmit the movement speed information to the cloud server, so that the cloud server can combine the user's movement speed and make reasonable use of its own computing power to perform real-time ray tracing processing on the first rendering result to make up for the shortcomings of the terminal's rasterization rendering effect.
[0081] In an optional embodiment of the present invention, based on steps 21 to 23, the method further includes:
[0082] Step 24: Receive the ray tracing processing results sent by the cloud server;
[0083] Step 25: Based on the ray tracing processing result and the first rendering result, obtain the second rendering result of global illumination.
[0084] In this embodiment, after the terminal receives the ray tracing processing result sent by the cloud server, it combines the first rendering result obtained by the terminal processing and mixes the ray tracing processing with the first rendering result to obtain the global illumination rendering result, i.e., the second rendering result, thereby further improving the lighting rendering effect and enhancing the user experience.
[0085] The above method will be illustrated with a specific example below, such as... Figure 3 As shown, the specific implementation flow of the data processing method is as follows:
[0086] Step 31: The terminal generates a G-buffer and performs rasterization processing.
[0087] The terminal performs geometric processing on the model data to obtain a first processing result; the first processing result includes information such as the geometric position, normals, materials, and light sources of the scene; the terminal performs rasterization processing on the first processing result to obtain a first rendering result of the scene.
[0088] Step 32, Data transmission of the first rendering result:
[0089] The terminal transmits the first rendering result to the cloud server; the terminal's speed acquisition module collects the user's movement speed and uploads the speed information to the cloud server.
[0090] Step 33, recursive ray tracing on the cloud server:
[0091] The cloud server uses the first rendering result as input to perform pixel-by-pixel lighting calculations. The cloud server generates rays based on the first rendering result to calculate lighting information, performs ray tracing processing, and then transmits the ray tracing results to the terminal. The ray tracing processing of the cloud server can compensate for the deficiencies of the terminal's rasterization rendering effect.
[0092] Furthermore, taking into account the computing power and / or network transmission conditions of the cloud server, including:
[0093] Step 331: When the computing power of the cloud server is sufficient or the network transmission meets the requirements, perform ray tracing for global illumination.
[0094] Step 332: When the cloud server's computing power is insufficient or the network transmission is poor, select the ray tracing sampling rays;
[0095] In step 332, considering the user's movement speed, the cloud server determines the selection of the number of sampling rays based on the acquired user movement speed:
[0096] When the user's movement speed exceeds a certain threshold, the user's requirements for the ray tracing rendering effect of objects in their field of view are not high. At this point, the number of ray samples in the foveated area can be reduced. Since objects in the non-foveated area are not noticed by the user, the number of ray samples can be further reduced.
[0097] When a user's movement speed is below a certain threshold, the user has higher requirements for the ray tracing rendering effect of objects in their field of view. To ensure rendering latency, the number of ray samples in non-focal areas can be reduced while maintaining the number of ray samples collected in the focal area.
[0098] Step 34, Results of mixed lighting
[0099] The cloud server transmits the ray tracing rendering results to the terminal, which then blends the lighting rendering results to obtain the global illumination rendering results.
[0100] In the above embodiments of the present invention, the terminal performs rasterization processing, which enables it to directly output the rasterized rendering image to the user within the latency unaffected by the network, thus ensuring the user experience. At the same time, the processed first rendering result is transmitted to the cloud server, which can reduce the transmission latency compared to transmitting the original data, and fully ensure the user experience.
[0101] The cloud server combines the user's movement speed information sent by the terminal to select sampled rays, which can use limited computing resources as much as possible on rays that better reflect the value of light. It can ensure user experience even when network transmission is poor and computing power is insufficient. The cloud server performs computationally demanding ray tracing processing, which can compensate for the lack of raster effects on the terminal, thereby improving the global illumination effect.
[0102] like Figure 4 As shown, embodiments of the present invention also provide a data processing apparatus applied to a cloud server, the apparatus 40 comprising:
[0103] The receiving module 41 is used to receive the first rendering result obtained by rendering the model data sent by the terminal;
[0104] Processing module 42 is used to perform ray tracing processing on the first rendering result to obtain ray tracing processing result;
[0105] The sending module 43 is used to send the ray tracing processing results to the terminal.
[0106] Optionally, the processing module 42 is used to perform ray tracing processing on the first rendering result to obtain a ray tracing processing result, including:
[0107] Based on the computing power and / or network transmission of the cloud server, ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result.
[0108] Optionally, the processing module 42 is configured to perform ray tracing processing on the first rendering result based on the computing power and / or network transmission conditions of the cloud server, to obtain a ray tracing processing result, including:
[0109] When the computing power and / or network transmission of the cloud server meet the requirements for ray tracing processing, global illumination ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result; or
[0110] When the computing power and / or network transmission of the cloud server do not meet the requirements of ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays; ray tracing processing of the first rendering result is performed on the sampled rays according to the preset number of sampled rays to obtain the ray tracing processing result.
[0111] Optionally, the processing device is also used to receive user movement speed information sent by the terminal;
[0112] When the computing power and / or network transmission of the cloud server do not meet the requirements for ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays, including:
[0113] When the user's movement speed exceeds a preset threshold, the light in the gaze area is sampled to obtain a first preset number of sampled light rays; or
[0114] When the user's movement speed is less than the preset threshold, the light in the gaze point area is sampled to obtain a second preset number of sampled light rays; the second preset number is greater than the first preset number.
[0115] Optionally, the processing module 42 is further configured to sample light in the non-focal area to obtain a third preset number of sampled light rays, wherein the third preset number is less than the first preset number.
[0116] It should be noted that this device is a device corresponding to the data processing method of the cloud server described above. All implementation methods in the above method embodiments are applicable to the embodiments of this device and can achieve the same technical effect.
[0117] Embodiments of the present invention also provide a terminal, the terminal comprising:
[0118] The transceiver module is used to acquire model data;
[0119] The processing module is used to process the model data to obtain a first processing result; and to perform a rasterization operation on the first processing result to obtain a first rendering result.
[0120] Optionally, the processing module is used to process the model data to obtain a first processing result, including:
[0121] The model data is geometrically processed to obtain a first processing result, which includes scene information.
[0122] Optionally, the transceiver module is also used to acquire the user's movement speed information;
[0123] The movement speed information is sent to the cloud server.
[0124] Optionally, the processing module is also used to receive ray tracing processing results sent by the cloud server;
[0125] Based on the ray tracing processing results and the first rendering result, a second rendering result with global illumination is obtained.
[0126] It should be noted that this terminal is the terminal corresponding to the data processing method applied to the terminal described above. All implementation methods in the above method embodiments are applicable to the embodiments of this terminal and can achieve the same technical effect.
[0127] Embodiments of the present invention also provide a computing device, including: a processor and a memory storing a computer program, wherein the computer program, when executed by the processor, performs the method described above. All implementations in the above method embodiments are applicable to this embodiment and can achieve the same technical effects.
[0128] Embodiments of the present invention also provide a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the method described above. All implementations in the above method embodiments are applicable to this embodiment and can achieve the same technical effects.
[0129] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0130] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0131] In the embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0132] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0133] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0134] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0135] Furthermore, it should be noted that in the apparatus and method of the present invention, it is obvious that the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered equivalent solutions of the present invention. Moreover, the steps performing the above-described series of processes can naturally be executed in the order described, but are not necessarily required to be executed in chronological order; some steps can be executed in parallel or independently of each other. Those skilled in the art will understand that all or any step or component of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or a combination thereof. This is something that those skilled in the art can achieve by using their basic programming skills after reading the description of the present invention.
[0136] Therefore, the object of the present invention can also be achieved by running a program or a set of programs on any computing device. The computing device can be a known general-purpose device. Therefore, the object of the present invention can also be achieved simply by providing a program product containing program code implementing the method or apparatus. That is, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any known storage medium or any storage medium developed in the future. It should also be noted that in the apparatus and method of the present invention, it is obvious that the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered equivalent to the present invention. Furthermore, the steps performing the above series of processes can naturally be performed in the order described, but are not necessarily required to be performed in chronological order. Some steps can be performed in parallel or independently of each other.
[0137] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A data processing method, characterized in that, Applied to a cloud server, the method includes: The first rendering result obtained by rendering the model data is sent by the receiving terminal; Perform ray tracing processing on the first rendering result to obtain the ray tracing processing result; The ray tracing processing results are sent to the terminal; The step of performing ray tracing processing on the first rendering result to obtain the ray tracing processing result includes: Based on the computing power and / or network transmission of the cloud server, ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result; The step of performing ray tracing processing on the first rendering result based on the computing power and / or network transmission of the cloud server to obtain the ray tracing processing result includes: When the computing power and / or network transmission of the cloud server meet the requirements for ray tracing processing, global illumination ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result; or When the computing power and / or network transmission of the cloud server do not meet the requirements of ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays; ray tracing processing of the first rendering result is performed on the sampled rays according to the preset number of sampled rays to obtain the ray tracing processing result.
2. The data processing method according to claim 1, characterized in that, Also includes: The receiving terminal transmits the user's movement speed information; When the computing power and / or network transmission of the cloud server do not meet the requirements for ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays, including: When the user's movement speed is greater than a preset threshold, the light in the gaze point area is sampled to obtain a first preset number of sampled light rays; or When the user's movement speed is less than the preset threshold, the light in the gaze point area is sampled to obtain a second preset number of sampled light rays; the second preset number is greater than the first preset number.
3. The data processing method according to claim 2, characterized in that, Also includes: Light is sampled in the non-focal area to obtain a third preset number of sampled light rays, which is less than the first preset number.
4. A data processing method, characterized in that, Applied to a terminal, the method includes: Obtain model data; The model data is processed to obtain a first processing result; The first processing result is rasterized to obtain the first rendering result; The method further includes: Receive the ray tracing processing results sent by the cloud server; Based on the ray tracing processing results and the first rendering result, a second rendering result with global illumination is obtained; The ray tracing processing result is obtained by performing ray tracing processing on the first rendering result based on the computing power and / or network transmission of the cloud server. The process involves performing ray tracing processing on the first rendering result based on the computing power and / or network transmission conditions of the cloud server to obtain the ray tracing processing result, including: When the computing power and / or network transmission of the cloud server meet the requirements for ray tracing processing, global illumination ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result; or When the computing power and / or network transmission of the cloud server do not meet the requirements of ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays; ray tracing processing of the first rendering result is performed on the sampled rays according to the preset number of sampled rays to obtain the ray tracing processing result.
5. The data processing method according to claim 4, characterized in that, The model data is processed to obtain a first processing result, including: The model data is geometrically processed to obtain a first processing result, which includes scene information.
6. The data processing method according to claim 4, characterized in that, Also includes: Obtain the user's movement speed information; The movement speed information is sent to the cloud server.
7. A data processing apparatus, characterized in that, The device, used in a cloud server, includes: The receiving module is used to receive the first rendering result obtained by rendering the model data sent by the terminal; The processing module is used to perform ray tracing processing on the first rendering result to obtain the ray tracing processing result; The sending module is used to send the ray tracing processing results to the terminal; The processing module is used to perform ray tracing processing on the first rendering result to obtain the ray tracing processing result, including: Based on the computing power and / or network transmission of the cloud server, ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result; The processing module is used to perform ray tracing processing on the first rendering result based on the computing power and / or network transmission conditions of the cloud server, to obtain the ray tracing processing result, including: When the computing power and / or network transmission of the cloud server meet the requirements for ray tracing processing, global illumination ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result; or When the computing power and / or network transmission of the cloud server do not meet the requirements of ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays; ray tracing processing of the first rendering result is performed on the sampled rays according to the preset number of sampled rays to obtain the ray tracing processing result.
8. A terminal, characterized in that, include: The transceiver module is used to acquire model data; The processing module is used to process the model data to obtain a first processing result; The first processing result is rasterized to obtain the first rendering result; The processing module is also used to receive ray tracing processing results sent by the cloud server; Based on the ray tracing processing results and the first rendering result, a second rendering result with global illumination is obtained; The ray tracing processing result is obtained by performing ray tracing processing on the first rendering result based on the computing power and / or network transmission of the cloud server. The process involves performing ray tracing processing on the first rendering result based on the computing power and / or network transmission conditions of the cloud server to obtain the ray tracing processing result, including: When the computing power and / or network transmission of the cloud server meet the requirements for ray tracing processing, global illumination ray tracing processing is performed on the first rendering result to obtain the ray tracing processing result; or When the computing power and / or network transmission of the cloud server do not meet the requirements of ray tracing processing, ray sampling is performed to obtain a preset number of sampled rays; ray tracing processing of the first rendering result is performed on the sampled rays according to the preset number of sampled rays to obtain the ray tracing processing result.
9. A computing device, characterized in that, include: A processor, a memory storing a computer program, wherein the computer program, when executed by the processor, performs the method as described in any one of claims 1 to 3 or the method as described in any one of claims 4 to 6.
10. A computer-readable storage medium, characterized in that, Store instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 3 or the method as described in any one of claims 4 to 6.
Citation Information
Patent Citations
Image rendering method and related device
CN111292405A
