Data processing method and apparatus, computer device, computer-readable storage medium, and computer program product

By obtaining the sample body texture in the rendering rules and training the business rendering parameters in combination with the rendering rules, the problem of difficult parameter adjustment in aerial perspective effect rendering simulation is solved, the rendering efficiency and effect are improved, and the time and cost of manual adjustment are reduced.

WO2024198719A1PCT designated stage expired Publication Date: 2024-10-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/075504
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-02-02
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In the existing technology, the rendering simulation method of the aerial perspective effect has the problem that parameters are difficult to adjust, resulting in low rendering efficiency and time-consuming, making it difficult to balance rendering efficiency and effect.

Method used

By obtaining the sample body texture of the sample map in the rendering rule, combined with the first rendering rule and the second rendering rule, business rendering parameters matching the sample environment configuration are trained, which are directly used to render the medium scattering effect, reducing manual adjustments.

Benefits of technology

It improves the rendering efficiency and effect of aerial perspective effect, reduces the time and cost of manual adjustment, and achieves both rendering effect and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024075504_03102024_PF_FP_ABST
    Figure CN2024075504_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in embodiments of the present application are a data processing method and apparatus, a computer device, a computer-readable storage medium, and a computer program product. The method comprises: obtaining rendering rules, the rendering rules comprising a first rendering rule and a second rendering rule; obtaining a sample body texture of a sample map generated according to the first rendering rule; on the basis of the sample body texture, separately determining an actual rendering value of the sample map under a sample environment configuration and reference depth data of the sample map; on the basis of an initial rendering parameter in the second rendering rule and the reference depth data, determining a predicted rendering value of the sample map under the sample environment configuration; training the initial rendering parameter on the basis of the predicted rendering value and the actual rendering value, and obtaining a service rendering parameter, the service rendering parameter being used for rendering a media scattering effect of a first map, and a service environment configuration of the first map being the sample environment configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, device, computer equipment, computer readable storage medium and computer program product

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 2023103210068 and application date March 29, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field

[0003] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0004] Real-time scattering rendering systems in related technologies simulate atmospheric scattering, primarily involving two phenomena: sky effect and aerial perspective. The sky effect, typically achieved with a sky sphere, creates a blue sky during the day and a reddish sky at dusk. The aerial perspective effect, also known as atmospheric fog, is the fog effect caused by atmospheric scattering on distant objects.

[0005] For the phenomenon of aerial perspective, scattering simulation methods in related technologies can simulate it using rendering rules derived from simplified physical formulas (for example, the Hoffman02 algorithm). However, because these rendering rules simplify the physical algorithms, parameter adjustment is difficult. Therefore, to achieve the target effect, it is often necessary to manually try the rendering parameters in the rendering rules and fine-tune them. This is very time-consuming and difficult for artistic creation. In other words, the scattering simulation methods in related technologies require a lot of manpower and time costs, making it difficult to simultaneously strike a balance between rendering efficiency and rendering effects.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a data processing method, apparatus, computer device, computer-readable storage medium, and computer program product, which can improve the rendering effect of scattering simulation while ensuring rendering efficiency.

[0008] An embodiment of the present application provides a data processing method, including: obtaining rendering rules; the rendering rules include a first rendering rule and a second rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render a medium scattering effect; obtaining a sample volume texture of a sample map generated by the first rendering rule; based on the sample volume texture, determining the actual rendering value of the sample map under a sample environment configuration and reference depth data of the sample map; based on the initial rendering parameters in the second rendering rule and the reference depth data, determining the predicted rendering value of the sample map under the sample environment configuration; based on the predicted rendering value and the actual rendering value, training the initial rendering parameters to obtain business rendering parameters that match the sample environment configuration; the business rendering parameters are used to render the medium scattering effect of the first map; the business environment configuration of the first map is the sample environment configuration.

[0009] An embodiment of the present application provides a data processing method, including: when performing scattering simulation rendering on a first map, obtaining a business environment configuration for the first map; if the business environment configuration is a sample environment configuration, obtaining business rendering parameters that match the sample environment configuration; the business rendering parameters are obtained after training the initial rendering parameters in a second rendering rule based on the predicted rendering value and actual rendering value of the sample map under the sample environment configuration; the actual rendering value of the sample map is determined based on the sample volume texture of the sample map; the sample volume texture of the sample map is generated by the first rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render the medium scattering effect; based on the business rendering parameters and the second rendering rule, the medium scattering effect of the first map is rendered to obtain a second map.

[0010] An embodiment of the present application provides a data processing device, including: a rule acquisition module, configured to acquire rendering rules; the rendering rules include a first rendering rule and a second rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render a medium scattering effect; a sample reference module, configured to acquire a sample volume texture of a sample map generated by the first rendering rule, and based on the sample volume texture, determine the actual rendering value of the sample map under the sample environment configuration and the reference depth data of the sample map; a sample prediction module, configured to determine the predicted rendering value of the sample map under the sample environment configuration based on the initial rendering parameters in the second rendering rule and the reference depth data; a training module, configured to train the initial rendering parameters based on the predicted rendering values ​​and the actual rendering values ​​to obtain business rendering parameters that match the sample environment configuration; the business rendering parameters are used to render the medium scattering effect of the first map; the business environment configuration of the first map is the sample environment configuration.

[0011] An embodiment of the present application provides a data processing device, including: a configuration acquisition module, configured to acquire a business environment configuration for the first map when performing scattering simulation rendering on the first map; a business parameter acquisition module, configured to acquire business rendering parameters matching the sample environment configuration if the business environment configuration is a sample environment configuration; the business rendering parameters are obtained after training initial rendering parameters in a second rendering rule based on predicted rendering values ​​and actual rendering values ​​of the sample map under the sample environment configuration; the actual rendering value of the sample map is determined based on a sample volume texture of the sample map; the sample volume texture of the sample map is generated by a first rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render a medium scattering effect; and a rendering module, configured to render the medium scattering effect of the first map based on the business rendering parameters and the second rendering rule to obtain a second map.

[0012] The present application provides a computer device, comprising: a processor, a memory, and a network interface; the processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the data processing method provided in the embodiments of the present application.

[0013] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the data processing method provided by the embodiment of the present application.

[0014] An embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium; a processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the data processing method in the embodiment of the present application.

[0015] In an embodiment of the present application, a computer device with rendering functionality, when performing simulated rendering of a medium scattering effect, obtains rendering rules. The rendering rules may include a first rendering rule for rendering a virtual scene containing a medium and a second rendering rule for rendering the medium scattering effect. Upon obtaining a sample map, the computer device does not need to manually adjust initial rendering parameters in the second rendering rule, consuming a significant amount of time. Instead, the computer device can directly obtain the volume texture of the sample map (i.e., the sample volume texture) using the first rendering rule. Based on the sample volume texture, the computer device can then quickly determine the actual rendering value of the sample map under the sample environment configuration and reference depth data for the sample map.

[0016] On the other hand, the computer device can determine the predicted rendering value of the sample map under the sample environment configuration through the initial rendering parameters in the second rendering rule (i.e., the rendering parameters before training) and the reference depth data. Then, the computer device can train the initial rendering parameters based on the predicted rendering value and the actual rendering value to obtain the business rendering parameters that match the sample environment configuration. Among them, the business rendering parameters here are the trained rendering parameters, which can be used to render the medium scattering effect of the first map, and the business environment configuration of the first map is the sample environment configuration. It can be seen from this that the embodiment of the present application does not require manual adjustment of the initial rendering parameters in the second rendering rule, but can directly derive the difficult-to-adjust rendering parameters in the second rendering rule by obtaining the intermediate data of the physical algorithm of the first rendering rule, i.e., the sample body texture. This means that when rendering the medium scattering effect, the embodiment of the present application does not directly adopt the second rendering rule, but instead trains the business rendering parameters by combining the first rendering rule and the second rendering rule, so that the business rendering parameters can be obtained more quickly and accurately. In this way, when subsequently rendering the medium scattering effect of the first map, not only can the rendering effect be ensured, but also the rendering efficiency can be improved. That is, the scattering simulation method adopted in the embodiment of the present application can take into account both the rendering effect and the rendering efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0018] FIG1 is a schematic diagram of a network architecture provided in an embodiment of the present application;

[0019] FIG2 is a schematic diagram of a framework for training rendering parameters provided by an embodiment of the present application;

[0020] FIG3 is a flow chart of a data processing method provided in an embodiment of the present application;

[0021] FIG4 is a flow chart of a training parameter provided in an embodiment of the present application;

[0022] FIG5 is a flow chart of another data processing method provided in an embodiment of the present application;

[0023] FIG6 is a schematic diagram of a scene for rendering a medium scattering effect provided by an embodiment of the present application;

[0024] FIG7 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;

[0025] FIG8 is a schematic structural diagram of another data processing device provided in an embodiment of the present application;

[0026] FIG9 is a schematic diagram of a computer device provided in an embodiment of the present application;

[0027] FIG10 is a schematic structural diagram of a data processing system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0029] Light scattering refers to the phenomenon in which a beam of light deviates from its original direction and disperses when passing through an inhomogeneous medium, a phenomenon that can also be seen from the side. Light scattering can occur when passing through dusty air or colloidal solutions, or when solar radiation encounters particles such as air molecules, dust particles, and cloud droplets while passing through the atmosphere. For example, a beam of light passing through diluted milk appears white, but appears light blue when viewed from the side or above. The medium can include gaseous media (e.g., air), liquid media (e.g., water, milk, oil), or solid media (e.g., glass), and these are not limited here. It is understood that if the medium is air, the virtual scene containing the medium rendered by the first rendering rule can be a sky effect, while the medium scattering effect rendered by the second rendering rule can be an aerial perspective effect. The sky effect can be a blue sky during the day and a red horizon at dusk; the aerial perspective effect can be a foggy effect caused by atmospheric scattering on distant objects.

[0030] Atmospheric scattering refers to the scattering of light as it passes through atmospheric gas molecules, aerosol particles, and other substances. It is the primary reason why Earth's sky appears blue during the day and red at night. In graphics, an atmospheric scattering system generally simulates three physical phenomena: Rayleigh scattering, Mie scattering, and air absorption of light energy (for example, ozone absorption).

[0031] It is understood that in the embodiments of the present application, the scattering coefficient can be used to represent the scattering ratio of the intensity of light of different colors (i.e., different wavelengths). Since scattering occurs in all directions, the phase function can be used to represent the ratio of light scattered at different angles. The following describes the simulation of several common physical phenomena in the atmospheric scattering system:

[0032] Physical phenomenon 1: Rayleigh scattering. This scattering is caused by air molecules. The intensity of the scattered light in different directions is different. This intensity is inversely proportional to the fourth power of the wavelength of the incident light. Therefore, Rayleigh scattering is the fundamental reason why the atmosphere appears blue during the day and the sky appears orange-red at dusk. The formulas related to Rayleigh scattering can be found in the following formulas (1) and (2):

[0033] in, represents the scattering coefficient of Rayleigh scattering, which indicates the ratio of light loss to scattering after a collision; h represents the height of a pixel; λ represents the wavelength of the incident light; n represents the refractive index of air; N represents the molecular density of the standard atmosphere, that is, the number of molecules per cubic meter; H R Indicates parameters related to altitude.

[0034] It can be understood that when simulating Rayleigh scattering, the scattering coefficient in the embodiment of the present application can indicate the The calculation results of this part are often expressed as β R It is represented by the first scattering parameter. It is understood that this parameter is often calculated using the aforementioned formula based on the RGB values ​​corresponding to the wavelength and reference data obtained from atmospheric measurements. Sometimes, this parameter is also exposed to business users (e.g., users) to manually adjust the final result to simulate the atmospheric effects of various environmental configurations (e.g., planets such as Mars and Earth).

