Global illumination acceleration method, program product, electronic device and storage medium

By comprehensively considering the geometric complexity, material reflection characteristics and viewpoint distance of the target point, and selecting the most matching global lighting method, the problem that lighting and reflection effects in the existing technology cannot meet the needs of high rendering accuracy, achieving more efficient rendering effects and better adaptability.

CN119516081APending Publication Date: 2025-02-25SICHUAN JIANSHAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411508040.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing global lighting technology cannot meet the requirements of higher rendering accuracy in lighting and reflection effects, especially in diverse application scenarios.

Method used

The lighting segmentation density is determined based on the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point, and based on the density and preset density threshold, the most matching target global lighting method is selected from multiple preset global lighting methods with different accuracy levels.

Benefits of technology

It improves rendering accuracy, obtains better lighting and reflection effects, adapts to a variety of application scenarios, and enhances the flexibility and scalability of the global lighting acceleration method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516081A_ABST
    Figure CN119516081A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of rendering processing, and particularly provides a global illumination acceleration method, a program product, electronic equipment and a storage medium. The global illumination acceleration method comprises the following steps: determining the illumination subdivision density of a target point based on a geometric complexity parameter, a material reflection parameter and a viewpoint distance of the target point; and based on the illumination subdivision density and a preset density threshold, determining a target global illumination method corresponding to the target point from preset global illumination methods with different precision levels. Compared with the existing global illumination technology, the global illumination acceleration method provided by the invention comprehensively considers the geometric complexity parameter, the material reflection parameter and the viewpoint distance of the target point in the process of determining the target global illumination method, and improves the accuracy of the target point from a plurality of preset global illumination methods with different precision levels based on the parameters. The target global illumination method better matched with the target point is determined, and better illumination and reflection effects are obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of rendering processing technology, and in particular to a global illumination acceleration method, a program product, an electronic device and a storage medium. Background Art

[0002] Global illumination technology is a key technology in computer graphics used to improve rendering efficiency and image quality. It simulates the physical processes of light propagation, reflection and refraction in the scene to produce more realistic light and shadow effects and generate more real and natural images.

[0003] However, the existing global illumination technology simply selects the global illumination scheme based on the distance, which results in the lighting effect not meeting the expectations and cannot meet the higher requirements for rendering accuracy in more diverse practical application scenarios. Summary of the invention

[0004] In view of this, the purpose of the embodiments of the present application is to provide a global illumination acceleration method, program product, electronic device and storage medium to solve the technical problem that the illumination and reflection effects achieved based on the existing global illumination technology cannot meet the expected rendering accuracy requirements.

[0005] In a first aspect, an embodiment of the present application provides a global illumination acceleration method, the method comprising:

[0006] Determining the illumination subdivision density of the target point based on the geometric complexity parameter, material reflection parameter and viewpoint distance of the target point;

[0007] Based on the illumination subdivision density and a preset density threshold, a target global illumination method corresponding to the target point is determined from a plurality of preset global illumination methods with different accuracy levels.

[0008] In the above implementation process, the global illumination acceleration method determines the illumination subdivision density of the target point based on the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point; and based on the illumination subdivision density and the preset density threshold, determines the target global illumination method corresponding to the target point from a plurality of preset global illumination methods with different precision levels. Compared with the existing global illumination technology, the global illumination acceleration method provided in the present application comprehensively considers parameters such as the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point in the process of determining the target global illumination method, and based on these parameters, determines the target global illumination method that better matches the target point from a plurality of preset global illumination methods with different precision levels, thereby obtaining better illumination and reflection effects. Therefore, the global illumination acceleration method provided in the present application can improve the rendering accuracy, and solve the technical problem that the illumination and reflection effects achieved based on the existing global illumination technology cannot meet the expected rendering accuracy requirements.

[0009] In addition, the global illumination acceleration method provided in the present application can adapt to a variety of different application scenarios by adjusting the influence of geometric complexity parameters, material reflection parameters and viewpoint distance on illumination subdivision density, thereby improving the flexibility and scalability of the global illumination acceleration method.

[0010] Optionally, in an embodiment of the present application, the preset global illumination method includes a grid distance field, a global distance field and a sky light; the preset density threshold includes a first density threshold and a second density threshold; and based on the illumination subdivision density and the preset density threshold, determining the target global illumination method corresponding to the target point from a plurality of preset global illumination methods with different accuracy levels includes: when the illumination subdivision density is greater than or equal to the first density threshold, determining the grid distance field as the target global illumination method; when the illumination subdivision density is less than the first density threshold and greater than the second density threshold, determining the global distance field as the target global illumination method; when the illumination subdivision density is less than or equal to the second density threshold, determining the sky light as the target global illumination method.

