Animation character three-dimensional modeling optimization method and system for 3D printing
By performing color partitioning, chroma compensation and transition loss analysis on the three-dimensional model of anime character, the color rendering of the anime character model is optimized, and the problem of color deviation of the anime character model is solved, and the visual effect and color consistency are improved.
Patent Information
- Application Number
- CN202510257577.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-03-05
AI Technical Summary
In the prior art, due to the reflection effect and printing process limitations of different 3D printing materials, color deviations in the cartoon character models are caused, especially color distortion at the material junction, affecting the visual effect.
By constructing a three-dimensional model of the target anime characters and performing color partitioning, the highlight characteristics of each color block are extracted, and chromaticity compensation is performed according to the reflection characteristics of the printing material. Combining the hue difference of adjacent color blocks and the color gamut characteristics at the material junction, the color transition loss of color is determined, and the confidence constraint amount is determined through the color transition loss and chroma compensation value, and the color rendering of the three-dimensional model is optimized.
The rendering optimization of the color deviation of the anime character model is achieved, ensuring natural and smooth color transitions, improving visual effects, reducing color deviations, and ensuring the consistency of overall color performance.
Smart Images

Figure CN120259533A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of model rendering. More specifically, this application relates to a method and system for optimizing 3D modeling of anime characters for 3D printing. Background Art
[0002] Model rendering plays a key role in the 3D modeling of anime characters for 3D printing. It not only affects the modeling quality but also directly determines the final printing effect. 3D modeling is the process of converting an anime character from a 2D setting into a 3D model, while model rendering is used to optimize the visual effect, making the 3D model present realistic materials, lighting, and details in a virtual environment.
[0003] In the prior art, due to the reflection effects of different 3D printing materials, the limitations of the printing process, and the differences between model rendering and the actual printing effect, the final printed anime character model often has a deviation in color from the design, resulting in a visual effect that is not as expected. Especially in anime character models, due to their usually bright colors and rich layers, the boundary transition of colors is not natural or the connection between adjacent color blocks is not smooth, making the final printed effect appear less delicate. In addition, different printing materials also have differences in color presentation, especially at the material junction, where color distortion often occurs. Therefore, how to achieve the rendering optimization of color deviation in anime character models has become a difficult problem faced by the industry. Summary of the Invention
[0004] This application provides a method and system for optimizing 3D modeling of anime characters for 3D printing, which can achieve the rendering optimization of color deviation in anime character models.
[0005] In the first aspect, this application provides a method for optimizing 3D modeling of anime characters for 3D printing, including the following steps: Construct a 3D model of the target anime character according to the 3D morphological data of the target anime character, and partition the 3D model of the target anime character according to a preset color segmentation threshold to obtain multiple color blocks; Extract the highlight features of each color block from the rendering images of different perspectives of the target anime character, and perform chromaticity compensation on the highlight features of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the 3D model; Determine the color transition loss during the real-time rendering of the 3D model according to the hue difference between adjacent color blocks in the 3D model and the gamut characteristics at the junction of different printing materials; Determine the confidence constraint amount of the color of each color block through the transition loss of colors and the chromaticity compensation value of each color block during the real-time rendering of the 3D model, and optimize the color rendering of each color block in the 3D model according to all the confidence constraint amounts.
[0006] Preferably, partitioning the 3D model of the target anime character according to a preset color segmentation threshold to obtain multiple color blocks specifically includes: Obtain the texture information of the 3D model of the target anime character, and convert the texture information into a color space; Perform color segmentation on the color space according to a preset color segmentation threshold to obtain segmentation sub-blocks of different colors, and use all the segmentation sub-blocks as color blocks.
[0007] Preferably, extracting the highlight features of each color block from the rendering images of different perspectives of the target anime character specifically includes: Obtain the rendering images of the target anime character from different perspectives; Detect the highlight areas of different color blocks in each rendering image; Fuse the highlight areas of the same color block in all the rendering images to obtain the highlight fusion area of each color block; Extract the highlight features of each color block from the highlight fusion area of each color block.
[0008] Preferably, performing chromaticity compensation on the highlight features of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the 3D model specifically includes: Obtain the reflection characteristics of the printing material in each color block; For each color block, determine the chromaticity deviation caused by light reflection according to the reflection characteristics of the printing material in the color block and the highlight features; Determine the chromaticity compensation value of the color block during the real-time rendering of the 3D model through the chromaticity deviation, and thus obtain the chromaticity compensation value of each color block during the real-time rendering of the 3D model.
[0009] Preferably, determining the transition loss of colors during the real-time rendering of the 3D model according to the hue difference between adjacent color blocks in the 3D model and the gamut characteristics at the junction of different printing materials specifically includes: Determine the hue difference between adjacent color blocks according to the Euclidean distance of the hues between adjacent color blocks in the 3D model; Determine the gamut difference between adjacent color blocks according to the gamut characteristics at the junction of different printing materials; Determine the color difference at the junction of adjacent color blocks through the hue difference and gamut difference between adjacent color blocks; Determine the color transition loss during the real-time rendering of the 3D model based on the color difference at the junction of all adjacent color blocks.
[0010] Preferably, determining the confidence constraint amount of each color block's color by the color transition loss and the chromaticity compensation value of each color block during the real-time rendering of the 3D model specifically includes: Determine the color constraint amount of each color block according to the chromaticity compensation value of each color block during the real-time rendering of the 3D model; Perform confidence adjustment on the color constraint amount of each color block through the color transition loss to obtain the confidence constraint amount of each color block's color.
[0011] Preferably, optimizing the color rendering of each color block in the 3D model according to all the confidence constraint amounts specifically includes: Initialize a color rendering model for optimizing the color rendering of the 3D model; Take all the confidence constraint amounts as the guiding weight parameters for the color rendering model to perform color rendering on each color block; Optimize the color rendering of each color block in the 3D model through the color rendering model.
[0012] In a second aspect, the present application provides an optimized 3D modeling system for anime characters for 3D printing, including: A modeling module, configured to construct a 3D model of a target anime character according to the 3D morphological data of the target anime character, and partition the 3D model of the target anime character according to a preset color segmentation threshold to obtain a plurality of color blocks; A processing module, configured to extract the highlight features of each color block from the rendering images of different perspectives of the target anime character, and perform chromaticity compensation on the highlight features of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the 3D model; The processing module is further configured to determine the color transition loss during the real-time rendering of the 3D model according to the hue difference between adjacent color blocks in the 3D model and the gamut characteristics at the junction of different printing materials; An execution module, configured to determine the confidence constraint amount of each color block's color through the color transition loss and the chromaticity compensation value of each color block during the real-time rendering of the 3D model, and optimize the color rendering of each color block in the 3D model according to all the confidence constraint amounts.
[0013] In a third aspect, the present application provides a computer device, which includes a memory and a processor. The memory stores code, and the processor is configured to obtain the code and execute the above-mentioned method for optimizing the three-dimensional modeling of anime characters for 3D printing.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned method for optimizing the three-dimensional modeling of anime characters for 3D printing.
[0015] The technical solutions provided by the disclosed embodiments of the present application have the following beneficial effects: In the embodiments of the present application, a three-dimensional model of a target anime character is constructed based on the three-dimensional shape data of the target anime character, and the three-dimensional model of the target anime character is partitioned according to a preset color segmentation threshold to obtain a plurality of color blocks; highlight features of each color block are extracted from the rendered images of different perspectives of the target anime character, and chromaticity compensation is performed on the highlight features of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model; the transition loss of colors during the real-time rendering of the three-dimensional model is determined according to the hue difference between adjacent color blocks in the three-dimensional model and the gamut characteristics at the junction of different printing materials; the confidence constraint amount of the color of each color block is determined through the transition loss of colors and the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model, and color rendering optimization is performed on each color block in the three-dimensional model according to all the confidence constraint amounts.
[0016] It can be seen that in this application, the confidence constraint amount of the color of each color block is determined through the transitional loss of colors and the chromaticity compensation value of each color block, and then the color rendering of each color block in the 3D model is optimized according to all the confidence constraint amounts. First, the highlight features of each color block are extracted from the rendered images of the target anime character from different perspectives, which can accurately capture the lighting and reflection characteristics of each color block, helping to refine the color information of each block. Second, the chromaticity compensation of the highlight features of the color block is performed according to the reflection characteristics of the printing material in the color block, which can better simulate the material reflection effect during the rendering process, make up for the color distortion caused by different materials, and make the rendering result more consistent with the actual printing effect. Then, the transitional loss of colors during the real-time rendering of the 3D model is determined according to the hue difference between adjacent color blocks in the 3D model and the gamut characteristics at the junction of different printing materials. By analyzing the hue difference between adjacent blocks and the gamut characteristics at the material junction, the transitional area of colors can be accurately identified and optimized, avoiding sudden or unnatural transitions, ensuring smoother color connection, which can not only improve the visual effect of the printed model, but also reduce color deviation, thus ensuring a more natural and smooth transition between color blocks. Finally, the confidence constraint amount of the color of the color block is determined through the transitional loss of colors and the chromaticity compensation value of the color block, and then the rendering effect of the color block is optimized under the guidance of the confidence constraint amount. By considering the coherence of the overall color of the anime character and the refinement of local details, the final 3D model not only achieves an optimized effect in terms of the color of the local area, but also can better meet the design requirements in terms of the overall color performance, avoiding color mutations and distortion phenomena during the printing process. In summary, the solution of this application can achieve the rendering optimization of the color deviation of the anime character model. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is an exemplary flowchart of an optimization method for 3D modeling of an anime character for 3D printing according to some embodiments of the present application; Figure 2 is a schematic structural diagram of highlight feature extraction according to some embodiments of the present application; Figure 3 is a schematic flowchart of determining transitional loss according to some embodiments of the present application; Figure 4 is a schematic structural diagram of a 3D modeling optimization system for an anime character for 3D printing according to some embodiments of the present application; Figure 5 is a schematic structural diagram of a computer device for implementing an optimization method for 3D modeling of an anime character for 3D printing according to some embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] To better understand the technical solution of this application, the technical solution of this application will be described in detail below in conjunction with the accompanying drawings of the specification and specific implementation manners.
[0019] Reference Figure 1 , this figure is an exemplary flowchart of an optimized method for three-dimensional modeling of anime characters for 3D printing according to some embodiments of this application. The optimized method 100 for three-dimensional modeling of anime characters for 3D printing mainly includes the following steps: In step 101, a three-dimensional model of the target anime character is constructed based on the three-dimensional morphological data of the target anime character, and the three-dimensional model of the target anime character is partitioned according to a preset color segmentation threshold to obtain a plurality of color blocks.
[0020] It should be noted that the three-dimensional morphological data in this application refers to digital information describing the geometric structure of the target anime character in three-dimensional space, usually represented in data forms such as point clouds, meshes, and surfaces. It contains information such as the shape, structure, size, and relative position of the surface of the target anime character, and can be used in applications such as three-dimensional modeling, simulation, and rendering. Through the three-dimensional morphological data, the appearance of the anime character can be accurately reconstructed, and a basis for subsequent visual effect optimization and physical property simulation can be provided.
[0021] Specifically, constructing a three-dimensional model of the target anime character based on the three-dimensional morphological data of the target anime character can be implemented in the following manner, that is: the three-dimensional morphological data of the target anime character can be collected first, and then a 3D modeling software (such as Blender, Maya) is used to convert the three-dimensional morphological data into an editable three-dimensional mesh. Each face (polygon) represents a small part of the object, constituting the final three-dimensional model.
[0022] In some embodiments, partitioning the three-dimensional model of the target anime character according to a preset color segmentation threshold to obtain a plurality of color blocks can be implemented by the following steps: Obtain the texture information of the three-dimensional model of the target anime character, and convert the texture information into a color space; Perform color segmentation on the color space according to a preset color segmentation threshold to obtain segmentation sub-blocks of different colors, and all the segmentation sub-blocks are used as color blocks.
[0023] It should be noted that the texture information in this application refers to data information that can reflect the surface color of the anime character model; the color space in this application is specifically the HSV color space; the color blocks in this application refer to the coherent regions obtained by color segmentation on the surface of the three-dimensional model.
[0024] In specific implementation, to obtain the texture information of the 3D model of the target anime character and convert the texture information into a color space, the following method can be adopted, that is: the texture information can be obtained from the 3D model of the target anime character. This texture information is usually an image file stored in the model in the form of a texture map, which contains the color information of each point on the surface of the 3D model of the anime character. Then, the obtained texture image (i.e., texture information) is converted from the RGB color space to the HSV color space. Among them, the hue (H) is used to distinguish color types, and the saturation (S) and value (V) are used to optimize the segmentation effect and reduce the influence of light. According to a preset color segmentation threshold, color segmentation is performed on the color space to obtain segmentation sub-blocks of different colors, and all the segmentation sub-blocks are used as color blocks. The following method can be adopted, that is: the discrimination threshold between different colors can be preset according to the hue difference value between different colors, and all the discrimination thresholds are combined into a set as the color segmentation threshold. Then, the set color segmentation threshold is used to classify the color space to obtain the categories corresponding to each color, and the Otsu algorithm is used to calculate the maximum between-class variance of each category to determine the optimal segmentation points between each color. Then, segmentation is performed according to all the optimal segmentation points to obtain multiple image blocks, and the image blocks corresponding to each color are used as the segmentation sub-blocks corresponding to the corresponding color. Finally, all the segmentation sub-blocks obtained by segmentation are used as color blocks and mapped back to the surface of the 3D model, so that each color block corresponds to a specific part on the model, such as the skin, hair or clothing area, thereby providing a basis for subsequent rendering optimization.
[0025] In step 102, the highlight features of each color block are extracted from the rendered images of the target anime character from different perspectives, and chromaticity compensation is performed on the highlight features of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the 3D model.
[0026] In some embodiments, as shown in Figure 2 This figure is a schematic structural diagram of highlight feature extraction in some embodiments of the present application. In this embodiment, the extraction of the highlight features of each color block from the rendered images of the target anime character from different perspectives can be implemented by the following steps: Obtain the rendered images of the target anime character from different perspectives; Detect the highlight areas of different color blocks in each rendered image; Fuse the highlight areas of the same color blocks in all the rendered images to obtain the highlight fusion area of each color block; Extract the highlight features of each color block from the highlight fusion area of each color block.
[0027] It should be noted that the highlight area in this application refers to the spot area generated on the surface of the anime character model due to direct light irradiation; the highlight fusion area in this application refers to the highlight area obtained after merging the highlight areas of the same color blocks extracted from different perspectives; the highlight feature in this application is an attribute feature that measures the glossiness of the surface of the anime character model from different perspectives.
[0028] In specific implementation, obtaining the rendered images of the target anime character from different perspectives can be achieved in the following manner, that is: rasterization rendering (Rasterization) in the prior art can be used to generate the rendered images of the anime character model from different perspectives; detecting the highlight areas of different color blocks in each rendered image can be achieved in the following manner, that is: for each rendered image, the Sobel operator can be used to perform highlight area detection on the segmented color blocks to identify the highlight areas in each color block, where the V (brightness) component in the HSV color space can be used to set the dynamic threshold for highlight detection to adapt to different lighting conditions; fusing the highlight areas of the same color blocks in all rendered images to obtain the highlight fusion area of each color block can be achieved in the following manner, that is: the existing mean fusion technology can be used to perform mean fusion on the highlight areas of the same color blocks in all rendered images, and the image of each block obtained by mean fusion is used as the highlight fusion area of the corresponding color block. Through mean fusion, the highlight information from different perspectives can be mapped to the surface of a unified three-dimensional model, thus ensuring the matching of the highlight area from different perspectives; extracting the highlight feature of each color block from the highlight fusion area of each color block can be achieved in the following manner, that is: the existing ORB (Oriented FAST and Rotated BRIEF) algorithm can be used to identify the morphological features (such as the distribution of highlights, highlight intensity, and area ratio) of the highlight fusion area corresponding to each color block, and the identified morphological features are used as the highlight feature of each color block.
[0029] In some embodiments, performing chromaticity compensation on the highlight feature of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model can be achieved through the following steps: Obtain the reflection characteristics of the printing material in each color block; For each color block, determine the chromaticity deviation caused by light reflection according to the reflection characteristics and highlight features of the printing material in the color block; Determine the chromaticity compensation value of the color block during the real-time rendering of the three-dimensional model through the chromaticity deviation, and further obtain the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model.
[0030] It should be noted that in this application, the reflection characteristic is an attribute index for quantifying the light reflection effect on the surface of the printing material; the chromaticity deviation in this application is an index for measuring the degree of hue distortion of the block color; the chromaticity compensation value in this application is an index for measuring the intensity of chromaticity compensation for the block color during the rendering process.
[0031] When specifically implemented, the reflection characteristics of the printing material in each color block can be obtained in the following manner: for each color block, the reflectivity of the printing material of the color block can be queried in the material library of the modeling software, and the queried reflectivity can be used as the reflection characteristics of the printing material in the color block, thereby obtaining the reflection characteristics of the printing material in each color block; determining the chromaticity deviation caused by light reflection based on the reflection characteristics of the printing material in the color block and the highlight characteristics can be implemented in the following manner: first, the average brightness of the color block can be obtained, and the product of the reflectivity (i.e., reflection characteristics) of the printing material in the color block and the average brightness can be used as the target highlight intensity, then the highlight intensity can be obtained from the highlight characteristics of the color block, and the absolute difference between the highlight intensity and the target highlight intensity can be used as the chromaticity deviation caused by light reflection; determining the chromaticity compensation value of the color block during the real-time rendering of the 3D model through the chromaticity deviation can be implemented in the following manner: the natural exponential function value of the opposite number of the chromaticity deviation can be used as the chromaticity compensation value during the real-time rendering of the 3D model; finally, by repeating the above steps, the chromaticity compensation value of each color block during the real-time rendering of the 3D model can be obtained.
[0032] It should be noted that in this application, chromaticity compensation can improve the color stability, especially making the transition between reflective surfaces (such as the gloss on hair and clothes) and non-reflective surfaces (such as skin and fabric) more natural.
[0033] In step 103, determine the color transition loss during the real-time rendering of the 3D model according to the hue difference between adjacent color blocks in the 3D model and the gamut characteristics at the junction of different printing materials.
[0034] In some embodiments, refer to Figure 3 As shown, this figure is a schematic flowchart of determining the transition loss in some embodiments of this application. In this embodiment, determining the color transition loss during the real-time rendering of the 3D model according to the hue difference between adjacent color blocks in the 3D model and the gamut characteristics at the junction of different printing materials can be implemented by the following steps: In step 1031, determine the hue difference between adjacent color blocks according to the Euclidean distance of the hues between adjacent color blocks in the 3D model; In step 1032, determine the gamut difference between adjacent color blocks according to the gamut characteristics at the junction of different printing materials; In step 1033, the color difference at the junction of adjacent color blocks is determined based on the hue difference and gamut difference between adjacent color blocks. In step 1034, the color transition loss during the real-time rendering of the three-dimensional model is determined based on the color differences at the junctions of all adjacent color blocks.
[0035] It should be noted that the hue difference in this application refers to the numerical gap between two colors in the hue dimension; the gamut characteristic in this application refers to the display range of colors on the printing material; the gamut difference in this application refers to the distribution range difference between two color regions in the color space; the color transition loss in this application refers to the degree of color transition distortion during the rendering of the three-dimensional model due to the hue difference and material characteristics of adjacent color blocks.
[0036] In specific implementation, determining the hue difference between adjacent color blocks based on the Euclidean distance of the hues between adjacent color blocks in the three-dimensional model can be achieved in the following manner, that is: the Euclidean distance of the hues between two adjacent color blocks can be used as the hue difference between the two adjacent color blocks; determining the gamut difference between adjacent color blocks based on the gamut characteristics at the junction of different printing materials can be achieved in the following manner, that is: for each pair of adjacent color blocks, the color at the junction of the printing materials of the adjacent color blocks is mapped to the CIELAB color gamut space, and the distribution range of the CIELAB color gamut space is calculated, and the interval length of this distribution range is used as the gamut difference between the adjacent color blocks, and then the gamut difference between each pair of adjacent color blocks is obtained; determining the color difference at the junction of adjacent color blocks based on the hue difference and gamut difference between adjacent color blocks can be achieved in the following manner, that is: the product between the hue difference between adjacent color blocks and the natural exponential function value of the opposite number of the gamut difference can be used as the color difference at the junction of adjacent color blocks; determining the color transition loss during the real-time rendering of the three-dimensional model based on the color differences at the junctions of all adjacent color blocks can be achieved in the following manner, that is: the sum of all color differences can be used as the color transition loss during the real-time rendering of the three-dimensional model.
[0037] In step 104, the confidence constraint amount of the color of each color block is determined based on the color transition loss and the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model, and the color rendering of each color block in the three-dimensional model is optimized according to all the confidence constraint amounts.
[0038] In some embodiments, determining the confidence constraint amount of the color of each color block based on the color transition loss and the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model can be achieved through the following steps: Determine the color constraint amount of each color block based on the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model; Confidence adjustment is performed on the color constraint amount of each color block through the transition loss of color, and the confidence constraint amount of the color of each color block is obtained.
[0039] It should be noted that the color constraint amount in this application is a constraint amount for color compensation of color blocks during the real-time rendering of a 3D model; the confidence constraint amount of color in this application is a quantitative index for measuring the reliability of the color rendering result of color blocks.
[0040] When specifically implemented, determining the color constraint amount of each color block according to the chromaticity compensation value of each color block during the real-time rendering of a 3D model can be achieved by the following method, that is: first calculate the average value of the chromaticity compensation values of all color blocks, and then use the ratio between the chromaticity compensation value of each color block during the real-time rendering of the 3D model and the average value as the color constraint amount of each color block; confidence adjustment is performed on the color constraint amount of each color block through the transition loss of color, and the confidence constraint amount of the color of each color block can be achieved by the following method, that is: the reciprocal of the transition loss can be used as the confidence factor, and the product of the confidence factor and the color constraint amount of each color block is used as the confidence constraint amount of the color of each color block.
[0041] In some embodiments, optimizing the color rendering of each color block in the 3D model according to all the confidence constraint amounts can be achieved by the following steps: Initialize a color rendering model for optimizing the color rendering of the 3D model; Use all the confidence constraint amounts as the guiding weight parameters for the color rendering model to perform color rendering on each color block; Optimize the color rendering of each color block in the 3D model through the color rendering model.
[0042] It should be noted that the color rendering model is a mathematical model for simulating the color performance on the surface of an anime heat model, which is widely used in computer 3D rendering and visual effects. Its main function is to accurately present the color of the object surface to the end user by considering factors such as lighting, material properties, and viewing angle; the Physically Based Rendering (PBR) model can be used as the color rendering model in this application; it should also be noted that the guiding weight parameter in this application refers to the index parameter for guiding the adjustment of the color rendering degree during the color rendering process.
[0043] In specific implementation, initializing a color rendering model for optimizing the color rendering of a 3D model can be achieved in the following manner, that is: a physically based rendering model (PBR) can be used as the color rendering model in the embodiments of the present application, and the initial parameters of the color rendering model can be set according to the effects shown by the target anime character; implementing all confidence constraint amounts as the guiding parameters of the color rendering model can be achieved in the following manner, that is: the confidence constraint amounts of all color blocks can be input into the color rendering model as guiding parameters. The confidence constraint amount reflects the color adjustable range of each color block. In the solution of the present application, the confidence constraint amount can be used as the weight for color adjustment, so as to ensure that the rendering effect of the color block will not be affected by color transition loss. For example, in the optimized rendering method, these weights can be used to construct a loss function (such as L2 loss) to guide the direction of color adjustment; implementing color rendering optimization for each color block in the 3D model through the color rendering model can be achieved in the following manner, that is: optimizing and adjusting the color of each color block according to the guiding parameters in the color rendering model to meet the requirements of consistency and smooth transition; it should be noted that in the present application, in order to improve the final rendering effect, a gradient descent algorithm is used for iteration during the optimized rendering process to gradually adjust the rendering results of the color blocks until the best effect is achieved. In other embodiments, other optimization algorithms can also be used for iteration, which is not specifically limited here.
[0044] On the other hand, in some embodiments, the present application provides an optimized system for 3D modeling of anime characters for 3D printing, referring to Figure 4 , this figure is a schematic structural diagram of an optimized system for 3D modeling of anime characters for 3D printing according to some embodiments of the present application. The optimized system 400 for 3D modeling of anime characters for 3D printing includes: a modeling module 401, a processing module 402, and an execution module 403, which are described as follows: The modeling module 401, in the present application, the modeling module 401 is mainly used to construct a 3D model of the target anime character according to the 3D morphological data of the target anime character, and partition the 3D model of the target anime character according to a preset color segmentation threshold to obtain multiple color blocks; The processing module 402, in the present application, the processing module 402 is used to extract the highlight features of each color block from the rendering images of different perspectives of the target anime character, and perform chromaticity compensation on the highlight features of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the 3D model; In the present application, the processing module 402 is further used to determine the color transition loss during the real-time rendering of the 3D model according to the hue difference between adjacent color blocks in the 3D model and the gamut characteristics at the junction of different printing materials; Execution module 403. In this application, the execution module 403 is mainly used to determine the confidence constraint amount of each color block's color by the transitional loss of colors and the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model, and optimize the color rendering of each color block in the three-dimensional model according to all the confidence constraint amounts.
[0045] In addition, this application also provides a computer device, which includes a memory and a processor. The memory stores code, and the processor is configured to obtain the code and execute the above-mentioned three-dimensional modeling optimization method for anime characters for 3D printing.
[0046] In some embodiments, refer to Figure 5 , this figure is a schematic structural diagram of a computer device for implementing the three-dimensional modeling optimization method for anime characters for 3D printing according to some embodiments of this application. The above-mentioned three-dimensional modeling optimization method for anime characters for 3D printing can be implemented by Figure 5 the computer device shown. This computer device 500 includes at least one processor 501, a communication bus 502, a memory 503, and at least one communication interface 504.
[0047] The processor 501 can be a general-purpose central processing unit (CPU) or an application-specific integrated circuit (ASIC).
[0048] The communication bus 502 can be used to transmit information between the above components.
[0049] The memory 503 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), or other types of dynamic storage devices that can store information and instructions. It can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CDROM), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 503 can exist independently and be connected to the processor 501 through the communication bus 502. The memory 503 can also be integrated with the processor 501.
[0050] Among them, the memory 503 is used to store the program code for executing the solution of this application and is controlled by the processor 501 for execution. The processor 501 is used to execute the program code stored in the memory 503. The program code can include one or more software modules. The above-described method for optimizing the 3D modeling of anime characters for 3D printing in the above embodiments can be implemented by one or more software modules in the program code in the processor 501 and the memory 503.
[0051] The communication interface 504, using any device such as a transceiver, is used to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0052] In a specific implementation, as an embodiment, the computer device can include multiple processors, and each of these processors can be a single-core (single CPU) processor or a multi-core (multi CPU) processor. Here, the processor can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0053] The above computer device can be a general-purpose computer device or a special-purpose computer device. In specific implementations, the computer device can be a desktop computer, a laptop computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. The embodiments of the present application do not limit the type of the computer device.
[0054] In addition, the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned optimization method for three-dimensional modeling of anime characters for 3D printing is implemented.
[0055] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications falling within the scope of the present application.
[0056] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims
1. A three-dimensional modeling optimization method for anime characters used in 3D printing, characterized in that, Including the following steps: Construct a three-dimensional model of the target anime character according to the three-dimensional shape data of the target anime character, and partition the three-dimensional model of the target anime character according to a preset color segmentation threshold to obtain a plurality of color blocks; Extract the highlight features of each color block from the rendering images of different perspectives of the target anime character, and perform chromaticity compensation on the highlight features of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model; Determine the color transition loss during the real-time rendering of the three-dimensional model according to the hue difference between adjacent color blocks in the three-dimensional model and the gamut characteristics at the junction of different printing materials; Determine the confidence constraint amount of the color of each color block through the color transition loss and the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model, and optimize the color rendering of each color block in the three-dimensional model according to all the confidence constraint amounts.
2. The method according to claim 1, characterized in that, Partitioning the three-dimensional model of the target anime character according to a preset color segmentation threshold to obtain a plurality of color blocks specifically includes: Obtain the texture information of the three-dimensional model of the target anime character, and convert the texture information into a color space; Perform color segmentation on the color space according to a preset color segmentation threshold to obtain segmentation sub-blocks of different colors, and use all the segmentation sub-blocks as color blocks.
3. The method according to claim 1, wherein Extracting the highlight features of each color block from the rendering images of different perspectives of the target anime character specifically includes: Obtain the rendering images of the target anime character from different perspectives; Detect the highlight areas of different color blocks in each rendering image; Fuse the highlight areas of the same color block in all rendering images to obtain the highlight fusion area of each color block; Extract the highlight features of each color block from the highlight fusion area of each color block.
4. The method according to claim 1, characterized in that, Performing chromaticity compensation on the highlight features of each color block according to the reflection characteristics of the printing material in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model specifically includes: Obtain the reflection characteristics of the printing material in each color block; For each color block, determine the chromaticity deviation caused by light reflection according to the reflection characteristics and highlight features of the printing material in the color block; Determine the chromaticity compensation value of the color block during the real-time rendering of the three-dimensional model through the chromaticity deviation, and further obtain the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model.
5. The method according to claim 1, characterized in that, Determining the color transition loss during the real-time rendering of the three-dimensional model according to the hue difference between adjacent color blocks in the three-dimensional model and the gamut characteristics at the junction of different printing materials specifically includes: Determine the hue difference between adjacent color blocks according to the Euclidean distance of the hues between adjacent color blocks in the three-dimensional model; Determine the gamut difference between adjacent color blocks according to the gamut characteristics at the junction of different printing materials; Determine the color difference at the junction of adjacent color blocks through the hue difference and gamut difference between adjacent color blocks; Determine the color transition loss during the real-time rendering of the three-dimensional model according to the color differences at the junctions of all adjacent color blocks.
6. The method according to claim 1, wherein Determining the confidence constraint amount of the color of each color block by means of the transitional loss of colors and the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model specifically includes: Determining the color constraint amount of each color block according to the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model; Performing confidence adjustment on the color constraint amount of each color block through the transitional loss of colors to obtain the confidence constraint amount of the color of each color block.
7. The method according to claim 1, wherein Performing color rendering optimization on each color block in the three-dimensional model according to all the confidence constraint amounts specifically includes: Initializing a color rendering model for the color rendering optimization of the three-dimensional model; Taking all the confidence constraint amounts as the guiding weight parameters for the color rendering of each color block by the color rendering model; Performing color rendering optimization on each color block in the three-dimensional model through the color rendering model.
8. A three-dimensional modeling optimization system for anime characters used in 3D printing, characterized in that, Including: A modeling module, configured to construct a three-dimensional model of a target anime character according to the three-dimensional morphological data of the target anime character, and partition the three-dimensional model of the target anime character according to a preset color segmentation threshold to obtain a plurality of color blocks; A processing module, configured to extract the highlight features of each color block from the rendering images of different perspectives of the target anime character, and perform chromaticity compensation on the highlight features of each color block according to the reflection characteristics of the printing materials in each color block to obtain the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model; The processing module is further configured to determine the transitional loss of colors during the real-time rendering of the three-dimensional model according to the hue difference between adjacent color blocks in the three-dimensional model and the gamut characteristics at the junction of different printing materials; An execution module, configured to determine the confidence constraint amount of the color of each color block by means of the transitional loss of colors and the chromaticity compensation value of each color block during the real-time rendering of the three-dimensional model, and perform color rendering optimization on each color block in the three-dimensional model according to all the confidence constraint amounts.
9. A computer device, the computer device comprising a memory and a processor, the memory storing code, characterized in that, The processor is configured to obtain the code and execute the three-dimensional modeling optimization method for an anime character for 3D printing according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the three-dimensional modeling optimization method for an anime character for 3D printing according to any one of claims 1 to 7.
Citation Information
Patent Citations
Panoramic video image display method and display equipment
CN112367479A
Human body model face partial region modeling method for virtual fitting of mobile terminal
CN112767531A
Three-dimensional model rendering method, rendering device, equipment and medium
CN116310056A
Rendering method and device of stylized cloth, storage medium and computer equipment
CN118114420A
Image processor, image processing method, and program
JP2012054786A