[0035] Among them, P R (μ) represents the phase function of Rayleigh scattering, which is used to control the scattering geometry, P R (μ) represents the relative ratio of light lost in a specific direction. This coefficient is used as a normalization factor so that the integral over the unit sphere is 1; μ = cosθ, which represents the cosine of θ; θ can be used to represent the angle between the directional light and the current line of sight.

[0036] Physical phenomenon 2: Mie scattering. Mie scattering is caused by ellipsoidal particles in the air, such as aerosol particles and water droplets. Mie scattering exhibits relatively strong anisotropy, that is, a considerable portion of the light passing through such particles is scattered in directions that are obtuse to the original direction of light propagation, or even in the opposite direction of light propagation. Therefore, Mie scattering is the main cause of the whitish halo around the sun during the day. The formulas related to Mie scattering can be found in the following formulas (3) and (4):

[0037] in, Represents the scattering coefficient of Mie scattering, which can be used for β M (i.e. the second scattering parameter). h and H M Both are used to represent parameters related to altitude; λ is used to represent the wavelength of incident light.

[0038] Among them, P M (μ) represents the commonly used phase function for Mie scattering (Cornette Shanks phase function); g is a parameter used to control the anisotropy of Mie scattering. Of course, the embodiments of the present application can also use other phase functions (for example, Heyney Greenstein phase function) to simulate Mie scattering.

[0039] Physical phenomenon three: absorption of light energy by air. Absorption mainly occurs in the ozone phenomenon. However, due to its relatively small impact, the simulation effect of this physical phenomenon is temporarily ignored in the embodiment of the present application.

[0040] Below, the data processing method provided in the embodiment of the present application will be described in combination with the simulation of the above-mentioned physical phenomena. Here, the network architecture of the embodiment of the present application will be described first.

[0041] Please refer to Figure 1, which is a structural diagram of a network architecture provided by an embodiment of the present application. As shown in Figure 1, the network architecture may include a server 10F and a terminal device cluster. The terminal device cluster may include one or more terminal devices. As shown in Figure 1, the terminal device cluster may include terminal device 100a, terminal device 100b, terminal device 100c, ..., terminal device 100n. As shown in Figure 1, terminal device 100a, terminal device 100b, terminal device 100c, ..., terminal device 100n can be respectively connected to the above-mentioned server 10F through a network, so that each terminal device can exchange data with the server 10F through the network connection. Among them, the network connection here does not limit the connection method, and can be directly or indirectly connected through a wired communication method, or directly or indirectly connected through a wireless communication method, or through other methods, and the embodiment of the present application does not limit this.

[0042] Each terminal device in the terminal device cluster may include: smart phones, tablet computers, laptop computers, desktop computers, smart speakers, smart watches, car terminals, smart TVs and other smart terminals with data processing functions. It should be understood that each terminal device in the terminal device cluster shown in Figure 1 can be installed with an application client. When the application client runs in each terminal device, it can interact with the server 10F shown in Figure 1 above. Among them, the application client may include social clients, multimedia clients (for example, video clients), entertainment clients (for example, game clients), information flow clients, education clients, live broadcast clients and other application clients. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (for example, a social client, an education client and a multimedia client, etc.), which is not limited here.

[0043] As shown in FIG1 , the server 10F in the embodiment of the present application may be the server corresponding to the application client. The server 10F may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The embodiment of the present application does not limit the number of terminal devices and servers.

[0044] For ease of understanding, the embodiment of the present application can select a terminal device from the multiple terminal devices shown in Figure 1 as the target terminal device. For example, the embodiment of the present application can use the terminal device 100a shown in Figure 1 as the target terminal device, and the target terminal device can be integrated with an application client. At this time, the target terminal device can realize data interaction between the business data platform corresponding to the application client and the server 10F. Among them, the business engine (for example, a game engine, a physical simulation engine, etc.) in the application client here can be deployed with a component (i.e., an atmospheric rendering component) for performing scattering simulation rendering. For example, the atmospheric rendering component deployed by the game engine (for example, the UE4 engine) can be a SkyAtmosphere component (also known as a SkyAtmosphere module). The atmospheric rendering component can be used for training rendering parameters that match the sample environment configuration.

[0045] The sample environment configuration here can be configured by a business object (e.g., a user) based on the actual simulation environment. The configuration here can include a first configuration associated with a planet, a second configuration associated with the location information of a planet, and other types of configurations, which will not be limited here. For example, the business object can select a planet (e.g., Mars) from the configuration options corresponding to the first configuration (e.g., Earth, Mars, Moon, custom planet, etc.) as the first configuration, so that the computer device can subsequently simulate the rendering effect of a certain map on Mars. In some embodiments, after selecting the first configuration, the business object can also select the second configuration based on the first configuration. For example, after selecting the first configuration as Earth, the business object can also select a location information (e.g., the equator) from the configuration options corresponding to the second configuration (e.g., the equator, the North Pole, custom longitude and latitude coordinates, etc.) based on the first configuration, so that the computer device can subsequently simulate the rendering effect of a certain map on the equator of the Earth. In other words, the embodiments of the present application can adjust various scattering systems to achieve the simulation of the rendering effects of various planets, and can also customize various rendering effects. Examples will not be given one by one here.

[0046] It should be understood that the scattering simulation method involved in the embodiment of the present application can be executed by a computer device with a rendering function. The computer device can be the server 10F shown in Figure 1, or any terminal device in the terminal device cluster shown in Figure 1 above, for example, the terminal device 100a, which will not be limited here.

[0047] During the parameter training process, the computer device may obtain rendering rules. These rendering rules may include not only a first rendering rule for rendering a virtual scene containing a medium, such as the Hillaire20 algorithm, but also a second rendering rule for rendering the scattering effect of the medium, such as the Hoffman02 algorithm. To reduce labor and time costs, the computer device may obtain intermediate data obtained through the first rendering rule (i.e., a sample volume texture of a sample map, such as a 3D volume texture), and then, based on the sample volume texture, determine the actual rendering value of the sample map under the sample environment configuration and the reference depth data of the sample map. The actual rendering value and the reference depth data of the sample map are both determined based on a reference image of the sample map under the sample environment configuration. The actual rendering value refers to the rendering value of the reference image; the reference depth data refers to the initial depth data of the reference image, which represents the distance from the current observation point (e.g., the position of the virtual character in the game scene) to the target point in the reference image (e.g., the coordinate position corresponding to a pixel to be rendered). The computer device can then use the initial rendering parameters in the second rendering rule and the reference depth data to determine the predicted rendering value of the sample texture under the sample environment configuration. Based on the predicted rendering value and the actual rendering value, the computer device can then train the initial rendering parameters to obtain business rendering parameters that match the sample environment configuration. The business rendering parameters are used to render the medium scattering effect of the first texture, and the environment configuration of the first texture (i.e., the business environment configuration) is the sample environment configuration.

[0048] The scattering simulation method involved in the embodiment of the present application can be applied to multiple scenarios. For example, in a game scene, the sample map obtained by the computer device may be a game map (for example, a map corresponding to a field shooting scene in a competitive game). At this time, the computer device can train the initial rendering parameters in the second rendering rule by combining the first rendering rule and the second rendering rule to quickly and accurately obtain the business rendering parameters, and then when the business rendering parameters are subsequently applied, the game rendering effect can be more accurately displayed to enhance the user's gaming experience. For another example, in a virtual reality scene (i.e., a VR scene), the sample map obtained by the computer device may be a virtual map (for example, a map corresponding to a forest scene in a virtual world). At this time, the computer device can train the initial rendering parameters in the second rendering rule by combining the first rendering rule and the second rendering rule to quickly and accurately obtain the business rendering parameters, and then when the business rendering parameters are subsequently applied, the aerial perspective effect can be simulated more accurately and in real time, so that users in the virtual world have an immersive feeling and enhance the fun.

[0049] For ease of understanding, in some embodiments, please refer to Figure 2, which is a schematic diagram of a framework for training rendering parameters provided in an embodiment of the present application. As shown in Figure 2, the computer device in the embodiment of the present application can be a computer device with a rendering function, and the computer device can be any terminal device in the terminal device cluster shown in Figure 1 above, for example, the terminal device 100a. The computer device can also be the server 10F shown in Figure 1 above, and the computer device will not be limited here. Among them, the medium in the embodiment of the present application can be air as an example, which means that the virtual scene containing the medium can be a sky effect, and the medium scattering effect can be an air perspective effect.

[0050] It should be understood that since the rendering rule used to render the aerial perspective effect (i.e., the second rendering rule) has the problem of difficult parameter adjustment, the computer device needs to obtain a map (i.e., a sample map) for training the initial rendering parameters of the second rendering rule during the parameter training process, such as map 20P shown in Figure 2. Map 20P can be an original map that has not been rendered with scattering simulation, or a map obtained by performing sky effect simulation rendering on the original map, which is not limited here.

[0051] The rendering rules in the embodiment of the present application may include not only a first rendering rule (i.e., a new physical algorithm) for rendering the sky effect, but also a second rendering rule (i.e., an old simplified algorithm) for rendering the aerial perspective effect. That is, the embodiment of the present application can combine the old simplified algorithm and the new physical algorithm to quickly and accurately render the aerial perspective effect in real time.

[0052] It is understandable that the computer device can obtain multiple sample volume textures of the map 20P under the sample environment configuration (for example, the earth) through the first rendering rule. Among them, a sample volume texture can be a volume texture obtained by the computer device for the map 20P that matches a virtual light source altitude angle (that is, the altitude angle φ corresponding to the light emitted by the virtual light source). The angle interval of the virtual light source altitude angle can be composed of a first angle threshold and a second angle threshold, wherein the first angle threshold and the second angle threshold can be dynamically adjusted according to actual needs and are not limited here. The virtual light source can be a light source that can emit light, such as a flashlight, the sun and other light sources.

[0053] When the virtual light source is the sun, the virtual light source altitude angle here can be the solar altitude angle, that is, the angle between the sun's rays and the horizon. For example, the first angle threshold can be -10 degrees, and the second angle threshold can be 90 degrees. In an embodiment of the present application, if the solar altitude angle is a negative number, the sample volume texture that matches the solar altitude angle is a volume texture used to simulate the sun sinking below the horizon; if the solar altitude angle is 0 degrees, the sample volume texture that matches the solar altitude angle is a volume texture used to simulate sunset; if the solar altitude angle is a positive number, the sample volume texture that matches the solar altitude angle is a volume texture used to simulate daytime; if the solar altitude angle is 90 degrees, the sample volume texture that matches the solar altitude angle is a volume texture used to simulate noon.

[0054] For ease of illustration, the example embodiment of the present application may include two sample volume textures, including volume texture T1 for simulating daytime and volume texture T2 for simulating sunset. The virtual light source altitude angle corresponding to volume texture T1 (e.g., altitude angle φ1) may be 10 degrees, and the virtual light source altitude angle corresponding to volume texture T2 (e.g., altitude angle φ2) may be 0 degrees.

