3D object rendering method and device

Through the 3D object rendering method, the user selects the parts and colors to be filled in the color filling interface to generate 3D object rendering results that meet the user's expectations, solving the problem of single color filling in the prior art and improving the rendering effect and efficiency.

CN114565707BActive Publication Date: 2025-08-19SHANGHAI BILIBILI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210213251.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-04
Publication Date
2025-08-19
Estimated Expiration
2042-03-04

AI Technical Summary

Technical Problem

In the prior art, the color filling function is single, resulting in unsatisfactory filling effect and cannot meet the user's rendering needs for 3D objects.

Method used

A 3D object rendering method is provided. The color filling interface is used to obtain the to-filled model of the to-process object, and initial rendering is performed based on the initial material information. The user clicks the control to determine the to-filled part and color to generate the target rendering result.

Benefits of technology

It realizes user-defined color filling, generates personalized 3D object rendering results, meets user expectations, and improves operational freedom and rendering efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114565707B_ABST
    Figure CN114565707B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a 3D object rendering method and apparatus, wherein the 3D object rendering method includes: in response to a color filling instruction submitted for an object to be processed, obtaining a to-be-filled model of the object to be processed, and displaying an initial rendering result generated by rendering the to-be-filled model based on initial material information through a color filling interface, wherein the initial material information includes initial material parameters, initial luminous property parameters, and initial shadow property parameters; based on a user's click operation on a control in the color filling interface, determining a to-be-filled portion and a to-be-filled color of the to-be-filled model, determining material rendering information associated with the to-be-filled color, and rendering processing of the material map of the to-be-filled portion in the initial rendering result based on the material rendering information to generate a target rendering result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more particularly to a 3D object rendering method. One or more embodiments of the present invention also relate to a 3D object rendering apparatus, a computing device, and a computer-readable storage medium. Background Art

[0002] With the continuous development of painting technology, painting has become rich and diverse. It no longer relies on a single display of lines or geometric shapes, but pays more attention to the matching and application of colors. Colors are not only prevalent in human society, but also decorate the world, making life more colorful. They are irreplaceable by any other painting elements. Therefore, with the rapid development of computer technology and artificial intelligence, intelligent painting is becoming more and more popular in society.

[0003] Currently, there are products on the market that offer color-filling capabilities, allowing users to fill images with color. However, these products typically only support color-filling for 2D images. Furthermore, the current color-filling process typically abstracts the borders of a colored painting into a wireframe, labels each enclosed area with a number, and assigns each number a single color. Users then color each area using the color corresponding to the number, ultimately completing the artwork. This method of color-filling is relatively monotonous, resulting in unsatisfactory results. Summary of the Invention

[0004] In view of this, embodiments of the present application provide a 3D object rendering method. One or more embodiments of the present application also relate to a 3D object rendering apparatus, a computing device, and a computer-readable storage medium to address the technical deficiencies of the prior art, such as single color filling and unsatisfactory filling effects.

[0005] According to a first aspect of an embodiment of the present application, a 3D object rendering method is provided, comprising:

[0006] In response to a color filling instruction submitted for an object to be processed, obtaining a model to be filled of the object to be processed, and displaying an initial rendering result generated by rendering the model to be filled based on initial material information through a color filling interface, wherein the initial material information includes initial material parameters, initial luminous property parameters, and initial shadow property parameters;

[0007] Determining a to-be-filled portion and a to-be-filled color of the to-be-filled model based on a user's click operation on a control in the color filling interface;

[0008] Material rendering information associated with the to-be-filled color is determined, and based on the material rendering information, a rendering process is performed on the material map of the to-be-filled portion in the initial rendering result to generate a target rendering result.

[0009] According to a second aspect of an embodiment of the present application, a 3D object rendering apparatus is provided, comprising:

[0010] an acquisition module configured to, in response to a color filling instruction submitted for an object to be processed, acquire a model to be filled of the object to be processed, and display an initial rendering result generated by rendering the model to be filled based on initial material information through a color filling interface, wherein the initial material information includes initial material parameters, initial luminous property parameters, and initial shadow property parameters;