[0011] In the above implementation process, the preset global illumination methods include multiple illumination processing methods with different accuracy levels, such as mesh distance field, global distance field and sky light. Based on the size relationship between the illumination subdivision density and the preset density threshold, the target global illumination method that better matches the target point can be accurately determined from the preset global illumination methods.

[0012] Optionally, in an embodiment of the present application, before determining the lighting subdivision density of the target point based on the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point, the method also includes: determining the geometric complexity parameters of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs; determining the material reflection parameters of the target point based on the material reflectivity and / or material roughness of the target point; and determining the viewpoint distance of the target point based on the geometric distance between the target point and the viewpoint.

[0013] In the above implementation process, the geometric complexity parameters near the target point can be accurately determined based on the geometric characteristic parameters such as the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs. The material reflection parameters of the target point can be accurately determined based on the material related parameters such as the material reflectivity and / or material roughness of the target point. The viewpoint distance of the target point can be determined based on the geometric distance between the target point and the viewpoint. Then, based on the geometric complexity parameters, material reflection parameters and viewpoint distance, the illumination subdivision density that can characterize the illumination accuracy level of the target point can be accurately determined.

[0014] Optionally, in an embodiment of the present application, the geometric complexity parameters include geometric complexity and complexity weight; the material reflection parameters include material reflectivity, material roughness and reflection weight; determining the geometric complexity parameters of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs includes: determining the geometric complexity of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs; determining the material reflection parameters of the target point based on the material reflectivity and / or material roughness of the target point includes: determining the reflection weight of the target point based on the material reflectivity and / or material roughness of the target point.

[0015] In the above implementation process, the geometric complexity parameters include geometric complexity and complexity weight. The geometric complexity can reflect the illumination subdivision density corresponding to the target point, and the complexity weight can be used to balance the influence of geometric complexity on the illumination subdivision density, so as to improve the applicability of the global illumination acceleration method provided by the present application to different application scenarios. The material reflection parameters include material reflectivity, material roughness and reflection weight. The material reflectivity and material roughness can reflect the illumination subdivision density corresponding to the target point, and the reflection weight can be used to balance the influence of the material reflection characteristics on the illumination subdivision density, so as to improve the applicability of the global illumination acceleration method provided by the present application to different application scenarios.

[0016] Optionally, in an embodiment of the present application, the geometric complexity is directly proportional to the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs; the reflection weight is directly proportional to the material reflectivity of the target point, and inversely proportional to the material roughness of the target point.

[0017] In the above implementation process, by setting the reflection weight to be in direct proportion to the material reflectivity of the target point and in inverse proportion to the material roughness of the target point, the reflection weight of the target point can be accurately determined based on the material reflectivity and / or material roughness of the target point.

[0018] Optionally, in an embodiment of the present application, the illumination subdivision density is directly proportional to a geometric complexity parameter and a material reflection parameter of the target point, and is inversely proportional to a viewpoint distance of the target point.

[0019] In the above implementation process, by setting the illumination subdivision density to be in direct proportion to the geometric complexity parameters and material reflection parameters of the target point, and in inverse proportion to the viewpoint distance of the target point, the illumination subdivision density that can characterize the illumination calculation requirements of the target point can be accurately determined.

[0020] Optionally, in an embodiment of the present application, determining the illumination subdivision density of the target point based on the geometric complexity parameter, material reflection parameter, and viewpoint distance of the target point includes: determining the illumination subdivision density of the target point based on the geometric complexity parameter, material reflection parameter, viewpoint distance, and Determine the illumination parsing density D(x) of the target point; where D0 represents the reference density, α represents the complexity weight of the target point, and C v represents the geometric complexity of the target point, β represents the reflection weight of the target point, ρ represents the material reflectivity of the target point, R represents the material roughness of the target point, d(x,C) represents the geometric distance between the target point and the viewpoint, and ∈ represents the anti-zero constant.

[0021] In the above implementation process, by setting the reference density as the default illumination subdivision density of the scene, even when parameters such as geometric complexity parameters or material reflection parameters are missing, the target global illumination method of the corresponding target point can be determined based on the default illumination subdivision density. By setting the anti-zero constant, it can be ensured that the corresponding calculation program can run normally even when the geometric distance is equal to 0.