[0055] For the volume texture T1, the computer device can determine the reference image of the map 20P at the altitude angle φ1 corresponding to the volume texture T1, for example, the reference image H1 shown in Figure 2, and then based on the reference image H1, respectively determine the actual rendering value and reference depth data of the map 20P at the altitude angle φ1 configured in the sample environment. The reference depth data here is used to represent the distance from the current observation point (for example, the position of the virtual character in the game scene) to the target point of the reference image H1 (for example, the coordinate position corresponding to a pixel to be rendered). Then, the computer device can obtain the initial rendering parameters of the second rendering rule, for example, the rendering parameters 21U1 that match the altitude angle φ1, and then determine the predicted rendering value of the map 20P at the altitude angle φ1 configured in the sample environment through the second rendering rule, the rendering parameters 21U1 and the reference depth data corresponding to the reference image H1. At this time, the computer device can train the rendering parameter 21U1 based on the predicted rendering value and actual rendering value of the map 20P at the altitude angle φ1, and obtain the business rendering parameter that matches the altitude angle φ1 configured for the sample environment, for example, the rendering parameter 22U1. Similarly, for the volume texture T2, the computer device can determine the reference image of the map 20P at the altitude angle φ2 corresponding to the volume texture T2, for example, the reference image H2 shown in Figure 2, and then can determine the actual rendering value and reference depth data of the map 20P at the altitude angle φ2 configured for the sample environment based on the reference image H2. The reference depth data here is used to represent the distance from the current observation point (for example, the position of the virtual character in the game scene) to the target point of the reference image H2 (for example, the coordinate position corresponding to a pixel to be rendered). The computer device can then obtain initial rendering parameters for the second rendering rule, such as rendering parameters 21U2 that match the elevation angle φ2. Furthermore, the computer device can determine the predicted rendering value of the texture 20P at the elevation angle φ2 configured for the sample environment using the second rendering rule, rendering parameters 21U2, and the reference depth data corresponding to the reference image H2. At this point, the computer device can train the rendering parameters 21U2 based on the predicted rendering value and the actual rendering value of the texture 20P at the elevation angle φ2 to obtain service rendering parameters that match the elevation angle φ2 configured for the sample environment, such as rendering parameters 22U2.

[0056] Similarly, the computer device can also refer to the parameter training method for rendering parameters 22U1 and 22U2 to obtain business rendering parameters that match other solar altitude angles under the sample environment configuration, and then determine the business rendering parameters at each solar altitude angle as a business rendering parameter set that matches the sample environment configuration. Each business rendering parameter in the business rendering parameter set can be used to render the air projection effect of a certain map (i.e., the first map) whose business environment configuration is the sample environment configuration.

[0057] It can be seen that since the scattering simulation (i.e., atmospheric scattering simulation) method provided in the embodiment of the present application does not require human participation, but instead obtains business rendering parameters for different solar altitude angles under the sample environment configuration by combining the first rendering rule and the second rendering rule, the labor cost and time cost can be greatly reduced when the aerial perspective effect of the first map is rendered in real time based on these business rendering parameters. On the basis of ensuring the rendering effect, the rendering efficiency can also be improved. That is, the atmospheric scattering simulation method can take into account both the rendering effect and the rendering efficiency at the same time.

[0058] In an embodiment of the present application, when a computer device with rendering functionality renders a medium scattering effect for a particular texture, it can train the initial rendering parameters in the second rendering rule by combining the first rendering rule with the second rendering rule to quickly and accurately obtain service rendering parameters that match the sample environment configuration. The implementation of parameter training can be seen in the embodiments corresponding to Figures 3 to 6.

[0059] In some embodiments, please refer to Figure 3, which is a flow chart of a data processing method provided by an embodiment of the present application. As shown in Figure 3, the method can be executed by a computer device with a rendering function, and the computer device can be a terminal device, for example, any terminal device in the terminal device cluster shown in Figure 1 above, such as the terminal device 100a with a parameter training function, or a server, for example, the server 10F shown in Figure 1 above, which is not limited here. For ease of understanding, the embodiment of the present application is described by taking the method executed by a server with a rendering function as an example. The method can at least include the following steps S101 to S104:

[0060] Step S101: Obtain rendering rules.

[0061] The rendering rules herein may be rules for performing scattering simulation rendering, and may include a first rendering rule and a second rendering rule. The first rendering rule may be used for rendering a virtual scene containing a medium (e.g., a sky effect), and may be, for example, the Hillaire20 algorithm. The second rendering rule may be used for rendering a medium scattering effect (e.g., an aerial perspective effect), and may be, for example, the Hoffman20 algorithm.

[0062] It should be noted that the first rendering rule in the embodiment of the present application is a new physical algorithm compared to the rendering rule in the related art, and the second rendering rule may be an old simplified algorithm of the rendering rule in the related art.

[0063] Step S102 : obtaining a sample volume texture of a sample map generated by a first rendering rule, and determining an actual rendering value of the sample map under a sample environment configuration and reference depth data of the sample map based on the sample volume texture.

[0064] In an embodiment of the present application, the computer device can obtain reference properties for the sample map, and then, based on the virtual light source altitude angle and the sample map included in the reference properties, obtain a sample volume texture generated by the first rendering rule that matches the virtual light source altitude angle. Then, the computer device can obtain a preset depth data set including N initial depth data, and obtain slice data of the sample volume texture at the virtual light source altitude angle based on the N initial depth data and the sample volume texture. The slice data here may include N sample sub-images; N is a positive integer, and one sample sub-image corresponds to one initial depth data. At this time, the computer device can determine the reference image of the sample map at the virtual light source altitude angle from the N sample sub-images, and then use the rendering value of the reference image as the actual rendering value of the sample map under the sample environment configuration, and use the initial depth data of the reference image as the reference depth data.

[0065] The reference attribute obtained by the computer device can be a virtual light source altitude angle pre-configured by the computer device, for example, the virtual light source altitude angle is configured to 0 degrees and 10 degrees by default; it can also be a virtual light source altitude angle configured by the business object corresponding to the computer device (for example, the user) in the business configuration interface of the atmospheric rendering component according to actual needs, which will not be limited here. Among them, the business configuration interface here refers to a display interface for configuring various attributes of scattering simulation rendering. For example, the business configuration interface may include a configuration control for configuring the attribute of the virtual light source altitude angle (for example, the solar altitude angle), and may also include a configuration control for inputting rendering parameters, and may also include a configuration control for configuring other attributes, which will not be limited here.

[0066] For ease of understanding, the embodiments of the present application may use user configuration as an example to illustrate how a computer device obtains reference properties for a sample map. For example, the computer device may display a service configuration interface for an atmospheric rendering component in a service engine (e.g., the SkyAtmosphere component in the UE4 engine). This service configuration interface may include configuration controls for the sun's altitude angle.

[0067] The solar altitude angle range can be composed of a first angle threshold and a second angle threshold. Since scattering still occurs after the sun sinks below the horizon, the first angle threshold of the solar altitude angle in the embodiment of the present application can be a negative value, for example, -10 degrees; the second angle threshold can be an angle value used to simulate noon, for example, 90 degrees. Therefore, the solar altitude angle range can be [-10°, 90°]. The solar altitude angle here refers to the altitude angle corresponding to the directional light emitted by the sun, that is, the angle between the sunlight and the horizon.

[0068] At this point, the business object corresponding to the computer device can perform an attribute addition operation on the configuration control of the reference attribute. In other words, the business object can randomly add one or more solar altitude angles within the solar altitude angle range, for example, adding multiple solar altitude angles such as -5 degrees, 0 degrees, 10 degrees, and 45 degrees in sequence. This is not limited here. The attribute addition operation here refers to the triggering operation of the business object to add the solar altitude angle attribute. This triggering operation can include contact operations such as clicking and long pressing, as well as non-contact operations such as voice and gestures. This is not limited here.

[0069] In some embodiments, in response to the attribute addition operation, the computer device may obtain a first altitude angle for deriving a first sample volume texture, i.e., obtaining a first altitude angle for deriving a volume texture simulating daytime under the sample environment configuration, and obtain a second altitude angle for deriving a second sample volume texture, i.e., obtaining a second altitude angle for deriving a volume texture simulating sunset under the sample environment configuration. The first sample volume texture and the second sample volume texture are both sample volume textures, and the first altitude angle is greater than the second altitude angle. In some embodiments, the computer device may use both the first altitude angle and the second altitude angle as reference attributes for the sample map.

[0070] Then, the computer device can also obtain a sample volume texture generated by the first rendering rule that matches the solar altitude angle based on the solar altitude angle included in the reference attribute. For example, if the reference attribute includes four solar altitude angles of -5 degrees, 0 degrees, 10 degrees, and 45 degrees, the computer device can obtain four sample volume textures generated by the first rendering rule, which can include a sample volume texture with a solar altitude angle of -5 degrees, such as sample volume texture T1; a sample volume texture with a solar altitude angle of 0 degrees, such as sample volume texture T2; a sample volume texture with a solar altitude angle of 10 degrees, such as sample volume texture T3; and a sample volume texture with a solar altitude angle of 45 degrees, such as sample volume texture T4. In this way, the computer device can subsequently obtain the business rendering parameters corresponding to the four solar altitude angles after combining the first rendering rule and the second rendering rule to train the initial rendering parameters in the second rendering rule.

[0071] It is understood that embodiments of the present application can modify the atmospheric rendering component (e.g., the SkyAtmosphere component) in the service engine, namely, adding the function of exporting intermediate data to the SkyAtmosphere component. For example, the function of exporting sample volume textures can be added to the SkyAtmosphere component. In addition, the SkyAtmosphere component also adds the function of exporting parameters g), that is, the function of exporting parameters used to control the anisotropy of Mie scattering.

[0072] For ease of understanding, the embodiments of the present application may use a virtual light source altitude angle (e.g., a virtual light source altitude angle of 0 degrees) as an example to illustrate the parameter training process in the second rendering rule. In other words, the sample volume texture generated by the first rendering rule that matches the virtual light source altitude angle includes the sample volume texture when the virtual light source altitude angle is 0 degrees, wherein the sample volume texture can be a 3D volume texture obtained by the computer device after texture sampling the sample map through the vertex texture fetch (VFT) method in the second rendering rule.

[0073] Therefore, when the computer device obtains a preset depth data set including N initial depth data, it can obtain slice data of the sample volume texture at the virtual light source elevation angle through the N initial depth data and the sample volume texture. The slice data may include N sample sub-images (i.e., N slices), a parameter g, a directional light vector corresponding to the virtual light source, and initial depth data corresponding to each slice. For example, the computer device can generate a texture mesh of a sample sub-image corresponding to a certain initial depth data by running a script, such as a Python script.

[0074] In some embodiments, the computer device needs to determine the reference image of the sample map under the virtual light source altitude angle from the N sample sub-maps. It can be understood that the computer device can traverse the N sample sub-maps, determine the traversed sample sub-maps as the sub-map to be processed, and then rasterize the texture grid of the sub-map to be processed to obtain the coordinate position corresponding to each pixel point in the sub-map to be processed. At this time, the computer device can superimpose the pixel value of each pixel point based on the coordinate position corresponding to each pixel point to obtain the total pixel value corresponding to the sub-map to be processed until the traversal is completed and N total pixel values ​​are obtained. Then, the computer device can select the sample sub-map with the largest total pixel value from the N sample sub-maps as the reference image of the sample map under the virtual light source altitude angle, and use the rendering value of the reference image as the actual rendering value of the sample map under the sample environment configuration, and use the initial depth data of the reference image as the reference depth data.

[0075] For example, if there are three initial depth data in the preset depth data set, the initial depth data may include depth data S1, depth data S2, and depth data S3. Then, the computer device may obtain a sample sub-image corresponding to the depth data S1 based on the depth data S1 and the sample volume texture, for example, sample sub-image P1. Similarly, the computer device may also obtain a sample sub-image corresponding to the depth data S2, for example, sample sub-image P2, and a sample sub-image corresponding to the depth data S3, for example, sample sub-image P3. In some embodiments, the computer device may generate three sample sub-images and a data export file in the cache directory based on the three sample sub-images (i.e., three slices) of sample sub-image P1, sample sub-image P2, and sample sub-image P3, parameter g, directional light vector corresponding to the virtual light source, and initial depth data corresponding to each slice. The three sample sub-images may be stored in tga format, and the data export file may be stored in json format, and the data export file may include parameter g, directional light vector corresponding to the virtual light source, and initial depth data corresponding to each slice.