[0011] A determination module is configured to determine a to-be-filled portion and a to-be-filled color of the to-be-filled model based on a user's click operation on a control in the color filling interface;

[0012] The rendering module is configured to determine the material rendering information associated with the color to be filled, and based on the material rendering information, render the material map of the part to be filled in the initial rendering result to generate a target rendering result.

[0013] According to a third aspect of an embodiment of the present application, a computing device is provided, including:

[0014] memory and processor;

[0015] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, wherein the processor implements the steps of the 3D object rendering method when executing the computer-executable instructions.

[0016] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions. When the instructions are executed by a processor, the steps of the 3D object rendering method are implemented.

[0017] An embodiment of the present application implements a 3D object rendering method and device, wherein the 3D object rendering method includes responding to a color filling instruction submitted for an object to be processed, obtaining a to-be-filled model of the object to be processed, and displaying an initial rendering result generated by rendering the to-be-filled model based on initial material information through a color filling interface, wherein the initial material information includes initial material parameters, initial luminous attribute parameters, and initial shadow attribute parameters; based on a user's click operation on a control in the color filling interface, determining a to-be-filled portion and a to-be-filled color of the to-be-filled model, determining material rendering information associated with the to-be-filled color, and rendering processing of the material map of the to-be-filled portion in the initial rendering result based on the material rendering information to generate a target rendering result.

[0018] In an embodiment of the present application, the user determines the fill colors of different parts of the object to be processed by manually clicking the color selection control and the part selection control to customize the fill colors, which is conducive to ensuring the personalization of the object rendering results generated by rendering the fill model according to the target color selected by the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flowchart of a 3D object rendering method provided by one embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of a color filling interface provided by an embodiment of the present application;

[0021] Figure 3 This is a schematic diagram of a 3D object rendering process provided by one embodiment of the present application;

[0022] Figure 4 This is a flowchart of a processing process of a 3D object rendering method provided by one embodiment of the present application;

[0023] Figure 5 This is a schematic structural diagram of a 3D object rendering device provided by one embodiment of the present application;

[0024] Figure 6 This is a structural block diagram of a computing device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present application. Therefore, the present application is not limited to the specific implementations disclosed below.

[0026] The terms used in one or more embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of the present application. The singular forms "a", "the" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.

[0027] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0028] First, the terms involved in one or more embodiments of the present application are explained.

[0029] Model: Models are the basis of visible objects in 3D games. Almost all visible objects are based on models. Models are composed of meshes and materials.

[0030] Texture: The texture of a material. For example, wood versus metal, glass versus hair, can all have noticeably different textures in terms of roughness, glossiness, reflection, transparency, color, grain, and more.

[0031] In this application, a 3D object rendering method is provided. One or more embodiments of this application also relate to a 3D object rendering apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments.

[0032] The 3D object rendering method provided in the embodiment of the present application can be applied to any field that requires rendering of 3D objects, such as rendering of 3D game characters in the gaming field, rendering of 3D dolls, 3D cartoon images or 3D figures in the e-commerce field, etc.; for ease of understanding, the embodiment of the present application uses the application of the 3D object rendering method to rendering 3D game characters in the gaming field as an example for detailed introduction, but is not limited to this.

[0033] In specific implementation, the objects to be processed in the embodiments of the present application can be presented on clients such as large-scale video playback devices, game consoles, desktop computers, smart phones, tablet computers, MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3) players, MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers, e-book readers and other display terminals.

[0034] In practical applications, figures are inherently three-dimensional creations, and 2D technology is completely incapable of capturing their true-to-life effects. Presenting figures in 3D better aligns with users' definitions and expectations of what a figure is. Furthermore, since 2D is simply a flat texture, operational freedom is extremely limited. Furthermore, every time a new image is added to a 2D coloring game, visual effects professionals must layer the images, which is time-consuming.

