Rendering method and device, equipment and storage medium

By analyzing and adjusting the material maps in 3D graphics rendering, combining lighting and perspective data, technical means to take into account rendering efficiency and authenticity in 3D graphics rendering, solving the problem that traditional technologies are difficult to balance real-time performance and sense of reality.

CN119091026APending Publication Date: 2024-12-06SHENZHEN RENDERBUS TECH
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202411191530.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Traditional 3D graphics rendering technology is difficult to balance real-time performance and rendering results authenticity, especially when dealing with complex materials, such as transparent materials, high-reflective materials, or rough surface materials.

Method used

By obtaining the material data of the target scene, analyzing and separating the maps of each material, adjusting the resolution and detail levels of the maps according to the lighting data, adjusting the map levels according to the viewing angle and viewing distance, and rendering based on the preset rendering algorithm, and output visualization Render the image.

Benefits of technology

While ensuring visual effects, it effectively reduces rendering burden and memory consumption, taking into account the rendering efficiency and the authenticity of rendering results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091026A_ABST
    Figure CN119091026A_ABST
Patent Text Reader

Abstract

The invention provides a rendering method and device, equipment and a storage medium, and relates to the technical field of three-dimensional graphic rendering, and the method comprises the steps: obtaining the material data of a target scene; the target scene comprises a plurality of objects, and any object is composed of at least one material; the material data are analyzed, a map of each material is identified and separated, and the map comprises a detail layer and an attribute layer; for a target area of the target scene, adjusting the resolution and detail level of a map of the target area according to the illumination data of the target area; adjusting the map level of the map of the target area according to the visual angle and the viewing distance corresponding to the target area; based on a preset rendering algorithm, performing actual rendering on the target scene to obtain a visual rendering image; and outputting the visual rendering image. The rendering efficiency and the rendering result authenticity can be considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional graphics rendering, and in particular to a rendering method, device, equipment and storage medium. Background Art

[0002] In the field of 3D graphics rendering, with the development of technology and the continuous improvement of user needs, the requirements for the authenticity of rendered images are getting higher and higher. Traditional rendering technology often finds it difficult to strike a balance between real-time performance and realism, especially when dealing with complex materials, such as transparent materials, highly reflective materials, or materials with rough surfaces. Although there are physically based lighting and material models (Physically Based Rendering, PBR), their application in real-time rendering still faces limitations in performance and detail expression.

[0003] Based on this, how to balance rendering efficiency and authenticity of rendering results has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, a rendering method, apparatus, device and storage medium are provided to solve the technical problem existing in the prior art that it is difficult to balance rendering efficiency and authenticity of rendering results.

[0005] The present invention adopts the following technical solution:

[0006] In a first aspect, the present invention provides a rendering method, comprising:

[0007] Acquire material data of a target scene; the target scene includes a plurality of objects, and any of the objects is composed of at least one material;

[0008] Analyze the material data, identify and separate a texture of each material, wherein the texture includes a detail layer and an attribute layer;

[0009] For a target area of ​​the target scene, adjusting the resolution and detail level of a texture of the target area according to illumination data of the target area;

[0010] Adjusting a texture level of a texture of the target area according to a viewing angle and a viewing distance corresponding to the target area;

[0011] Based on a preset rendering algorithm, the target scene is actually rendered to obtain a visual rendering image;

[0012] Output the visualization rendering image.

[0013] Optionally, before actually rendering the target scene based on a preset rendering algorithm to obtain a visual rendered image, the rendering method of the present invention further includes:

[0014] Capturing an environment image of the target area and converting the environment image into a format suitable for material mapping;

[0015] The environment image is used to update the environment mapping on the target material of the target area according to the viewing angle corresponding to the target area.

[0016] Optionally, before adjusting the resolution and detail level of the map of the target area of ​​the target scene according to the illumination data of the target area, the rendering method of the present invention further includes:

[0017] The textures are optimized so that the transition between the textures is natural and conforms to the visual effect of the original image of the target scene.

[0018] Optionally, adjusting the resolution and detail level of the map of the target area according to the illumination data of the target area specifically includes:

[0019] Acquiring illumination data of the target area through an illumination detector;

[0020] Determining the target illumination condition complexity of the target area according to the illumination data;

[0021] The resolution of the map of the target area is adjusted to the target resolution corresponding to the complexity of the target lighting conditions, and the detail level of the map of the target area is adjusted to the target detail level corresponding to the complexity of the target lighting conditions, wherein the higher the complexity of the lighting conditions, the higher the corresponding resolution and detail level.

[0022] Optionally, the preset rendering algorithm is a global illumination and shadow mixed rendering algorithm.

[0023] In a second aspect, the present invention provides a rendering device, comprising:

[0024] An acquisition module, used for acquiring material data of a target scene; the target scene includes a plurality of objects, and any of the objects is composed of at least one material;

[0025] A decomposition module, used for analyzing the material data, identifying and separating a texture of each material, wherein the texture includes a detail layer and an attribute layer;

[0026] A first adjustment module, for adjusting the resolution and detail level of the map of the target area of ​​the target scene according to the illumination data of the target area;

[0027] A second adjustment module, used for adjusting a texture level of the texture of the target area according to a viewing angle and a viewing distance corresponding to the target area;

[0028] A rendering module, used to actually render the target scene based on a preset rendering algorithm to obtain a visual rendering image;

[0029] An output module is used to output the visual rendering image.

[0030] In a third aspect, the present invention provides a computer device, comprising:

[0031] at least one processor; and,

[0032] a memory communicatively connected to the at least one processor; wherein,

[0033] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the rendering method described above.

[0034] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which implements the rendering method described above when executed by a processor.

[0035] The present invention adopts the above technical solution, a rendering method, including: obtaining material data of a target scene; the target scene contains multiple objects, any of the objects is composed of at least one material; analyzing the material data, identifying and separating a map of each material, the map including a detail layer and an attribute layer; for a target area of ​​the target scene, adjusting the resolution and detail level of the map of the target area according to the illumination data of the target area; adjusting the map level of the map of the target area according to the viewing angle and viewing distance corresponding to the target area; based on a preset rendering algorithm, actually rendering the target scene to obtain a visual rendering image; and outputting the visual rendering image.

[0036] Based on this, since the resolution and detail level of the map of the target area are adjusted according to the lighting data of the target area, the present invention can reasonably set the resolution and detail level of its map according to the lighting conditions of the target area. In this way, the present invention can effectively reduce the rendering burden and memory consumption while ensuring the visual effect, so that the present invention can take into account both rendering efficiency and authenticity of rendering results.

[0037] Furthermore, since the texture level of the texture of the target area is adjusted according to the viewing angle and viewing distance corresponding to the target area, the present invention can reasonably set the texture level of its texture according to the viewing angle and viewing distance corresponding to the target area, so that the present invention can further take into account both rendering efficiency and authenticity of rendering results. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 is a flowchart of a rendering method provided by an embodiment of the present invention;

[0040] Figure 2 is a schematic structural diagram of a rendering device provided by an embodiment of the present invention;

[0041] Figure 3 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0043] Example

[0044] Figure 1 FIG. 1 is a flow chart of a rendering method provided by an embodiment of the present invention. Figure 1 As shown, the rendering method includes:

[0045] Step 101: Acquire material data of a target scene; the target scene contains multiple objects, and any object is composed of at least one material.

[0046] Specifically, for any material, its material data may include at least one of color data, transparency data, highlight data, roughness data, normal data, scattering data and refraction data.

[0047] Step 102: Analyze the material data, identify and separate the texture of each material, and the texture includes a detail layer and an attribute layer.

[0048] Specifically, the present invention provides a material decomposition and reconstruction engine, which is used to analyze material data, identify and separate the texture of each material, and the texture includes a detail layer and an attribute layer. The detail layer is responsible for describing the microstructure of the material, such as roughness and scratches, etc.; the attribute layer defines the optical properties of the material, such as diffuse reflectivity and specular reflectivity, etc.