[0076] Then, the computer device can automatically run a script, such as a Python script, through a business engine, and use a rasterization tool, such as NvDiffras, to rasterize the texture grid of each sample sub-image separately to obtain the total pixel value corresponding to each sample sub-image. For example, the computer device can rasterize the texture grid of the sample sub-image P1 to obtain the coordinate position corresponding to each pixel point in the sample sub-image P1, and then, based on the coordinate position corresponding to each pixel point, perform superposition processing on the pixel value of each pixel point to obtain the total pixel value corresponding to the sample sub-image P1. The superposition processing here can refer to first determining the product of the color value (for example, RGB value) corresponding to each pixel point in the sample sub-image P1 and the weight, and then summing these products. Similarly, the computer device can also obtain the total pixel value corresponding to the sample sub-image P2 and the total pixel value corresponding to the sample sub-image P3.

[0077] At this time, the computer device can determine the maximum total pixel value from the total pixel values ​​corresponding to the sample sub-image P1, the total pixel value corresponding to the sample sub-image P2, and the total pixel value corresponding to the sample sub-image P3, and then determine the sample sub-image with the maximum total pixel value (for example, the sample sub-image P3) as the reference image of the sample map under the virtual light source altitude angle. Then, the computer device can use the rendering value of the sample sub-image P3 as the actual rendering value of the sample map under the sample environment configuration, and use the depth data S3 as the reference depth data.

[0078] Step S103 : determining a predicted rendering value of the sample texture under the sample environment configuration based on the initial rendering parameters in the second rendering rule and the reference depth data.

[0079] The initial rendering parameters here may include a first scattering parameter, a second scattering parameter, and a brightness parameter, wherein the first scattering parameter and the second scattering parameter correspond to different scattering modes, respectively; the brightness parameter may be used to indicate the brightness of the virtual light source; and the sample volume texture here is a volume texture generated by the first rendering rule and matching the virtual light source elevation angle. The computer device may obtain the initial rendering value of the sample map, and then determine the transmittance corresponding to the sample map based on the initial scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, and the reference depth data. In some embodiments, the computer device may determine the inscattering parameter of the sample map at the virtual light source elevation angle based on the initial scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, the brightness parameter, and the reference depth data, and then determine the predicted rendering value of the sample map under the sample environment configuration based on the initial rendering value, the transmittance, and the inscattering parameter.

[0080] In the embodiment of the present application, the computer device determines the rendering value of a certain map by referring to the following formulas (5) to (9): L(s,θ)=L0F ex (s)+L in (s,θ) (5)

[0081] Among them, L0 represents the initial rendering value of a certain map, that is, the color of the object in the scene, which can be defaulted to 0 during the first training; F ex (s) represents transmittance, which refers to the proportion of light that is scattered and transmitted out of the line of sight; L in (s, θ) represents the inward scattering parameter, which refers to the scattering of light outside the line of sight into the line of sight, also known as inward scattering; β R represents the first scattering parameter, that is, the scattering coefficient of the first scattering (for example, Rayleigh scattering); β M represents the second scattering parameter, i.e., the scattering coefficient of the second scattering (e.g., Mie scattering); s refers to the distance from the current observation point to the target point; θ is used to represent the angle between the directional light emitted by the virtual light source and the current line of sight; E sun It is used to represent the brightness parameter, which indicates the brightness of the virtual light source, for example, the brightness of sunlight, which can be stored in the form of RGB color; g is used to represent the parameter that controls the anisotropy of Mie scattering, which can be set to 0.8 by default.

[0082] In an embodiment of the present application, the computer device can set the initial values ​​of the first scattering parameter, the second scattering parameter, and the brightness parameter in the initial rendering parameters to 1, that is, the initial scattering coefficient of the first scattering parameter is 1, the initial scattering coefficient of the second scattering parameter is 1, and the initial value of the brightness parameter is 1. Therefore, when determining the predicted rendering value of the sample map under the sample environment configuration, the computer device can first determine the transmittance corresponding to the sample map based on the above formula (6), the initial scattering coefficient of the first scattering parameter (for example, 1), the initial scattering coefficient of the second scattering parameter (for example, 1), and the reference depth data. Then, since the virtual light source elevation angle refers to the elevation angle corresponding to the directional light emitted by the virtual light source, the computer device needs to determine the angle between the directional light emitted by the virtual light source and the current video, and then determine the updated scattering coefficient of the first scattering parameter based on formula (8), the initial scattering coefficient of the first scattering parameter, and the angle, and determine the updated scattering coefficient of the second scattering parameter based on formula (9), the initial scattering coefficient of the second scattering parameter, and the angle. Then, the computer device can determine the inscattering parameter of the sample map at the virtual light source elevation angle based on the above formula (7), the initial scattering coefficient of the first scattering parameter, the updated scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, the updated scattering coefficient of the second scattering parameter, the brightness parameter, and the reference depth data. Finally, the computer device can determine the product of the initial rendering value of the sample map and the transmittance based on the above formula (5), and then use the sum of the determined product and the inscattering parameter as the predicted rendering value of the sample map under the sample environment configuration.

[0083] Step S104 : training the initial rendering parameters based on the predicted rendering values ​​and the actual rendering values ​​to obtain service rendering parameters that match the sample environment configuration.

[0084] In an embodiment of the present application, the computer device can determine the total rendering loss corresponding to the sample map based on the predicted rendering value and the actual rendering value, and then iteratively train the initial rendering parameters based on the total rendering loss to obtain parameter training results. If the parameter training result indicates that the initial rendering parameters after iterative training meet the training cutoff conditions, the computer device can determine the initial rendering parameters that meet the training cutoff conditions as business rendering parameters that match the sample environment configuration. The business rendering parameters can be used to render the medium scattering effect of the first map; the business environment configuration of the first map is the sample environment configuration.

[0085] In the embodiment of the present application, the computer device determines the total rendering loss based on a loss function of the initial rendering parameters, for example, a mean squared error (MSE) function, as shown in the following formula (10):

[0086] Among them, M represents the total number of pixels in a certain map, M is a positive integer; Y i It is used to represent the i-th pixel in the map (for example, pixel X i )’s predicted rendering value; y i Indicates the pixel X i The actual rendered value.

[0087] If the sample map includes M pixels, and the M pixels include pixel X i ; M is a positive integer; i is a positive integer less than or equal to M, then the computer device can first obtain the pixel point X from the predicted rendering value i The predicted rendering value Y i , and then get the pixel point X from the actual rendering value i The actual rendering value y i Then, the computer device can calculate the predicted rendering value Y i And the actual rendering value y i The rendering difference between the two is taken as pixel X i The rendering loss is calculated until the rendering losses corresponding to the M pixels are obtained. At this time, the computer device can determine the total rendering loss corresponding to the sample map based on the above formula (10) and the M rendering losses.

[0088] During the implementation process, the computer device can obtain a training cutoff condition associated with the initial rendering parameters, wherein the training cutoff condition can be that the total rendering loss does not continue to decrease for multiple rounds (for example, 10 rounds), that is, parameter training is stopped. In some embodiments, the training cutoff condition can also be that the total rendering loss is less than or equal to the loss threshold in the training cutoff condition, for example, the loss threshold can be 0.01, that is, parameter training is stopped. Alternatively, in other embodiments, the training cutoff condition can also be that the total rendering loss is less than or equal to the loss threshold in the training cutoff condition, and the training duration is greater than the training duration threshold in the training cutoff condition, that is, parameter training is stopped.

[0089] It is understandable that if the parameter training result indicates that the initial rendering parameters after iterative training meet the training cutoff condition, the computer device may use the initial rendering parameters that meet the training cutoff condition as the business rendering parameters that match the sample environment configuration. In some embodiments, if the parameter training result indicates that the initial rendering parameters after iterative training do not meet the training cutoff condition, the computer device may adjust the initial rendering parameters based on the total rendering loss that does not meet the training cutoff condition. In some embodiments, the computer device may use the adjusted initial rendering parameters as transition rendering parameters, iteratively train the transition rendering parameters until the transition rendering parameters after iterative training meet the training cutoff condition, and then use the transition rendering parameters that meet the training cutoff condition as the business rendering parameters that match the sample environment configuration.

[0090] In some embodiments, please refer to FIG4 , which is a flow diagram of a training parameter provided in an embodiment of the present application. As shown in FIG4 , the flow diagram in the embodiment of the present application may include steps S41 to S48, specifically taking a virtual light source altitude angle φ (i.e., a target virtual light source altitude angle, for example, φ is 10 degrees) in a sample configuration environment as an example, to illustrate the process of training rendering parameters that match the target virtual light source altitude angle through the combination of the first rendering rule and the second rendering rule.

[0091] Step S41 : obtaining, through the service engine, a sample volume texture generated by the first rendering rule and matching the target virtual light source altitude angle.

[0092] Step S42: importing the sample volume texture into the scripting language to obtain slice data of the sample volume texture at the target virtual light source altitude angle.

[0093] For example, the sample volume texture is imported into the Python scripting language, and based on the N initial depth data in the preset depth data set and the sample volume texture, slice data of the sample volume texture at the target virtual light source elevation angle is obtained. The slice data here may include N sample sub-images (i.e., N slices), the parameter g, the directional light vector corresponding to the virtual light source, and the initial depth data corresponding to each slice.

[0094] Step S43: Use a rasterization tool to rasterize the texture grids of the N sample sub-images in the slice data.

[0095] For example, using NvDiffras, the texture grids of N sample sub-images in the slice data are rasterized respectively to obtain the total pixel value corresponding to each sample sub-image.

[0096] Step S44 : determining a reference image of the sample map at the target virtual light source altitude angle from the N sample sub-images according to the total pixel values ​​corresponding to the N sample sub-images.

[0097] Here, the sample sub-image with the largest total pixel value can be selected as the reference image for the sample texture at the target virtual light source altitude angle. The rendering value of the reference image can be used as the actual rendering value of the sample texture at the target virtual light source altitude angle configured in the sample environment; and the initial depth data of the reference image can be used as the reference depth data for the sample texture at the target virtual light source altitude angle configured in the sample environment.

[0098] Step S45 : obtaining a predicted rendering value of the sample map using the second rendering rule, and determining a rendering loss based on the predicted rendering value and the actual rendering value of the reference image.

[0099] Here, the predicted rendering value of the sample map can be obtained according to the above formulas (5) to (10) and the second rendering rule, and the rendering loss can be determined based on the predicted rendering value and the actual rendering value of the reference image. For example, the computer device can determine the rendering loss according to the above formulas (5) to (9), the initial rendering parameter (β R , β M 、E sun ), the angle between the directional light and the current line of sight (θ), and the reference depth data (s) corresponding to the reference image, determine the predicted rendering value of the sample map at the target virtual light source altitude angle, and then determine the total rendering loss corresponding to the sample map based on the above formula (10), the predicted rendering value and the actual rendering value.

[0100] Step S46: Determine whether the total rendering loss is less than or equal to a loss threshold.

[0101] If the judgment result is yes, step S47 is executed. That is, if the total rendering loss is less than or equal to the loss threshold, the computer device can determine that the initial rendering parameters meet the training cutoff conditions, and then step S47 can be executed to directly determine the initial rendering parameters as business rendering parameters that match the target virtual light source altitude angle configured in the sample environment.

[0102] If the judgment result is no, return to continue executing step S45, that is, if the total rendering loss is greater than the loss threshold, the computer device can adjust the initial rendering parameters, and then execute step S46 again, redetermine the predicted rendering value of the sample map, and determine the new total rendering loss based on the re-determined predicted rendering value and the actual rendering value, and continue to compare with the loss threshold until the new total rendering loss is less than or equal to the loss threshold, and continue to execute the following step S47.

[0103] Step S47 : determining the current rendering parameters as business rendering parameters that match the target virtual light source altitude angle configured in the sample environment.

[0104] Step S48: Fill in the service rendering parameters obtained through training into the service configuration interface.