[0035] Based on this, an embodiment of the present application provides a 3D object rendering method, which displays each object to be processed to the user through a color filling interface, and the user selects the object to be processed to be filled with color. Therefore, when the user selects the object to be processed to send a color filling instruction for the object to be processed, the to-be-processed model (3D model) of the object to be processed can be loaded into the color filling interface in response to the color filling instruction. Based on the user's control click operation on the color filling interface, the to-be-filled part and the to-be-filled color of the to-be-filled model are determined, the rendering information associated with the to-be-filled color is determined, and the material map of the to-be-filled part is rendered based on the rendering information.

[0036] It can be seen that the embodiment of the present application uses 3D effects to present the object to be processed ("figure"), and the displayed effect is more in line with the user's definition of "figure". In addition, the 3D operation method allows users to color the object to be processed from different perspectives, which is more free and enriches the diversity and fun of the gameplay. In addition, during the modeling process of the 3D model, different coloring parts are preset in advance, without the need for additional layering of the object to be processed, which is conducive to improving the processing efficiency of the rendering process, thereby improving the user experience.

[0037] See also Figure 1 , Figure 1 A flowchart of a 3D object rendering method provided according to one embodiment of the present application is shown, comprising the following steps:

[0038] Step 102, in response to the color filling instruction submitted for the object to be processed, obtain the to-be-filled model of the object to be processed, and display the initial rendering result generated by rendering the to-be-filled model based on the initial material information through the color filling interface, wherein the initial material information includes initial material parameters, initial luminous attribute parameters, and initial shadow attribute parameters.

[0039] Specifically, the 3D object rendering method described in the embodiment of the present application is applied to a business processing platform, and the object to be processed can be an uncolored initial product object designed by the business personnel of the business provider according to actual needs. For example, the initial product object can be a game character in the game field, a doll, cartoon image or figure in the e-commerce field, etc.

[0040] After the initial product object design is complete, the service provider can publish it to the relevant business processing platform to provide 3D object rendering services to other users on the business processing platform. Other users on the business processing platform, if they require this service, can use the business processing platform to fill in the color of any initial product object to achieve 3D object rendering. When publishing the initial product object to the business processing platform, each initial product object can carry corresponding identification information.

[0041] In actual applications, the business processing platform can display various initial product objects to users through a color filling interface. If the user has a rendering requirement for a certain target initial product object, the user can send a color filling instruction for the target initial product object by clicking on the target initial product object in the color filling interface.

[0042] After receiving the color filling instruction submitted by the user, the business processing platform can obtain the to-be-filled model of the to-be-filled object, i.e., the 3D model, based on the identification information of the to-be-filled object (the target initial product object) in the color filling instruction, and display the initial rendering result generated by rendering the to-be-filled model based on the initial material information through the color filling interface, wherein the initial material information includes initial material parameters, initial luminous attribute parameters, and initial shadow attribute parameters. When displaying the to-be-filled model of the to-be-filled object to the user, the to-be-filled model can be pre-rendered using the preset initial material information, and the pre-rendering result can be displayed to the user. The user can further perform color filling on the to-be-filled model based on the pre-rendering result to render the to-be-filled object.

[0043] Specifically, a model to be filled of the object to be processed can be constructed through modeling software (3dmx, c4d), and a black and white map of the model to be filled can be attached. Then the model to be filled is imported into the object editor (which can be a game editor), and the material properties of the model to be filled are edited. Specifically, the effect property can be changed to builtin-toon, that is, the initial material parameters of each part to be filled in the model to be filled are set to cartoon materials. For the material maps of different parts to be filled in the model to be filled, they can be set to the ShadeMap1 (shadow map) and Emissive Map (luminous map) properties of the material's target rendering pipeline (Pass1 rendering pipeline), that is, the initial luminous attribute parameters and initial shadow attribute parameters are set for each part to be filled in the model to be filled.

[0044] After receiving the color filling instruction submitted by the user for the object to be processed, the business processing platform can obtain the model to be filled of the object to be processed, render the model to be filled based on the initial material information set for the model to be filled, and display the initial rendering result on the color filling interface.

[0045] The schematic diagram of the color filling interface provided in the embodiment of the present application is as follows Figure 2 shown. Figure 2 In the color filling interface, in addition to displaying the model of the object to be processed, it also displays a color selection control and a part selection control. The color selection control is used to select the color to be filled, and different color selection controls correspond to different colors to be filled. The part selection control is used to select the part to be filled, and different part selection controls correspond to different parts to be filled. The parts to be filled can include hair, tops, pants, shoes, faces, or hands. Users can click the part selection control and color selection control to determine the part to be filled and the corresponding color to be filled.