[0049] By separating the detail layer and attribute layer of each material, the various properties of the material and its performance under different ambient lighting conditions can be more accurately depicted and controlled to achieve improved rendering realism. At the same time, the separated detail layer and attribute layer can be reused in different rendering environments, without the need to redesign the material for each environment, thus improving rendering efficiency.

[0050] Here, the specific implementation method is: using preset image processing software and rendering algorithms, analyzing material data, identifying and separating the texture of each material, and the texture includes a detail layer and an attribute layer.

[0051] Next, the textures can be optimized to make the transition between them natural and consistent with the visual effects of the original image of the target scene. Specifically, machine learning technology is used to optimize the processing of each layer, for example, the roughness and reflectivity of each layer are optimized to make them consistent with actual physical laws and visual perception. In this way, the transition between the textures is natural and consistent with the visual effects of the original image of the target scene, thereby ensuring the quality and realism in the decomposition and reconstruction process.

[0052] Step 103: For the target area of ​​the target scene, according to the illumination data of the target area, the resolution and level of detail (LOD) of the texture of the target area are adjusted.

[0053] In order to solve the problem of distortion of traditional static maps (pre-rendered or captured images) under complex lighting conditions, the present invention introduces a multi-level texture dynamic adjustment strategy, that is, dynamically adjusting the resolution and detail level of the material map according to the lighting conditions in the target area.

[0054] Specifically, the target scene may be a virtual reality game scene, and the corresponding target area is the area where any player in the virtual reality game scene is located. The target scene may also be other scenes, which are not specifically limited in the present invention. For example, the target scene may also be a scene in a movie.

[0055] Resolution refers to the number of pixels in a texture. High-resolution textures can provide more detailed and realistic visual effects, but they will also increase the rendering burden and memory consumption. Levels of detail can be expressed as texture versions with different resolutions or different levels of detail. For example, a distant mountain may only need a low-resolution texture to maintain its basic appearance, while nearby buildings require higher-resolution textures to show their details. By automatically adjusting the level of detail of the texture, you can effectively reduce the rendering burden and memory consumption while ensuring the visual effect.

[0056] In the embodiment of the present invention, adjusting the resolution and detail level of the map of the target area according to the illumination data of the target area may specifically include:

[0057] (1) Obtain the lighting data of the target area through the light detector.

[0058] Specifically, the light detector can be used to monitor and analyze the lighting conditions in the current scene in real time, including light intensity, light direction, number of light sources, and shadow complexity. The light detector will generate a feedback signal (i.e., the lighting data of the target area) based on the lighting condition information.

[0059] (2) Determine the complexity of target lighting conditions in the target area based on the lighting data.

[0060] Specifically, the complexity of lighting conditions can be divided into a first lighting condition complexity and a second lighting condition complexity. The first lighting condition complexity is less than the second lighting condition complexity. That is, when the target lighting condition complexity is the first lighting condition complexity, it indicates that the target area is an area with simple lighting. When the target lighting condition complexity is the second lighting condition complexity, it indicates that the target area is an area with relatively complex lighting.

[0061] In actual application, if there are multiple light sources in an area, each light source may produce light at different angles and different intensities, which may cause complex light and shadow effects. In this case, this area can be considered as an "area with more complex lighting." Also, if there are multiple objects that block each other in an area, complex shadow effects may occur. In this case, this area can be considered as an "area with more complex lighting." Also, if the light intensity or direction in an area changes frequently, such as lighting conditions in a dynamic environment, this area can be considered as an "area with more complex lighting." Also, if there are a large number of materials with high reflectivity or high refractive index (such as metal, water surface, etc.) in the area, they may produce complex reflection and refraction effects. In this case, this area can be considered as an "area with more complex lighting."

