Model rendering method and device, electronic equipment and storage medium
By obtaining the target model's distressed area indication parameters and trace color indication parameters, combined with distressed trace texture mapping, the model's distressed effect is automatically rendered, solving the problem of low efficiency in existing technologies and achieving efficient model distressed effect rendering.
Patent Information
- Application Number
- CN202510816198.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-17
- Publication Date
- 2025-09-19
AI Technical Summary
The existing technology for adding an aging effect to a model is inefficient and usually relies on manual operation, resulting in low efficiency.
By obtaining the target model's distressed area indication parameters and trace color indication parameters, combined with the distressed trace texture map, the distressed effect of the model can be automatically rendered.
The efficiency of adding aging effects to models has been improved, and an automated and efficient rendering process has been achieved.
Smart Images

Figure CN120672931A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of rendering technology, and in particular to a model rendering method, device, electronic device, and storage medium. Background Art
[0002] With the rise of the internet, entertainment is becoming increasingly important in people's lives. To meet the demands for realistic scenes in some entertainment projects (such as animated films and games), models need to be aged to create a used-looking appearance. Currently, this is typically done manually using Photoshop, resulting in low efficiency. Summary of the Invention
[0003] Embodiments of the present application provide a model rendering method, device, electronic device, and storage medium, which can improve the efficiency of adding an aging effect to a model.
[0004] In a first aspect, an embodiment of the present application provides a model rendering method, the method comprising:
[0005] Obtain a target model to be rendered with an aged effect and at least one aged texture map;
[0006] Obtaining an aging area indication parameter corresponding to the target model, where the aging area indication parameter is used to indicate an area on the target model where an aging effect is rendered;
[0007] Based on the above-mentioned distressed area indication parameters, the texture information on the distressed trace texture map is fused to obtain trace rendering information;
[0008] Obtaining a trace color indication parameter corresponding to the target model, wherein the trace color indication parameter is used to indicate the color of the trace on the target model;
[0009] Based on the trace rendering information and the trace color indication parameters, the target model is rendered to obtain a target model with the aging effect.
[0010] In a second aspect, an embodiment of the present application provides a model rendering device, comprising:
[0011] A model acquisition module is used to obtain a target model to be rendered with an aged effect and at least one aged trace texture map;
[0012] A first parameter acquisition module is used to obtain an aging area indication parameter corresponding to the target model, where the aging area indication parameter is used to indicate an area on the target model where an aging effect is rendered;
[0013] An information fusion module, configured to fuse the texture information on the distressed trace texture map based on the distressed area indication parameters to obtain trace rendering information;
[0014] A second parameter acquisition module is used to obtain a trace color indication parameter corresponding to the target model, wherein the trace color indication parameter is used to indicate the color of the trace on the target model;
[0015] A rendering module is used to render the target model based on the trace rendering information and the trace color indication parameters to obtain a target model with the aging effect.
[0016] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory storing a plurality of instructions; a processor loading instructions from the memory to execute the steps of any one of the model rendering methods provided in the embodiment of the present application.
[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps of any model rendering method provided in an embodiment of the present application.
[0018] In a fifth aspect, an embodiment of the present application further provides a computer program product, comprising a computer program or instructions, which, when executed by a processor, implements the steps in any one of the model rendering methods provided in the embodiments of the present application.
[0019] By adopting the solution of the embodiment of the present application, it is possible to obtain a target model to be rendered with an aging effect and at least one aging trace texture map, and then obtain the aging area indication parameters corresponding to the above target model. The above aging area indication parameters are used to indicate the area where the aging effect is rendered on the above target model, thereby fusing the texture information on the above aging trace texture map based on the above aging area indication parameters to obtain trace rendering information. Then, the trace color indication parameters corresponding to the above target model are obtained, and the above trace color indication parameters are used to indicate the color of the trace on the above target model. Finally, based on the above trace rendering information and the above trace color indication parameters, the above target model is rendered to obtain a target model with the above aging effect, thereby improving the efficiency of adding aging effects to the model by rendering the target model with an aging effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 This is a flow chart of an embodiment of the model rendering method provided in the embodiments of the present application;
[0022] Figure 2 is a schematic diagram of a window model provided in an embodiment of the present application;
[0023] Figure 3 This is a schematic diagram of a trace texture map provided in an embodiment of the present application;
[0024] Figure 4 This is another schematic diagram of a trace texture map provided in an embodiment of the present application;
[0025] Figure 5 This is a schematic diagram of the area of the distressed effect provided in the embodiment of the present application;
[0026] Figure 6 This is a schematic diagram of an ambient light occlusion node provided in an embodiment of the present application;
[0027] Figure 7 is a schematic diagram of a first ambient light shielding area provided in an embodiment of the present application;
[0028] Figure 8 is another schematic diagram of an ambient light occlusion node provided in an embodiment of the present application;
[0029] Figure 9 is a schematic diagram of a second ambient light shielding area provided in an embodiment of the present application;
[0030] Figure 10 Schematic diagram of a third ambient light shielding area provided in an embodiment of the present application;
[0031] Figure 11 This is a schematic diagram of a color gradient node provided in an embodiment of the present application;
[0032] Figure 12 Schematic diagram of a fourth ambient light shielding area provided in an embodiment of the present application;
[0033] Figure 13 This is another color gradient node schematic diagram provided in an embodiment of the present application;
[0034] Figure 14 Schematic diagram of the fifth ambient light shielding area provided in an embodiment of the present application;
[0035] Figure 15 Schematic diagram of the generation process of the distressed area indication parameters provided in the embodiment of the present application;
[0036] Figure 16This is a schematic diagram of the first module provided in the embodiment of the present application;
[0037] Figure 17 This is a trace schematic diagram provided in the embodiments of the present application;
[0038] Figure 18 1 is a schematic diagram of the updated third slide rail adjustment parameters provided in an embodiment of the present application;
[0039] Figure 19 This is another trace schematic diagram provided in the embodiments of the present application;
[0040] Figure 20 This is a schematic diagram of the second module provided in the embodiment of the present application;
[0041] Figure 21 This is a trace color schematic diagram provided in the embodiments of the present application;
[0042] Figure 22 is a schematic diagram of the updated second slide rail adjustment parameters provided in an embodiment of the present application;
[0043] Figure 23 This is another trace color schematic diagram provided in the embodiments of the present application;
[0044] Figure 24 Schematic diagram of the process for determining surface roughness information provided in the embodiments of the present application;
[0045] Figure 25 This is a schematic diagram of the principled BSDF node provided in the embodiments of this application;
[0046] Figure 26 is a schematic diagram of a soil color map provided in an embodiment of the present application;
[0047] Figure 27 Schematic diagram of the process of determining model color information provided in an embodiment of the present application;
[0048] Figure 28 Schematic diagram of the process of determining the mixing coefficient provided in the embodiment of the present application;
[0049] Figure 29 This is a schematic diagram of a window model with an antique effect provided in an embodiment of the present application;
[0050] Figure 30 This is a schematic diagram of another window model with an antique effect provided in an embodiment of the present application;
[0051] Figure 31 It is a structural diagram of the model rendering device provided in an embodiment of the present application;
[0052] Figure 32It is a structural diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0053] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application. At the same time, in the description of the embodiments of the present application, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more 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.
[0054] Embodiments of the present application provide a model rendering method, device, electronic device, and computer-readable storage medium.
[0055] Specifically, this embodiment will be described from the perspective of a model rendering device, which can be integrated into an electronic device. That is, the model rendering method of the embodiment of the present application can be executed by an electronic device. Optionally, the electronic device can include a terminal device. The terminal device can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, game console, or personal computer (PC).
[0056] The model rendering method provided in the embodiments of the present application can be applied, for example, to a model rendering system. The model rendering system may include a player terminal device and a server. The terminal device may include both receiving and transmitting hardware, i.e., a device with receiving and transmitting hardware capable of performing bidirectional communication over a bidirectional communication link. The player terminal device and the server may communicate bidirectionally via a network.
[0057] Optionally, the server may be a standalone server, or a server network or server cluster consisting of servers, including but not limited to a computer, a network host, a single network server, a set of multiple network servers, or a cloud server consisting of multiple servers. A cloud server is composed of a large number of computers or network servers based on cloud computing.
[0058] The following is a detailed description of each step in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device. It should be noted that the order in which the following embodiments are described does not limit the preferred order of the embodiments. Although the flowcharts illustrate a logical order, in some cases, the steps shown or described may be performed in a different order than that shown in the accompanying drawings.
[0059] The model rendering method of this embodiment obtains a target model to be rendered with an aging effect and at least one aging trace texture map; obtains an aging area indication parameter corresponding to the above-mentioned target model, and the above-mentioned aging area indication parameter is used to indicate the area on the above-mentioned target model where the aging effect is rendered; based on the above-mentioned aging area indication parameter, the texture information on the above-mentioned aging trace texture map is fused to obtain trace rendering information; obtains a trace color indication parameter corresponding to the above-mentioned target model, and the above-mentioned trace color indication parameter is used to indicate the color of the trace on the above-mentioned target model; based on the above-mentioned trace rendering information and the above-mentioned trace color indication parameter, the above-mentioned target model is rendered to obtain a target model with the above-mentioned aging effect, which can improve the efficiency of adding aging effects to the model.
[0060] Please refer to Figure 1 Taking a terminal as an example, this embodiment provides a model rendering method. The specific process of the model rendering method can be as follows: Steps 101 to 105, wherein:
[0061] Step 101: Obtain a target model to be rendered with an aging effect and at least one aging trace texture map.
[0062] Among them, the above-mentioned target model is a model used to render an aging effect. The target model can be a window model, a furniture model, etc., and can be set according to specific needs, which is not limited here.
[0063] It should be noted that in real life, the surfaces of some objects have been used. For example, except for new glass that has just left the factory, most glass surfaces have traces of different sizes and shapes after being used. These traces will affect the reflectivity of the glass. Therefore, in this embodiment, the terminal can introduce at least one distressed trace texture map to indicate the surface operation of the target model. For example, for the glass on the window model, the roughness of the glass can be processed by using at least one distressed trace texture map to create a more realistic glass effect for the window model.
[0064] It is understandable that there are no absolutely smooth objects in real life, that is, there are no objects with a roughness of 0. Most objects will change from smooth to rough during use. The trace effect is also the effect caused by the uneven roughness of the object surface during use. The real, aged effect is based on the uneven roughness. Therefore, at least one aged trace texture map is introduced, wherein different aged trace texture maps are used to indicate traces of different degrees. In this embodiment, by introducing aged trace texture maps of different degrees, the effect of processing the traces on the model can be enriched to enhance the aged effect of the target model.
[0065] For example, Figure 2 As shown, a basic window model can be pre-built as a target model, and preliminary settings can be made for the basic window model to add glass material to the basic window model. The preliminary settings for the basic window model can be settings for parameter information such as metalness, highlights, and roughness, or settings for parameter information such as subsurface anisotropy, highlight tinting, anisotropic filtering, and anisotropic gloss in the principled ASDF node. The specific settings can be made according to needs and are not limited here. For example, the metalness can be set to 1, the highlight can be set to 0.677, and the roughness can be set to 0.55.
[0066] For example, Figure 3 and Figure 4 As shown, two distressed texture maps can be introduced for the target model, such as Figure 3 and Figure 4 The indicated distressed texture maps for the different roughness of the glass on the window model. Figure 3 It is a texture map of subtle traces of old age. Figure 4 A texture map showing obvious signs of distress.
[0067] Step 102: Obtain an aging area indication parameter corresponding to the target model. The aging area indication parameter is used to indicate an area on the target model where an aging effect is rendered.
[0068] In this embodiment, since not all areas on the target model need to be rendered with an aging effect, the aging area indication parameters corresponding to the target model can be obtained to prompt the terminal to clearly identify the area on the target model where an aging effect is currently required to be rendered, so as to render the aging effect on a specific area.
[0069] For example, Figure 5 As shown in the rendering scene of the window model, due to the dirt and dust accumulated over the years at the joints between the glass and the wooden window frame, the above-mentioned distressed area indication parameters can be used to indicate the edge area of the window model, such as Figure 5The arrow points to the area.
[0070] For example, in a rendering scene of a window model, since people usually push and pull windows with their hands, scratches are easily generated in the middle and lower parts of the window. Therefore, the above-mentioned aging area indication parameters can also be used to indicate the middle and lower areas of the window.
[0071] Specifically, the above-mentioned obtaining of the obsolete area indication parameters corresponding to the above-mentioned target model includes:
[0072] First, the ambient light occlusion information corresponding to the target model can be obtained, so that the ambient light occlusion information is used to indicate the information presented when the ambient light occlusion function is established on the target model, that is, the ambient light occlusion area indicated by the ambient light occlusion information is the area indicated by the aging area indication parameter, so as to generate stains, dirt, scratches and other traces in the ambient light occlusion area to achieve the aging effect. For example, the ambient light occlusion area can be Figure 5 The area between the glass and the wooden window frame.
[0073] Then, a range control parameter for the ambient light occlusion information is determined to control the ambient light occlusion range through the range control parameter, and then the ambient light occlusion information is processed based on the range control parameter to obtain an aging area indication parameter.
[0074] In some embodiments, the terminal may introduce an ambient light occlusion node to perform the above-mentioned step of obtaining the ambient light occlusion information corresponding to the above-mentioned target model, which may specifically include: receiving a first node control parameter for the ambient light occlusion node, setting the above-mentioned ambient light occlusion node based on the above-mentioned first node control parameter, and outputting the above-mentioned ambient light occlusion information through the set ambient light occlusion node.
[0075] The aforementioned first node control parameters include, but are not limited to, sampling parameters and distance parameters, which can be set as needed and are not limited here. It is understood that as the first node control parameters change, the range or shape of the ambient light occlusion area corresponding to the ambient light occlusion node will change. That is, the ambient light occlusion node can affect the range of the aging effect, thereby expressing the degree of aging effect on the target model.
[0076] For example, Figure 6 As shown, Figure 6 Shown is the Ambient Occlusion node, based on Figure 6 The first node control parameter setting in the ambient occlusion node in , that is, set the sampling parameter to 50 and the distance parameter to 2000, can be obtained as follows Figure 7 Diagram of the ambient occlusion area of the window model shown.
[0077] For example, Figure 8 As shown, Figure 8 Shown is the Ambient Occlusion node, based on Figure 8 The first node control parameter setting in the ambient occlusion node in , that is, set the sampling parameter to 1 and the distance parameter to 2000, can be obtained as follows Figure 9 Diagram of the ambient occlusion area of the window model shown.
[0078] Among them, based on Figures 6 to 9 As can be seen from the example shown, in the ambient occlusion node, as the sampling parameter increases, the range of the ambient occlusion area in the window model will become larger, and the shape of the ambient occlusion area will also be affected.
[0079] Similarly, the distance parameter in the ambient occlusion node also affects the ambient occlusion area, for example Figure 10 , the change of distance parameter can affect Figure 10 The height of the ambient occlusion area in the white box.
[0080] In some embodiments, the terminal can introduce a color gradient node, which is a control node for controlling ambient light occlusion, so as to perform the above-mentioned step of determining the range control parameters for the above-mentioned ambient light occlusion information through the color gradient node. Specifically, it can include: adjusting the slider on the color gradient node by receiving the first slider adjustment parameter for the color gradient node, thereby determining the above-mentioned range control parameter through the color gradient node based on the first slider adjustment parameter set by the above-mentioned color gradient node.
[0081] Among them, the above-mentioned color gradient node is provided with a slide rail, and two joysticks can be provided on the slide rail to move on the slide rail by the two joysticks, so as to adjust the color gradient degree indicated by the slide rail, so that the corresponding range control parameter can be clearly defined by adjusting the parameter of the first slide rail.
[0082] For example, Figure 11 As shown, Figure 11 The color gradient node is shown, which is controlled by Figure 11 The two joysticks on the slider of the color gradient node shown are used to control the range of the ambient occlusion area to Figure 11 The range control parameters corresponding to the first track adjustment parameters on the track of the color gradient node in the example can be obtained as follows: Figure 12 Diagram of the ambient occlusion area of the window model shown.
[0083] For example, Figure 13 As shown, Figure 13 The color gradient node is shown, which is controlled by Figure 13The two joysticks on the slider of the color gradient node shown are used to control the range of the ambient occlusion area to Figure 13 The range control parameters corresponding to the first track adjustment parameters on the track of the color gradient node in the example can be obtained as follows: Figure 14 Diagram of the ambient occlusion area of the window model shown.
[0084] It should be noted that in the color gradient node, the white area on the slider of the color gradient node represents the non-ambient light occlusion area, that is, the area corresponding to the non-aging effect (the glass area of the window model), and the black area represents the ambient light occlusion area, that is, the area corresponding to the aging effect. If the left joystick moves to the left, causing the white area on the slider to become larger, the proportion of the area corresponding to the non-aging effect in the model will be larger; if the left joystick moves to the right, causing the black area on the slider to become larger, the proportion of the area corresponding to the aging effect in the model will be larger. For example, based on Figures 11 to 14 The example shown can be seen in Figure 11 and Figure 13 As the left joystick moves to the right, you can get Figure 12 and Figure 14 The area corresponding to the aging effect of the window model is getting larger and larger.
[0085] Furthermore, the above-mentioned processing of the ambient light occlusion information based on the above-mentioned range control parameters to obtain the aged area indication parameters may include: processing the above-mentioned ambient light occlusion information based on the above-mentioned range control parameters through the above-mentioned color gradient node, and outputting the above-mentioned aged area indication parameters.
[0086] For example, Figure 15 As shown, in Figure 15 The ambient occlusion node and the color gradient node are interconnected to use the ambient occlusion information output by the ambient occlusion node as the input of the color gradient node, thereby prompting the color gradient node to process the ambient occlusion information to output the aged area indication parameter from the color output port.
[0087] Step 103: Based on the aging area indication parameters, the texture information on the aging trace texture map is integrated to obtain trace rendering information.
[0088] In this embodiment, since only the area indicated by the aged area indication parameter on the target model is rendered with the aged effect, the texture information of the area that meets the aged area indication parameter on at least one aged trace texture map can be fused based on the aged area indication parameter to obtain trace rendering information that is rendered only in the area indicated by the aged area indication parameter.
[0089] Specifically, the terminal can introduce a mixing node, which is used to mix the distressed trace texture map, so as to perform the above-mentioned step of fusing the texture information on the distressed trace texture map based on the distressed area indication parameter through the mixing node to obtain the trace rendering information. Specifically, it can include: first, taking the distressed trace texture map as the input of the mixing node, and taking the distressed area indication parameter as the mixing coefficient of the mixing node, and then, through the mixing node, fusing the texture information on the distressed trace texture map to obtain the trace rendering information.
[0090] Optionally, in order to better control the extent to which the distressed traces texture map acts on the target model, the terminal can introduce a color gradient node to process the distressed traces texture map through the color gradient node based on the third slide adjustment parameters set by the color gradient node to determine the degree of roughness of the glass controlled by the distressed traces texture map, that is, to control the obviousness of the traces. For example, the extent to which the map is applied to the model can be controlled by moving the joystick on the slide in the color gradient node. In extreme cases, it can indicate whether the map is applied to the model, and finally obtain the processed texture information.
[0091] For example, Figure 16 As shown, Figure 16 As shown in FIG, a first module for generating trace rendering information is provided, wherein the first module provides a mixing node and a distressed area indication parameter outputted as a color gradient point of a coefficient of the mixing node. Figure 16 Two distressed texture maps, named "yyy1" and "yyy2", are also provided as inputs to the "Color 1" and "Color 2" of the blend node.
[0092] Among them, two distressed texture maps can be used to adjust the roughness of the glass, and a color gradient node can be added to each distressed texture map respectively, so that by setting the parameters on the color gradient node, the color gradient node with the set parameters can be prompted to process the distressed texture map, and the processed result can be used as the input of the mixing node.
[0093] in, Figure 16 The coefficients of the mixing nodes in are Figure 15 In the , we use the color gradient node to control the ambient occlusion, and get the distressed area indication parameter of the "color" output of the color gradient node. Then, we control the proportion of the trace blending through the output of the color gradient node. That is, we need to blend the two traces to achieve a rich trace effect and get the corresponding trace rendering information.
[0094] Among them, Figure 16 In the example, the color gradient node of "yyy2" is used based on Figure 16 In the third track adjustment parameter of the color gradient node of "yyy2", processing "yyy2" can be obtained as follows Figure 17 The trace schematic diagram shown, Figure 17 The black frame area in the figure is the trace generated on the window model.
[0095] Furthermore, if Figure 16 The third rail adjustment parameter of the color gradient node of "yyy2" is updated, that is, the update is as follows Figure 18 After the updated third rail adjustment parameters are shown, Figure 18 In the example, the color gradient node of "yyy2" is used based on Figure 18 The updated third rail adjustment parameter for the color gradient node of "yyy2" is processed to obtain the following Figure 19 The trace schematic diagram shown, Figure 19 The black frame area in the figure is the trace generated on the window model.
[0096] Among them, based on Figures 16 to 18 It can be seen that as the black area on the slide rail is lowered, more and more marks are left on the window model.
[0097] Step 104: Obtain a trace color indication parameter corresponding to the target model. The trace color indication parameter is used to indicate the color of the trace on the target model.
[0098] In this embodiment, since it is necessary to configure the corresponding color for the rendered traces when rendering the aging effect on the area indicated by the aging area indication parameter on the target model, it is necessary to obtain the trace color indication parameter to configure the trace color based on the trace color indication parameter.
[0099] Specifically, the above-mentioned acquisition of the trace color indication parameters corresponding to the above-mentioned target model may include: obtaining a trace color map, and in order to better control the degree of the trace of the trace color map acting on the target model, the terminal may introduce a color gradient node, and through the color gradient node, adjust the second slide rail parameters set by the color gradient node, and through the color gradient node, adjust the second slide rail parameters set by the above-mentioned color gradient node, to process the above-mentioned trace color map to determine the degree of the trace color controlled by the trace color map. For example, the degree of the trace of the map being applied to the model can be controlled by moving the joystick on the slide rail in the color gradient node. In extreme cases, it can indicate whether the map is applied to the trace of the model, and finally obtain the trace color indication parameters.
[0100] For example, Figure 20 As shown, Figure 20The figure shows a second module for generating trace color indication parameters. The second module provides a trace color map "xxx", and then adds a color gradient node to "xxx" so that by setting the parameters on the color gradient node, the color gradient node with the set parameters is prompted to process "xxx", and the processed results are used as trace color indication parameters.
[0101] Among them, if the target model is a window model, the trace color map can be a soil color map. By connecting the soil color map to the color gradient node, the color gradient node can be used as a controller to control the degree of soil color through the color gradient node.
[0102] Among them, Figure 20 In the example, through the color gradient node of "xxx", based on Figure 20 In the second slide adjustment parameter of the color gradient node of "xxx", processing "xxx" can obtain the following Figure 21 The trace color diagram shown is Figure 21 The black frame area in the figure is the trace color generated on the window model.
[0103] Furthermore, if Figure 20 The second rail adjustment parameter of the color gradient node of "xxx" is updated, that is, the update is as follows Figure 22 After the updated second rail adjustment parameters are shown, Figure 22 In the example, through the color gradient node of "xxx", based on Figure 22 The updated second rail adjustment parameters for the color gradient node of "xxx" are processed to obtain the following: Figure 23 The trace color diagram shown is Figure 23 The black frame area in the figure is the trace generated on the window model.
[0104] Among them, based on Figures 20 to 23 It can be seen that as the black area on the slide rail rises, the color of the marks on the window model becomes darker and darker.
[0105] Step 105 : Rendering the target model based on the trace rendering information and the trace color indication parameters to obtain a target model with the aging effect.
[0106] In this embodiment, based on the trace rendering information and the trace color indication parameters, the terminal can render traces of a specific style and a specific color within a specific range on the target model to achieve an aging effect for the target model. The specific range can be obtained based on the aging area indication parameters, the specific style can be obtained based on the aging trace texture map, and the specific color can be obtained based on the trace color indication parameters.
[0107] In some embodiments, rendering the target model based on the trace rendering information and the trace color indication parameter to obtain the target model having the aged effect may include: first, determining surface roughness information of the target model based on the trace rendering information and the trace color indication parameter; and then, rendering the target model based on the surface roughness information to obtain the target model having the aged effect.
[0108] Specifically, the terminal can introduce a mixing node, which is used to mix the above-mentioned trace rendering information and the above-mentioned trace color indication parameters, so as to perform the above-mentioned step of determining the surface roughness information of the above-mentioned target model based on the above-mentioned trace rendering information and the above-mentioned trace color indication parameters through the mixing node. Specifically, it may include: first, taking the above-mentioned trace rendering information and the above-mentioned trace color indication parameters as inputs of the mixing node, and configuring a mixing coefficient for the above-mentioned mixing node, and then, through the above-mentioned mixing node, based on the mixing coefficient of the mixing node, to fuse the above-mentioned trace rendering information and the above-mentioned trace color indication parameters, to achieve adding color to the trace, so as to obtain the surface roughness information of the above-mentioned target model.
[0109] Optionally, the above-mentioned mixing coefficient acting on the mixing node can be set by the user according to needs, or another aging area indication parameter corresponding to the target model can be determined. The other aging area indication parameter is also used to indicate the area where the aging effect is rendered on the target model.
[0110] Among them, the above-mentioned another distressed area indication parameter may be the same as the above-mentioned distressed area indication parameter, or may be different from the above-mentioned distressed area indication parameter. For example, since the above-mentioned distressed area indication parameter is the parameter required for rendering scratches, the distressed area indication parameter may include the area corresponding to the distressed effect under one dimension consideration of the target model, such as the lower middle area, and the above-mentioned another distressed area indication parameter is used to add color to the traces, then the distressed area indication parameter may include the area corresponding to the distressed effect under another dimension consideration, such as the edge area of the target model, etc., which can be set specifically according to needs and is not limited here.
[0111] It can be understood that by introducing another distressed area indication parameter, another area on the target model that renders the distressed effect can be determined. The area corresponding to the other distressed area indication parameter may at least partially overlap with the area corresponding to the distressed area indication parameter, or may not overlap with the area corresponding to the distressed area indication parameter, thereby causing the scratches within the area corresponding to the other distressed area indication parameter to present a specific color, that is, traces of a specific degree of roughness and a specific color are included within the stain range, so as to achieve traces of different effects on the target model, and enrich the distressed effect of the target model through the superposition of complex effects.
[0112] It should be noted that if the indication parameters of the aged area are the same as those of another aged area, the efficiency can be improved when rendering the model. If the indication parameters of the aged area are different from those of another aged area, the aged effect of the target model can be enriched.
[0113] Among them, the method for determining the above-mentioned another old area indication parameter can be the same as the method for determining the old area indication parameter, that is, it is obtained through the ambient light occlusion node and the color gradient node. These two nodes can determine the range of stains on the target model to control the scratches within the stain range to present a specific color. The determination process of the above-mentioned another old area indication parameter can refer to the determination process of the above-mentioned old area indication parameter.
[0114] For example, Figure 24 As shown, through Figure 24 The mixing node in the introduces a main switch for controlling the trace. Based on the above example, the trace color indication parameter output by the second module is used as the color 1 of the mixing node, and the trace rendering information output by the first module is used as the color 2 of the mixing node. The overall control is performed through a control main valve, that is, the mixed trace is given the color indicated by color 1. For example, on the window model, some soil color is mixed into the trace, and the output of the mixing node is the surface roughness information of the above target model.
[0115] Specifically, the terminal can introduce a principled BSDF node and a material output node to perform the above-mentioned steps of rendering the above-mentioned target model based on the above-mentioned surface roughness information and obtaining the target model with the above-mentioned aging effect through the principled BSDF node and the material output node, such as Figure 25 As shown, the principled BSDF node is the basic node for material effect expression, which is used to output material effects. The material effect needs to be expressed in the model through the material output node, that is, it usually needs to be connected to the "surface (curve)" on the material output node to realize the material effect of the object.
[0116] Specifically, the surface roughness information can be used as the roughness in the principled BSDF node to render the target model.
[0117] It should be noted that the above-mentioned principled BSDF node is the basic node for material effect performance. For example, this node is required to add color to the material and design different effects for the material surface, such as smooth effect. There are rich material effect input ports on the principled BSDF node. You can achieve the corresponding effect by using different types of maps to connect to the corresponding input ports.
[0118] In some embodiments, the above method may also include: first, obtaining a distressed color map, then obtaining the regional color of the non-distressed area of the above target model, and finally, determining the model color information of the above target model based on the above distressed color map and the above regional color.
[0119] The distressed color map may be the same as or different from the trace color map, and may be set according to specific needs, which is not limited here.
[0120] In this embodiment, corresponding color information can be rendered for the target model. Since some areas of the target model may have corresponding signs of use in addition to scratches, for example, in the rendering scene of the window model, due to the dirt and dust accumulated at the joints between the glass and the wooden window frame on the window over the years, the distressed color map and the regional color of the non-distressed area can be introduced to obtain the model color information for rendering the color of the target model.
[0121] For example, Figure 26 As shown, for the rendering scene of the window model, you can choose Figure 26 The soil color map shown is used as the color map of the model and participates in the rendering process of the model.
[0122] Specifically, the terminal can introduce a mixing node, which is used to mix the above-mentioned old color map and the above-mentioned regional color, so as to perform the above-mentioned step of determining the model color information of the above-mentioned target model based on the above-mentioned old color map and the above-mentioned regional color through the mixing node. Specifically, it can include: first, taking the above-mentioned old color map and the above-mentioned regional color as inputs of the mixing node, and configuring a mixing coefficient for the above-mentioned mixing node, and then, through the above-mentioned mixing node, based on the mixing coefficient of the mixing node, to fuse the above-mentioned old color map and the above-mentioned regional color, to achieve adding color to the target model, so as to obtain the model color information of the above-mentioned target model.
[0123] Optionally, the blending coefficient acting on the blending node may be the aforementioned other distressed area indicator parameter. It is understood that, since the aforementioned other distressed area indicator parameter may determine the specific color of scratches on the target model, the area corresponding to the other distressed area indicator parameter may be set to a specific color to indicate the presence of long-term accumulated stains in the area, resulting in the scratches in the area also having a specific color.
[0124] For example, Figure 27 As shown, through Figure 27 In the example, a blending node is created to fuse the old color map and the area color (such as the glass color of the window model). The area color is Figure 27 The RGB node is used to control the color of the generated area.
[0125] Among them, the above-mentioned old color map Figure 27 Then, add a color control node to "xxx" to control the color of the area generated by the old effect. The purpose of this color control node is to control the color effect of the stain area. Figure 27 Node in Hue / Saturation / Lightness.
[0126] Among them, the color change of the area corresponding to the aging effect can be controlled through the color control node, that is, by adjusting the hue, brightness, saturation and other parameters in the color control node, the color indicated by the aging color map can be changed.
[0127] It is understandable that for the rendering scene of the window model, the stains are generally at the edge, so you can use Figure 12 and Figure 14 The example shown corresponds to the old area indication parameters as the coefficients of the blend node. For example, when the sampling parameter is 128, the distance parameter is 2000, and the slider of the color gradient node is Figure 28 The output mixing coefficient when the slide rail adjustment parameters are shown can be obtained as follows Figure 29 Schematic diagram of the rendered effect of the window model shown.
[0128] Furthermore, the above-mentioned rendering of the target model based on the above-mentioned trace rendering information and the above-mentioned trace color indication parameters to obtain a target model with the above-mentioned aging effect may include: rendering the target model based on the above-mentioned trace rendering information, the above-mentioned trace color indication parameters, and the above-mentioned model color information to obtain a target model with the above-mentioned aging effect.
[0129] Specifically, the surface roughness information of the target model obtained based on the trace rendering information and the trace color indication parameter can be used as the roughness in the principled BSDF node, and the model color information can be used as the base color in the principled BSDF node to render the target model, thereby finally obtaining the following: Figure 30 The rendering effect diagram of the window model shown in Figure 1 is shown in Figure 2. Figure 30 Relative to Figure 29 For example, there are still scratches on the surface of the window model.
[0130] From the above content, it can be seen that by obtaining the target model to be rendered with the aged effect and at least one aged trace texture map, and then obtaining the aged area indication parameters corresponding to the above target model, the above aged area indication parameters are used to indicate the area where the aged effect is rendered on the above target model, thereby fusing the texture information on the above aged trace texture map based on the above aged area indication parameters to obtain trace rendering information. Then, the trace color indication parameters corresponding to the above target model are obtained, and the above trace color indication parameters are used to indicate the color of the trace on the above target model. Finally, based on the above trace rendering information and the above trace color indication parameters, the above target model is rendered to obtain the target model with the above aged effect, thereby improving the efficiency of adding aged effects to the model by rendering the target model with aged effects.
[0131] This embodiment also provides a model rendering device, which can be integrated into a terminal device. Figure 31 As shown, the model rendering device may include:
[0132] Model acquisition module 3101, used to obtain a target model to be rendered with an aging effect and at least one aging trace texture map;
[0133] A first parameter acquisition module 3102 is configured to acquire an aging area indication parameter corresponding to the target model, wherein the aging area indication parameter is used to indicate an area on the target model where an aging effect is rendered;
[0134] An information fusion module 3103 is configured to fuse the texture information on the distressed trace texture map based on the distressed area indication parameters to obtain trace rendering information;
[0135] The second parameter acquisition module 3104 is used to acquire a trace color indication parameter corresponding to the target model, where the trace color indication parameter indicates the color of the trace on the target model;
[0136] The rendering module 3105 is used to render the target model based on the trace rendering information and the trace color indication parameters to obtain a target model with the aging effect.
[0137] In some embodiments, the first parameter acquisition module 3102 is specifically configured to:
[0138] Obtain the ambient occlusion information corresponding to the above target model;
[0139] determining range control parameters for the ambient occlusion information;
[0140] The above-mentioned ambient light occlusion information is processed based on the above-mentioned range control parameters to obtain the aging area indication parameters.
[0141] In some embodiments, the first parameter acquisition module 3102 is specifically configured to:
[0142] receiving a first node control parameter for an ambient occlusion node;
[0143] The ambient occlusion node is set based on the first node control parameter, and the ambient occlusion information is outputted through the set ambient occlusion node.
[0144] In some embodiments, the first parameter acquisition module 3102 is specifically configured to:
[0145] Determine the range control parameter via the color gradient node based on the first slide rail adjustment parameter set by the color gradient node;
[0146] The above-mentioned ambient light occlusion information is processed based on the above-mentioned range control parameters to obtain the aged area indication parameters, which are specifically used for:
[0147] The ambient light occlusion information is processed based on the range control parameters through the color gradient node, and the aging area indication parameters are output.
[0148] In some embodiments, the information fusion module 3103 is specifically used to:
[0149] Using the distressed trace texture map as an input of a blending node, and using the distressed area indication parameter as a blending coefficient of the blending node;
[0150] The texture information on the above-mentioned distressed trace texture map is fused through the above-mentioned blending node to obtain trace rendering information.
[0151] In some embodiments, the second parameter acquisition module 3104 is specifically configured to:
[0152] Get the trace color map;
[0153] The trace color map is processed by a color gradient node based on the second slide rail adjustment parameter set by the color gradient node to obtain a trace color indication parameter.
[0154] In some embodiments, the rendering module 3105 is specifically used to:
[0155] determining surface roughness information of the target model based on the trace rendering information and the trace color indication parameter;
[0156] Based on the surface roughness information, the target model is rendered to obtain a target model with the aging effect.
[0157] In some embodiments, the above method and the above model rendering device further include an information determination module, and the above information determination module is specifically used to:
[0158] Get the distressed color map;
[0159] Get the color of the non-aged area of the target model;
[0160] Determining model color information of the target model based on the distressed color map and the region color;
[0161] The rendering module 3105 is specifically used for:
[0162] Based on the trace rendering information, the trace color indication parameters, and the model color information, the target model is rendered to obtain a target model with the aging effect.
[0163] From the above content, it can be seen that by obtaining the target model to be rendered with the aged effect and at least one aged trace texture map, and then obtaining the aged area indication parameters corresponding to the above target model, the above aged area indication parameters are used to indicate the area where the aged effect is rendered on the above target model, thereby fusing the texture information on the above aged trace texture map based on the above aged area indication parameters to obtain trace rendering information. Then, the trace color indication parameters corresponding to the above target model are obtained, and the above trace color indication parameters are used to indicate the color of the trace on the above target model. Finally, based on the above trace rendering information and the above trace color indication parameters, the above target model is rendered to obtain the target model with the above aged effect, thereby improving the efficiency of adding aged effects to the model by rendering the target model with aged effects.
[0164] Accordingly, an embodiment of the present application further provides an electronic device, which may be a terminal, such as a smartphone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or the like. Alternatively, the electronic device may be a server.
[0165] like Figure 32 As shown, Figure 32 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 3200 includes a processor 3201 having one or more processing cores, a memory 3202 having one or more computer-readable storage media, and a computer program stored in the memory 3202 and executable on the processor. The processor 3201 is electrically connected to the memory 3202. It will be understood by those skilled in the art that the electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0166] The processor 3201 is the control center of the electronic device 3200. It connects the various parts of the entire electronic device 3200 using various interfaces and lines. By running or loading software programs and / or units stored in the memory 3202 and calling data stored in the memory 3202, it executes various functions of the electronic device 3200 and processes data, thereby monitoring the entire electronic device 3200. The processor 3201 can be a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc., and can implement or execute the various methods, steps, and logic blocks disclosed in the embodiments of this application.
[0167] In the embodiment of the present application, the processor 3201 in the electronic device 3200 loads instructions corresponding to one or more application processes into the memory 3202 according to the following steps, and the processor 3201 runs the application stored in the memory 3202 to implement various functions, such as:
[0168] Obtain a target model to be rendered with an aged effect and at least one aged texture map;
[0169] Obtaining an aging area indication parameter corresponding to the target model, where the aging area indication parameter is used to indicate an area on the target model where an aging effect is rendered;
[0170] Based on the above-mentioned distressed area indication parameters, the texture information on the distressed trace texture map is fused to obtain trace rendering information;
[0171] Obtaining a trace color indication parameter corresponding to the target model, wherein the trace color indication parameter is used to indicate the color of the trace on the target model;
[0172] Based on the trace rendering information and the trace color indication parameters, the target model is rendered to obtain a target model with the aging effect.
[0173] Therefore, the electronic device 3200 provided in this embodiment can bring the following technical effects: improving the efficiency of adding aging effects to models.
[0174] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0175] Optional, such as Figure 32 As shown, the electronic device 3200 further includes: a touch screen 3203, a radio frequency circuit 3204, an audio circuit 3205, an input unit 3206, and a power supply 3207. Among them, the processor 3201 is electrically connected to the touch screen 3203, the radio frequency circuit 3204, the audio circuit 3205, the input unit 3206, and the power supply 3207 respectively. It can be understood by those skilled in the art that Figure 32 The electronic device structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0176] The touch display screen 3203 can be used to display a graphical user interface and receive user actions on the operation instructions generated by the graphical user interface. The touch display screen 3203 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, a liquid crystal display (LCD), an organic light emitting diode (OLED, Organic Light-Emitting Diode) or the like can be used to configure the display panel. The touch panel can be used to collect the user's touch operations on or near it (such as the user uses any suitable object or accessory such as a finger, stylus on the touch panel or near the touch panel) and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 3201, and can receive the command sent by the processor 3201 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 3201 to determine the type of touch event. The processor 3201 then provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 3203 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize input and output functions. That is, the touch display screen 3203 can also be used as part of the input unit 3206 to realize the input function.
[0177] The radio frequency circuit 3204 may be used to transmit and receive radio frequency signals, thereby establishing wireless communication with a network device or other electronic devices through wireless communication, and transmitting and receiving signals between the network device or other electronic devices.
[0178] The audio circuit 3205 can be used to provide an audio interface between the user and the electronic device through a speaker and microphone. The audio circuit 3205 can convert the received audio data into an electrical signal and transmit it to the speaker, which then converts it into a sound signal for output. On the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 3205 and converted into audio data. The audio data is then output to the processor 3201 for processing, and then sent to another electronic device through the radio frequency circuit 3204, or the audio data is output to the memory 3202 for further processing. The audio circuit 3205 may also include an earphone jack to provide communication between external headphones and the electronic device.
[0179] The input unit 3206 can be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0180] Power supply 3207 is used to supply power to the various components of electronic device 3200. Optionally, power supply 3207 can be logically connected to processor 3201 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 3207 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0181] although Figure 32 Not shown, the electronic device 3200 may further include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0182] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0183] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0184] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of computer programs, which can be loaded by a processor to execute any of the model rendering methods provided in the embodiments of the present application. The computer program can execute the following steps of the model rendering method:
[0185] Obtain a target model to be rendered with an aged effect and at least one aged texture map;
[0186] Obtaining an aging area indication parameter corresponding to the target model, where the aging area indication parameter is used to indicate an area on the target model where an aging effect is rendered;
[0187] Based on the above-mentioned distressed area indication parameters, the texture information on the distressed trace texture map is fused to obtain trace rendering information;
[0188] Obtaining a trace color indication parameter corresponding to the target model, wherein the trace color indication parameter is used to indicate the color of the trace on the target model;
[0189] Based on the trace rendering information and the trace color indication parameters, the target model is rendered to obtain a target model with the aging effect.
[0190] It can be seen that the computer program can be loaded by the processor to execute any model rendering method provided in the embodiments of the present application, thereby bringing the following technical effects: improving the efficiency of adding aging effects to the model.
[0191] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0192] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0193] Since the computer program stored in the computer-readable storage medium can execute any model rendering method provided in the embodiments of the present application, the beneficial effects that can be achieved by any model rendering method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0194] According to one aspect of the present application, a computer program product or computer program is also provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in various optional implementations of the above embodiments.
[0195] In the above-described embodiments of the model rendering device, computer-readable storage medium, electronic device, and computer program product, the descriptions of each embodiment have different emphases. For portions not described in detail in a particular embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the above-described model rendering device, computer-readable storage medium, computer program product, electronic device, and their corresponding units can be referred to in the description of the model rendering method in the above embodiments, and the details will not be repeated here.
[0196] The above is a detailed introduction to a model rendering method, device, electronic device, computer-readable storage medium and computer program product provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A model rendering method, characterized in that: The method comprises: Obtain a target model to be rendered with an aged effect and at least one aged texture map; Obtaining an aging area indication parameter corresponding to the target model, wherein the aging area indication parameter is used to indicate an area for rendering an aging effect on the target model; Fusing the texture information on the distressed trace texture map based on the distressed area indication parameter to obtain trace rendering information; Acquire a trace color indication parameter corresponding to the target model, wherein the trace color indication parameter is used to indicate the color of the trace on the target model; The target model is rendered based on the trace rendering information and the trace color indication parameter to obtain a target model with the aging effect.
2. The model rendering method according to claim 1, wherein: The obtaining of the aging area indication parameter corresponding to the target model includes: Obtaining ambient occlusion information corresponding to the target model; determining a range control parameter for the ambient occlusion information; The ambient light occlusion information is processed based on the range control parameter to obtain an aging area indication parameter.
3. The model rendering method according to claim 2, wherein: The obtaining of ambient occlusion information corresponding to the target model includes: receiving a first node control parameter for an ambient occlusion node; The ambient occlusion node is set based on the first node control parameter, and the ambient occlusion information is output through the set ambient occlusion node.
4. The model rendering method according to claim 2, wherein: The determining of a range control parameter for the ambient occlusion information includes: Determining the range control parameter through a color gradient node based on a first slide rail adjustment parameter set by the color gradient node; The processing of the ambient light occlusion information based on the range control parameter to obtain the aged area indication parameter includes: The ambient light occlusion information is processed based on the range control parameter through the color gradient node, and the aging area indication parameter is output.
5. The model rendering method according to claim 1, wherein: The step of fusing the texture information on the distressed trace texture map based on the distressed area indication parameter to obtain the trace rendering information includes: Using the distressed trace texture map as an input of a blending node, and using the distressed area indication parameter as a blending coefficient of the blending node; The texture information on the distressed trace texture map is fused through the blending node to obtain trace rendering information.
6. The model rendering method according to claim 1, wherein: The obtaining of the trace color indication parameter corresponding to the target model includes: Get the trace color map; The trace color map is processed by a color gradient node based on a second slide rail adjustment parameter set by the color gradient node to obtain a trace color indication parameter.
7. The model rendering method according to claim 1, wherein: The step of rendering the target model based on the trace rendering information and the trace color indication parameter to obtain the target model having the aged effect includes: determining surface roughness information of the target model based on the trace rendering information and the trace color indication parameter; Based on the surface roughness information, the target model is rendered to obtain a target model with the aged effect.
8. The model rendering method according to any one of claims 1 to 7, characterized in that: The method further comprises: Get the distressed color map; Obtaining the color of the non-aged area of the target model; Determining model color information of the target model based on the aging color map and the region color; The step of rendering the target model based on the trace rendering information and the trace color indication parameter to obtain the target model having the aged effect includes: The target model is rendered based on the trace rendering information, the trace color indication parameter, and the model color information to obtain a target model with the aging effect.
9. A model rendering device, characterized in that: The device comprises: A model acquisition module is used to obtain a target model to be rendered with an aged effect and at least one aged trace texture map; A first parameter acquisition module is used to obtain an aging area indication parameter corresponding to the target model, wherein the aging area indication parameter is used to indicate an area for rendering an aging effect on the target model; An information fusion module, configured to fuse the texture information on the distressed trace texture map based on the distressed area indication parameter to obtain trace rendering information; A second parameter acquisition module is used to acquire a trace color indication parameter corresponding to the target model, wherein the trace color indication parameter is used to indicate the color of the trace on the target model; A rendering module is used to render the target model based on the trace rendering information and the trace color indication parameter to obtain a target model with the aging effect.
10. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps of the model rendering method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the model rendering method according to any one of claims 1 to 8.