[0046] Step 104 : determining the part to be filled and the color to be filled of the model to be filled based on the user's click operation on the control of the color filling interface.

[0047] Specifically, since the color filling interface includes color selection controls and part selection controls, the user can determine the part to be filled in the model and the color to be filled corresponding to the part to be filled by clicking different controls in the color filling interface.

[0048] In actual applications, different color selection controls correspond to different to-be-filled colors, and the selectable to-be-filled colors can be solid colors, gradient colors, or texture colors, etc., which can be set according to actual needs and are not limited here.

[0049] In addition, in an embodiment of the present application, the user can first click the color selection control to determine the color to be filled, and then click the part selection control to determine the part to be filled; or first click the part selection control to determine the part to be filled, and then click the color selection control to determine the color to be filled. There is no restriction here.

[0050] In an embodiment of the present application, the user determines the fill colors of different parts of the object to be processed by manually clicking the color selection control and the part selection control to customize the fill colors, which is conducive to ensuring the personalization of the object rendering results generated by rendering the fill model according to the target color selected by the user.

[0051] Step 106 : determining the material rendering information associated with the color to be filled, and performing rendering processing on the material map of the part to be filled in the initial rendering result based on the material rendering information to generate a target rendering result.

[0052] Specifically, when a user click operation on a color selection control in a color filling interface is detected, the color to be filled of the part to be filled in the model to be filled can be determined based on the mapping relationship between each color selection control and the color to be filled, and then the material map of the part to be filled can be rendered based on the material rendering information associated with the color to be filled to generate the target rendering result.

[0053] In a specific implementation, rendering processing is performed on the material map of the part to be filled in the initial rendering result based on the material rendering information, including:

[0054] Determine the initial material information of the material map of the part to be filled;

[0055] The initial material information of the material map is adjusted based on the material rendering information, and the material map of the part to be filled is rendered based on the adjustment result.

[0056] Furthermore, the material rendering information includes luminous color information and shadow color information;

[0057] Accordingly, adjusting the initial material information of the material map based on the material rendering information includes:

[0058] An initial luminous color included in the initial luminous attribute parameters is adjusted based on the luminous color information, and an initial shadow color included in the initial shadow attribute parameters is adjusted based on the shadow color information.

[0059] Specifically, during the construction of the to-be-filled model of the object to be processed, corresponding initial material information is set for each to-be-filled part of the to-be-filled model. This initial material information includes initial luminous attribute parameters and initial shadow attribute parameters. Therefore, the material rendering information associated with the to-be-filled color can include luminous color information and shadow color information.

[0060] After determining the to-be-filled part of the object to be processed and the color to be filled of the to-be-filled part, the initial material information of the to-be-filled part can be determined first, and then the initial material information can be adjusted based on the material rendering information associated with the color to be filled. Specifically, the initial luminous color contained in the initial luminous attribute parameters can be adjusted based on the luminous color information contained in the color to be filled, and the initial shadow color contained in the initial shadow attribute parameters can be adjusted based on the shadow color information contained in the color to be filled; and then the material map of the to-be-filled part can be rendered based on the adjustment result to achieve color filling of the to-be-filled part or color change operation of the to-be-filled part.

[0061] In a specific implementation, when the initial material information of the material map includes light and shadow parameters of the material map, adjusting the initial material information of the material map based on the material rendering information includes: adjusting the light and shadow parameters based on the material rendering information.

[0062] Furthermore, the material rendering information includes light and shadow color information;

[0063] Accordingly, adjusting the light and shadow parameters based on the material rendering information includes:

[0064] The initial light and shadow color information in the light and shadow parameters is adjusted based on the light and shadow color information.

[0065] Specifically, as mentioned above, since corresponding initial material information is set for each to-be-filled part of the to-be-filled model in advance during the process of constructing the to-be-filled model of the object to be processed, and the initial material information contains the light and shadow parameters of the material map of the to-be-filled part, the initial material information of the material map is adjusted based on the material rendering information, specifically, the light and shadow parameters are adjusted based on the material rendering information.