[0022] In a second aspect, an embodiment of the present application further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the global illumination acceleration method as described in any one of the first aspects.

[0023] In a third aspect, an embodiment of the present application further provides an electronic device; the electronic device includes:

[0024] Memory;

[0025] processor;

[0026] The memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the global illumination acceleration method described in any one of the first aspects is performed.

[0027] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the global illumination acceleration method as described in any one of the first aspects is executed.

[0028] In a fifth aspect, an embodiment of the present application provides a global illumination acceleration device, the device comprising:

[0029] An illumination subdivision density determination module, used to determine the illumination subdivision density of the target point based on the geometric complexity parameter, material reflection parameter and viewpoint distance of the target point;

[0030] The target global illumination method determination module is used to determine the target global illumination method corresponding to the target point from a plurality of preset global illumination methods with different accuracy levels based on the illumination subdivision density and a preset density threshold.

[0031] The beneficial effects of the present application include at least: the global illumination acceleration method determines the illumination subdivision density of the target point based on the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point; and based on the illumination subdivision density and the preset density threshold, determines the target global illumination method corresponding to the target point from a plurality of preset global illumination methods with different precision levels. Compared with the existing global illumination technology, the global illumination acceleration method provided by the present application comprehensively considers the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point in the process of determining the target global illumination method, and based on these parameters, determines the target global illumination method that better matches the target point from a plurality of preset global illumination methods with different precision levels, thereby obtaining better illumination and reflection effects. Therefore, the global illumination acceleration method provided by the present application can improve the rendering accuracy, and solve the technical problem that the illumination and reflection effects achieved based on the existing global illumination technology cannot meet the expected rendering accuracy requirements.

[0032] In addition, the global illumination acceleration method provided in this application can also adapt to a variety of different application scenarios by adjusting the influence of geometric complexity parameters, material reflection parameters and viewpoint distance on illumination subdivision density, thereby improving the flexibility and scalability of the global illumination acceleration method. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 A schematic diagram of a global illumination acceleration method provided in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of a flow chart of a method for determining target global illumination provided in an embodiment of the present application;

[0036] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0039] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0040] See also Figure 1 The flowchart of a global illumination acceleration method provided by an embodiment of the present application is shown. The global illumination acceleration method may include the following steps:

[0041] S101, determining the illumination subdivision density of the target point based on the geometric complexity parameter, material reflection parameter and viewpoint distance of the target point;

[0042] S102. Based on the illumination subdivision density and a preset density threshold, determine a target global illumination method corresponding to the target point from a plurality of preset global illumination methods with different accuracy levels.

[0043] Among them, in step S101, the geometric complexity parameters may include parameters related to the complexity of geometric features of the area to which the target point belongs (for example, the geometric complexity determined according to geometric features such as the number of faces, vertex density or voxel volume of the area to which the target point belongs, and the geometric complexity weight used to measure the influence of geometric complexity on the lighting subdivision density). The material reflection parameters may include parameters related to the reflection characteristics of the target point (for example, material reflectivity, material roughness, and reflection weights used to measure the influence of material reflectivity and / or material roughness on the lighting subdivision density). Parameters such as geometric complexity parameters, material reflection parameters and viewpoint distance can reflect the level of lighting calculation requirements of the target point; based on these parameters, the lighting subdivision density that characterizes the comprehensive lighting calculation requirements of the target point can be determined.

[0044] Wherein, in step S102, the preset density threshold may include one or more density threshold parameters, and the illumination segmentation density may be divided into multiple density levels based on the one or more density thresholds. The target global illumination method may be determined from multiple preset global illumination methods according to the accuracy level corresponding to each density level. The number of preset global illumination methods may be two, or three or more. Parameters such as the preset density threshold, the preset global illumination method, the number of global illumination methods, and the accuracy difference between multiple global illumination methods may be adjusted according to actual application requirements. Exemplarily, the preset global illumination method may include at least two of a mesh distance field, a global distance field, and a sky light.

