A method and system for optimizing 3D modeling of anime characters for 3D printing
By performing color block segmentation, chromaticity compensation, and confidence constraint optimization on 3D printed anime character models, the color deviation problem was solved, and the visual effect and color consistency of the models were improved.
Patent Information
- Application Number
- CN202510257577.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-03-05
AI Technical Summary
In existing technologies, color deviations in 3D printed anime character models result in visual effects that are not as expected, especially with unnatural color transitions and color distortion at material boundaries.
By constructing a 3D model and dividing it into color blocks, specular features are extracted for chromaticity compensation. Combining the hue differences between adjacent blocks and the color gamut characteristics at material boundaries, color transition loss is determined, and confidence constraints are used to optimize color rendering.
It optimizes the rendering of color deviations in anime character models, improves visual effects, ensures natural and smooth color transitions, and reduces color abrupt changes and distortions.
Smart Images

Figure CN120259533B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of model rendering technology, and more specifically, to a method and system for optimizing 3D modeling of anime characters for 3D printing. Background Technology
[0002] Model rendering plays a crucial 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 anime characters from 2D settings into 3D models, while model rendering is used to optimize visual effects, enabling the 3D model to present realistic materials, lighting, and details in a virtual environment.
[0003] In existing technologies, due to the reflective effects of different 3D printing materials, limitations of printing processes, and differences between model rendering and actual printing results, the final printed anime character models often deviate from the colors in the design, resulting in visual effects that are not as expected. This is especially true for anime character models, where colors are usually vibrant and rich in detail. Unnatural color transitions or poor connections between adjacent color blocks can make the final printed effect appear less refined. In addition, different printing materials also have differences in color presentation, especially at material boundaries, where color distortion often occurs. Therefore, how to optimize the rendering of anime character models to address color deviations has become a challenge for 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 optimize the rendering of color deviations in anime character models.
[0005] In a first aspect, this application provides a method for optimizing 3D modeling of anime characters for 3D printing, comprising the following steps:
[0006] A 3D model of the target anime character is constructed based on the 3D morphological data of the target anime character, and the 3D model of the target anime character is divided into multiple color blocks according to a preset color segmentation threshold.
[0007] The specular features of each color block are extracted from the rendered images of the target anime character from different perspectives. Based on the reflective properties of the printing material in each color block, the specular features of each color block are chromaticity compensated to obtain the chromaticity compensation value of each color block in the real-time rendering process of the 3D model.
[0008] The color transition loss during real-time rendering of the 3D model is determined based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the junction of different printing materials.
[0009] The confidence constraint of each color block is determined by the color transition loss and the chromaticity compensation value of each color block in the real-time rendering process of the 3D model. Based on all the confidence constraints, the color rendering of each color block in the 3D model is optimized.
[0010] Preferably, the 3D model of the target anime character is partitioned according to a preset color segmentation threshold to obtain multiple color blocks, specifically including:
[0011] Obtain the texture information of the target anime character's 3D model and convert the texture information into a color space;
[0012] The color space is segmented according to a preset color segmentation threshold to obtain segmented sub-blocks of different colors, and all segmented sub-blocks are used as color blocks.
[0013] Preferably, extracting the highlight features of each color block from rendered images of the target anime character from different perspectives specifically includes:
[0014] Obtain rendered images of the target anime character from different perspectives;
[0015] Detect highlight regions in different color blocks of each rendered image;
[0016] The highlight areas of the same color blocks in all rendered images are blended to obtain the highlight blended area of each color block;
[0017] Extract the highlight features of each color block from the highlight blending region of each color block.
[0018] Preferably, the chromaticity compensation of the specular features of each color block is performed based on the reflective properties of the printed 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 including:
[0019] Obtain the reflection properties of the printing material in each color block;
[0020] For each color block, the chromaticity deviation caused by light reflection is determined based on the reflectivity and gloss characteristics of the printed material in the color block.
[0021] The chromaticity compensation value of the color block in the real-time rendering process of the 3D model is determined by the chromaticity deviation, and then the chromaticity compensation value of each color block in the real-time rendering process of the 3D model is obtained.
[0022] Preferably, the determination of color transition loss during real-time rendering of the 3D model, based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the boundaries of different printing materials, specifically includes:
[0023] The hue difference between adjacent color blocks is determined based on the Euclidean distance between the hues of adjacent color blocks in the three-dimensional model;
[0024] The color gamut difference between adjacent color blocks is determined based on the color gamut characteristics at the boundary of different printing materials;
[0025] The color difference at the boundary of adjacent color blocks is determined by the hue and gamut differences between adjacent color blocks;
[0026] The color transition loss during real-time rendering of the 3D model is determined based on the color difference at the boundaries of all adjacent color blocks.
[0027] Preferably, determining the confidence constraint of the color of each color block by the color transition loss and the chromaticity compensation value of each color block during the real-time rendering process of the 3D model specifically includes:
[0028] The color constraint amount of each color block is determined based on the chromaticity compensation value of each color block during the real-time rendering process of the 3D model.
[0029] The confidence constraint of the color in each color block is obtained by adjusting the confidence of the color constraint through the color transition loss.
[0030] Preferably, optimizing the color rendering of each color block in the 3D model based on all confidence constraints specifically includes:
[0031] Initialize a color rendering model for optimizing color rendering of 3D models;
[0032] All confidence constraints are used as guiding weight parameters for the color rendering model to render each color block.
[0033] The color rendering model is used to optimize the color rendering of each color block in the 3D model.
[0034] Secondly, this application provides a 3D modeling optimization system for anime characters used in 3D printing, comprising:
[0035] The modeling module is used to construct a 3D model of the target anime character based on the 3D morphological data of the target anime character, and to partition the 3D model of the target anime character into multiple color blocks according to a preset color segmentation threshold.
[0036] The processing module is used to extract the specular features of each color block from the rendered images of the target anime character from different perspectives, and to perform chromaticity compensation on the specular features of each color block according to the reflective properties of the printing material in each color block, so as to obtain the chromaticity compensation value of each color block in the real-time rendering process of the 3D model.
[0037] The processing module is also used to determine the color transition loss during the real-time rendering of the 3D model based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the junction of different printing materials.
[0038] The execution module is used to determine the confidence constraint of each color block's color by using the color transition loss and the chromaticity compensation value of each color block during the real-time rendering process of the 3D model, and to optimize the color rendering of each color block in the 3D model based on all the confidence constraints.
[0039] Thirdly, this application provides a computer device, the computer device including a memory and a processor, the memory storing code, and the processor being configured to acquire the code and execute the above-described method for optimizing 3D modeling of anime characters for 3D printing.
[0040] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for optimizing 3D modeling of anime characters for 3D printing.
[0041] The technical solutions provided by the embodiments disclosed in this application have the following beneficial effects:
[0042] In this embodiment, a 3D model of the target anime character is constructed based on the 3D morphological data of the target anime character. The 3D model is then partitioned according to a preset color segmentation threshold to obtain multiple color blocks. Spectral features of each color block are extracted from rendered images of the target anime character from different perspectives. Chromaticity compensation is performed on the spectral features of each color block based on the reflectivity of the printing material within that color block, resulting in a chromaticity compensation value for each color block during real-time rendering of the 3D model. Color transition loss during real-time rendering of the 3D model is determined based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the boundaries of different printing materials. Confidence constraints for the color of each color block are determined using the color transition loss and the chromaticity compensation value for each color block during real-time rendering of the 3D model. Finally, color rendering optimization is performed on each color block in the 3D model based on all confidence constraints.
[0043] Therefore, this application determines the confidence constraint of the color of the corresponding color block by considering the color transition loss and the chromaticity compensation value of each color block, and then optimizes the color rendering of each color block in the 3D model based on all the confidence constraints. First, by extracting the specular features of each color block from the rendered images of the target anime character from different perspectives, the lighting and reflection characteristics of each color block can be accurately captured, which helps to refine the color information of each block. Second, by performing chromaticity compensation on the specular features of the color block based on the reflection characteristics of the printing material in the color block, the material reflection effect can be better simulated during the rendering process, compensating for the color distortion caused by different materials, and making the rendering result more consistent with the actual printing effect. Then, based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the junction of different printing materials, the color transition during the real-time rendering of the 3D model is determined. By analyzing the hue differences between adjacent blocks and the color gamut characteristics at material boundaries, the color transition areas can be accurately identified and optimized, avoiding abrupt or unnatural transitions and ensuring smoother color connections. This not only improves the visual effect of the printed model but also reduces color deviation, thus ensuring a more natural and smooth transition between color blocks. Finally, by determining the confidence constraint of color block colors through color transition losses and color compensation values of color blocks, the rendering effect of color blocks is optimized through the confidence constraint. By considering the overall color coherence of the anime character and the refinement of local details, the final 3D model not only achieves optimized colors in local areas but also better meets design requirements in overall color performance, avoiding color abrupt changes and distortions during printing. In summary, the proposed solution can achieve rendering optimization of color deviation in anime character models. Attached Figure Description
[0044] Figure 1 This is an exemplary flowchart of a 3D modeling optimization method for anime characters used in 3D printing, according to some embodiments of this application.
[0045] Figure 2 This is a schematic diagram of the structure for specular feature extraction according to some embodiments of this application;
[0046] Figure 3 This is a schematic flowchart illustrating the determination of transition loss according to some embodiments of this application;
[0047] Figure 4 This is a structural schematic diagram of a 3D modeling optimization system for anime characters used in 3D printing, according to some embodiments of this application;
[0048] Figure 5 This is a schematic diagram of the structure of a computer device for implementing a method for optimizing 3D modeling of anime characters for 3D printing, according to some embodiments of this application. Detailed Implementation
[0049] To better understand the technical solution of this application, the technical solution of this application will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] refer to Figure 1 The figure is an exemplary flowchart of a 3D modeling optimization method for anime characters used in 3D printing, according to some embodiments of this application. The 3D modeling optimization method 100 for anime characters used in 3D printing mainly includes the following steps:
[0051] 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 divided into multiple color blocks according to a preset color segmentation threshold.
[0052] 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. It is usually represented by data forms such as point clouds, meshes, and curved surfaces. It contains information such as the shape, structure, size, and relative position of the target anime character's surface. It can be used in applications such as three-dimensional modeling, simulation, and rendering. The appearance of the anime character can be accurately reconstructed through three-dimensional morphological data, and a foundation can be provided for subsequent visual effect optimization and physical property simulation.
[0053] In practice, the construction of a 3D model of the target anime character based on its 3D morphological data can be achieved in the following way: First, the 3D morphological data of the target anime character can be collected, and then 3D modeling software (such as Blender or Maya) can be used to convert the 3D morphological data into an editable 3D mesh. Each polygon represents a small part of the object, thus forming the final 3D model.
[0054] In some embodiments, dividing the 3D model of the target anime character into multiple color blocks according to a preset color segmentation threshold can be achieved using the following steps:
[0055] Obtain the texture information of the target anime character's 3D model and convert the texture information into a color space;
[0056] The color space is segmented according to a preset color segmentation threshold to obtain segmented sub-blocks of different colors, and all segmented sub-blocks are used as color blocks.
[0057] 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; and the color block in this application refers to a continuous area obtained by color segmentation on the surface of the three-dimensional model.
[0058] In specific implementation, obtaining the texture information of the target anime character's 3D model and converting the texture information into a color space can be achieved in the following way: Texture information can be obtained from the target anime character's 3D model. This texture information is usually stored in the model as an image file in the form of a texture map, containing the color information of each point on the surface of the anime character's 3D model. The obtained texture image (i.e., texture information) is then converted from the RGB color space to the HSV color space, where hue (H) is used to distinguish color types, and saturation (S) and brightness (V) are used to optimize the segmentation effect and reduce the influence of lighting. The color space is then segmented according to a preset color segmentation threshold to obtain segmented sub-blocks of different colors, and all segmented sub-blocks are used as color blocks. The following method is used: Different color distinction thresholds are preset based on the hue difference values between different colors. All these thresholds are then combined into a set as color segmentation thresholds. The color space is then classified using these thresholds to obtain the corresponding categories for each color. The Otsu algorithm is used to calculate the maximum inter-class variance for each category to determine the optimal segmentation point between each color. Segmentation is then performed based on all optimal segmentation points to obtain multiple image blocks. Each color-corresponding image block is then used as a segmentation sub-block for that color. Finally, all the segmented sub-blocks are used as color blocks and mapped back to the surface of the 3D model. This ensures that each color block corresponds to a specific part of the model, such as skin, hair, or clothing, thus providing a foundation for subsequent rendering optimization.
[0059] In step 102, the specular features of each color block are extracted from the rendered images of the target anime character from different perspectives. Based on the reflective properties of the printing material in each color block, chromaticity compensation is performed on the specular features of each color block to obtain the chromaticity compensation value of each color block in the real-time rendering process of the 3D model.
[0060] In some embodiments, reference Figure 2 As shown in the figure, this is a schematic diagram of the structure for specular feature extraction in some embodiments of this application. In this embodiment, the specular features of each color block can be extracted from the rendered image of the target anime character from different perspectives using the following steps:
[0061] Obtain rendered images of the target anime character from different perspectives;
[0062] Detect highlight regions in different color blocks of each rendered image;
[0063] The highlight areas of the same color blocks in all rendered images are blended to obtain the highlight blended area of each color block;
[0064] Extract the highlight features of each color block from the highlight blending region of each color block.
[0065] It should be noted that the highlight area in this application refers to the light spot area on the surface of the anime character model caused by direct light; the highlight blending area in this application refers to the highlight area obtained after merging the highlight areas of the same color blocks extracted from different viewpoints; and the highlight feature in this application is an attribute feature that measures the gloss of the surface of the anime character model under different viewpoints.
[0066] In specific implementation, obtaining rendered images of the target anime character from different perspectives can be achieved in the following way: Rasterization rendering, a technique already in use, can be employed to generate rendered images of the anime character model from different perspectives. Detecting the highlight regions of different color blocks in each rendered image can be achieved in the following way: For each rendered image, the Sobel operator can be used to detect highlight regions in the segmented color blocks, identifying the highlight regions in each color block. The V (luminance) component in the HSV color space can be used to set a dynamic threshold for highlight detection to adapt to different lighting conditions. All rendered images... The fusion of highlight regions of the same color block to obtain the highlight fusion region of each color block can be achieved in the following way: the existing mean fusion technology can be used to perform mean fusion of the highlight regions of the same color blocks in all rendered images, and the images of each block obtained by mean fusion can be used as the highlight fusion region of the corresponding color block. Through mean fusion, the highlight information under different viewpoints can be mapped to a unified 3D model surface, thereby ensuring the matching of highlight regions under different viewpoints. The extraction of the highlight features of each color block from the highlight fusion region of each color block can be achieved in the following way: 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 region corresponding to each color block, and the identified morphological features can be used as the highlight features of each color block.
[0067] In some embodiments, the chromaticity compensation of the specular features of each color block based on the reflective properties of the printed material in each color block, to obtain the chromaticity compensation value of each color block in the real-time rendering process of the 3D model, can be achieved by the following steps:
[0068] Obtain the reflection properties of the printing material in each color block;
[0069] For each color block, the chromaticity deviation caused by light reflection is determined based on the reflectivity and gloss characteristics of the printed material in the color block.
[0070] The chromaticity compensation value of the color block in the real-time rendering process of the 3D model is determined by the chromaticity deviation, and then the chromaticity compensation value of each color block in the real-time rendering process of the 3D model is obtained.
[0071] It should be noted that, in this application, the reflectivity is a property index that quantifies the light reflection effect of the printed material surface; the chromaticity deviation is an index that measures the degree of hue distortion of the block color; and the chromaticity compensation value is an index that measures the intensity of chromaticity compensation of the block color during the rendering process.
[0072] In practical implementation, the reflectivity of the printed material in each color block can be obtained in the following way: For each color block, the reflectivity of the printed material in the modeling software's material library can be queried, and the obtained reflectivity can be used as the reflectivity of the printed material in the color block, thus obtaining the reflectivity of the printed material in each color block; the chromaticity deviation caused by light reflection can be determined based on the reflectivity and specular characteristics of the printed material in the color block in the following way: First, the average brightness of the color block can be obtained, and the reflectivity (i.e., reflectivity) of the printed material in the color block can be used as the reflectivity of the printed material in the color block. The product of the characteristic and the average brightness is taken as the target specular intensity. Then, the specular intensity is obtained from the specular features of the color block, and the absolute difference between the specular intensity and the target specular intensity is taken as the chromaticity deviation caused by light reflection. The chromaticity compensation value of the color block in the real-time rendering process of the 3D model can be determined by the following method: the natural exponential function value of the inverse of the chromaticity deviation can be used as the chromaticity compensation value in the real-time rendering process of the 3D model. Finally, the above steps are repeated to obtain the chromaticity compensation value of each color block in the real-time rendering process of the 3D model.
[0073] It should be noted that the color compensation in this application can improve the stability of colors, especially making the transition between reflective surfaces (such as the sheen on hair and clothing) and non-reflective surfaces (such as skin and fabric) more natural.
[0074] In step 103, the color transition loss during the real-time rendering of the 3D model is determined based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the junction of different printing materials.
[0075] In some embodiments, reference Figure 3 As shown in the figure, this is a flowchart illustrating the process of determining transition loss in some embodiments of this application. In this embodiment, the determination of color transition loss during real-time rendering of the 3D model based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the junction of different printing materials can be achieved through the following steps:
[0076] In step 1031, the hue difference between adjacent color blocks is determined based on the Euclidean distance between the hues of adjacent color blocks in the three-dimensional model;
[0077] In step 1032, the color gamut difference between adjacent color blocks is determined based on the color gamut characteristics at the boundary of different printing materials;
[0078] In step 1033, the color difference at the boundary of adjacent color blocks is determined by the hue difference and gamut difference between adjacent color blocks;
[0079] In step 1034, the color transition loss during the real-time rendering of the 3D model is determined based on the color difference at the boundaries of all adjacent color blocks.
[0080] It should be noted that, in this application, hue difference refers to the numerical difference between two colors in the hue dimension; color gamut characteristics refer to the range of color representation on printing materials; color gamut difference refers to the difference in the distribution range of two color regions in the color space; and color transition loss refers to the degree of distortion in color transition caused by the hue difference and material characteristics of adjacent color blocks during the rendering of a 3D model.
[0081] In specific implementation, determining the hue difference between adjacent color blocks based on the Euclidean distance between their hues in the 3D model can be achieved as follows: the Euclidean distance between the hues of two adjacent color blocks can be used as the hue difference between them. Determining the color gamut difference between adjacent color blocks based on the color gamut characteristics at the interface of different printing materials can be achieved as follows: for every two adjacent color blocks, map the color at the interface of the printing materials of the adjacent color blocks to the CIELAB color gamut space, calculate the distribution range of the CIELAB color gamut space, and then use the interval length of this distribution range as... The color gamut difference between adjacent color blocks is obtained, and then the color gamut difference between every two adjacent color blocks is obtained. The color difference at the boundary of adjacent color blocks can be determined by the following method: the product of the natural exponential function values of the inverse of the hue difference and the color gamut difference between adjacent color blocks can be used as the color difference at the boundary of adjacent color blocks. The color transition loss in the real-time rendering of the 3D model can be determined by the following method: the sum of all color differences can be used as the color transition loss in the real-time rendering of the 3D model.
[0082] In step 104, the confidence constraint of each color block is determined by the color transition loss and the chromaticity compensation value of each color block in the real-time rendering process of the 3D model, and the color rendering of each color block in the 3D model is optimized based on all the confidence constraints.
[0083] In some embodiments, determining the confidence constraint of the color of each color block by means of the color transition loss and the chromaticity compensation value of each color block during the real-time rendering process of the 3D model can be achieved by the following steps:
[0084] The color constraint amount of each color block is determined based on the chromaticity compensation value of each color block during the real-time rendering process of the 3D model.
[0085] The confidence constraint of the color in each color block is obtained by adjusting the confidence of the color constraint through the color transition loss.
[0086] It should be noted that the color constraint in this application is a constraint on color compensation of color blocks during the real-time rendering of a 3D model; the color confidence constraint in this application is a quantitative indicator that measures the reliability of the color rendering result of color blocks.
[0087] In specific implementation, determining the color constraint of each color block based on its chroma compensation value during the real-time rendering of the 3D model can be achieved in the following way: First, calculate the average chroma compensation value of all color blocks, and then use the ratio between the chroma compensation value of each color block during the real-time rendering of the 3D model and the average value as the color constraint of each color block. Confidence adjustment of the color constraint of each color block using color transition loss to obtain the confidence constraint of each color block can be achieved in the following way: The reciprocal of the transition loss can be used as a confidence factor, and the product of the confidence factor and the color constraint of each color block can be used as the confidence constraint of the color of each color block.
[0088] In some embodiments, optimizing the color rendering of each color block in the 3D model based on all confidence constraints can be achieved using the following steps:
[0089] Initialize a color rendering model for optimizing color rendering of 3D models;
[0090] All confidence constraints are used as guiding weight parameters for the color rendering model to render each color block.
[0091] The color rendering model is used to optimize the color rendering of each color block in the 3D model.
[0092] It should be noted that the color rendering model is a mathematical model used to simulate the surface color performance of anime thermal models. It 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 that guides and adjusts the degree of color rendering during the color rendering process.
[0093] In specific implementation, initializing a color rendering model for 3D model color rendering optimization can be achieved in the following way: a physically based rendering model (PBR) can be used as the color rendering model in this embodiment, and the initial parameters of the color rendering model are set according to the effect displayed by the target anime character; using all confidence constraints as guiding parameters of the color rendering model can be achieved in the following way: the confidence constraints of all color blocks can be input into the color rendering model as guiding parameters. The confidence constraints reflect the adjustable range of color for each color block. In this solution, the confidence constraints can be used as the weight for color adjustment, which ensures that the rendering effect of color blocks is not affected by color transition loss. The influence of these weights, for example, in optimization-based rendering methods, can be used to construct loss functions (such as L2 loss) to guide the direction of color adjustment. The color rendering optimization of each color block in the 3D model using the color rendering model can be achieved in the following way: the color of each color block is optimized and adjusted 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 order to improve the final rendering effect, this application uses a gradient descent algorithm for iteration during the optimization rendering process, thereby gradually adjusting 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 are not specifically limited here.
[0094] On the other hand, in some embodiments, this application provides a 3D modeling optimization system for anime characters used in 3D printing, with reference to... Figure 4 The figure is a schematic diagram of the structure of a 3D modeling optimization system for anime characters used in 3D printing, according to some embodiments of this application. The 3D modeling optimization system 400 for anime characters used in 3D printing includes: a modeling module 401, a processing module 402, and an execution module 403, which are described below:
[0095] Modeling module 401, in this application, is mainly used to construct a three-dimensional model of the target anime character based on the three-dimensional morphological data of the target anime character, and to partition the three-dimensional model of the target anime character into multiple color blocks according to a preset color segmentation threshold.
[0096] Processing module 402, in this application, is used to extract the specular features of each color block from the rendered images of the target anime character from different perspectives, and to perform chromaticity compensation on the specular features of each color block according to the reflective characteristics of the printing material in each color block, so as to obtain the chromaticity compensation value of each color block in the real-time rendering process of the three-dimensional model.
[0097] In this application, the processing module 402 is also used to determine the color transition loss during the real-time rendering of the three-dimensional model based on the hue difference between adjacent color blocks in the three-dimensional model and the color gamut characteristics at the junction of different printing materials;
[0098] The execution module 403 in this application is mainly used to determine the confidence constraint of the color of each color block through the color transition loss and the chromaticity compensation value of each color block in the real-time rendering process of the three-dimensional model, and to optimize the color rendering of each color block in the three-dimensional model according to all the confidence constraint values.
[0099] In addition, this application also provides a computer device, the computer device including a memory and a processor, the memory storing code, the processor being configured to acquire the code and execute the above-described method for optimizing 3D modeling of anime characters for 3D printing.
[0100] In some embodiments, reference Figure 5 The figure is a schematic diagram of a computer device for implementing a 3D modeling optimization method for anime characters used in 3D printing, according to some embodiments of this application. The 3D modeling optimization method for anime characters used in 3D printing described in the above embodiments can be achieved through... Figure 5 The computer device shown is used to implement this, and the computer device 500 includes at least one processor 501, a communication bus 502, a memory 503, and at least one communication interface 504.
[0101] Processor 501 can be a general-purpose central processing unit (CPU) or an application-specific integrated circuit (ASIC).
[0102] The communication bus 502 can be used to transmit information between the aforementioned components.
[0103] Memory 503 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CDROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disks or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory 503 may exist independently and be connected to processor 501 via communication bus 502. Memory 503 may also be integrated with processor 501.
[0104] The memory 503 stores program code for executing the solution of this application, and its execution is controlled by the processor 501. The processor 501 executes the program code stored in the memory 503. The program code may include one or more software modules. The 3D modeling optimization method for anime characters used in the above embodiments can be implemented by the processor 501 and one or more software modules in the program code in the memory 503.
[0105] Communication interface 504 uses any transceiver-like device to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0106] In a specific implementation, as one example, a computer device may include multiple processors, each of which may be a single-core (single CPU) processor or a multi-core (multi CPU) processor. Here, a processor may refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).
[0107] The aforementioned 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 portable computer, a network server, a handheld digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. This application does not limit the type of computer device.
[0108] In addition, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for optimizing 3D modeling of anime characters for 3D printing.
[0109] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0110] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for optimizing 3D modeling of anime characters for 3D printing, characterized in that, Includes the following steps: A 3D model of the target anime character is constructed based on the 3D morphological data of the target anime character, and the 3D model of the target anime character is divided into multiple color blocks according to a preset color segmentation threshold. The specular features of each color block are extracted from the rendered images of the target anime character from different perspectives. Based on the reflective properties of the printing material in each color block, the specular features of each color block are chromaticity compensated to obtain the chromaticity compensation value of each color block in the real-time rendering process of the 3D model. The color transition loss during real-time rendering of the 3D model is determined based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the junction of different printing materials. The confidence constraint of each color block is determined by the color transition loss and the chromaticity compensation value of each color block in the real-time rendering process of the 3D model. Based on all the confidence constraints, the color rendering of each color block in the 3D model is optimized. Specifically, determining the confidence constraint of the color of each color block by using the color transition loss and the chromaticity compensation value of each color block during the real-time rendering process of the 3D model includes: The color constraint amount of each color block is determined based on the chromaticity compensation value of each color block during the real-time rendering process of the 3D model. The confidence constraint of the color in each color block is obtained by adjusting the confidence of the color constraint through the color transition loss.
2. The method as described in claim 1, characterized in that, The 3D model of the target anime character is divided into multiple color blocks based on a preset color segmentation threshold, specifically including: Obtain the texture information of the target anime character's 3D model and convert the texture information into a color space; The color space is segmented according to a preset color segmentation threshold to obtain segmented sub-blocks of different colors, and all segmented sub-blocks are used as color blocks.
3. The method as described in claim 1, characterized in that, Extracting the highlight features of each color block from rendered images of the target anime character from different perspectives specifically includes: Obtain rendered images of the target anime character from different perspectives; Detect highlight regions in different color blocks of each rendered image; The highlight areas of the same color blocks in all rendered images are blended to obtain the highlight blended area of each color block; Extract the highlight features of each color block from the highlight blending region of each color block.
4. The method as described in claim 1, characterized in that, Chromaticity compensation is performed on the specular features of each color block based on the reflective properties of the printed material in each color block. The chromaticity compensation value for each color block during the real-time rendering of the 3D model specifically includes: Obtain the reflection properties of the printing material in each color block; For each color block, the chromaticity deviation caused by light reflection is determined based on the reflectivity and gloss characteristics of the printed material in the color block. The chromaticity compensation value of the color block in the real-time rendering process of the 3D model is determined by the chromaticity deviation, and then the chromaticity compensation value of each color block in the real-time rendering process of the 3D model is obtained.
5. The method as described in claim 1, characterized in that, Based on the hue differences between adjacent color blocks in the 3D model and the color gamut characteristics at the boundaries of different printing materials, the specific color transition losses during real-time rendering of the 3D model include: The hue difference between adjacent color blocks is determined based on the Euclidean distance between the hues of adjacent color blocks in the three-dimensional model; The color gamut difference between adjacent color blocks is determined based on the color gamut characteristics at the boundary of different printing materials. The color difference at the boundary of adjacent color blocks is determined by the hue and gamut differences between adjacent color blocks; The color transition loss during real-time rendering of the 3D model is determined based on the color difference at the boundaries of all adjacent color blocks.
6. The method as described in claim 1, characterized in that, The color rendering optimization of each color block in the 3D model based on all confidence constraints specifically includes: Initialize a color rendering model for optimizing color rendering of 3D models; All confidence constraints are used as guiding weight parameters for the color rendering model to render each color block. The color rendering model is used to optimize the color rendering of each color block in the 3D model.
7. A 3D modeling optimization system for anime characters used in 3D printing, comprising optimizing 3D modeling of anime characters using the method described in any one of claims 1 to 6, characterized in that, The system includes: The modeling module is used to construct a 3D model of the target anime character based on the 3D morphological data of the target anime character, and to partition the 3D model of the target anime character into multiple color blocks according to a preset color segmentation threshold. The processing module is used to extract the specular features of each color block from the rendered images of the target anime character from different perspectives, and to perform chromaticity compensation on the specular features of each color block according to the reflective properties of the printing material in each color block, so as to obtain the chromaticity compensation value of each color block in the real-time rendering process of the 3D model. The processing module is also used to determine the color transition loss during the real-time rendering of the 3D model based on the hue difference between adjacent color blocks in the 3D model and the color gamut characteristics at the junction of different printing materials. The execution module is used to determine the confidence constraint of each color block's color by using the color transition loss and the chromaticity compensation value of each color block during the real-time rendering process of the 3D model, and to optimize the color rendering of each color block in the 3D model based on all the confidence constraints.
8. A computer device comprising a memory and a processor, the memory storing code, characterized in that, The processor is configured to acquire the code and execute the 3D modeling optimization method for anime characters for 3D printing as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the 3D modeling optimization method for anime characters for 3D printing as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Three-dimensional model rendering method, rendering device, equipment and medium
CN116310056A
Rendering method and device of stylized cloth, storage medium and computer equipment
CN118114420A