Rendering methods, devices, electronic equipment, and storage media for refining model lines
By setting up 3D line models at the model outline positions and performing normal baking and material adjustments, the problem of overly mechanical line rendering in model modification was solved, achieving a more dynamic visual effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2024-12-02
- Publication Date
- 2026-06-02
Smart Images

Figure CN122134902A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of rendering technology, and in particular to a rendering method, apparatus, electronic device, and storage medium for refining lines in a model. Background Technology
[0002] Stylized art forms can bring a striking visual experience. For example, rendering the lines of a model is one of the ways to implement stylized art forms, which can enhance the visual style and improve the recognizability of the model.
[0003] Existing decorative lines usually only provide a rigid, fully enclosed outline of the model, resulting in an overly mechanical feel and failing to deliver a striking visual experience. Summary of the Invention
[0004] In view of this, the purpose of this disclosure is to provide a rendering method, apparatus, electronic device and storage medium for model decoration lines, so as to improve the dynamism of model decoration lines.
[0005] In a first aspect, embodiments of this disclosure provide a rendering method for model-decorated lines. The method includes: determining a target model and its model outline; setting a three-dimensional line model at at least one outline position of the model outline based on the model features of the target model, and configuring the attachment relationship between the three-dimensional line model and the target model; obtaining a target texture map set for the three-dimensional line model; wherein the target texture map is used to indicate the line texture in the three-dimensional line model; performing normal baking on at least some lines in the three-dimensional line model based on the normals of the target model to obtain target normal information of the three-dimensional line model; adjusting the material of at least some lines in the three-dimensional line model to obtain target material information of the three-dimensional line model; and rendering the target model based on the target texture map, the target normal information, and the target material information to make the target model present a corresponding line-decorated effect.
[0006] Secondly, embodiments of this disclosure provide a rendering apparatus for model-decorated lines. The apparatus includes: a determining module for determining a target model and its model outline; a configuring module for setting a three-dimensional line model at at least one outline position of the model outline according to the model features of the target model, and configuring the attachment relationship between the three-dimensional line model and the target model; an acquiring module for acquiring a target texture map set for the three-dimensional line model, wherein the target texture map is used to indicate the line texture in the three-dimensional line model; a baking module for performing normal baking on at least some lines in the three-dimensional line model based on the normals of the target model to obtain target normal information of the three-dimensional line model; an adjusting module for adjusting the material of at least some lines in the three-dimensional line model to obtain target material information of the three-dimensional line model; and a rendering module for rendering the three-dimensional line model based on the target texture map, the target normal information, and the target material information when rendering the target model, so that the target model presents a corresponding line-decorated effect.
[0007] Thirdly, embodiments of this disclosure provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-described rendering method for model modification lines.
[0008] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement the rendering method for the model modification lines described above.
[0009] The embodiments disclosed herein bring the following beneficial effects:
[0010] The above-mentioned rendering method, device, electronic equipment and storage medium for model decoration lines can set a three-dimensional line model at the outline position of the model outline according to the model characteristics of the target model, then generate its texture map and material information, and make it have a sense of unity with the target model through normal baking. Finally, the target model with decoration lines is obtained through rendering, making the model's decoration lines more dynamic, reducing the mechanical feeling brought by the fully enclosed outline, and achieving a unique visual effect.
[0011] Other features and advantages of this disclosure will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the disclosure. The objects and other advantages of this disclosure are realized and obtained through the structures particularly pointed out in the description, claims and drawings.
[0012] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0014] Figure 1 This is a flowchart of an embodiment of the rendering method for model modification lines in this disclosure;
[0015] Figure 2 This is a schematic diagram of a rendering method for model modification lines in an embodiment of this disclosure;
[0016] Figure 3 This is another schematic diagram of the rendering method for model modification lines in the embodiments of this disclosure;
[0017] Figure 4 This is another schematic diagram of the rendering method for model modification lines in the embodiments of this disclosure;
[0018] Figure 5 This is another schematic diagram of the rendering method for model modification lines in the embodiments of this disclosure;
[0019] Figure 6 This is another schematic diagram of the rendering method for model modification lines in the embodiments of this disclosure;
[0020] Figure 7 A schematic diagram of a rendering apparatus for refining model lines provided in an embodiment of this disclosure;
[0021] Figure 8 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0023] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in this disclosure, claims, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] For ease of understanding, the specific process of the embodiments of this disclosure is described below. Please refer to [link / reference]. Figure 1 One embodiment of the rendering method for model modification lines in this disclosure includes:
[0025] Step S10: Determine the target model and its outline;
[0026] It is understood that the target model can be any model, such as a character model, object model, virtual character model, etc., without any specific limitations here. The outline of the target model can be lines that are in contact with or not in contact with the surface of the target model, or it can be a specified area in three-dimensional space, or other data that can be used to indicate the outline of the model, without any specific limitations here.
[0027] In one implementation, the outline of the target model can be drawn using a drawing tool (such as a brush) or selected using a selection tool in three-dimensional space. For example, the outline of the target model can be determined using the crayon function (i.e., sculpting mode) in Blender, the sculpting plugin in 3ds Max, etc. The specific method is not limited here.
[0028] As an example, and not a limitation, Figure 2 The diagram shows various target models, including their outlines. Figure 2 The black lines in the diagram represent the model's outline; the color of the lines is for illustrative purposes only and is not specifically defined. Figure 2 As can be seen, the outline of the target model has a very high degree of freedom. It can have any relative positional relationship with the target model, and can also be any style (such as turning method, solid and dashed lines, etc.). It can also be any color, any number, any thickness, and any other line attributes that can be drawn freely without any restrictions.
[0029] Step S20: Based on the model features of the target model, set a three-dimensional line model at at least one contour position of the model contour, and configure the attachment relationship between the three-dimensional line model and the target model.
[0030] In this embodiment, a three-dimensional line model can be set at the contour position of at least one model contour according to the model characteristics of the target model, for rendering the decorative lines of the target model. When setting the three-dimensional line model at at least one contour position of the model contour, the three-dimensional line model can be generated in the selection area of at least one model contour based on the model contour of the selection area, or the lines of at least one model contour can be converted into a three-dimensional line model based on the model contour of the lines, or the three-dimensional line model can be set in other ways, which are not limited here.
[0031] It should be noted that by configuring the attachment relationship between the 3D line model and the target model, the 3D line model can follow the movement of the corresponding part of the target model, adapt to the structure of the target model, and avoid clipping, thereby enhancing the dynamism of the model's decorative lines.
[0032] In one implementation, the attachment relationship between the three-dimensional line model and the target model can be configured by setting up a skeleton between them. Alternatively, the three-dimensional line model can be attached to the target model to form an attachment relationship between them.
[0033] It should be noted that, in order to set the outline position of the 3D line model, a line texture can be set on the surface position of the corresponding target model and blended with the original texture of the corresponding model surface position, so as to obtain the line effect of modifying the model surface when rendering the target model.
[0034] Understandably, when lines are drawn as the outline of a model, the three-dimensional line model set at the corresponding outline position is the three-dimensional shape of the drawn lines. It can include the irregularity brought by the drawn lines, thereby adding the hand-drawn feel and dynamism of the lines, rather than the three-dimensional line model directly constructed by modeling. The top of the lines is usually a regular plane, and being too regular brings a sense of stiffness and mechanicalness.
[0035] For example, the model outline of the target model can be as follows: Figure 3 As shown in the 12 style diagrams, the transitions of the model outline can be smooth or angular, the model outline can have multiple transitions, and lines of different lengths can be connected to each other. The model outline can also be thick with thin lines and thin with solid lines, resulting in a variety of effects. It can be drawn according to the actual artistic effect requirements, and no specific restrictions are made here.
[0036] In this embodiment, the outline position of the three-dimensional line model can be determined based on the model features of the target model. For example, the outline position of a specific part of the target model (such as the waist, shoulder, joint, etc.) can be determined as the outline position of the three-dimensional line model. Alternatively, the outline position of a part of the target model with a specific degree of curvature can be determined as the outline position of the three-dimensional line model. The outline position of the three-dimensional line model can also be determined based on other model features, which will not be elaborated further.
[0037] Step S30: Obtain the target texture map set for the 3D line model; wherein, the target texture map is used to indicate the line texture in the 3D line model;
[0038] Understandably, the target texture map is used to indicate the texture of the 3D line model. By using texture coordinates, a mapping relationship is established between the pixels in the target texture map and the vertices in the 3D line model, thereby mapping the target texture map onto the surface of the 3D line model and obtaining the texture of the 3D line model.
[0039] In one implementation, since the outline of the target model can include styles such as colors or patterns, the surface of the set 3D line model can also include colors or patterns. By unfolding the texture of the 3D line model, a color map of the 3D line model can be obtained as the target texture map. The target texture map can include textures for other purposes, which are not limited here.
[0040] In one implementation, the target texture map can also be used to indicate different types of lines in a 3D line model. Specifically, the target texture map includes a mask map, which can be generated as the target texture map of the 3D line model to render different line effects or textures for different types of lines in the 3D line model.
[0041] Specifically, lines in a 3D line model can be divided into two types: visible silhouettes and invisible silhouettes. Visible silhouette lines are independent of the target model and can be used to modify the outer contour of the target model, while invisible silhouette lines are attached to the surface of the target model and can be used to embellish the surface of the target model, making the model's decorative lines more dynamic.
[0042] For example, Figure 2 In the diagram illustrating lines drawn for various target models, the lines for the neck and legs of the rightmost figure can be rendered as a silhouette (invisible), while the lines above the head and shoulders can be rendered as a silhouette (visible). Different rendering methods can be used for different types of lines; specific methods are not limited here.
[0043] Step S40: Based on the normals of the target model, perform normal baking on at least some lines in the 3D line model to obtain the target normal information of the 3D line model.
[0044] In this embodiment, in order to make the rendering effect of the 3D line model visually integrated with the rendering effect of the target model, at least some lines in the 3D line model are baked according to the normals of the target model, thereby obtaining the target normal information of the 3D line model associated with the normals of the target model.
[0045] In one implementation, the normal direction of the target model is baked onto at least some of the lines in the 3D line model to obtain the target normal information of the 3D line model. The at least some of the lines in the 3D line model can be one or more types of lines in the 3D line model. Specifically, they can be silhouette-visible lines in the 3D line model, i.e. silhouette-visible lines. The specific details are not limited here.
[0046] It should be noted that at least some lines in a 3D line model can be of the first type. The 3D line model can also include the second type of lines. For the second type of lines in the 3D line model, normal baking can be omitted to make them present an effect different from the first type of lines, thereby obtaining a richer decorative line effect.
[0047] Step S50: Adjust the material of at least some of the lines in the 3D line model to obtain the target material information of the 3D line model;
[0048] In this embodiment, the material of all lines in the 3D line model can be adjusted uniformly, or the material of some lines in the 3D line model can be adjusted. For example, the material of the first type of lines can be adjusted. The material of the first type of lines and / or the second type of lines in the 3D line model can also be adjusted to obtain the target material information of the 3D line model, so that different types of lines can present different material effects.
[0049] In one implementation, different material spheres can be set to adjust the materials of different types of lines in a 3D line model. When adjusting the materials, any material parameters can be adjusted according to the specific artistic effect to be obtained, such as metallicity, glossiness, roughness, transparency, specular color, diffuse color, refractive index, displacement map, specular map, normal map, mask map, noise map, etc., without being limited here.
[0050] Step S60: When rendering the target model, the 3D line model is rendered based on the target texture map, target normal information and target material information so that the target model presents the corresponding line decoration effect.
[0051] Understandably, when rendering the target model, the 3D line model and the target model can be rendered as a whole based on the target texture map, target normal information, and target material information of the 3D line model. The rendered 3D line model can then be used as the decorative lines of the target model, resulting in the target model displaying the corresponding line decoration effect. This makes the line effect of the target model more dynamic, avoids the mechanical feel of the lines, and has a better presentation effect in terms of comic book style.
[0052] The rendering method for model decoration lines provided in the above embodiments can set a three-dimensional line model at the outline position of the model outline according to the model characteristics of the target model, then generate its texture map and material information, and make it have a sense of unity with the target model through normal baking. Finally, the target model with decoration lines is obtained through rendering, making the model's decoration lines more dynamic, reducing the mechanical feeling brought by the fully enclosed outline, and achieving a unique visual effect.
[0053] The following section provides a detailed explanation of how to set up a 3D line model.
[0054] In one implementation, when setting a three-dimensional line model at at least one contour position of the model contour according to the model characteristics of the target model, and configuring the attachment relationship between the three-dimensional line model and the target model, the at least one contour position of the model contour is determined according to the model characteristics of the target model; the model contour at at least one contour position is converted into a three-dimensional model to obtain a three-dimensional line model; and the three-dimensional line model is motion-bound to the target model by setting up a skeleton to configure the attachment relationship between the three-dimensional line model and the target model.
[0055] In this embodiment, the contour position of the desired decorative line effect is first determined based on the model characteristics of the target model. Then, the model contour corresponding to the contour position is converted into a three-dimensional model to obtain a three-dimensional line model. Finally, by setting up a skeleton between the three-dimensional line model and the target model, motion binding is performed between the two to configure the attachment relationship between the three-dimensional line model and the target model, so that the three-dimensional line model can follow the movement of the target model and produce a dynamic decorative line effect.
[0056] In one implementation, when determining at least one contour position of the model contour based on the model features of the target model, the position of the model contour where the silhouette is visible is determined as the contour position based on whether the model contour of the target model is visible relative to the silhouette of the target model, thereby obtaining at least one contour position of the model contour.
[0057] Understandably, in order to make the outline position that produces the decorative line effect easier to present and achieve a better presentation effect, the position of the model outline that is visible relative to the silhouette of the target model is determined as the outline position of the 3D line model, so that the position that produces the decorative line effect is less likely to be invisible due to occlusion.
[0058] Here, the silhouette of the target model refers to the silhouette presented when the target model is viewed from the front. In some embodiments, the silhouette of the target model may also be the silhouette presented when the target model is viewed from other specific angles. The silhouette of the model outline is visible when the target model is viewed from the front. The silhouette of the model outline is also presented as part of the silhouette of the target model.
[0059] In one implementation, when configuring the attachment relationship between a 3D line model and a target model by setting up a skeleton to kinematically bind the 3D line model and the target model, a skeleton is set up between the 3D line model and the target model according to the positional relationship between the 3D line model and the target model to establish the structural relationship between the 3D line model and the target model; skinning and weighting are applied to the skeleton between the 3D line model and the target model to configure the attachment relationship between the 3D line model and the target model.
[0060] In this embodiment, in order to make the 3D line model move synchronously with the target model, the structural relationship between the two is first established by setting up a skeleton between the 3D line model and the target model. Then, the skeleton is skinned and weighted. Skinning can map the movement of the skeleton to the model. Through skinning, the movement of the skeleton causes the surface of the model to deform. When the skeleton moves, the surface of the model will deform with the movement of the skeleton, achieving a more realistic model effect.
[0061] In addition, weighting bones is a way to change the degree of influence of each bone on the model. By adjusting the weights of different bones, the range and degree of deformation of the model can be controlled. The weights determine the influence of each bone on the model vertices and are numerical values used to indicate the degree of influence of each bone on the model vertices.
[0062] Based on this, by skinning and weighting, the 3D line model can be made into a part of the target model's structure, and the two become dependent on each other. When the target model moves, the 3D line model also moves with the target model, making the modified line effect more dynamic.
[0063] Next, we will explain in detail how to generate target texture maps for 3D line models.
[0064] In one implementation, when obtaining the target texture map set for the 3D line model, the 3D line model is textured and unfolded to obtain the texture coordinates of the 3D line model; based on the texture coordinates, a mask map of the 3D line model is generated; wherein, the mask map is used to indicate the visible and invisible silhouette lines in the 3D line model; the mask map is modified and textured to obtain the target texture map of the 3D line model.
[0065] In this embodiment, the three-dimensional line model is divided into silhouette-visible lines (i.e., silhouette-visible lines) and silhouette-invisible lines (i.e., silhouette-invisible lines) by using a mask map of the three-dimensional line model. The masked area in the mask map can be used to indicate silhouette-visible lines, and the non-masked area can be used to indicate silhouette-invisible lines, and vice versa. The specific method is not limited here.
[0066] In this embodiment, UV unwrapping, or texture unwrapping, is performed on the 3D line model to obtain the UV coordinates corresponding to each vertex in the 3D line model, which are the texture coordinates of the 3D line model. The texture coordinates are used to indicate how to map the information of the pixels in the texture map to the vertices of the 3D line model, so that the 3D line model can obtain texture.
[0067] In one implementation, after obtaining the texture coordinates of the 3D line model, a color map of the 3D line model can also be generated to indicate the color of the 3D line model, that is, the color of the decorative lines of the target model. It should be noted that the color of the 3D line model can also be specified in other ways, such as indicating the color of the 3D line model through the color attribute in the material sphere of the 3D line model, or indicating the color through a color model, etc., which are not limited here.
[0068] In one implementation, when generating a mask texture map of a 3D line model, the 3D line model can be partitioned and the texture coordinates corresponding to the selected visible or invisible silhouette lines can be determined as the mask area or the non-mask area, thereby obtaining a mask texture map of the 3D line model, making the decorative line styles of the target model richer.
[0069] In this embodiment, by applying texture overlay to the mask map, more textured lines can be obtained. For example... Figure 4 The image shown is a rendering result of a target model with decorative lines. The black lines in the image are the decorative lines. Figure 4As can be seen, some of the decorative lines are not completely black, but rather have a combination of solid and void effects. This combination of solid and void effects can be achieved by overlaying decorative textures onto the mask map. In one embodiment, decorative textures can also be generated directly in the mask map to obtain the target texture map of the 3D line model. For example, random noise can be added to the mask map; the specific method is not limited here.
[0070] In one implementation, when modifying and overlaying the mask map to obtain the target texture map of the three-dimensional line model, the mask map is overlaid with a preset noise map to obtain the target texture map of the three-dimensional line model.
[0071] In this embodiment, by overlaying a pre-made noise map onto the mask texture, line textures with specific artistic effects can be obtained. Depending on the desired artistic effect, different noise maps can be pre-made. The noise maps can include noise maps for visible silhouette lines and noise maps for invisible silhouette lines. Specifically, a first material sphere for visible silhouette lines and a second material sphere for invisible silhouette lines can be used to set preset noise maps for visible silhouette lines and preset noise maps for invisible silhouette lines, respectively. This allows different types of lines to obtain different decorative textures, achieving more free and richer decorative line effects.
[0072] Next, we will further explain the rendering method for the model's decorative lines.
[0073] In one implementation, when baking the normals of at least some lines in a 3D line model based on the normals of the target model to obtain the target normal information of the 3D line model, the normal direction of the target model is baked onto the silhouette visible lines in the 3D line model to obtain the first normal information of the 3D line model; the first normal information is baked onto the vertex color of the 3D line model to obtain the target normal information of the 3D line model.
[0074] Understandably, in order to unify the normals of the 3D line model with those of the target model, the normal direction of the target model is baked onto the 3D line model, or onto the visible silhouette lines in the 3D line model, or onto the invisible silhouette lines in the 3D line model. At least some of the baked lines can then obtain a normal direction that is consistent with that of the target model.
[0075] As an example, and not a limitation, Figure 5 This is a schematic diagram showing the before and after baking of the normals of a 3D line model. Figure 5 In the diagram, the thick green lines represent the 3D line model, the thin lines represent the normal direction, and the figure is the target model. Figure 5As can be seen, the normal direction of the upper 3D line model is different from that of the lower 3D line model. The lower 3D line model is a 3D line model after normal baking, and its normal direction is consistent with the target model.
[0076] Next, the first normal information obtained by baking is baked onto the vertex color of the 3D line model. This preserves the normal direction of the target model in the 3D line model, so that the rendered decorative lines also have the normal direction of the target model. This allows pixels outside the view to be culled during rendering, while also saving storage space and improving rendering performance.
[0077] In one implementation, when rendering the target model, the three-dimensional line model is rendered based on the target texture map, target normal information and target material information. Before the target model presents the corresponding line decoration effect, the transparency value of the end vertices of the three-dimensional line model can be set to the minimum value and the transparency value of the non-end vertices can be set to the maximum value.
[0078] In this embodiment, in order to make the thickness of the decorative lines change with the viewing distance of the target model, and to prevent the end of the lines from shifting when the decorative lines are thicker, so as to obtain a more harmonious visual effect, the transparency (alpha) value of the end vertex of the 3D line model is set to the minimum value, that is, 0, and the alpha value of the other vertices is set to the maximum value, that is, 1. This allows the 3D line model to be rendered based on the vertex alpha value of the 3D line model, so as to achieve a more harmonious visual effect.
[0079] In one implementation, when adjusting the material of at least some lines in a 3D line model to obtain target material information of the 3D line model, a first material sphere for visible silhouette lines and / or a second material sphere for invisible silhouette lines are created; for the first material sphere, the first material information for visible silhouette lines is obtained by adjusting the clipping threshold parameter; for the second material sphere, the second material information for invisible silhouette lines is obtained by adjusting the metallicity and base color; and the target material information of the second line model is obtained by combining the first material information and / or the second material information.
[0080] In this embodiment, in order to make the decorative lines of the target model more cartoonish and to make the visible and invisible silhouette lines present different material textures, a first material sphere for the visible silhouette lines and a second material sphere for the invisible silhouette lines are first created. The clipping threshold parameter of the first material sphere is adjusted, such as the ClipThreashald parameter in the game engine Messiah, to obtain the first material information, which includes all the material information of the visible silhouette lines.
[0081] Similarly, the metallicity in the second material sphere can be adjusted to 1, and the base color can be adjusted to the specified color to obtain the second material information. The second material information includes all the material information of the invisible lines of the silhouette. The metallicity can make the invisible lines of the silhouette have a metallic material, presenting a unique comic book feel.
[0082] As an example, and not a limitation, Figure 6 The diagram shown could be a schematic of a first material sphere and a second material sphere. Figure 6 In the middle, the material sphere at the top can be the first material sphere, and the texture on the first material sphere can represent the texture of the visible lines of the silhouette, which has mottled appearance. The material sphere at the bottom can be the second material sphere, and the texture on the second material sphere can represent the texture of the invisible lines of the silhouette, which does not have mottled appearance. The specifics are not limited here.
[0083] In one implementation, when determining the target model and its model outline, the target model is determined; lines are drawn using drawing tools for the areas outside the surface of the target model and / or the model surface to obtain the model outline of the target model.
[0084] In this embodiment, when determining the target model, the target model can be loaded using 3D modeling software or engine. When determining the model outline of the target model, lines can be drawn on the area outside the model surface and / or the model surface using the drawing tools of the 3D modeling software or engine, thereby obtaining the model outline of the target model.
[0085] During the drawing process, you can create layers, then create materials of a specified color, such as black, and then enter drawing mode. By adjusting the brush intensity, you can control the pressure of the lines. The resulting model outline can be stored as line data, but the specific storage method is not limited here.
[0086] Furthermore, when rendering the target model, the steps of rendering the 3D line model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect include: when rendering the target model, adjusting the line thickness of the 3D line model according to the distance between the virtual camera and the target model; wherein, the smaller the distance, the greater the line thickness; and rendering the adjusted 3D line model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect.
[0087] Understandably, during the rendering process, the viewpoint and range of the final rendered image are defined by the virtual camera. The greater the distance between the virtual camera and the target model, the smaller the target model in the final rendered image. To avoid the 3D line model becoming too small and losing its effect of modifying lines when the distance between the virtual camera and the target model is too large, the thickness of the 3D line model is adjusted to be greater when the distance between the virtual camera and the target model is smaller, thereby avoiding the above problem.
[0088] The line thickness corresponding to the distance between the virtual camera and the target model can be determined by a preset calculation formula. The maximum and minimum values of the line thickness can also be defined. When the distance between the virtual camera and the target model is less than the first preset threshold, the line thickness is equal to the maximum value and will not increase further. When the distance between the virtual camera and the target model is greater than the second preset threshold, the line thickness is equal to the minimum value and will not decrease further. The specific values are not limited here.
[0089] For the corresponding method embodiments described above, see [link to relevant documentation]. Figure 7 The diagram illustrates a rendering apparatus for modifying lines in a model. The apparatus includes: a determining module 70 for determining a target model and its outline; a configuring module 72 for setting a three-dimensional line model at at least one outline position on the outline of the target model based on its features, and configuring the attachment relationship between the three-dimensional line model and the target model; an acquiring module 74 for acquiring a target texture map set for the three-dimensional line model, wherein the target texture map indicates the line texture in the three-dimensional line model; a baking module 76 for baking the normals of at least some lines in the three-dimensional line model based on the normals of the target model to obtain target normal information of the three-dimensional line model; an adjusting module 78 for adjusting the material of at least some lines in the three-dimensional line model to obtain target material information of the three-dimensional line model; and a rendering module 80 for rendering the three-dimensional line model based on the target texture map, the target normal information, and the target material information when rendering the target model, so that the target model presents a corresponding line modification effect.
[0090] The rendering device for the model's decorative lines described above can set a three-dimensional line model at the outline position of the model's contour according to the characteristics of the target model, then generate its texture map and material information, and make it have a sense of unity with the target model through normal baking. Finally, the target model with decorative lines is obtained through rendering, making the model's decorative lines more dynamic, reducing the mechanical feel brought by the fully enclosed contour, and achieving a unique visual effect.
[0091] Optionally, the configuration module 72 includes: a determining unit, configured to determine at least one contour position of the model contour based on the model features of the target model; a conversion unit, configured to convert the model contour at the at least one contour position into a three-dimensional model to obtain a three-dimensional line model; and a binding unit, configured to bind the three-dimensional line model to the target model by setting up a skeleton, so as to configure the attachment relationship between the three-dimensional line model and the target model.
[0092] Optionally, the determining unit is specifically used to: determine the position of the model outline where the silhouette is visible as the outline position based on whether the model outline of the target model is visible relative to the silhouette of the target model, and obtain at least one outline position of the model outline.
[0093] Optionally, the binding unit is specifically used to: establish a skeleton between the 3D line model and the target model based on the positional relationship between the 3D line model and the target model, so as to establish a structural relationship between the 3D line model and the target model; and perform skinning and weighting processing on the skeleton between the 3D line model and the target model to configure the attachment relationship between the 3D line model and the target model.
[0094] Optionally, the acquisition module 74 includes: an unfolding unit for unfolding the texture of the three-dimensional line model to obtain the texture coordinates of the three-dimensional line model; a generation unit for generating a mask map of the three-dimensional line model based on the texture coordinates; wherein the mask map is used to indicate the visible and invisible silhouette lines in the three-dimensional line model; and an overlay unit for modifying and overlaying the mask map to obtain the target texture map of the three-dimensional line model.
[0095] Optionally, the above-mentioned overlay unit is specifically used to: overlay the mask map with a preset noise map to obtain the target texture map of the three-dimensional line model.
[0096] Optionally, the baking module 76 is specifically used to: bake the normal direction of the target model to the visible silhouette lines in the three-dimensional line model to obtain the first normal information of the three-dimensional line model; and bake the first normal information to the vertex color of the three-dimensional line model to obtain the target normal information of the three-dimensional line model.
[0097] Optionally, the above device further includes: a setting module, used to set the transparency value of the end vertices of the three-dimensional line model to the minimum value and the transparency value of the non-end vertices to the maximum value.
[0098] Optionally, the aforementioned adjustment module 78 is specifically used to: create a first material sphere for visible silhouette lines and / or a second material sphere for invisible silhouette lines; for the first material sphere, obtain the first material information of the visible silhouette lines by adjusting the clipping threshold parameter; for the second material sphere, obtain the second material information of the invisible silhouette lines by adjusting the metallicity and base color; and combine the first material information and / or the second material information to obtain the target material information of the second line model.
[0099] Optionally, the aforementioned determining module 70 is specifically used for: determining the target model; and drawing lines on the area outside the surface of the target model and / or the model surface using a drawing tool to obtain the model outline of the target model.
[0100] Optionally, the rendering module 80 is specifically used to: when rendering the target model, adjust the thickness of the lines of the three-dimensional line model according to the distance between the virtual camera and the target model; wherein, the smaller the distance, the greater the thickness of the lines; and render the adjusted three-dimensional line model based on the target texture map, the target normal information and the target material information so that the target model presents the corresponding line decoration effect.
[0101] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-described rendering method for model modification lines. This electronic device can be a server or a terminal device.
[0102] See Figure 8 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-described rendering method for model modification lines.
[0103] Furthermore, Figure 8 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0104] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0105] The processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 100 or by instructions in software form. The processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101. The processor 100 reads information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments, for example:
[0106] The process involves: determining the target model and its outline; setting a 3D line model at at least one outline position based on the target model's features, and configuring the attachment relationship between the 3D line model and the target model; obtaining a target texture map for the 3D line model, where the target texture map indicates the line texture in the 3D line model; baking the normals of at least some lines in the 3D line model based on the normals of the target model to obtain the target normal information of the 3D line model; adjusting the material of at least some lines in the 3D line model to obtain the target material information of the 3D line model; and rendering the target model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect.
[0107] In this method, a 3D line model can be set at the outline position of the model according to the characteristics of the target model, and then its texture map and material information can be generated. Normal baking is used to make it have a sense of unity with the target model. Finally, the target model with decorative lines is obtained through rendering, which makes the decorative lines of the model more dynamic, reduces the mechanical feeling brought by the fully enclosed outline, and achieves a unique visual effect.
[0108] Optionally, the step of setting a three-dimensional line model at at least one contour position of the model contour according to the model characteristics of the target model, and configuring the attachment relationship between the three-dimensional line model and the target model includes: determining at least one contour position of the model contour according to the model characteristics of the target model; converting the model contour at at least one contour position into a three-dimensional model to obtain a three-dimensional line model; and binding the three-dimensional line model to the target model for motion by setting up a skeleton, so as to configure the attachment relationship between the three-dimensional line model and the target model.
[0109] Optionally, the step of determining at least one contour position of the model contour based on the model features of the target model includes: determining the position of the model contour where the silhouette is visible as the contour position based on whether the model contour of the target model is visible relative to the silhouette of the target model, thereby obtaining at least one contour position of the model contour.
[0110] Optionally, the step of configuring the attachment relationship between the 3D line model and the target model by setting up a skeleton includes: setting up a skeleton between the 3D line model and the target model according to the positional relationship between the 3D line model and the target model to establish the structural relationship between the 3D line model and the target model; and performing skinning and weighting processing on the skeleton between the 3D line model and the target model to configure the attachment relationship between the 3D line model and the target model.
[0111] Optionally, the step of obtaining the target texture map set for the 3D line model includes: unfolding the texture of the 3D line model to obtain the texture coordinates of the 3D line model; generating a mask map of the 3D line model based on the texture coordinates; wherein the mask map is used to indicate the visible and invisible silhouette lines in the 3D line model; and applying texture overlay to the mask map to obtain the target texture map of the 3D line model.
[0112] Optionally, the step of modifying the mask texture and overlaying it to obtain the target texture texture of the 3D line model includes: overlaying the mask texture with a preset noise texture to obtain the target texture texture of the 3D line model.
[0113] Optionally, the step of baking the normals of at least some lines in the 3D line model based on the normals of the target model to obtain the target normal information of the 3D line model includes: baking the normal direction of the target model to the silhouette visible lines in the 3D line model to obtain the first normal information of the 3D line model; baking the first normal information to the vertex color of the 3D line model to obtain the target normal information of the 3D line model.
[0114] Optionally, before rendering the 3D line model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect, the method further includes: setting the transparency value of the end vertices of the 3D line model to the minimum value and setting the transparency value of the non-end vertices to the maximum value.
[0115] Optionally, the step of adjusting the material of at least some lines in the 3D line model to obtain the target material information of the 3D line model includes: creating a first material sphere for silhouette-visible lines and / or a second material sphere for silhouette-invisible lines; obtaining the first material information of the silhouette-visible lines by adjusting the clipping threshold parameter for the first material sphere; obtaining the second material information of the silhouette-invisible lines by adjusting the metallicity and base color for the second material sphere; and obtaining the target material information of the second line model by combining the first material information and / or the second material information.
[0116] Optionally, the steps of determining the target model and the model outline of the target model include: determining the target model; and drawing lines on the areas outside the surface of the target model and / or the model surface using drawing tools to obtain the model outline of the target model.
[0117] Optionally, when rendering the target model, the step of rendering the 3D line model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect includes: when rendering the target model, adjusting the line thickness of the 3D line model according to the distance between the virtual camera and the target model; wherein, the smaller the distance, the greater the line thickness; and rendering the adjusted 3D line model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect.
[0118] This embodiment also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are called and executed by a processor, they cause the processor to implement the rendering method for the model's decorative lines described above. For example:
[0119] The process involves: determining the target model and its outline; setting a 3D line model at at least one outline position based on the target model's features, and configuring the attachment relationship between the 3D line model and the target model; obtaining a target texture map for the 3D line model, where the target texture map indicates the line texture in the 3D line model; baking the normals of at least some lines in the 3D line model based on the normals of the target model to obtain the target normal information of the 3D line model; adjusting the material of at least some lines in the 3D line model to obtain the target material information of the 3D line model; and rendering the target model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect.
[0120] In this method, a 3D line model can be set at the outline position of the model according to the characteristics of the target model, and then its texture map and material information can be generated. Normal baking is used to make it have a sense of unity with the target model. Finally, the target model with decorative lines is obtained through rendering, which makes the decorative lines of the model more dynamic, reduces the mechanical feeling brought by the fully enclosed outline, and achieves a unique visual effect.
[0121] Optionally, the step of setting a three-dimensional line model at at least one contour position of the model contour according to the model characteristics of the target model, and configuring the attachment relationship between the three-dimensional line model and the target model includes: determining at least one contour position of the model contour according to the model characteristics of the target model; converting the model contour at at least one contour position into a three-dimensional model to obtain a three-dimensional line model; and binding the three-dimensional line model to the target model for motion by setting up a skeleton, so as to configure the attachment relationship between the three-dimensional line model and the target model.
[0122] Optionally, the step of determining at least one contour position of the model contour based on the model features of the target model includes: determining the position of the model contour where the silhouette is visible as the contour position based on whether the model contour of the target model is visible relative to the silhouette of the target model, thereby obtaining at least one contour position of the model contour.
[0123] Optionally, the step of configuring the attachment relationship between the 3D line model and the target model by setting up a skeleton includes: setting up a skeleton between the 3D line model and the target model according to the positional relationship between the 3D line model and the target model to establish the structural relationship between the 3D line model and the target model; and performing skinning and weighting processing on the skeleton between the 3D line model and the target model to configure the attachment relationship between the 3D line model and the target model.
[0124] Optionally, the step of obtaining the target texture map set for the 3D line model includes: unfolding the texture of the 3D line model to obtain the texture coordinates of the 3D line model; generating a mask map of the 3D line model based on the texture coordinates; wherein the mask map is used to indicate the visible and invisible silhouette lines in the 3D line model; and applying texture overlay to the mask map to obtain the target texture map of the 3D line model.
[0125] Optionally, the step of modifying the mask texture and overlaying it to obtain the target texture texture of the 3D line model includes: overlaying the mask texture with a preset noise texture to obtain the target texture texture of the 3D line model.
[0126] Optionally, the step of baking the normals of at least some lines in the 3D line model based on the normals of the target model to obtain the target normal information of the 3D line model includes: baking the normal direction of the target model to the silhouette visible lines in the 3D line model to obtain the first normal information of the 3D line model; baking the first normal information to the vertex color of the 3D line model to obtain the target normal information of the 3D line model.
[0127] Optionally, before rendering the 3D line model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect, the method further includes: setting the transparency value of the end vertices of the 3D line model to the minimum value and setting the transparency value of the non-end vertices to the maximum value.
[0128] Optionally, the step of adjusting the material of at least some lines in the 3D line model to obtain the target material information of the 3D line model includes: creating a first material sphere for silhouette-visible lines and / or a second material sphere for silhouette-invisible lines; obtaining the first material information of the silhouette-visible lines by adjusting the clipping threshold parameter for the first material sphere; obtaining the second material information of the silhouette-invisible lines by adjusting the metallicity and base color for the second material sphere; and obtaining the target material information of the second line model by combining the first material information and / or the second material information.
[0129] Optionally, the steps of determining the target model and the model outline of the target model include: determining the target model; and drawing lines on the areas outside the surface of the target model and / or the model surface using drawing tools to obtain the model outline of the target model.
[0130] Optionally, when rendering the target model, the step of rendering the 3D line model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect includes: when rendering the target model, adjusting the line thickness of the 3D line model according to the distance between the virtual camera and the target model; wherein, the smaller the distance, the greater the line thickness; and rendering the adjusted 3D line model based on the target texture map, target normal information, and target material information to make the target model present the corresponding line decoration effect.
[0131] The computer program product of the rendering method, apparatus, electronic device and storage medium for model modification lines provided in this disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0132] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0133] Furthermore, in the description of the embodiments of this disclosure, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure based on the specific circumstances.
[0134] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0135] In the description of this disclosure, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0136] Finally, it should be noted that the above embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A rendering method for refining lines in a model, characterized in that, The method includes: Determine the target model and its model outline; Based on the model features of the target model, a three-dimensional line model is set at at least one contour position of the model contour, and the attachment relationship between the three-dimensional line model and the target model is configured. Obtain a target texture map set for the three-dimensional line model; wherein the target texture map is used to indicate the line texture in the three-dimensional line model; Based on the normals of the target model, at least some lines in the three-dimensional line model are baked with normals to obtain the target normal information of the three-dimensional line model. At least some of the lines in the three-dimensional line model are adjusted in terms of material to obtain the target material information of the three-dimensional line model; When rendering the target model, the three-dimensional line model is rendered based on the target texture map, the target normal information, and the target material information, so that the target model presents the corresponding line decoration effect.
2. The method according to claim 1, characterized in that, The step of setting a three-dimensional line model at at least one contour position of the model contour according to the model features of the target model, and configuring the attachment relationship between the three-dimensional line model and the target model, includes: Based on the model features of the target model, determine at least one contour position of the model contour; The model contour at at least one contour position is converted into a three-dimensional model to obtain a three-dimensional line model; By constructing a skeleton, the 3D line model is motion-binded to the target model to configure the attachment relationship between the 3D line model and the target model.
3. The method according to claim 2, characterized in that, The step of determining at least one contour position of the model contour based on the model features of the target model includes: Based on whether the model outline of the target model is visible relative to the silhouette of the target model, the position of the model outline where the silhouette is visible is determined as the outline position, and at least one outline position of the model outline is obtained.
4. The method according to claim 2, characterized in that, The step of configuring the attachment relationship between the 3D line model and the target model by setting up a skeleton includes: Based on the positional relationship between the 3D line model and the target model, a skeleton is erected between the 3D line model and the target model to establish the structural relationship between them. Skinning and weighting are applied to the skeleton between the 3D line model and the target model to configure the dependency relationship between them.
5. The method according to claim 1, characterized in that, The step of obtaining the target texture map set for the three-dimensional line model includes: The texture of the three-dimensional line model is unfolded to obtain the texture coordinates of the three-dimensional line model; Based on the texture coordinates, a mask map of the 3D line model is generated; wherein, the mask map is used to indicate the visible and invisible silhouette lines in the 3D line model; The mask texture is modified and overlaid to obtain the target texture map of the three-dimensional line model.
6. The method according to claim 5, characterized in that, The step of modifying and overlaying the mask texture to obtain the target texture map of the 3D line model includes: The mask map is superimposed with a preset noise map to obtain the target texture map of the three-dimensional line model.
7. The method according to claim 1, characterized in that, The step of baking the normals of at least a portion of the lines in the 3D line model based on the normals of the target model to obtain the target normal information of the 3D line model includes: The normal direction of the target model is baked onto the visible silhouette lines in the 3D line model to obtain the first normal information of the 3D line model; The first normal information is baked onto the vertex color of the 3D line model to obtain the target normal information of the 3D line model.
8. The method according to claim 1, characterized in that, Before the step of rendering the 3D line model based on the target texture map, the target normal information, and the target material information to make the target model present the corresponding line decoration effect, the method further includes: Set the transparency value of the end vertices of the 3D line model to the minimum value, and set the transparency value of the non-end vertices to the maximum value.
9. The method according to claim 1, characterized in that, The step of adjusting the material of at least some lines in the three-dimensional line model to obtain the target material information of the three-dimensional line model includes: Create a first material sphere with visible silhouette lines and / or a second material sphere with invisible silhouette lines; For the first material sphere, the first material information of the visible lines of the silhouette is obtained by adjusting the clipping threshold parameter; For the second material sphere, by adjusting the metallicity and base color, the second material information of the invisible lines of the silhouette is obtained; By combining the first material information and / or the second material information, the target material information of the second line model is obtained.
10. The method according to claim 1, characterized in that, The steps of determining the target model and the model outline of the target model include: Define the target model; The model outline of the target model is obtained by drawing lines on the area outside the surface of the target model and / or the surface of the model using drawing tools.
11. The method according to claim 1, characterized in that, The steps of rendering the target model, based on the target texture map, the target normal information, and the target material information, to render the 3D line model so that the target model presents the corresponding line decoration effect, include: When rendering the target model, the thickness of the lines in the 3D line model is adjusted according to the distance between the virtual camera and the target model; wherein, the smaller the distance, the thicker the lines. The adjusted 3D line model is rendered based on the target texture map, the target normal information, and the target material information, so that the target model presents the corresponding line decoration effect.
12. A rendering device for refining lines in a model, characterized in that, The device includes: A determination module is used to determine the target model and the model outline of the target model; A configuration module is used to set a three-dimensional line model at at least one contour position of the model contour according to the model features of the target model, and to configure the attachment relationship between the three-dimensional line model and the target model. An acquisition module is used to acquire a target texture map set for the three-dimensional line model; wherein, the target texture map is used to indicate the line texture in the three-dimensional line model; A baking module is used to bake the normals of at least a portion of the lines in the three-dimensional line model based on the normals of the target model, so as to obtain the target normal information of the three-dimensional line model. An adjustment module is used to adjust the material of at least some of the lines in the three-dimensional line model to obtain the target material information of the three-dimensional line model. The rendering module is used to render the three-dimensional line model based on the target texture map, the target normal information and the target material information when rendering the target model, so that the target model presents the corresponding line decoration effect.
13. An electronic device, characterized in that, The system includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the rendering method for model modification lines as described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the rendering method for model modification lines as described in any one of claims 1-11.