[0105] The business rendering parameters here are the trained β R , β M 、E sun , the trained β R , β M 、E sun Fill in the corresponding properties of the SkyAtmosphere component, that is, the trained β R , β M 、E sun Import the business engine so that when the medium scattering effect of a certain map is rendered under the target virtual light source altitude angle configured in the sample environment, the business rendering parameters can be directly applied. Among them, it can be understood that the embodiment of the present application can transform the vertex shading engine (Vertex Shader) in the SkyAtmosphere component, that is, the aerial perspective rendering algorithm of the second rendering rule can be integrated. During the rendering process, the second rendering rule can be used in combination with the scene object color L0 to efficiently realize the calculation of aerial perspective on low-end devices in real time. At the same time, the computer device can also use its original sky drawing solution, that is, render the sky effect through the first rendering rule.

[0106] In addition, the business rendering parameters here can be the rendering parameters corresponding to the target virtual light source altitude angle under the sample environment configuration, and the target virtual light source altitude angle belongs to Z virtual light source altitude angles, and Z is a positive integer greater than 1. Among them, these Z virtual light source altitude angles are obtained when the computer device responds to the attribute addition operation; the attribute addition operation here is a trigger operation performed on the configuration control of the reference attribute. It can be understood that the more virtual light source altitude angles there are, the more data fitting points there will be for the business distribution map later, which in turn leads to a higher accuracy of the fitted business rendering distribution map. Among them, each rendering parameter includes a first scattering parameter, a second scattering parameter and a brightness parameter, which means that the computer device can refer to the aforementioned training method for the business rendering parameters of the target virtual light source altitude angle to obtain the rendering parameters corresponding to each of the Z virtual light source altitude angles.

[0107] In some embodiments, the computer device can determine Z scattering coefficients associated with the first scattering parameter from the Z rendering parameters, fit the determined Z scattering coefficients within the angular interval of the virtual light source altitude angle, and obtain a first rendering distribution map associated with the first scattering parameter. Similarly, the computer device can also determine Z scattering coefficients associated with the second scattering parameter from the Z rendering parameters, fit the determined Z scattering coefficients within the angular interval of the virtual light source altitude angle, and obtain a second rendering distribution map associated with the second scattering parameter. At the same time, the computer device can also determine Z virtual light source brightnesses associated with the brightness parameter from the Z rendering parameters, fit the determined Z virtual light source brightnesses within the angular interval of the virtual light source altitude angle, and obtain a third rendering distribution map associated with the brightness parameter. At this time, the computer device can determine the first rendering distribution map, the second rendering distribution map, and the third rendering distribution map as business rendering distribution maps that match the sample environment configuration.