[0062] Based on this, according to the illumination data, the specific implementation method of determining the target illumination condition complexity of the target area can be: if the illumination data shows that the number of light sources in the target area is greater than the preset light source number threshold, or the illumination data shows that there are more than a preset number of mutually occluding objects in the target area, or the illumination data shows that the frequency of change of the light intensity in the target area is greater than the first frequency threshold, or the illumination data shows that the frequency of change of the light direction in the target area is greater than the second frequency threshold, or the illumination data shows that the number of reflected lights in the target area is greater than the preset reflected light number threshold, or the illumination data shows that the number of refracted lights in the target area is greater than the preset refracted light number threshold, then the target illumination condition complexity of the target area is determined to be the second illumination condition complexity. Conversely, if the illumination data shows that the target area does not meet all of the aforementioned conditions, then the target illumination condition complexity of the target area is determined to be the first illumination condition complexity.

[0063] (3) The resolution of the map of the target area is adjusted to the target resolution corresponding to the complexity of the target lighting conditions, and the detail level of the map of the target area is adjusted to the target detail level corresponding to the complexity of the target lighting conditions, wherein the higher the complexity of the lighting conditions, the higher the corresponding resolution and detail level.

[0064] Specifically, following the above example, it is assumed that the complexity of the lighting conditions is divided into the first lighting condition complexity and the second lighting condition complexity, and the first lighting condition complexity is less than the second lighting condition complexity. When the target lighting condition complexity of the target area is the first lighting condition complexity, it indicates that the target area is an area with simple lighting. At this time, the resolution and detail level of the target area map can be at a lower level to optimize the rendering performance. When the target lighting condition complexity of the target area is the second lighting condition complexity, it indicates that the target area is an area with relatively complex lighting. At this time, the resolution and detail level of the target area map can be at a higher level to more accurately reflect the complex lighting effects. In this way, the present invention can effectively reduce the rendering burden and memory consumption while ensuring the visual effect, so that the present invention can take into account both the rendering efficiency and the authenticity of the rendering results.

[0065] Step 104: Adjust the texture level (Texture Level of Detail, Texture LOD) of the texture of the target area according to the viewing angle and viewing distance corresponding to the target area.

[0066] Specifically, the viewing angle refers to the viewing angle of the camera or the observer, which is used to determine the direction in which the observer is observing the object. The viewing distance refers to the distance from the observer or the camera to the rendered object. For example, if the target scene is a virtual reality game scene, the viewing angle is the perspective from which the player observes the surroundings in the game, and the distance is the distance from the player to the observed environment.

[0067] By adapting to the changing viewing angle and distance, the system can dynamically adjust the texture level of the target area's texture. This is called dynamic adjustment of the texture level, also known as LOD. The specific implementation method is: pre-set the texture level corresponding to different combinations of viewing angles and viewing distances, so that when the object is far away from the observer, the details of the object are no longer visually obvious, so the system can lower the texture level and replace it with a simpler texture, thereby saving computing resources. When the object is close to the observer, the system increases the texture level and displays more details for better visual effects. In other words, the farther the viewing distance, the lower the texture level. Similarly, when the viewing angle changes, the system can also make corresponding texture level adjustments to areas with high or low visibility.

[0068] Subsequently, after obtaining the viewing angle and viewing distance corresponding to the target area, the texture level corresponding to the viewing angle and viewing distance combination is determined as the target texture level, and then the texture level of the texture of the target area is adjusted to the target texture level, so as to maintain the best visual effect and performance balance.

[0069] Step 105: Based on a preset rendering algorithm, actually render the target scene to obtain a visual rendering image.

[0070] Specifically, the preset rendering algorithm may be a global illumination and shadow mixed rendering algorithm.

[0071] In order to further improve the overall lighting effect authenticity of the rendered scene, the present invention integrates a global illumination and shadow hybrid rendering algorithm, which not only considers direct illumination, but also calculates indirect illumination and shadow effects. By applying this algorithm at the material level, the lighting interaction between different materials can be made more natural, enhancing the depth and three-dimensionality of the entire scene.

[0072] The specific implementation method is: use ray tracing technology or similar rendering technology to calculate the global illumination effect in the target scene. Then, combine shadow mapping technology to add soft shadow effects between objects to obtain a visual rendering image. In this way, different materials can present highly realistic interactive effects in complex lighting environments.

[0073] Step 106: Outputting a visual rendering image.