[0066] In the case where the material rendering information includes light and shadow color information, the light and shadow parameters are adjusted based on the material rendering information, specifically, the initial light and shadow color information in the light and shadow parameters is adjusted based on the light and shadow color information.

[0067] The initial light and shadow color information may include initial luminous attribute parameters and initial shadow attribute parameters. Therefore, the light and shadow color information may include luminous color information and shadow color information.

[0068] The initial light and shadow color information in the light and shadow parameters is adjusted based on the light and shadow color information, that is, the initial luminous color included in the initial luminous attribute parameters is adjusted based on the luminous color information, and the initial shadow color included in the initial shadow attribute parameters is adjusted based on the shadow color information.

[0069] In an embodiment of the present application, the user determines the fill colors of different parts of the object to be processed by manually clicking the color selection control and the part selection control to customize the fill colors, which is conducive to ensuring the personalization of the object rendering results generated by rendering the fill model according to the target color selected by the user.

[0070] In actual applications, after the user selects a different area to be filled and fills it with a color, the corresponding filling effect can be displayed to the user. However, to ensure that the user can clearly and accurately observe the filling effect of each area to be filled, different display viewing angles can be set for each area to be filled. When displaying the display effect of a different area to be filled to the user, the display angle corresponding to the area to be filled is switched to display the filling effect. The specific display viewing angle for each area to be filled can be determined according to actual needs and is not limited here.

[0071] In addition, the 3D object rendering method provided in the embodiment of the present application is applied to a business processing platform, and the business processing platform may include an interaction management module, a data forwarding module and an object management module; wherein the interaction management module is used to process the interaction process between the user and the platform, and the data forwarding module is used to forward data between the interaction management module and the object management module; the object management module is used to process the rendering process of the object to be processed.

[0072] In specific implementation, the interactive management module may receive a color filling instruction submitted for the object to be processed; and

[0073] The interaction management module determines the part to be filled and the color to be filled submitted by the user by clicking the control of the color filling interface.

[0074] Furthermore, the interactive management module can send the to-be-processed data corresponding to the to-be-filled part and the to-be-filled color to the data forwarding module;

[0075] Determining whether the data to be processed meets a preset condition by the data forwarding module;

[0076] If so, the data to be processed is sent to the object management module through the data forwarding module.

[0077] Furthermore, the object management module may parse the data to be processed to generate rendering information associated with the color to be filled.

[0078] The schematic diagram of the 3D object rendering process provided in the embodiment of the present application is as follows Figure 3 shown.

[0079] Figure 3 In the color fill interface, the user enters the color fill interface and determines the part and color to be changed through the interactive management module. Specifically, after entering the color fill interface, the user first selects the object to be processed through the color fill interface, that is, submits a color fill instruction for the object to be processed. The business processing platform receives the color fill instruction through the interactive management module, loads the model to be filled for the object to be processed, and displays the model to be filled through the color fill interface. At the same time, the color fill interface also displays color selection controls and part selection controls.

[0080] The user can determine the part to be filled and the color to be filled by clicking the color selection control and the part selection control, and the interactive management module determines the color to be filled corresponding to the color selection control clicked by the user, and the part to be filled corresponding to the part selection control clicked by the user, and then the interactive management module sends the data to be processed corresponding to the part to be filled and the color to be filled to the data forwarding module.

[0081] After receiving the data to be processed, the data forwarding module determines whether the data to be processed meets the preset conditions. If so, the data to be processed is transmitted to the object management module through the data forwarding module. Since the data to be processed is usually sent in the form of a data packet, the preset conditions can be the source address information or destination address information contained in the data packet.

[0082] After receiving the data to be processed, the object management module can parse it, that is, parse the data packet, obtain the luminous color information associated with the color to be filled, and adjust the initial luminous color contained in the initial luminous attribute parameters, and adjust the initial shadow color contained in the initial shadow attribute parameters based on the shadow color information associated with the color to be filled; then render the material map of the part to be filled based on the adjustment result, and display the rendering result (modify the color parameters of the relevant parts of the 3D model, perform front-end rendering after the modification, and display the 3D figure model after the color change).