[0108] For example, if the virtual light source altitude angle is 1, the rendering parameters corresponding to the virtual light source altitude angle φ1 may include the first scattering parameter (expressed as β R1 ), the second scattering parameter (expressed by β M1 denoted by) and brightness parameters (denoted by E sun1 If the virtual light source altitude angle is φ2, the rendering parameters corresponding to the virtual light source altitude angle φ2 may include the first scattering parameter (expressed by β R2 ), the second scattering parameter (expressed by β M2 denoted by) and brightness parameters (denoted by E sun2 When fitting the first rendering distribution diagram associated with the first scattering parameter, the computer device may obtain Z data fitting points, which may include data fitting point 1, and is represented by: (φ1, β R1 ), data fitting point 2, expressed as: (φ2, β R2 ),…, data fitting point Z, expressed as: (φ Z , β RZ ), then the Z data fitting points can be fitted within the angle range of the virtual light source altitude angle to obtain a first rendering distribution map. That is, the first rendering distribution map can be a distribution map with the virtual light source altitude angle φ as the horizontal coordinate and the first scattering parameter as the vertical coordinate.

[0109] When fitting the second rendering distribution diagram associated with the second scattering parameter, the computer device may obtain Z data fitting points, which may include data fitting point 1, expressed as: (φ1, β M1 ), data fitting point 2, expressed as: (φ2, β M2 ),…, data fitting point Z, expressed as: (φ Z , βMZ ), then the Z data fitting points can be fitted within the angle range of the virtual light source altitude angle to obtain a second rendering distribution map. That is, the second rendering distribution map can be a distribution map with the virtual light source altitude angle φ as the horizontal coordinate and the second scattering parameter as the vertical coordinate.

[0110] When fitting the third rendering distribution diagram associated with the brightness parameter, the computer device may obtain Z data fitting points, which may include data fitting point 1, and is expressed as: (φ1, E sun1 ), data fitting point 2, expressed as: (φ2, E sun2 ),…, data fitting point Z, expressed as: (φ Z , E sunZ ), then the Z data fitting points can be fitted within the angle range of the virtual light source altitude angle to obtain a third rendering distribution map. That is, the third rendering distribution map can be a map with the virtual light source altitude angle φ as the horizontal coordinate and the brightness parameter (E sun ) is the distribution diagram with the vertical axis.

[0111] In some embodiments, the computer device can determine the first rendering distribution map, the second rendering distribution map, and the third rendering distribution map as business rendering distribution maps that match the sample environment configuration, so that the rendering parameters corresponding to a certain virtual light source altitude angle under the sample environment configuration can be quickly read subsequently, so that the medium scattering effect of any map under the sample environment configuration can be rendered in real time, thereby improving rendering efficiency.

[0112] Thus, the embodiment of the present application does not require manual adjustment of the initial rendering parameters in the second rendering rule. Instead, the difficult-to-adjust rendering parameters in the second rendering rule can be derived directly by obtaining intermediate data from the first rendering rule, a new physical algorithm. That is, the sample volume texture of the first rendering rule, a new physical algorithm, can be directly obtained. This means that when rendering the medium scattering effect, the embodiment of the present application does not directly use the second rendering rule. Instead, by combining the first rendering rule and the second rendering rule, the business rendering parameters are obtained more quickly and accurately. In this way, when subsequently rendering the medium scattering effect of the first map, not only can the rendering effect be guaranteed, but the rendering efficiency can also be improved. In other words, the scattering simulation method used in the embodiment of the present application can simultaneously take into account both rendering effect and rendering efficiency.

[0113] In some embodiments, please refer to Figure 5, which is a flow chart of another data processing method provided by an embodiment of the present application. The method can be executed by a terminal device with a rendering function, for example, by any terminal device in the terminal device cluster shown in Figure 1 above, for example, the terminal device 100a, or by a server with a rendering function, for example, by the server 10F shown in Figure 1 above, or by a terminal device with a parameter application function and a server with a parameter training function interactively executed. This is not limited here. The method may at least include the following steps S201 to S207:

[0114] Step S201: Obtain rendering rules.

[0115] The rendering rules here include a first rendering rule and a second rendering rule. The first rendering rule can be used to render a virtual scene containing a medium; the second rendering rule can be used to render a scattering effect of the medium.

[0116] Step S202 : obtaining a sample volume texture of a sample map generated by a first rendering rule, and determining an actual rendering value of the sample map under a sample environment configuration and reference depth data of the sample map based on the sample volume texture.

[0117] In an embodiment of the present application, the computer device can obtain reference properties for the sample map, and then, based on the virtual light source altitude angle and the sample map included in the reference properties, obtain a sample body texture generated by the first rendering rule that matches the virtual light source altitude angle. Then, the computer device can obtain a preset depth data set including N initial depth data, and obtain slice data of the sample body texture at the virtual light source altitude angle based on the N initial depth data and the sample body texture. The slice data here may include N sample sub-images; N is a positive integer. At this time, the computer device can determine the reference image of the sample map at the virtual light source altitude angle from the N sample sub-images, and then use the rendering value of the reference image as the actual rendering value of the sample map under the sample environment configuration, and use the initial depth data of the reference image as the reference depth data.

[0118] Step S203 : determining a predicted rendering value of the sample texture under the sample environment configuration by using the initial rendering parameters in the second rendering rule and the reference depth data.

[0119] The initial rendering parameters here may include a first scattering parameter, a second scattering parameter, and a brightness parameter, the first scattering parameter and the second scattering parameter corresponding to different scattering modes respectively; the brightness parameter can be used to indicate the brightness of the virtual light source; the actual rendering value is the rendering value corresponding to the reference image of the sample map. In an embodiment of the present application, the computer device can obtain the initial rendering value of the sample map, and then determine the transmittance corresponding to the sample map based on the initial scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, and the reference depth data. In some embodiments, the computer device can determine the inscattering parameter of the sample map at the virtual light source altitude angle based on the initial scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, the brightness parameter, the reference depth data, and the virtual light source altitude angle corresponding to the reference image, and then determine the predicted rendering value of the sample map under the sample environment configuration based on the initial rendering value, the transmittance, and the inscattering parameter.

[0120] Step S204 : training the initial rendering parameters based on the predicted rendering values ​​and the actual rendering values ​​to obtain service rendering parameters that match the sample environment configuration.

[0121] In an embodiment of the present application, the computer device can determine the total rendering loss corresponding to the sample map based on the predicted rendering value and the actual rendering value, and then iteratively train the initial rendering parameters based on the total rendering loss to obtain parameter training results. If the parameter training result indicates that the initial rendering parameters after iterative training meet the training cutoff conditions, the computer device can determine the initial rendering parameters that meet the training cutoff conditions as business rendering parameters that match the sample environment configuration. The business rendering parameters can be used to render the medium scattering effect of the first map; the business environment configuration of the first map is the sample environment configuration.

[0122] The data processing method in the embodiment of the present application may include a parameter training process and a parameter application process. It is understood that steps S201 to S204 illustrate the parameter training process. The implementation of the parameter training process can be found in the description of steps S101 to S104 in the embodiment corresponding to FIG3 above, and will not be further described here.

[0123] The parameter application process may refer to the description of steps S205 to S207 below.

[0124] Step S205 : when performing scattering simulation rendering on the first texture, obtaining a business environment configuration for the first texture.

[0125] In an embodiment of the present application, when the computer device performs scattering simulation rendering on the first map, it needs to obtain the business configuration environment for the first map, and then can search in a database that stores sample environment configurations to see whether the business configuration environment is a sample environment configuration already stored in the database.

[0126] Step S206: If the business environment configuration is a sample environment configuration, obtain business rendering parameters that match the sample environment configuration.

[0127] The business rendering parameters are obtained after training the initial rendering parameters in the second rendering rule based on the predicted rendering value and actual rendering value of the sample map under the sample environment configuration; the actual rendering value of the sample map is determined based on the sample volume texture of the sample map; the sample volume texture of the sample map is generated by the first rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render the scattering effect of the medium. In an embodiment of the present application, when the sample environment configuration is stored in the database, if the business environment configuration is the sample environment configuration, the computer device can search the database for a business rendering distribution map that matches the sample environment configuration based on the association relationship of the sample environment configuration. The business rendering distribution map here may include a first rendering distribution map associated with the first scattering parameter, a second rendering distribution map associated with the second scattering parameter, and a third rendering distribution map associated with the brightness parameter. In some embodiments, the computer device needs to determine the angle to be rendered corresponding to the first map, and then, in the first rendering distribution map, the scattering coefficient corresponding to the angle to be rendered is determined as the first coefficient to be processed, and in the second rendering distribution map, the scattering coefficient corresponding to the angle to be rendered is determined as the second coefficient to be processed, and in the third rendering distribution map, the virtual light source brightness corresponding to the angle to be rendered is determined as the brightness to be processed, and then the first coefficient to be processed, the second coefficient to be processed and the brightness to be processed can be determined as business rendering parameters that match the sample environment configuration.

[0128] In some embodiments, if there is no sample environment configuration matching the business environment configuration in the database, the computer device may use the business environment configuration as the updated sample configuration (i.e., a new sample environment configuration) and the first map as the updated sample map under the updated sample configuration (i.e., a new sample map). In some embodiments, the computer device may obtain a sample volume texture of the updated sample map generated by the first rendering rule, and based on the sample volume texture of the updated sample map, determine the actual rendering value of the updated sample map under the updated sample configuration and the reference depth data of the updated sample map, and then determine the predicted rendering value of the updated sample map under the updated sample configuration using the initial rendering parameters in the second rendering rule and the reference depth data of the updated sample map. Then, the computer device may train the initial rendering parameters based on the actual rendering value of the updated sample map under the updated sample configuration and the predicted rendering value of the updated sample map under the updated sample configuration to obtain updated rendering parameters matching the updated sample configuration, and then store the updated sample configuration in the database based on the updated rendering parameters.

[0129] Step S207 : Rendering the medium scattering effect of the first texture based on the business rendering parameters and the second rendering rule to obtain a second texture.

[0130] The business rendering parameters here may include rendering parameters corresponding to multiple angles to be rendered. In the embodiment of the present application, the computer device can refer to the second rendering rules shown in formulas (5) to (9) above, as well as the rendering parameters at each angle to be rendered, and render the medium scattering effect of the first map respectively to obtain a second map that matches the angle to be rendered. When the angle to be rendered changes from the first angle threshold to the second angle threshold, the computer device can obtain multiple second maps, thereby achieving real-time rendering of the medium scattering effect of the first map.

[0131] For ease of understanding, in some embodiments, please refer to FIG. 6 , which is a schematic diagram of a scene for rendering a medium scattering effect, provided in an embodiment of the present application. As shown in FIG. 6 , a texture 60P may be a texture (i.e., a first texture) acquired by a computer device in an embodiment of the present application and required for rendering a medium scattering effect (e.g., an aerial perspective effect). This texture 60P may be an original texture that has not been rendered with scattering simulation, or a texture obtained by simulating the rendering of a virtual scene containing a medium (e.g., a sky effect) of the original texture, and these are not limited herein.

[0132] As shown in FIG6 , the database 600K may store service rendering parameters trained by a computer device and matching sample environment configurations. For example, the database 600K may store a relationship table indicating associations between sample environment configurations. The relationship table may include multiple sample environment configurations. For ease of illustration, the present embodiment uses two sample environment configurations as an example, including environment configuration 1 (e.g., Earth) and environment configuration 2 (e.g., Mars).

[0133] For ease of understanding, in some embodiments, please refer to Table 1, which is a relational table stored in a database provided in an embodiment of the present application. The relational table may include a sample environment configuration column, an actual training column, and a business rendering distribution diagram column. Of course, the relational table may also include other columns, which will not be limited here. Among them, the training column here refers to the rendering parameters under each virtual light source altitude angle actually trained under the sample environment configuration. As shown in Table 1:

[0134] Table 1

[0135] Among them, taking environment configuration 1 as an example, since the business object performs a property addition operation on the configuration control of the reference attribute, it can add a virtual light source altitude angle 1φ1 (for example, -5°), a virtual light source altitude angle 1φ2 (for example, 0°), a virtual light source altitude angle 1φ3 (for example, 10°) and a virtual light source altitude angle 1φ4 (for example, 60°). Therefore, when the computer device responds to the property addition operation, it can obtain these four virtual light source altitude angles, and then combine the first rendering rule and the second rendering rule to train the rendering parameters under these four virtual light source altitude angles respectively to obtain the rendering parameters corresponding to each virtual light source altitude angle. In some embodiments, the computer device can fit within the angle range of the virtual light source altitude angle based on these four rendering parameters to obtain a business rendering distribution map that matches environment configuration 1, which can include a rendering distribution map 10F1, a rendering distribution map 10F2 and a rendering distribution map 10F3. Among them, the rendering distribution map 10F1 is used to represent the first rendering distribution map associated with the first scattering parameter, that is, the rendering distribution map 10F1 is a rendering distribution map associated with the scattering coefficient of Rayleigh scattering; the rendering distribution map 10F2 is used to represent the second rendering distribution map associated with the second scattering parameter, that is, the rendering distribution map 10F2 is a rendering distribution map associated with the scattering coefficient of Mie scattering; the rendering distribution map 10F3 is used to represent the third rendering distribution map associated with the brightness parameter, that is, the rendering distribution map 10F3 is used to represent the rendering distribution map associated with the brightness of the virtual light source).

[0136] It is understood that when the computer device obtains the image 60P, it can determine the business environment configuration of the image 60P and then search the database 600K based on the business environment configuration of the image 60P. If the business environment configuration of the image 60P is a sample environment configuration included in Table 1 (for example, environment configuration 1), the computer device can directly obtain business rendering parameters that match environment configuration 1 based on Table 1.

[0137] If the angle to be rendered (for example, 10°) corresponding to the first map belongs to the virtual light source altitude angle in the actual training column corresponding to the environment configuration 1, the computer device can directly search for the rendering parameters that match the angle to be rendered from the actual training column as the business rendering parameters. For another example, if the angle to be rendered (for example, 20°) does not belong to the virtual light source altitude angle in the actual training column corresponding to the environment configuration 1, when the rendering accuracy requirement is low, the computer device can quickly search for the rendering parameters that match the angle to be rendered from the three rendering distribution maps of the business rendering distribution map that matches the environment configuration 1 as the business rendering parameters. For example, the computer device can search for the scattering coefficient corresponding to the angle to be rendered from the rendering distribution map 10F1, search for the scattering coefficient corresponding to the angle to be rendered from the rendering distribution map 10F2, and search for the virtual light source brightness corresponding to the angle to be rendered from the rendering distribution map 10F3, and then use the three determined parameters as the business rendering parameters that match the sample environment configuration. Of course, since the service rendering parameters for the virtual light source elevation angle of 20 degrees are read from the service rendering distribution map, if the rendering accuracy requirement is too high, the computer device can also use the first map as a new sample map, combine the first rendering rule and the second rendering rule, and retrain the service rendering parameters for the virtual light source elevation angle of 20 degrees. The computer device can then update Table 1 based on the service rendering parameters for the virtual light source elevation angle of 20 degrees.

[0138] In some embodiments, if the service environment configuration of tile 60P is environment configuration 3 (e.g., the moon), then Table 1 stored in database 600K does not contain a sample environment configuration that matches environment configuration 3, which means that the computer device cannot obtain service rendering parameters that match environment configuration 3 based on Table 1. In this case, the computer device can use the first tile as a new sample tile and, in combination with the first rendering rule and the second rendering rule, retrain service rendering parameters that match environment configuration 3.

[0139] For example, the computer device may use environment configuration 3 as the updated sample configuration (i.e., the new sample environment configuration) and the first map as the updated sample map under the updated sample configuration (i.e., the new sample map). Then, referring to the parameter training method for the sample environment configuration described above, the initial rendering parameters of the updated sample configuration are trained to obtain updated rendering parameters that match the updated sample configuration. Furthermore, an association relationship may be established between environment configuration 3, the rendering parameters under the actual trained virtual light source altitude angle, and the business rendering distribution map that matches environment configuration 3, and the association relationship is stored in Table 1 described above to update Table 1 described above.

[0140] Upon obtaining business rendering parameters that match the business environment configuration of tile 60P, for example, upon obtaining rendering parameters 6U2, the computer device can render the aerial perspective effect of tile 60P in real time based on the rendering parameters of the angle to be rendered included in rendering parameters 6U2 to obtain a second tile corresponding to the angle to be rendered, for example, tile 61P, thereby improving rendering efficiency. Since the atmospheric scattering algorithm is mostly a screen-space rendering algorithm, the embodiments of the present application do not rely on a specific differentiable renderer, and may even not require a differentiable renderer, and may also implement a renderer themselves. The embodiments of the present application can utilize the automatic differentiation function of a machine learning (e.g., Pytorch) used for applications such as image recognition and language processing to achieve rendering of the aerial perspective effect.

[0141] It can be seen that the embodiments of the present application can combine the old simplified algorithm and the new physical algorithm to solve the efficiency problem of real-time rendering of the medium scattering effect of the map. By using the intermediate data of the first rendering rule (i.e., 3D Volume texture) combined with differentiable rendering technology to derive the difficult-to-adjust parameters in the second rendering rule, the entire scattering rendering system can achieve a balance between correct effects, efficient production and rendering efficiency.

[0142] In some embodiments, please refer to Figure 7, which is a structural diagram of a data processing device provided in an embodiment of the present application. As shown in Figure 7, the data processing device 1 can be a computer program (including program code) running on a computer device. For example, the data processing device 1 is an application software; the data processing device 1 can be used to execute the corresponding steps in the data processing method provided in an embodiment of the present application. As shown in Figure 7, the data processing device 1 can run on a computer device with a rendering function. The computer device can be the server 10F in the embodiment corresponding to Figure 1 above, or it can be any terminal device in the terminal device cluster in the embodiment corresponding to Figure 1 above, for example, the terminal device 100a. The data processing device 1 may include: a rule acquisition module 10, a sample reference module 20, a sample prediction module 30 and a training module 40.

[0143] Among them, the rule acquisition module 10 is configured to obtain rendering rules; the rendering rules include a first rendering rule and a second rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render the medium scattering effect; the sample reference module 20 is configured to obtain the sample body texture of the sample map generated by the first rendering rule, and based on the sample body texture, determine the actual rendering value of the sample map under the sample environment configuration and the reference depth data of the sample map; the sample prediction module 30 is configured to determine the predicted rendering value of the sample map under the sample environment configuration based on the initial rendering parameters and the reference depth data in the second rendering rule; the training module 40 is configured to train the initial rendering parameters based on the predicted rendering value and the actual rendering value to obtain business rendering parameters that match the sample environment configuration; the business rendering parameters are used to render the medium scattering effect of the first map; the business environment configuration of the first map is the sample environment configuration.

[0144] In some embodiments, the sample reference module 20 is further configured to obtain reference attributes for the sample map; based on the virtual light source altitude angle included in the reference attributes and the sample map, obtain the sample body texture generated by the first rendering rule that matches the virtual light source altitude angle.

[0145] In some embodiments, the sample reference module 20 is further configured to obtain a preset depth data set including N initial depth data; based on the N initial depth data and the sample body texture, determine the slice data of the sample body texture at the virtual light source altitude angle; the slice data includes N sample sub-images; N is a positive integer; determine the reference image of the sample map at the virtual light source altitude angle from the N sample sub-images; determine the rendering value of the reference image as the actual rendering value of the sample map under the sample environment configuration, and determine the initial depth data of the reference image as the reference depth data.

[0146] In some embodiments, the virtual light source altitude angle includes the solar altitude angle; the sample volume texture includes a first sample volume texture and a second sample volume texture; the first sample volume texture refers to a volume texture used to simulate daytime under the sample environment configuration; the second sample volume texture refers to a volume texture used to simulate sunset under the sample environment configuration; the sample reference module 20 is also configured to display a business configuration interface for the atmospheric rendering component in the business engine; the business configuration interface includes a configuration control for the solar altitude angle; in response to an attribute addition operation for the configuration control, a first altitude angle for deriving the first sample volume texture and a second altitude angle for deriving the second sample volume texture are obtained; the first altitude angle is greater than the second altitude angle; the first altitude angle and the second altitude angle are determined as reference attributes for the sample map.

[0147] In some embodiments, the sample reference module 20 is further configured to traverse the N sample sub-images and determine the traversed sample sub-image as the sub-image to be processed; rasterize the texture grid of the sub-image to be processed to obtain the coordinate position corresponding to each pixel point in the sub-image to be processed; based on the coordinate position corresponding to each pixel point, superimpose the pixel value of each pixel point to obtain the total pixel value corresponding to the sub-image to be processed, until the traversal is completed and N total pixel values ​​are obtained; from the N sample sub-images, select the sample sub-image with the largest total pixel value as the reference image of the sample map at the virtual light source altitude angle.

[0148] In some embodiments, the initial rendering parameters include a first scattering parameter, a second scattering parameter and a brightness parameter; the first scattering parameter and the second scattering parameter correspond to different scattering modes respectively; the brightness parameter is used to indicate the brightness of the virtual light source; the sample volume texture is a volume texture generated by the first rendering rule and matching the virtual light source altitude angle; the sample prediction module 30 is also configured to obtain the initial rendering value of the sample map; based on the initial scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter and the reference depth data, determine the transmittance corresponding to the sample map; based on the initial scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, the brightness parameter and the reference depth data, determine the internal scattering parameter of the sample map at the virtual light source altitude angle; based on the initial rendering value, the transmittance and the internal scattering parameter, determine the predicted rendering value of the sample map under the sample environment configuration.

[0149] In some embodiments, the virtual light source altitude angle refers to the altitude angle corresponding to the directional light emitted by the virtual light source; the sample prediction module 30 is further configured to determine the angle between the directional light emitted by the virtual light source and the current line of sight; based on the initial scattering coefficient of the first scattering parameter and the angle, determine the updated scattering coefficient of the first scattering parameter; based on the initial scattering coefficient of the second scattering parameter and the angle, determine the updated scattering coefficient of the second scattering parameter; based on the initial scattering coefficient of the first scattering parameter, the updated scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, the updated scattering coefficient of the second scattering parameter, the brightness parameter and the reference depth data, determine the internal scattering parameter of the sample map at the virtual light source altitude angle.

[0150] In some embodiments, the training module 40 is further configured to determine the total rendering loss of the sample map based on the predicted rendering value and the actual rendering value; based on the total rendering loss, iteratively train the initial rendering parameters to obtain parameter training results; if the parameter training results indicate that the initial rendering parameters after iterative training meet the training cutoff conditions, the initial rendering parameters that meet the training cutoff conditions are determined as business rendering parameters that match the sample environment configuration.

[0151] In some embodiments, the sample map includes M pixels; M is a positive integer; the M pixels include pixel X i ; i is a positive integer less than or equal to M; the training module 40 is further configured to obtain the pixel point X from the predicted rendering value i The predicted rendering value Y i , get the pixel point X from the actual rendering value i The actual rendering value y i ; The predicted rendering value Y i And the actual rendering value y i The rendering difference between the two is determined as the pixel point X i , until the rendering losses corresponding to M pixels are obtained; based on the M rendering losses, the total rendering loss corresponding to the sample map is determined.

[0152] In some embodiments, the business rendering parameters are rendering parameters corresponding to the target virtual light source altitude angle under the sample environment configuration; the target virtual light source altitude angle is any one of the Z virtual light source altitude angles; Z is a positive integer greater than 1; the Z virtual light source altitude angles are altitude angles obtained in response to a trigger operation performed by a configuration control for a reference attribute; the device also includes: a rendering parameter acquisition module, configured to obtain rendering parameters corresponding to each of the Z virtual light source altitude angles; each rendering parameter includes a first scattering parameter, a second scattering parameter and a brightness parameter; a first fitting module, configured to determine the first scattering coefficient associated with each of the first scattering parameters from the Z rendering parameters, and obtain Z first scattering coefficients; within the angle range of the virtual light source altitude angle, the determined Z first scattering coefficients are fitted to obtain to a first rendering distribution map associated with the first scattering parameter; a second fitting module is configured to respectively determine the second scattering coefficient associated with each of the second scattering parameters from the Z rendering parameters, and obtain Z second scattering coefficients; within the angular interval of the virtual light source altitude angle, the determined Z second scattering coefficients are fitted to obtain a second rendering distribution map associated with the second scattering parameter; a third fitting module is configured to respectively determine the virtual light source brightness associated with each of the brightness parameters from the Z rendering parameters, and obtain Z virtual light source brightnesses; within the angular interval of the virtual light source altitude angle, the determined Z virtual light source brightnesses are fitted to obtain a third rendering distribution map associated with the brightness parameter; a distribution map determination module is configured to determine the first rendering distribution map, the second rendering distribution map and the third rendering distribution map as business rendering distribution maps that match the sample environment configuration.

[0153] In some embodiments, please refer to Figure 8, which is a structural diagram of another data processing device provided in an embodiment of the present application. The data processing device 2 can be a computer program (including program code) running on a computer device. For example, the data processing device 2 is an application software; the data processing device 2 can be used to execute the corresponding steps in the method provided in an embodiment of the present application. As shown in Figure 8, the data processing device 2 can run on a computer device with a rendering function. The computer device can be the server 10F in the embodiment corresponding to Figure 1 above, or it can be any terminal device in the terminal device cluster in the embodiment corresponding to Figure 1 above, for example, the terminal device 100a. The data processing device 2 may include: a configuration acquisition module 100, a business parameter acquisition module 200 and a rendering module 300.

[0154] Among them, the configuration acquisition module 100 is configured to obtain the business environment configuration for the first map when performing scattering simulation rendering on the first map; the business parameter acquisition module 200 is configured to obtain business rendering parameters matching the sample environment configuration if the business environment configuration is a sample environment configuration; the business rendering parameters are obtained after training the initial rendering parameters in the second rendering rule based on the predicted rendering value and actual rendering value of the sample map under the sample environment configuration; the actual rendering value of the sample map is determined based on the sample body texture of the sample map; the sample body texture of the sample map is generated by the first rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render the medium scattering effect; the rendering module 300 is configured to render the medium scattering effect of the first map based on the business rendering parameters and the second rendering rule to obtain the second map.

[0155] In some embodiments, the sample environment configuration is stored in a database; the business parameter acquisition module 200 is also configured to search the database for a business rendering distribution map that matches the sample environment configuration based on the association relationship of the sample environment configuration if the business environment configuration is the sample environment configuration; the business rendering distribution map includes a first rendering distribution map associated with the first scattering parameter, a second rendering distribution map associated with the second scattering parameter, and a third rendering distribution map associated with the brightness parameter; determine the angle to be rendered corresponding to the first map; in the first rendering distribution map, determine the scattering coefficient corresponding to the angle to be rendered as the first coefficient to be processed; in the second rendering distribution map, determine the scattering coefficient corresponding to the angle to be rendered as the second coefficient to be processed; in the third rendering distribution map, determine the virtual light source brightness corresponding to the angle to be rendered as the brightness to be processed; determine the first coefficient to be processed, the second coefficient to be processed, and the brightness to be processed as the business rendering parameters that match the sample environment configuration.

[0156] In some embodiments, the device further includes: a sample update module, configured to determine the business environment configuration as the updated sample configuration and the first map as the updated sample map under the updated sample configuration if there is no sample environment configuration matching the business environment configuration in the database; a reference update module, configured to obtain the sample volume texture of the updated sample map generated by the first rendering rule; based on the sample volume texture of the updated sample map, determine the actual rendering value of the updated sample map under the updated sample configuration and the reference depth data of the updated sample map; a prediction update module, configured to determine the predicted rendering value of the updated sample map under the updated sample configuration based on the initial rendering parameters in the second rendering rule and the reference depth data of the updated sample map; the training update module, configured to train the initial rendering parameters based on the actual rendering value of the updated sample map under the updated sample configuration and the predicted rendering value of the updated sample map under the updated sample configuration, to obtain updated rendering parameters matching the updated sample configuration; and the storage update module, configured to store the updated sample configuration in the database based on the updated rendering parameters.

[0157] In some embodiments, please refer to Figure 9, which is a schematic diagram of a computer device provided in an embodiment of the present application. As shown in Figure 9, the computer device 1000 can be a computer device with a rendering function, and the computer device 1000 can include: at least one processor 1001, for example, a CPU, at least one network interface 1004, a memory 1005, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection communication between these components. The network interface 1004 can include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or it can be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 can optionally also be at least one storage device located away from the aforementioned processor 1001. As shown in Figure 9, the memory 1005 as a computer storage medium can include an operating system, a network communication module, a user interface module, and a device control application. In some embodiments, the computer device may further include the user interface 1003 shown in FIG9 . For example, if the computer device is a terminal device with a rendering function as shown in FIG1 , for example, the terminal device 100a , the computer device may further include the user interface 1003 , wherein the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the like.

[0158] In the computer device 1000 shown in FIG9 , the network interface 1004 is primarily used for network communication; the user interface 1003 is primarily used for providing an input interface for the user; and the processor 1001 can be used to call a device control application stored in the memory 1005 to implement the following: obtaining rendering rules; the rendering rules include a first rendering rule and a second rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render a medium scattering effect; obtaining a sample volume texture of a sample map generated by the first rendering rule, and determining, based on the sample volume texture, an actual rendering value of the sample map under a sample environment configuration and reference depth data of the sample map; determining, based on initial rendering parameters and reference depth data in the second rendering rule, a predicted rendering value of the sample map under the sample environment configuration; training the initial rendering parameters based on the predicted rendering value and the actual rendering value to obtain business rendering parameters that match the sample environment configuration; the business rendering parameters are used to render the medium scattering effect of the first map; and the business environment configuration of the first map is the sample environment configuration.

[0159] The processor 1001 can also be used to call the device control application stored in the memory 1005 to achieve: when performing scattering simulation rendering on the first map, obtaining the business environment configuration for the first map; if the business environment configuration is a sample environment configuration, obtaining the business rendering parameters that match the sample environment configuration; the business rendering parameters are obtained after training the initial rendering parameters in the second rendering rule based on the predicted rendering value and actual rendering value of the sample map under the sample environment configuration; the actual rendering value of the sample map is determined based on the sample body texture of the sample map; the sample body texture of the sample map is generated by the first rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render the medium scattering effect; based on the business rendering parameters and the second rendering rule, the medium scattering effect of the first map is rendered to obtain the second map.

[0160] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the data processing method described in the embodiments corresponding to Figures 3 and 5 above, and can also execute the data processing device 1 described in the embodiment corresponding to Figure 7 above, or the data processing device 2 described in the embodiment corresponding to Figure 8 above, and the description thereof will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated here.

[0161] In addition, it should be noted that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 or the data processing device 2 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the description of the data processing method in the embodiment corresponding to Figure 3 or Figure 5 above, so it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed to be executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.

[0162] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the data processing method provided in each step of Figure 3 and Figure 5 is implemented. Please refer to the implementation methods provided in each step of Figure 3 and Figure 5, which will not be repeated here.

[0163] In some embodiments, please refer to Figure 10, which is a structural diagram of a data processing system provided in an embodiment of the present application. The data processing system 3 may include a data processing device 1a and a data processing device 2a. Among them, the data processing device 1a may be the data processing device 1 in the embodiment corresponding to Figure 7 above. It is understood that the data processing device 1a can be integrated into the above-mentioned computer device with rendering function, and the computer device can be the server 10F in the embodiment corresponding to Figure 1 above, or any terminal device in the terminal device cluster in the embodiment corresponding to Figure 1 above, for example, terminal device 100a, so it will not be repeated here. Among them, the data processing device 2a may be the data processing device 2 in the embodiment corresponding to Figure 8 above. It is understood that the data processing device 2a can be integrated into the above-mentioned computer device with rendering function, and the computer device can be the server 10F in the embodiment corresponding to Figure 1 above, or any terminal device in the terminal device cluster in the embodiment corresponding to Figure 1 above, for example, terminal device 100a, so it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the data processing system embodiments involved in this application, please refer to the description of the method embodiments of this application.

[0164] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The above-described program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The above-described storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0165] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method, the method being executed by a computer device, comprising: Acquire rendering rules; the rendering rules include a first rendering rule and a second rendering rule; the first rendering rule is used to render a virtual scene including a medium; The second rendering rule is used to render the medium scattering effect; Obtaining a sample volume texture of a sample map generated by the first rendering rule; Based on the sample volume texture, respectively determining an actual rendering value of the sample map under a sample environment configuration and reference depth data of the sample map; Determining a predicted rendering value of the sample map under the sample environment configuration based on the initial rendering parameters in the second rendering rule and the reference depth data; Based on the predicted rendering value and the actual rendering value, the initial rendering parameter is trained to obtain a business rendering parameter matching the sample environment configuration; The business rendering parameters are used to render the medium scattering effect of the first map; the business environment configuration of the first map is the sample environment configuration.