[0074] In addition, the present invention also proposes a real-time environment mapping absorption technology, which can generate environment mapping on the surface of the material. These mappings are not pre-set, but dynamically generated according to the camera perspective and the actual environment in the scene. This allows the material surface to truly reflect the surrounding environment, greatly improving the realism of materials such as metal and water surface.

[0075] Based on this, in an embodiment of the present invention, before actually rendering the target scene based on a preset rendering algorithm to obtain a visual rendered image, the rendering method of the present invention may further include:

[0076] (1) Capture the environment image of the target area and convert it into a format suitable for material mapping.

[0077] Specifically, a panoramic camera technology may be used to capture an environment image of a target area, and the environment image may be converted into a format suitable for material mapping.

[0078] (2) Using the environment image, update the environment mapping on the target material of the target area according to the viewing angle corresponding to the target area.

[0079] It should be noted that when the environment image is used to update the environment mapping on the target material of the target area according to the viewing angle corresponding to the target area, the mapping algorithm can be optimized to ensure efficient operation even on performance-constrained devices. For example, the texture of the environment image is compressed, so that the memory requirements can be effectively reduced and the performance can be improved. The compression algorithm needs to balance the trade-off between compression rate and image quality. In addition, advanced image filtering algorithms can be reasonably used, including a variety of anti-aliasing techniques, so that the jagged effect of texture mapping can be effectively reduced and the image quality can be improved. In addition, the texture reading mechanism can be optimized, such as using pre-fetching technology (pre-fetching) and caching technology (caching), so that the reading of system memory during mapping can be reduced, thereby improving performance.

[0080] The following example illustrates a practical application scenario of the present invention.

[0081] Assume that the target scene is a room in a virtual reality game scene, which contains a variety of materials (glass, metal, cloth, etc.). Using the rendering method of the present invention, the attribute layer and detail layer of each material are first parsed and optimized. When the player moves in the room, the display details of each material will be adjusted according to the current light conditions and visual needs. When the player approaches the window, the light outside the window will produce highlights on the metal object. At this time, the metal surface will reflect the scene outside the window, enhancing the sense of reality. At the same time, the global illumination and shadow mixing rendering algorithm will ensure that the shadows and lighting of all objects interact naturally, making the entire scene look more realistic.

[0082] Based on a general inventive concept, the present invention also provides a rendering device. Figure 2 Schematic diagram of a rendering device provided by an embodiment of the present invention. Figure 2 As shown, the rendering device includes:

[0083] The acquisition module 21 is used to acquire material data of a target scene; the target scene contains a plurality of objects, and any object is composed of at least one material.

[0084] The decomposition module 22 is used to analyze the material data, identify and separate the texture of each material, and the texture includes a detail layer and an attribute layer.

[0085] The first adjustment module 23 is used to adjust the resolution and detail level of the map of the target area according to the illumination data of the target area in the target scene.

[0086] The second adjustment module 24 is used to adjust the texture level of the texture of the target area according to the viewing angle and viewing distance corresponding to the target area.

[0087] The rendering module 25 is used to actually render the target scene based on a preset rendering algorithm to obtain a visual rendering image.

[0088] The output module 26 is used to output a visual rendering image.

[0089] Optionally, the rendering device of the present invention may further include a mapping module, which is used to:

[0090] (1) Capturing an environment image of the target area and converting the environment image into a format suitable for material mapping.

[0091] (2) Using the environment image, according to the viewing angle corresponding to the target area, updating the environment mapping on the target material of the target area.

[0092] Optionally, the rendering device of the present invention may further include a texture optimization module, which is used to:

[0093] The textures are optimized so that the transition between the textures is natural and conforms to the visual effect of the original image of the target scene.

[0094] The first adjustment module 23 is specifically used for:

[0095] (1) Obtaining illumination data of the target area through an illumination detector.

[0096] (2) Determine the complexity of target lighting conditions of the target area based on the lighting data.

[0097] (3) Adjusting the resolution of the map of the target area to the target resolution corresponding to the complexity of the target lighting conditions, and adjusting the detail level of the map of the target area to the target detail level corresponding to the complexity of the target lighting conditions, wherein the higher the complexity of the lighting conditions, the higher the corresponding resolution and detail level.