[0083] An embodiment of the present application provides a 3D object rendering method, which displays various objects to be processed to a user through a color filling interface, and the user selects the object to be processed to be filled with color. Therefore, when the user selects the object to be processed to send a color filling instruction for the object to be processed, the to-be-processed model of the object to be processed can be obtained in response to the color filling instruction, and the initial rendering result generated by rendering the to-be-filled model based on the initial material information is displayed through the color filling interface. Specifically, the initial rendering result of the to-be-filled model (3D model) of the object to be processed is loaded into the color filling interface, and based on the user's control click operation on the color filling interface, the to-be-filled part and the to-be-filled color of the to-be-filled model are determined, the material rendering information associated with the to-be-filled color is determined, and the material map of the to-be-filled part in the initial rendering result is rendered based on the material rendering information to generate a target rendering result.

[0084] It can be seen that the embodiment of the present application uses 3D effects to present the object to be processed ("figure"), and the displayed effect is more in line with the user's definition of "figure". In addition, the 3D operation method allows users to color the object to be processed from different perspectives, which is more free and enriches the diversity and fun of the gameplay. In addition, during the modeling process of the 3D model, different coloring parts are preset in advance, without the need for additional layering of the object to be processed, which is conducive to improving the processing efficiency of the rendering process, thereby improving the user experience.

[0085] See also Figure 4 Taking the application of the 3D object rendering method provided in the embodiment of the present application in rendering a game character in the game field as an example, the 3D object rendering method is further described. Figure 4 A flowchart of a 3D object rendering method according to an embodiment of the present application is shown, which specifically includes the following steps:

[0086] Step 402 : construct a 3D model of the game character object to be filled, and set initial material information of each part to be filled in the 3D model to be filled, wherein the initial material information includes initial material parameters, initial luminous color, and initial shadow color.

[0087] Step 404: Receive a color filling instruction submitted for the game character through the interaction management module.

[0088] Step 406 : In response to the color filling instruction, the 3D model of the game character to be filled is loaded into the color filling interface.

[0089] Step 408: Determine, through the interaction management module, the part to be filled and the color to be filled submitted by the user by clicking the control on the color filling interface.

[0090] In step 410 , the interaction management module sends the data to be processed corresponding to the part to be filled and the color to be filled to the data forwarding module.

[0091] Step 412: The data forwarding module determines whether the data to be processed meets a preset condition.

[0092] If so, execute step 414.

[0093] Step 414: Send the data to be processed to the role management module through the data forwarding module.

[0094] Step 416 : The character management module analyzes the data to be processed and generates rendering information associated with the color to be filled. The rendering information includes luminous color information and shadow color information.

[0095] Step 418: Determine the initial material information of the material map of the portion to be filled. The initial material information includes the luminous attribute parameters and the shadow attribute parameters of the material map.

[0096] Step 420 : adjusting the initial luminous color included in the luminous attribute parameters based on the luminous color information, and adjusting the initial shadow color included in the shadow attribute parameters based on the shadow color information.

[0097] Step 422 : Rendering the material map of the portion to be filled based on the adjustment result to generate a corresponding rendering result.

[0098] It can be seen that the embodiment of the present application uses 3D effects to present the object to be processed ("figure"), and the displayed effect is more in line with the user's definition of "figure". In addition, the 3D operation method allows users to color the object to be processed from different perspectives, which is more free and enriches the diversity and fun of the gameplay. In addition, during the modeling process of the 3D model, different coloring parts are preset in advance, without the need for additional layering of the object to be processed, which is conducive to improving the processing efficiency of the rendering process, thereby improving the user experience.

[0099] Corresponding to the above method embodiment, the present application also provides a 3D object rendering device embodiment, Figure 5 FIG. 1 shows a schematic diagram of a 3D object rendering device provided by an embodiment of the present application. Figure 5 As shown, the device includes:

[0100] An acquisition module 502 is configured to, in response to a color filling instruction submitted for an object to be processed, acquire a model to be filled of the object to be processed, and display an initial rendering result generated by rendering the model to be filled based on initial material information through a color filling interface, wherein the initial material information includes initial material parameters, initial luminous property parameters, and initial shadow property parameters;

[0101] The determination module 504 is configured to determine the to-be-filled portion and the to-be-filled color of the to-be-filled model based on a user's click operation on a control in the color filling interface;

[0102] The rendering module 506 is configured to determine the material rendering information associated with the color to be filled, and based on the material rendering information, render the material map of the part to be filled in the initial rendering result to generate a target rendering result.

[0103] Optionally, the 3D object rendering apparatus further includes a receiving module configured to:

[0104] Receive, through the interaction management module, a color filling instruction submitted for the object to be processed; and

[0105] The interaction management module determines the part to be filled and the color to be filled submitted by the user by clicking the control of the color filling interface.

[0106] Optionally, the 3D object rendering device further includes a judgment module configured to:

[0107] The interactive management module sends the to-be-processed data corresponding to the to-be-filled part and the to-be-filled color to the data forwarding module;

[0108] Determining whether the data to be processed meets a preset condition by the data forwarding module;

[0109] If so, the data to be processed is sent to the object management module through the data forwarding module.

[0110] Optionally, the 3D object rendering apparatus further includes a parsing module configured to:

[0111] The object management module parses the data to be processed to generate material rendering information associated with the color to be filled.

[0112] Optionally, the rendering module 506 is further configured to:

[0113] Determine the initial material information of the material map of the part to be filled;

[0114] The initial material information of the material map is adjusted based on the material rendering information, and the material map of the part to be filled is rendered based on the adjustment result.

[0115] Optionally, the initial material information of the material map includes light and shadow parameters of the material map;

[0116] Accordingly, the rendering module 506 is further configured to:

[0117] The light and shadow parameters are adjusted based on the material rendering information.

[0118] Optionally, the material rendering information includes light and shadow color information;

[0119] Correspondingly, the rendering module 506 is further configured to adjust the initial light and shadow color information in the light and shadow parameters based on the light and shadow color information.

[0120] Optionally, the material rendering information includes luminous color information and shadow color information;

[0121] Accordingly, the rendering module 506 is further configured to:

[0122] An initial luminous color included in the initial luminous attribute parameters is adjusted based on the luminous color information, and an initial shadow color included in the initial shadow attribute parameters is adjusted based on the shadow color information.

[0123] The above is a schematic diagram of a 3D object rendering device according to this embodiment. It should be noted that the technical solution of this 3D object rendering device and the technical solution of the aforementioned 3D object rendering method are based on the same concept. For details not described in detail in the technical solution of the 3D object rendering device, please refer to the description of the technical solution of the aforementioned 3D object rendering method.

[0124] Figure 6 6 shows a block diagram of a computing device 600 according to an embodiment of the present application. Components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and a database 650 is used to store data.

[0125] The computing device 600 also includes an access device 640 that enables the computing device 600 to communicate via one or more networks 660. Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 640 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0126] In one embodiment of the present application, the above components of the computing device 600 and Figure 6 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 6 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.

[0127] The computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 600 may also be a mobile or stationary server.

[0128] The processor 620 is configured to execute the following computer-executable instructions, wherein the processor is configured to execute the computer-executable instructions, wherein the processor implements the steps of the 3D object rendering method when executing the computer-executable instructions.

[0129] The above is a schematic diagram of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the aforementioned 3D object rendering method are based on the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the aforementioned 3D object rendering method.

[0130] An embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, which implement the steps of the 3D object rendering method when executed by a processor.

[0131] The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the aforementioned 3D object rendering method are based on the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the aforementioned 3D object rendering method.

[0132] The foregoing description describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0133] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0134] It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the order of the actions described, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of the present application.

[0135] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0136] The preferred embodiments of the present application disclosed above are intended only to help illustrate the present application. The optional embodiments do not describe all details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of the embodiments of the present application. This application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of the present application, so that those skilled in the art can better understand and utilize the present application. This application is limited only by the claims and their full scope and equivalents.