2. The method according to claim 1, wherein: The obtaining of the sample volume texture of the sample map generated by the first rendering rule comprises: Get reference properties for the sample map; Based on the virtual light source altitude angle included in the reference attribute and the sample map, a sample volume texture generated by the first rendering rule and matching the virtual light source altitude angle is obtained.

3. The method according to claim 2, wherein: The step of determining the actual rendering value of the sample map under the sample environment configuration and the reference depth data of the sample map based on the sample volume texture comprises: Acquire a preset depth data set including N initial depth data; Based on the N initial depth data and the sample volume texture, determining the slice data of the sample volume texture at the virtual light source altitude angle; the slice data includes N sample sub-images; N is a positive integer; Determine a reference image of the sample map at the virtual light source altitude angle from the N sample sub-maps; The rendering value of the reference image is determined as the actual rendering value of the sample map under the sample environment configuration, and the initial depth data of the reference image is determined as the reference depth data.

4. The method according to claim 2 or 3, wherein: The virtual light source altitude angle includes the sun altitude angle; the sample volume texture includes a first sample volume texture and a second sample volume texture; the first sample volume texture refers to a volume texture used to simulate daytime under the sample environment configuration; the second sample volume texture refers to a volume texture used to simulate sunset under the sample environment configuration; The obtaining of reference attributes for the sample map includes: Displaying a business configuration interface for an atmosphere rendering component in a business engine; the business configuration interface includes a configuration control for the sun altitude angle; In response to a property adding operation for the configuration control, obtaining a first height angle for deriving the first sample volume texture and a second height angle for deriving the second sample volume texture; the first height angle is greater than the second height angle; The first altitude angle and the second altitude angle are determined as reference attributes for the sample map.