[0045] It can be seen that the global illumination acceleration method provided in the embodiment of the present application determines the illumination subdivision density of the target point based on the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point; and based on the illumination subdivision density and the preset density threshold, determines the target global illumination method corresponding to the target point from a plurality of preset global illumination methods with different precision levels. Compared with the existing global illumination technology, the global illumination acceleration method provided in the present application comprehensively considers the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point in the process of determining the target global illumination method, and based on these parameters, determines the target global illumination method that better matches the target point from a plurality of preset global illumination methods with different precision levels, thereby obtaining better illumination and reflection effects. Therefore, the global illumination acceleration method provided in the present application can improve the rendering accuracy, and solve the technical problem that the illumination and reflection effects achieved based on the existing global illumination technology cannot meet the expected rendering accuracy requirements. In addition, the global illumination acceleration method provided in this application can also adapt to a variety of different application scenarios by adjusting the influence of geometric complexity parameters, material reflection parameters and viewpoint distance on illumination subdivision density, thereby improving the flexibility and scalability of the global illumination acceleration method.

[0046] Please refer to Figure 2 , Figure 2 A schematic diagram of a flow chart of a method for determining target global illumination provided in an embodiment of the present application.

[0047] In some optional embodiments, the preset global illumination method includes a mesh distance field, a global distance field and a sky light; the preset density threshold includes a first density threshold and a second density threshold; S102, based on the illumination subdivision density and the preset density threshold, determining a target global illumination method corresponding to the target point from a plurality of preset global illumination methods with different accuracy levels, including: S1021, when the illumination subdivision density is greater than or equal to the first density threshold, determining the mesh distance field as the target global illumination method; S1022, when the illumination subdivision density is less than the first density threshold and greater than the second density threshold, determining the global distance field as the target global illumination method; S1023, when the illumination subdivision density is less than or equal to the second density threshold, determining the sky light as the target global illumination method.

[0048] Among them, the first density threshold is greater than the second density threshold, and the specific values ​​of the first density threshold and the second density threshold can be adjusted according to the specific determination method of the illumination subdivision density. The mesh distance field is a data structure representing the directed distance from the surface of an object to a certain point. In the mesh distance field, each point stores the distance from the point to the nearest surface, points inside the mesh store negative values, and points outside the mesh store positive values. The mesh distance field can be generated by pre-calculating the nearest distance from each point (small ball) to the mesh surface. The global distance field is a three-dimensional spatial grid that represents the spatial distance information between all geometric bodies in the scene. Each point stores the distance from the point to the nearest surface in the grid, points inside the mesh store negative values, points outside the mesh store positive values, and points on the mesh surface store zero. The sky light simulates the visual effect of the sky and the resulting illumination / reflection by simulating the effect of sky light on the scene, capturing distant objects in the scene, and using this information as the source of illumination. Since the illumination processing accuracy of the mesh distance field is higher than that of the global distance field, and the illumination processing accuracy of the global distance field is higher than that of the sky light: when the illumination subdivision density is greater than or equal to the first density threshold, the mesh distance field is determined as the target global illumination method; when the illumination subdivision density is less than the first density threshold and greater than the second density threshold, the global distance field is determined as the target global illumination method; when the illumination subdivision density is less than or equal to the second density threshold, the sky light is determined as the target global illumination method; and then accurately determine the target global illumination method that better matches the target point from the preset global illumination methods. Based on the target global illumination method that better matches the target point, better illumination and reflection effects can be obtained, and the rendering accuracy of the scene can be improved.

[0049] In some optional embodiments, before determining the lighting subdivision density of the target point based on the geometric complexity parameters, material reflection parameters and viewpoint distance of the target point, the method further includes: determining the geometric complexity parameters of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs; determining the material reflection parameters of the target point based on the material reflectivity and / or material roughness of the target point; and determining the viewpoint distance of the target point based on the geometric distance between the target point and the viewpoint.

[0050] Among them, the size of the area to which the target point belongs can be adjusted according to the actual application requirements. The material reflectivity characterizes the material's ability to reflect light, and the material roughness characterizes the roughness of the material surface. The vertex density (which can be equal to the ratio of the number of facets to the regional volume) can be determined based on the number of facets in the area to which the target point belongs and the regional volume of the area to which the target point belongs. The surface curvature of the target point can be determined based on the curvature of the facet closest to the target point. According to the geometric characteristic parameters such as the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs, the geometric complexity parameters near the target point can be accurately determined. According to the material-related parameters such as the material reflectivity and / or material roughness of the target point, the material reflection parameters of the target point can be accurately determined. According to the geometric distance between the target point and the viewpoint, the viewpoint distance of the target point can be determined. Then, according to the geometric complexity parameters, the material reflection parameters and the viewpoint distance, the illumination subdivision density that can characterize the illumination accuracy level of the target point is accurately determined.