[0098] Optionally, the preset rendering algorithm is a global illumination and shadow mixed rendering algorithm.

[0099] Based on a general inventive concept, the present invention also provides a computer device. Figure 3 Schematic diagram of the structure of a computer device provided by an embodiment of the present invention. Figure 3 As shown, the computer device 300 includes:

[0100] at least one processor 310; and,

[0101] A memory 330 is communicatively connected to at least one processor 310; wherein,

[0102] The memory 330 stores instructions 320 that can be executed by at least one processor 310 . The instructions 320 are executed by the at least one processor 310 so that the at least one processor 310 can implement the rendering method described above.

[0103] Based on a general inventive concept, the present invention further provides a computer-readable storage medium storing a computer program, which implements the above-mentioned rendering method when executed by a processor.

[0104] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0105] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0106] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0107] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0108] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0109] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0110] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0111] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0112] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A rendering method, It is characterized in that include: Get the material data of the target scene; The target scene includes a plurality of objects, and any of the objects is composed of at least one material; Analyze the material data, identify and separate a texture of each material, wherein the texture includes a detail layer and an attribute layer; For a target area of ​​the target scene, adjusting the resolution and detail level of a texture of the target area according to illumination data of the target area; Adjusting a texture level of a texture of the target area according to a viewing angle and a viewing distance corresponding to the target area; Based on a preset rendering algorithm, the target scene is actually rendered to obtain a visual rendering image; The visualization rendering image is output.

2. The rendering method according to claim 1, It is characterized in that Before actually rendering the target scene based on a preset rendering algorithm to obtain a visual rendering image, the method further includes: Capturing an environment image of the target area and converting the environment image into a format suitable for material mapping; The environment image is used to update the environment mapping on the target material of the target area according to the viewing angle corresponding to the target area.

3. The rendering method according to claim 1, It is characterized in that Before adjusting the resolution and detail level of the map of the target area of ​​the target scene according to the illumination data of the target area, the method further includes: The textures are optimized so that the transition between the textures is natural and conforms to the visual effect of the original image of the target scene.

4. The rendering method according to claim 1, It is characterized in that The step of adjusting the resolution and detail level of the map of the target area according to the illumination data of the target area specifically includes: Acquiring illumination data of the target area through an illumination detector; Determining the target illumination condition complexity of the target area according to the illumination data; The resolution of the map of the target area is adjusted to the target resolution corresponding to the complexity of the target lighting conditions, and the detail level of the map of the target area is adjusted to the target detail level corresponding to the complexity of the target lighting conditions, wherein the higher the complexity of the lighting conditions, the higher the corresponding resolution and detail level.

5. The rendering method according to claim 1, It is characterized in that The preset rendering algorithm is a global illumination and shadow mixed rendering algorithm.

6. A rendering device, It is characterized in that include: The acquisition module is used to obtain the material data of the target scene; The target scene includes a plurality of objects, and any of the objects is composed of at least one material; A decomposition module, used for analyzing the material data, identifying and separating a texture of each material, wherein the texture includes a detail layer and an attribute layer; A first adjustment module, for adjusting the resolution and detail level of the map of the target area of ​​the target scene according to the illumination data of the target area; A second adjustment module, used for adjusting a texture level of the texture of the target area according to a viewing angle and a viewing distance corresponding to the target area; A rendering module, used to actually render the target scene based on a preset rendering algorithm to obtain a visual rendering image; An output module is used to output the visual rendering image.

7. A computer device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the rendering method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, It is characterized in that When the program is executed by a processor, the rendering method according to any one of claims 1 to 5 is implemented.

Citation Information

Cited By

  • Light beam tracking method and device and storage medium

    CN119888050A

  • Ray beam tracking methods, equipment and storage media

    CN119888050B

  • PBR material map generation method, three-dimensional object material scanning method and device, electronic device, storage medium and computer program product

    CN119991913A

  • Virtual reality interaction scene processing method

    CN120182463A

  • A virtual reality interactive scene processing method

    CN120182463B