5. The method according to claim 3, wherein: The determining a reference image of the sample map at the virtual light source altitude angle from the N sample sub-maps includes: Traversing the N sample subgraphs, and determining the traversed sample subgraphs as subgraphs to be processed; Rasterizing the texture grid of the sub-image to be processed to obtain the coordinate position corresponding to each pixel point in the sub-image to be processed; Based on the coordinate position corresponding to each pixel point, the pixel value of each pixel point is superimposed. Obtain the total pixel value corresponding to the sub-image to be processed, until the traversal is completed and N total pixel values ​​are obtained; From the N sample sub-images, a sample sub-image with a maximum total pixel value is selected as a reference image of the sample map at the virtual light source altitude angle.

6. The method according to any one of claims 1 to 5, wherein: The initial rendering parameters include a first scattering parameter, a second scattering parameter and a brightness parameter; the first scattering parameter and the second scattering parameter correspond to different scattering modes respectively; the brightness parameter is used to indicate the brightness of the virtual light source; The sample volume texture is a volume texture generated by the first rendering rule and matching the altitude angle of the virtual light source; The step of determining the predicted rendering value of the sample map under the sample environment configuration based on the initial rendering parameters in the second rendering rule and the reference depth data includes: Obtaining the initial rendering value of the sample map; Determining a transmittance corresponding to the sample map based on an initial scattering coefficient of the first scattering parameter, an initial scattering coefficient of the second scattering parameter, and the reference depth data; Determine an inscattering parameter of the sample map at the virtual light source altitude angle based on an initial scattering coefficient of the first scattering parameter, an initial scattering coefficient of the second scattering parameter, the brightness parameter, and the reference depth data; A predicted rendering value of the sample map under the sample environment configuration is determined based on the initial rendering value, the transmittance, and the inscattering parameter.

7. The method according to claim 6, wherein: The virtual light source altitude angle refers to the altitude angle corresponding to the directional light emitted by the virtual light source; The determining, based on the initial scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, the brightness parameter, and the reference depth data, the internal scattering parameter of the sample map at the virtual light source altitude angle comprises: Determine the angle between the directional light emitted by the virtual light source and the current line of sight; Determining an updated scattering coefficient of the first scattering parameter based on an initial scattering coefficient of the first scattering parameter and the angle; Determining an updated scattering coefficient of the second scattering parameter based on the initial scattering coefficient of the second scattering parameter and the angle; Based on the initial scattering coefficient of the first scattering parameter, the updated scattering coefficient of the first scattering parameter, the initial scattering coefficient of the second scattering parameter, the updated scattering coefficient of the second scattering parameter, the brightness parameter and the reference depth data, the internal scattering parameter of the sample map at the virtual light source altitude angle is determined.

8. The method according to any one of claims 1 to 7, wherein: The training of the initial rendering parameters based on the predicted rendering value and the actual rendering value to obtain the service rendering parameters matching the sample environment configuration includes: Determining a total rendering loss of the sample map based on the predicted rendering value and the actual rendering value; Based on the total rendering loss, iteratively training the initial rendering parameters to obtain parameter training results; If the parameter training result indicates that the initial rendering parameters after the iterative training meet the training cutoff condition, the initial rendering parameters that meet the training cutoff condition are determined as the business rendering parameters that match the sample environment configuration.

9. The method according to claim 8, wherein: The sample map includes M pixels; M is a positive integer; the M pixels include pixel X i ; i is a positive integer less than or equal to M; The determining the total rendering loss of the sample map based on the predicted rendering value and the actual rendering value includes: Get the pixel point X from the predicted rendering value i The predicted rendering value Y i , get the pixel point X from the actual rendering value i The actual rendered value y i ; The predicted rendering value Y i And the actual rendering value y i The rendering difference between the two is determined as the pixel point X i , until the rendering losses corresponding to M pixels are obtained; Based on the M rendering losses, a total rendering loss corresponding to the sample map is determined.

10. The method according to any one of claims 1 to 9, wherein: The business rendering parameters are rendering parameters corresponding to the target virtual light source altitude angle under the sample environment configuration; the target virtual light source altitude angle is any one of the Z virtual light source altitude angles; Z is a positive integer greater than 1; the Z virtual light source altitude angles are altitude angles obtained in response to a trigger operation performed on a configuration control for a reference attribute; The method further comprises: Obtain rendering parameters corresponding to each virtual light source altitude angle of the Z virtual light source altitude angles; each rendering parameter includes a first scattering parameter, a second scattering parameter and a brightness parameter; Determine a first scattering coefficient associated with each of the first scattering parameters from the Z rendering parameters to obtain Z first scattering coefficients; Fitting the determined Z first scattering coefficients within the angle interval of the virtual light source altitude angle to obtain a first rendering distribution map associated with the first scattering parameter; Determine a second scattering coefficient associated with each of the second scattering parameters from the Z rendering parameters, respectively, to obtain Z second scattering coefficients; Fitting the determined Z second scattering coefficients within the angle interval of the virtual light source altitude angle to obtain a second rendering distribution map associated with the second scattering parameter; Determine the virtual light source brightness associated with each brightness parameter from the Z rendering parameters to obtain Z virtual light source brightnesses; Fitting the determined Z virtual light source brightnesses within the angle interval of the virtual light source altitude angle to obtain a third rendering distribution map associated with the brightness parameter; The first rendering distribution graph, the second rendering distribution graph, and the third rendering distribution graph are determined as business rendering distribution graphs matching the sample environment configuration.

11. A data processing method, the method being executed by a computer device, comprising: When performing scattering simulation rendering on the first map, obtaining a business environment configuration for the first map; If the business environment configuration is a sample environment configuration, obtaining business rendering parameters matching the sample environment configuration; The business rendering parameters are obtained by training the initial rendering parameters in the second rendering rule based on the predicted rendering value and the actual rendering value of the sample map under the sample environment configuration; the actual rendering value of the sample map is determined based on the sample volume texture of the sample map; the sample volume texture of the sample map is generated by the first rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render a medium scattering effect; Based on the business rendering parameters and the second rendering rule, the medium scattering effect of the first map is rendered to obtain a second map.

12. The method according to claim 11, wherein: The sample environment configuration is stored in a database; If the business environment configuration is a sample environment configuration, obtaining business rendering parameters matching the sample environment configuration includes: If the business environment configuration is a sample environment configuration, searching the database for a business rendering distribution map that matches the sample environment configuration based on the association relationship of the sample environment configuration; the business rendering distribution map includes a first rendering distribution map associated with a first scattering parameter, a second rendering distribution map associated with a second scattering parameter, and a third rendering distribution map associated with a brightness parameter; Determine the angle to be rendered corresponding to the first map; In the first rendering distribution map, the scattering coefficient corresponding to the angle to be rendered is determined as the first coefficient to be processed; in the second rendering distribution map, the scattering coefficient corresponding to the angle to be rendered is determined as the second coefficient to be processed; in the third rendering distribution map, the virtual light source brightness corresponding to the angle to be rendered is determined as the brightness to be processed. Spend; The first coefficient to be processed, the second coefficient to be processed, and the brightness to be processed are determined as business rendering parameters matching the sample environment configuration.

13. The method according to claim 12, wherein: The method further comprises: If there is no sample environment configuration matching the business environment configuration in the database, determining the business environment configuration as an updated sample configuration, and determining the first map as an updated sample map under the updated sample configuration; Obtaining a sample volume texture of the updated sample map generated by the first rendering rule; Based on the sample volume texture of the update sample map, respectively determining the actual rendering value of the update sample map under the update sample configuration and the reference depth data of the update sample map; Determine a predicted rendering value of the updated sample map under the updated sample configuration based on the initial rendering parameters in the second rendering rule and the reference depth data of the updated sample map; Based on the actual rendering value of the updated sample map under the updated sample configuration and the predicted rendering value of the updated sample map under the updated sample configuration, the initial rendering parameters are trained to obtain updated rendering parameters matching the updated sample configuration; Based on the updated rendering parameters, the updated sample configuration is stored in the database.

14. A data processing device, comprising: A rule acquisition module is configured to acquire rendering rules; the rendering rules include a first rendering rule and a second rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render a scattering effect of the medium; A sample reference module is configured to obtain a sample volume texture of a sample map generated by the first rendering rule; based on the sample volume texture, determine an actual rendering value of the sample map under a sample environment configuration and reference depth data of the sample map; A sample prediction module, configured to determine a predicted rendering value of the sample map under the sample environment configuration based on the initial rendering parameters in the second rendering rule and the reference depth data; A training module is configured to train the initial rendering parameters based on the predicted rendering values ​​and the actual rendering values ​​to obtain business rendering parameters that match the sample environment configuration; the business rendering parameters are used to render the medium scattering effect of the first map; the business environment configuration of the first map is the sample environment configuration.

15. A data processing device, comprising: A configuration acquisition module, configured to acquire a business environment configuration for the first map when performing scattering simulation rendering on the first map; A business parameter acquisition module, configured to acquire business rendering parameters matching the sample environment configuration if the business environment configuration is a sample environment configuration; The business rendering parameters are obtained by training the initial rendering parameters in the second rendering rule based on the predicted rendering value and the actual rendering value of the sample map under the sample environment configuration; the actual rendering value of the sample map is determined based on the sample volume texture of the sample map; the sample volume texture of the sample map is generated by the first rendering rule; the first rendering rule is used to render a virtual scene containing a medium; the second rendering rule is used to render a medium scattering effect; The rendering module is configured to render the medium scattering effect of the first map based on the business rendering parameter and the second rendering rule to obtain a second map.

16. A computer device comprising: processor and memory and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the data processing method described in any one of claims 1 to 13.

17. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the data processing method according to any one of claims 1 to 13.

18. A computer program product, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium; When a processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, the data processing method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Virtual object rendering method, device and equipment, and computer readable storage medium

    CN112691373A

  • Rendering method and device

    CN115089963A

  • Virtual scene rendering method and device, storage medium and electronic equipment

    CN115526976A

  • Scene rendering method and device

    CN115775294A

  • Data processing method and device, computer equipment and storage medium

    CN116030179A