[0051] In some optional embodiments, the geometric complexity parameters include geometric complexity and complexity weight; the material reflection parameters include material reflectivity, material roughness and reflection weight; determining the geometric complexity parameters of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs includes: determining the geometric complexity of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs; determining the material reflection parameters of the target point based on the material reflectivity and / or material roughness of the target point includes: determining the reflection weight of the target point based on the material reflectivity and / or material roughness of the target point.

[0052] Among them, the geometric complexity of the target point can be determined based on the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs. The geometric complexity can reflect the illumination subdivision density corresponding to the target point, and the complexity weight can be used to balance the influence of geometric complexity on the illumination subdivision density, so as to improve the applicability of the global illumination acceleration method provided by the present application to different application scenarios. The material reflection parameters include material reflectivity, material roughness and reflection weight. The material reflectivity and material roughness can reflect the illumination subdivision density corresponding to the target point, and the reflection weight can be used to balance the influence of material reflection characteristics on the illumination subdivision density, so as to improve the applicability of the global illumination acceleration method provided by the present application to different application scenarios.

[0053] In some optional embodiments, the geometric complexity is directly proportional to the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs; the reflection weight is directly proportional to the material reflectivity of the target point, and inversely proportional to the material roughness of the target point.

[0054] Among them, the larger the value of the parameters such as the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs, the more complex the area to which the target point belongs. Therefore, by setting the geometric complexity to be in direct proportion to the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs, the geometric complexity parameters characterizing the complexity of the area to which the target point belongs are accurately determined based on the geometric characteristic parameters such as the number of faces, vertex density, surface curvature and / or voxel volume of the area to which the target point belongs. The larger the value of the material reflectivity, the stronger the ability of the target point to reflect light, and the higher the demand for lighting calculation. The larger the value of the material roughness, the higher the roughness at the target point, and the reflection of light tends to diffuse reflection, that is, the weaker the reflection effect, the lower the demand for lighting calculation. Therefore, by setting the reflection weight to be in direct proportion to the material reflectivity of the target point, and in inverse proportion to the material roughness of the target point, the reflection weight of the target point is accurately determined based on the material reflectivity and / or material roughness of the target point.

[0055] In some optional embodiments, the illumination subdivision density is directly proportional to the geometric complexity parameter and the material reflection parameter of the target point, and is inversely proportional to the viewpoint distance of the target point.

[0056] Among them, the larger the value of the geometric complexity parameter, the more complex the area to which the target point belongs, and the higher the demand for lighting calculation. The larger the value of the material reflection parameter, the stronger the ability of the target point to reflect light, and the higher the demand for lighting calculation. The larger the value of the viewpoint distance of the target point, the farther the geometric distance between the target point and the viewpoint, and the lower the demand for lighting calculation. There is an inverse proportional relationship between the lighting subdivision density and the viewpoint distance of the target point, which means that when rendering distant objects, the amount of calculation can be reduced, thereby improving rendering efficiency.

[0057] Therefore, by setting the illumination subdivision density in direct proportion to the geometric complexity parameters and material reflection parameters of the target point, and in inverse proportion to the viewpoint distance of the target point, the illumination subdivision density that can characterize the illumination calculation requirements of the target point can be accurately determined.

[0058] In some optional embodiments, determining the illumination subdivision density of the target point based on the geometric complexity parameter, material reflection parameter, and viewpoint distance of the target point includes: determining the illumination subdivision density of the target point based on the geometric complexity parameter, material reflection parameter, viewpoint distance, and Determine the illumination parsing density D(x) of the target point; where D0 represents the reference density, α represents the complexity weight of the target point, and C v represents the geometric complexity of the target point, β represents the reflection weight of the target point, ρ represents the material reflectivity of the target point, R represents the material roughness of the target point, d(x,C) represents the geometric distance between the target point and the viewpoint, and ∈ represents the anti-zero constant.

[0059] Wherein, D0 represents the reference density, and the reference density D0 can be determined based on the default illumination subdivision density of the scene. ∈ can be a very small positive number, for example, 0.1, 0.05 or other reasonable values. The values ​​of the material reflectivity ρ or the material roughness R can be set in the range of [0, 1]. The value of the complexity weight α can be set to [0, 1], [0, 10] or other reasonable ranges, and the value of the reflection weight β can be set to [0, 1], [0, 12] or other reasonable ranges. Among them, the value range of the complexity weight α and the value range of the reflection weight β can be the same or different, and the present application does not make specific restrictions on this. By setting the reference density D0 as the default illumination subdivision density of the scene, even in the case of missing parameters such as geometric complexity parameters or material reflection parameters, the target global illumination method of the corresponding target point can be determined based on the default illumination subdivision density. By setting the anti-zero constant ∈, it can be ensured that the corresponding calculation program can run normally even when the geometric distance is equal to 0, which provides a guarantee for the stable operation of the global illumination acceleration method.