Claims

1. A 3D object rendering method, characterized in that: include: In response to a color filling instruction submitted for an object to be processed, obtaining a model to be filled of the object to be processed, and displaying an initial rendering result generated by rendering the model to be filled based on initial material information through a color filling interface, wherein the initial material information includes initial material parameters, initial luminous property parameters, and initial shadow property parameters; Determining a to-be-filled portion and a to-be-filled color of the to-be-filled model based on a user's click operation on a control in the color filling interface; Determining material rendering information associated with the color to be filled, and rendering the material map of the part to be filled in the initial rendering result based on the material rendering information to generate a target rendering result; wherein the material rendering information includes luminous color information and shadow color information; The step of rendering the material map of the portion to be filled in the initial rendering result based on the material rendering information includes: Determine the initial material information of the material map of the part to be filled; The initial material information of the material map is adjusted based on the material rendering information, and the material map of the part to be filled is rendered based on the adjustment result.

2. The 3D object rendering method according to claim 1, characterized in that: Also includes: receiving, through the interaction management module, a color filling instruction submitted for the object to be processed; as well as, The interaction management module determines the part to be filled and the color to be filled submitted by the user by clicking the control of the color filling interface.

3. The 3D object rendering method according to claim 2, wherein: Also includes: The interactive management module sends the to-be-processed data corresponding to the to-be-filled part and the to-be-filled color to the data forwarding module; Determining whether the data to be processed meets a preset condition by the data forwarding module; If so, the data to be processed is sent to the object management module through the data forwarding module.

4. The 3D object rendering method according to claim 3, characterized in that: Also includes: The object management module parses the data to be processed to generate material rendering information associated with the color to be filled.

5. The 3D object rendering method according to claim 1, characterized in that: The initial material information of the material map Contains the light and shadow parameters of the material map; Accordingly, adjusting the initial material information of the material map based on the material rendering information includes: The light and shadow parameters are adjusted based on the material rendering information.

6. The 3D object rendering method according to claim 5, characterized in that: The material rendering information includes light and shadow color information; Accordingly, adjusting the light and shadow parameters based on the material rendering information includes: The initial light and shadow color information in the light and shadow parameters is adjusted based on the light and shadow color information.

7. The 3D object rendering method according to claim 1, characterized in that: The material rendering information includes luminous color information and shadow color information; Accordingly, adjusting the initial material information of the material map based on the material rendering information includes: An initial luminous color included in the initial luminous attribute parameters is adjusted based on the luminous color information, and an initial shadow color included in the initial shadow attribute parameters is adjusted based on the shadow color information.

8. A 3D object rendering device, characterized in that: include: an acquisition module configured to, in response to a color filling instruction submitted for an object to be processed, acquire a model to be filled of the object to be processed, and display an initial rendering result generated by rendering the model to be filled based on initial material information through a color filling interface, wherein the initial material information includes initial material parameters, initial luminous property parameters, and initial shadow property parameters; A determination module is configured to determine a to-be-filled portion and a to-be-filled color of the to-be-filled model based on a user's click operation on a control in the color filling interface; a rendering module configured to determine material rendering information associated with the color to be filled, and render the material map of the part to be filled in the initial rendering result based on the material rendering information to generate a target rendering result; wherein the material rendering information includes luminous color information and shadow color information; Wherein, the rendering module is further used for: Determine the initial material information of the material map of the part to be filled; The initial material information of the material map is adjusted based on the material rendering information, and the material map of the part to be filled is rendered based on the adjustment result.

9. A computing device, characterized in that include: memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, wherein the processor implements the steps of the 3D object rendering method according to any one of claims 1 to 7 when executing the computer-executable instructions.

10. A computer-readable storage medium, characterized in that It stores computer instructions, which, when executed by a processor, implement the steps of the 3D object rendering method according to any one of claims 1 to 7.

11. A computer program product comprising computer instructions, characterized in that: When the computer instruction is executed by a processor, the steps of the 3D object rendering method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Virtual model processing method and device and electronic device

    CN112619154A

  • Virtual character image processing method and device, equipment and storage medium

    CN112657195A