[0060] Please refer to Figure 3 , Figure 3 The present invention provides a schematic diagram of the structure of an electronic device 200 provided in an embodiment of the present invention. The electronic device 200 includes: a memory 202 and a processor 201; the memory 202 stores a computer program executable by the processor 201, and when the computer program is executed by the processor 201, the global illumination acceleration method described in any one of the first aspects is executed.

[0061] The memory 202 and the processor 201 may be interconnected and communicate with each other via a communication bus 203 and / or other forms of connection mechanisms (not shown). The memory 202 stores a computer program executable by the processor 201. When the computer program is executed by the processor 201, the global illumination acceleration method described in the first aspect above is executed.

[0062] The embodiment of the present application further provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by the processor 201, the global illumination acceleration method described in the first aspect above is executed.

[0063] Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0064] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed device / system and method can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0065] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.

[0066] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.

Claims

1. A global illumination acceleration method, characterized in that: The method comprises: Determining the illumination subdivision density of the target point based on the geometric complexity parameter, material reflection parameter and viewpoint distance of the target point; Based on the illumination subdivision density and a preset density threshold, a target global illumination method corresponding to the target point is determined from a plurality of preset global illumination methods with different accuracy levels.

2. The method according to claim 1, characterized in that in, The preset global illumination method includes a mesh distance field, a global distance field and a sky light; the preset density threshold includes a first density threshold and a second density threshold; and based on the illumination subdivision density and the preset density threshold, determining a target global illumination method corresponding to the target point from a plurality of preset global illumination methods with different accuracy levels includes: When the illumination triangulation density is greater than or equal to the first density threshold, determining the mesh distance field as the target global illumination method; When the illumination triangulation density is less than the first density threshold and greater than the second density threshold, determining the global distance field as the target global illumination method; When the illumination parcellation density is less than or equal to the second density threshold, the sky light is determined as the target global illumination method.

3. The method according to claim 1, characterized in that Before determining the illumination subdivision density of the target point based on the geometric complexity parameter, the material reflection parameter and the viewpoint distance of the target point, the method further includes: Determine a geometric complexity parameter of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the region to which the target point belongs; Determining a material reflection parameter of the target point based on a material reflectivity and / or a material roughness of the target point; Based on the geometric distance between the target point and the viewpoint, a viewpoint distance of the target point is determined.

4. The method according to claim 3, characterized in that in, The geometric complexity parameters include geometric complexity and complexity weight; the material reflection parameters include material reflectivity, material roughness and reflection weight; Determining the geometric complexity parameter of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the region to which the target point belongs includes: determining the geometric complexity of the target point based on the number of faces, vertex density, surface curvature and / or voxel volume of the region to which the target point belongs; Determining the material reflection parameter of the target point based on the material reflectivity and / or material roughness of the target point includes: determining the reflection weight of the target point based on the material reflectivity and / or material roughness of the target point.

5. The method according to claim 4, characterized in that in, The geometric complexity is directly proportional to the number of faces, vertex density, surface curvature and / or voxel volume of the region to which the target point belongs; The reflection weight is directly proportional to the reflectivity of the material of the target point, and is inversely proportional to the roughness of the material of the target point.

6. The method according to any one of claims 1 to 5, characterized in that: in, The illumination subdivision density is in direct proportion to the geometric complexity parameter and the material reflection parameter of the target point, and in inverse proportion to the viewpoint distance of the target point.

7. The method according to claim 6, characterized in that The step of determining the illumination subdivision density of the target point based on the geometric complexity parameter, the material reflection parameter and the viewpoint distance of the target point comprises: Based on the geometric complexity parameters, material reflection parameters, viewpoint distance and Determine the illumination parsing density D(x) of the target point; where D0 represents the reference density, α represents the complexity weight of the target point, and C v represents the geometric complexity of the target point, β represents the reflection weight of the target point, ρ represents the material reflectivity of the target point, R represents the material roughness of the target point, d(x,C) represents the geometric distance between the target point and the viewpoint, and ∈ represents the anti-zero constant.

8. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

9. An electronic device, characterized in that: The electronic device comprises: Memory; processor; The memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is executed.