Rendering method, component, device, electronic device and storage medium

By constructing an art resource rendering component, obtaining and correcting the rendering parameters and selection set of the virtual model, and achieving layered rendering, the problems of low rendering efficiency and high error rate of art resources are solved, and the stability and efficiency of rendering are improved.

CN116612220BActive Publication Date: 2026-11-20NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310475903.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2026-11-20
Estimated Expiration
2043-04-26

AI Technical Summary

Technical Problem

Existing technologies suffer from low rendering efficiency of art resources, high error rates, and frequent program anomalies.

Method used

By constructing an art resource rendering component, the virtual model to be rendered and its rendering parameters, including the output directory and output parameters, are obtained. In response to the correction instruction of the resource selection set, a standard selection set is obtained and compared to obtain the corrected target selection set. Then, layered rendering is performed according to the output parameters to ensure the accuracy and compatibility of the selection set.

Benefits of technology

It improves the stability and efficiency of art resource rendering, reduces the error rate in the program rendering process, and is compatible with the resource requirements of different versions of software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116612220B_ABST
    Figure CN116612220B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a rendering method, component, device, electronic equipment and storage medium, which are applied to the technical field of image data processing, and the method comprises: acquiring art resources corresponding to a virtual model to be rendered and rendering parameters for the art resources, the rendering parameters at least comprising an output directory and an output parameter, and the art resources comprising at least one resource selection set corresponding to the virtual model; in response to a correction instruction for the resource selection set, acquiring a standard selection set for the resource selection set, comparing the standard selection set with the resource selection set, and obtaining a target selection set after correction; in response to a layered rendering instruction for the art resources, performing resource rendering on the target selection set one by one according to the output parameter, and outputting first rendering resources corresponding to each target selection set in the output directory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image data processing technology, and in particular to a rendering method for art resources, a rendering component for art resources, a rendering device for art resources, an electronic device, and a computer-readable storage medium. Background Technology

[0002] With the increasing demand for and sophistication of art asset rendering sequences, the efficiency and manpower costs of manually rendering art assets are unpredictable. Therefore, during the art asset rendering process, image processing software is used to render the art assets, ensuring a consistent development environment across models, animations, and special effects. However, the rendering process still suffers from low efficiency, error rates, and program glitches. Summary of the Invention

[0003] The present invention provides a method, component, device, electronic device, and computer-readable storage medium for rendering art resources, in order to solve or partially solve the problems of low rendering efficiency, error rate, and program abnormalities in the rendering process of art resources.

[0004] This invention discloses a rendering method for art resources, including: Obtain the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least the output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. In response to a correction instruction for the resource selection set, a standard selection set for the resource selection set is obtained, and the standard selection set is compared with the resource selection set to obtain a corrected target selection set; In response to the layered rendering instruction for the art resources, the target selection set is rendered one by one according to the output parameters, and the first rendering resource corresponding to each target selection set is output in the output directory.

[0005] This invention discloses a rendering component for art resources, which includes at least a configuration module, a selection set correction module, and a rendering control module; wherein, The configuration module is used to obtain the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least the output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. The selection set correction module is used to respond to a correction instruction for the resource selection set, obtain a standard selection set for the resource selection set, compare the standard selection set with the resource selection set, and obtain a corrected target selection set. The rendering control module is used to respond to the layered rendering instructions for the art resources, render the resources of the target selection set one by one according to the output parameters, and output the first rendering resources corresponding to each target selection set in the output directory.

[0006] This invention also discloses a rendering apparatus for art resources, comprising: The data acquisition module is used to acquire the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least an output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. The dataset comparison module is used to, in response to a correction instruction for the resource selection set, obtain a standard selection set for the resource selection set, compare the standard selection set with the resource selection set, and obtain a corrected target selection set; The resource rendering module is used to respond to the layered rendering instructions for the art resources, render the target selection sets one by one according to the output parameters, and output the first rendering resources corresponding to each target selection set in the output directory.

[0007] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.

[0008] This invention also discloses a computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.

[0009] The embodiments of the present invention have the following advantages: In this embodiment of the invention, during the rendering of art resources, the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources are obtained. The rendering parameters include at least an output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. Then, in response to the correction instruction for the resource selection set, a standard selection set for the resource selection set is obtained, and the standard selection set is compared with the resource selection set to obtain the corrected target selection set. By correcting the data of the selection set to be rendered using the standard selection set, not only can the accuracy of the selection set be guaranteed, but it can also be compatible with the resource requirements of different versions of software. Then, in response to the layered rendering instruction for the art resources, the target selection set is rendered one by one according to the output parameters. The first rendering resource corresponding to each target selection set is output in the output directory. By performing layered processing of the art resources to achieve the rendering of the selection set one by one, the stability of the art resource rendering is guaranteed, the error rate in the program rendering process is reduced, and the rendering efficiency of the art resources can also be improved based on the layered and ordered resource rendering method. Attached Figure Description

[0010] Figure 1 This is a flowchart of the steps of a rendering method for art resources provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the rendering component provided in an embodiment of the present invention; Figure 3 This is a structural block diagram of a rendering device for art resources provided in an embodiment of the present invention; Figure 4 This is a block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0011] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0012] To enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the relevant technical features are explained and described below: Camera direction: The "camera" viewport displays the view from the camera, looking in the direction of its target.

[0013] Command Selection Sets: The Named Selection Set dialog box, accessible from the Edit menu and toolbar, is a modeless dialog box that allows you to create named selection sets directly from the viewport or select objects to add to (or delete from) a selection set. This dialog box also allows you to organize the current named selection set, browse its members, delete or create a new set, or identify which named selection set a specific object belongs to.

[0014] TCP: TCP files are the most commonly used resource format in projects using the Wind Soul engine. It's a lossy compression format. Simply put, a TCP file is a run-length encoded file that quantizes one or more sets of RGBA (Red, Green, Blue, and Alpha color space) data. TCP is an image compression format used in some games, clustering the colors of an image into a 256-color palette (each color is represented by 16-bit color (R5G6B5)), and then storing the corresponding metric for each pixel in the palette. Compared to JPEG image compression, TCP compression is lower, resulting in poorer image quality. However, TCP format images are decoded faster, improving the rendering efficiency of art assets.

[0015] As an example, in 3D computer graphics software (such as 3DS Max), the corresponding parameters are set according to the built-in renderer settings to render art assets. However, this process has at least the following drawbacks: 1) The output TCP and TGA (Tagged Graphics) format resources are mixed together. When submitting the resource check, the resources need to be submitted separately. Therefore, the reorganization involves a relatively repetitive process, which increases the error rate.

[0016] 2) The resource images output by the image software may be enlarged or reduced in size. This is because the code is mixed with other projects and shares a common rendering mechanism. In this transition, due to deviations in parameter settings, there is a very small probability of an unknown and irresistible abnormal error.

[0017] 3) During plugin transitions, the MaxScript rollout handler malfunctions. Without modifying the code, it cannot be effectively handled, increasing the difficulty of problem-solving.

[0018] 4) When using older versions of the plugin, if the output path is not reselected and set, the rendering process may freeze or crash, and there may be runtime abnormalities caused by incompatibility between the old and new versions.

[0019] 5) Animation output in 4 and 8 directions is easy to get messy, and there may be overlapping of output actions.

[0020] One of the core inventive points of this invention is to construct a corresponding art resource rendering component to solve or partially solve the problems existing in the aforementioned related technologies. During the rendering process of art resources, this rendering component acquires the art resources corresponding to the virtual model to be rendered, as well as the rendering parameters for the art resources. The rendering parameters include at least an output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. Then, in response to a correction instruction for the resource selection set, a standard selection set for the resource selection set is acquired, and the standard selection set is compared with the resource selection set to obtain a corrected target selection set. By correcting the data of the selection set to be rendered using the standard selection set, not only can the accuracy of the selection set be guaranteed, but it can also be compatible with the resource requirements of different versions of software. Then, in response to a layered rendering instruction for the art resources, the target selection sets are rendered one by one according to the output parameters. The first rendering resource corresponding to each target selection set is output in the output directory. By performing layered processing of the art resources to achieve the rendering of each selection set, the stability of the art resource rendering is guaranteed, the error rate during the program rendering process is reduced, and the rendering efficiency of the art resources can also be improved based on the layered and ordered resource rendering method.

[0021] Reference Figure 1 The diagram illustrates a flowchart of a rendering method for art resources provided in an embodiment of the present invention, which may specifically include the following steps: Step 101: Obtain the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least the output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. In this embodiment of the invention, the rendering method for art resources can be implemented through a corresponding rendering component. This rendering component can be applied to 3D computer graphics software. During the operation of the 3D computer graphics software, the rendering component is loaded, and the overall rendering, layered rendering, and specified rendering of the art resources to be rendered are achieved through the rendering component. Optionally, the rendering component can be a plugin, script, etc., running in the 3D computer graphics software. The rendering component can simplify the rendering process of art resources and improve the rendering efficiency of art resources.

[0022] In the specific implementation, the user can input corresponding commands in the rendering component, and the rendering component can obtain the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources based on the user input commands. The rendering parameters include at least the output directory and output parameters, and the art resources include at least one resource selection set corresponding to the virtual model.

[0023] The virtual model can be an art model to be rendered, such as a character model, scene model, or item model from a game. Art resources can be image files, animation files, special effects files, etc., corresponding to the virtual model, and can be presented as a "selection set." Rendering parameters can include a set of parameters for rendering the art resources, and the output directory can be the file directory where the rendered art resources are stored. Optionally, the resource selection set can be a corresponding resource file, such as a .max file, material file, or texture file; this invention does not impose any limitations on this. In one example, assuming the selection set is a .max file, the .max file can be named according to the corresponding naming rules, including project identifier, development requirement identifier, action identifier, and frame count. The project identifier can be used to represent the project name corresponding to the art and programming development, the development requirement identifier can be used to represent the project development requirements, the action identifier can be used to represent the corresponding action (including idle action, walk, run, attack, magic attack, death, etc.), and the frame count can be represented as the total length (the number corresponds to which frame). Therefore, the filename of a .max file can be "[Project Identifier][Development Requirement Identifier]_[Action Identifier]_0_Frame Count", for example, 3927LittleMonkey_stand_0_11, etc. This invention does not limit this.

[0024] In one optional embodiment, for acquiring art resources, the rendering component can, in response to a directory addition instruction, determine the file directory corresponding to the instruction and retrieve the art resources corresponding to the virtual model to be rendered from the file directory. This allows for batch addition of art resources by adding the corresponding file directory within the rendering component, simplifying the rendering process. Furthermore, when rendering a single resource file is required, the rendering component can also, in response to a file addition instruction, retrieve the art resources corresponding to the virtual model to be rendered. It should be noted that art resources added via a file directory can include at least one resource file; art resources added directly can correspond to a single resource file. This allows users to flexibly choose the method of adding art resources according to their actual needs, enabling flexibility in resource addition through the rendering component. Optionally, the resource file can be a file corresponding to 3D computer graphics software, such as a .max file, and this invention does not limit this.

[0025] Step 102: In response to the correction instruction for the resource selection set, obtain the standard selection set for the resource selection set, and compare the standard selection set with the resource selection set to obtain the corrected target selection set; After selecting the art assets to be rendered, the artists' processing of these assets may lead to inconsistent rendering effects. Before officially rendering the art assets, the assets to be rendered (i.e., the resource selection set) can be corrected to ensure accuracy and compatibility with different software versions. In the implementation, the rendering component responds to correction commands for the resource selection set, obtains a standard selection set for that set, and then compares it with the resource selection set to obtain the corrected target selection set. The standard selection set can be pre-defined resource files, including standardized .max files, material files, and texture files.

[0026] In the specific implementation, the comparison process between selection sets can be achieved by obtaining the target geometry identifier and target material information corresponding to the resource selection set, and the standard geometry identifier and standard material information corresponding to the standard selection set. Then, the target geometry identifier and standard geometry identifier are compared to represent the target material information and standard material information of the same geometry. If the target material information differs from the standard material information, the target material information is corrected to achieve the same material effect based on the standard material information. This process continues until all resource selection sets are corrected, resulting in the corrected target selection set. The geometry identifier can be used to represent the identifier corresponding to an independent geometry in the virtual model. A virtual model can include several geometry elements, and the material information can correspond to textures, etc. Therefore, a virtual model can be composed of several geometry elements with corresponding textures attached.

[0027] During the correction of selection sets, a selection set can correspond to a resource file, and a resource file can correspond to a geometry and its corresponding model texture. For the same geometry identifier, the target material information corresponding to the model texture in the resource selection set can be compared with the standard material information corresponding to the model texture in the standard selection set to determine if they are the same. If they are different, the locally existing target material information can be loaded and corrected to the material information that corresponds to the material performance effect of the standard material information. In this way, the selection set to be rendered can be corrected by using the standard selection set. This not only ensures the accuracy of the selection set, but also makes it compatible with the resource requirements of different versions of software.

[0028] Step 103: In response to the layered rendering instruction for the art resources, render the resources of each target selection set according to the output parameters, and output the first rendering resources corresponding to each target selection set in the output directory.

[0029] After the selection set is corrected, the rendering component can render resources for each target selection set according to the layered rendering instructions input by the user and the output parameters set by the user. The first rendering resource corresponding to each target selection set is output in the output directory. By selecting one or more selection sets to be rendered for resource rendering, the resource is rendered one by one, which ensures the stability of art resource rendering, reduces the error rate in the program rendering process, and improves the rendering efficiency of art resources based on batch resource rendering.

[0030] It should be noted that regarding the relationship between art assets and selection sets, an art asset can include at least one selection set. For example, assuming the art asset is the resource corresponding to a virtual character model, it can be divided into multiple different selection sets according to the corresponding division rules. This includes dividing the virtual character model's body, body clothing, additional clothing, and accessories into different selection sets. After division, it can be "Art Asset = Selection Set 00 corresponding to the body + Selection Set 01 corresponding to the body clothing + Selection Set 02 corresponding to the additional clothing + Selection Set addon corresponding to the accessories". After completing the correction of these selection sets, the layered rendering command can render 00, 01, 02, and addon one by one, and then obtain the rendering resources corresponding to the body, body clothing, additional clothing, and accessories respectively. Thus, by selecting one or more selection sets to be rendered, the resources can be rendered one by one, ensuring the stability of art asset rendering, reducing the error rate in the program rendering process, and improving the rendering efficiency of art assets based on batch resource rendering.

[0031] Optionally, the layering of art assets can be done manually or by setting corresponding layering rules. Taking manual layering as an example, artists can divide virtual character models into different selection sets, such as the main body, the main body's clothing, additional clothing, and accessories, so that they can be rendered in layers.

[0032] In practical implementation, output parameters can include the rendering direction and rendering size for the art asset. The rendering direction represents the direction in which the virtual model can move; for example, direction 1 represents movement in a single direction, direction 2 represents movement in two directions, direction 4 represents movement in four directions (forward, backward, left, right, east, west, south, north, etc.), and direction 8 represents movement in eight directions (east, west, south, north, and corresponding diagonals, etc.). The rendering size can be the displayed size of the art asset after rendering, including width and height, for example, 320. 320, 500 500, 800 800 and 1000 1000, etc. After determining the corresponding output parameters, the rendering component can respond to the layered rendering instructions for art resources, and render each target selection set one by one using the rendering direction. In the output directory, the first rendering resource corresponding to each target selection set is output according to the rendering size. Thus, by selecting one or more selection sets to be rendered, the resources are rendered one by one, which ensures the stability of art resource rendering, reduces the error rate in the program rendering process, and improves the rendering efficiency of art resources based on batch resource rendering. In addition, based on the set output parameters, it can ensure that the rendered resources maintain a fixed display size, and at the same time reduce the situation of action overlap after resource rendering.

[0033] In one optional embodiment, the rendering component can respond to layered rendering instructions for art assets, render resources for each target selection set one by one according to output parameters, and output the first rendered resource in TGA or TCP format corresponding to each target selection set in the output directory. This allows for specifying the corresponding output format and outputting the corresponding rendered resource during the rendering process of art assets, thereby improving rendering efficiency. Furthermore, when resource file format conversion is required, the rendering component can also respond to format conversion instructions for the first rendered resource, converting the TGA format first rendered resource to a TCP format first rendered resource, or vice versa. This file format conversion effectively solves the problem of inconsistent format resources and further reduces the error rate in the rendering process.

[0034] Furthermore, during the rendering of art assets using the rendering component, the component can also respond to render the assets one by one for each target selection set, displaying the rendering progress corresponding to the target selection set. By displaying the corresponding rendering progress, artists can easily view the current rendering progress of the assets, allowing them to flexibly adjust the rendering process and improving the ease of operation for rendering art assets.

[0035] In the above process, resource rendering is achieved by rendering art resources in layers. In addition, art resources can also be rendered by overall rendering or specified rendering. Specifically, the rendering component can respond to the overall rendering command for art resources, perform resource rendering on the target art resources displayed in the rendering interface according to the output parameters, and output the second rendering resource corresponding to the target art resources in the output directory. Here, the target art resources are the whole art resources or the selected part. Alternatively, the rendering component can respond to the single rendering command for any target selection set, determine the selected target selection set, perform resource rendering on the selected target selection set according to the output parameters, and output the third rendering resource corresponding to the selected target selection set in the output directory.

[0036] In one example, assuming the art assets include resources corresponding to a virtual character model, the art assets can be divided into multiple different selection sets according to the corresponding partitioning rules. This includes dividing the virtual character model's body, body clothing, additional clothing, and accessories into different selection sets. After partitioning, it can be expressed as: "Art Assets = Selection Set 00 for Body + Selection Set 01 for Body Clothing + Selection Set 02 for Additional Clothing + Selection Set addon for Accessories". When the rendering interface displays the character model's body, body clothing, additional clothing, and accessories, the virtual character can be directly rendered using a holistic rendering method. The character model outputs the rendering result corresponding to the virtual character model. Through layered rendering, the main body, local clothing, additional clothing, and accessories can be rendered separately, and the rendering results corresponding to the main body, main body clothing, additional clothing, and accessories of the character model can be output separately. When a single rendering is specified, one of the main body, main body clothing, additional clothing, and accessories of the character model can be rendered and the corresponding rendering result can be output. Thus, by providing different rendering methods such as overall rendering, layered rendering, and specified rendering in the rendering component, the rendering methods of art resources are enriched, which greatly meets the different rendering needs of art resources.

[0037] In this embodiment of the invention, during the rendering of art resources, the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources are obtained. The rendering parameters include at least an output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. Then, in response to the correction instruction for the resource selection set, a standard selection set for the resource selection set is obtained, and the standard selection set is compared with the resource selection set to obtain the corrected target selection set. By correcting the data of the selection set to be rendered using the standard selection set, not only can the accuracy of the selection set be guaranteed, but it can also be compatible with the resource requirements of different versions of software. Then, in response to the layered rendering instruction for the art resources, the target selection set is rendered one by one according to the output parameters. The first rendering resource corresponding to each target selection set is output in the output directory. By performing layered processing of the art resources to achieve the rendering of the selection set one by one, the stability of the art resource rendering is guaranteed, the error rate in the program rendering process is reduced, and the rendering efficiency of the art resources can also be improved based on the layered and ordered resource rendering method.

[0038] To enable those skilled in the art to better understand the technical solutions of the embodiments of the present invention, an example is provided below for illustration: For rendering art assets, 3D computer graphics software can be used, and corresponding rendering components can be customized within the software to achieve the rendering of the art assets. Each rendering component includes at least a configuration module, a selection set correction module, and a rendering control module. The configuration module is used to obtain the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least the output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. The selection set correction module is used to respond to a correction instruction for the resource selection set, obtain a standard selection set for the resource selection set, compare the standard selection set with the resource selection set, and obtain a corrected target selection set. The rendering control module is used to respond to the layered rendering instructions for the art resources, render the resources of the target selection set one by one according to the output parameters, and output the first rendering resources corresponding to each target selection set in the output directory.

[0039] In one alternative embodiment, the selection set correction module is specifically used for: Obtain the target geometry identifier and target material information corresponding to the resource selection set, and the standard geometry identifier and standard material information corresponding to the standard selection set; The target material information and standard material information, which represent the same geometry as the target geometry identifier and the standard geometry identifier, are compared. If the target material information is different from the standard material information, the target material information is corrected to material information with the same material performance effect based on the standard material information. The corrected target selection set is obtained after the resource selection set is completely corrected.

[0040] In one optional embodiment, the rendering component includes a layered rendering control, and the output parameters include at least the rendering direction and rendering size for the virtual model; wherein, The rendering control module is used to respond to the layered rendering instruction for the layered rendering control, render resources for each target selection set according to the output parameters, and output the first rendering resources corresponding to each target selection set in the output directory.

[0041] In one alternative embodiment, the rendering direction includes at least one of 1 direction, 2 directions, 4 directions, and 8 directions, and the rendering size includes at least a width size and a height size.

[0042] In one alternative embodiment, the target selection set includes a max file; wherein, The rendering control module is specifically used to respond to the layered rendering instructions for the layered rendering control, render resources for each target selection set according to the output parameters, and output the first rendering resources in TGA format or TCP format corresponding to each target selection set in the output directory.

[0043] In one optional embodiment, the rendering component further includes a format conversion module; wherein, The format conversion module is configured to, in response to a format conversion instruction for the first rendering resource, convert the first rendering resource in TGA format to a first rendering resource in TCP format, or convert the first rendering resource in TCP format to a first rendering resource in TGA format.

[0044] In one optional embodiment, the configuration module includes at least a directory addition control; wherein, The directory addition control is used to respond to a directory addition instruction, determine the file directory corresponding to the directory addition instruction, and obtain the art resources corresponding to the virtual model to be rendered from the file directory.

[0045] In one optional embodiment, the configuration module includes at least a file addition control; wherein, The file addition control is used to retrieve the art resources corresponding to the virtual model to be rendered in response to a file addition command.

[0046] In one optional embodiment, the rendering component further includes at least one rendering direction control, each of the rendering direction controls corresponding to a rendering direction; wherein... The configuration module is used to obtain the rendering direction for the art resource in response to the selection instruction for the rendering direction control.

[0047] In one optional embodiment, the rendering component further includes a height control and a width control; wherein, The configuration module is configured to obtain height information for the art resource in response to an input command for the height control; and to obtain width information for the art resource in response to an input command for the width control.

[0048] In one alternative embodiment, the rendering component further includes at least one size control; wherein, The configuration module is configured to, in response to a selection instruction for the size control, determine a target size control and use the preset rendering size corresponding to the target size control as the rendering size for the art resource.

[0049] In one optional embodiment, the rendering component further includes a directory input control; wherein, The configuration module is used to determine the output directory for the art resources in response to the operation command for the directory input control.

[0050] In one alternative embodiment, the rendering component further includes a progress bar; wherein, The rendering component is configured to respond to rendering resources for each of the target selection sets one by one, and to display the rendering progress corresponding to the target selection set in the progress bar.

[0051] In one optional embodiment, the rendering control module further includes an overall rendering control; wherein, The rendering control module is also used to respond to the overall rendering instruction for the overall rendering control, perform resource rendering on the target art resource displayed in the rendering interface according to the output parameters, and output the second rendering resource corresponding to the target art resource in the output directory; The target art resource refers to the entirety of the art resource or a selected portion thereof.

[0052] In one optional embodiment, the rendering component further includes a selection set rendering module, which at least includes a selection set display area, a region to be rendered, and a selection set rendering control; wherein... The selection set rendering module is configured to display a target selection set corresponding to the art resource in the selection set display area, display the selected target selection set in the to-be-rendered area in response to a single rendering instruction for any of the target selection sets, perform resource rendering on the selected target selection set according to an output parameter in response to a single rendering instruction for the selection set rendering control, and output a third rendering resource corresponding to the selected target selection set in an output directory.

[0053] In an optional embodiment, the rendering component is applied to 3D computer graphics software.

[0054] In specific implementation, for the rendering component, the involved modules may be virtual modules built into the component, and the involved controls may be visual components for human-computer interaction. In the process of rendering art resources, a user may add corresponding resources, set corresponding rendering parameters through the corresponding visual components, and trigger operations such as modifying, deleting, and rendering the art resources based on the visual components. The rendering component may invoke the corresponding modules to implement the corresponding functions based on the user's operations on the visual components.

[0055] Wherein, for layered rendering, the corresponding blocking logic may be: Blocking logic: MAX file naming rule: [Serial number][Name]_[Action name]_0_Frame count For example: 3927MonkeyLittleSun_stand_0_11 Note: There can only be one underscore "_" in all parts before "stand" Selection set output rule

[0056] addon(accessory) part_00(block 00) part_01(block 01) ..... Part_0X Wherein, 0X is the outermost resource ---TGA, TCP output rules--- For resource output in TGA format: Overall output

[0057] tga / [Number] / [Action Name] / [Number].[Output Format] tga / 3927 / addon / 01 / attack_addon / 0000.tga accessories tga / 3927 / attack / 0000.tga body Block output

[0058] —tga / [Number] / [Action Name] / [Block] / [Number].[Output Format] tga / 3927 / addon / 01 / attack_addon / 0000.tga accessories tga / 3927 / 00 / attack_00 / 0000.tga block 00 tga / 3927 / 01 / attack_01 / 0000.tga block 01 ...segmentation... tga / 3927 / attack / 0000.tga body For TCP format resource output: Overall output

[0059] tcp / [Number] / [Action Name] / [Number].[Output Format] tcp / 3927 / addon / 01 / attack.tcp trinket tcp / 3927 / attack.tcp body Block output

[0060] —tcp / [number] / [action name] / [block] / [number].[output format] TCP / 3927 / addon / 01 / attack.tcp TCP / 3927 / 00 / attack.tcp block 00 TCP / 3927 / 01 / attack.tcp block 01 ...segmentation... TCP / 3927 / attack.tcp body In one example, refer to Figure 2 This diagram illustrates a rendering component provided in an embodiment of the present invention. The rendering component may include a rendering direction control 210, a width component 220, a height component 230, a size component 240, a directory input control 250, a directory addition control 260, a file addition control 270, an overall rendering component 280, a layered rendering component 290, and a selection set rendering component 2100, etc. The rendering direction control 210 includes several sub-controls, each of which can be associated with a corresponding rendering direction (such as direction 1, direction 2, direction 4, and direction 8, etc.). The width control 220 and the height control 230 can be used to set the display height of the rendered art resources, for example, setting the width and height to 500. Each size control 240 corresponds to a fixed display size. For the target input control 250, when the user selects the directory input control 250, the output directory of the art resources can be set, and the output directory will be displayed in the rendering component. For the directory addition control 260, users can add resource files from the corresponding file directory as art resources to be rendered. For the file addition control 270, users can select the corresponding resource file as the art resource to be rendered. At the same time, the resource file selected by the user can be displayed in the output file list 2110 corresponding to the rendering component. Then, the overall rendering component 280 can be used to render the content displayed in the rendering interface (i.e., the content corresponding to the output file list 2110) as a whole and output the overall rendering result. Alternatively, the layered rendering component 290 can be used to render the content displayed in the rendering interface layer by layer according to the corresponding layering method and output the rendering result corresponding to each layer.

[0061] In addition, after the user has finished modifying the selected art resources, they can select the selection set to be rendered (select the corresponding resource file) in the first display area 2120 and display it in the second display area 2130. Then, the selected selection set is triggered to render by the selection set rendering control 2100. During the rendering process, the rendering component can display the real-time progress through the corresponding progress bar 2140 so that the user can understand the current rendering progress of the art resources.

[0062] Furthermore, for the rendering component, it can add corresponding project identifiers, clear the output file list using a clear control, and convert resource file formats using a format conversion control. By configuring the corresponding rendering component and rendering art resources based on it, the rendering process can involve obtaining the art resources corresponding to the virtual model to be rendered, as well as the rendering parameters for those art resources. The rendering parameters include at least the output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. Then, in response to a correction instruction for the resource selection set, a standard selection set for the resource selection set is obtained, and the standard selection set is compared with the resource selection set to obtain the corrected result. The target selection set corrects the data of the selection set to be rendered using a standard selection set. This not only ensures the accuracy of the selection set but also ensures compatibility with the resource requirements of different software versions. Then, in response to rendering instructions for art resources, it can render resources one by one according to the output parameters, or render the entire set, or render a specified selection set. The rendered resources corresponding to the art resources are output in the output directory, realizing the diversification of art resource rendering methods. This not only ensures the stability of art resource rendering and reduces the error rate in the program rendering process, but also improves the rendering efficiency of art resources based on layered and ordered resource rendering. Moreover, it can be applied to different rendering scenarios, improving the flexibility of art resource rendering.

[0063] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0064] Reference Figure 3 The diagram illustrates a structural block diagram of a rendering device for art resources provided in an embodiment of the present invention, which may specifically include the following modules: The data acquisition module 301 is used to acquire the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least an output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. The dataset comparison module 302 is configured to, in response to a correction instruction for the resource selection set, obtain a standard selection set for the resource selection set, and compare the standard selection set with the resource selection set to obtain a corrected target selection set; The resource rendering module 303 is used to respond to the layered rendering instruction for the art resources, render the target selection set one by one according to the output parameters, and output the first rendering resources corresponding to each target selection set in the output directory.

[0065] In one alternative embodiment, the dataset comparison module 302 is specifically used for: Obtain the target geometry identifier and target material information corresponding to the resource selection set, and the standard geometry identifier and standard material information corresponding to the standard selection set; The target material information and standard material information, which represent the same geometry as the target geometry identifier and the standard geometry identifier, are compared. If the target material information is different from the standard material information, the target material information is corrected to material information with the same material performance effect based on the standard material information. The corrected target selection set is obtained after the resource selection set is completely corrected.

[0066] In one optional embodiment, the output parameters include at least the rendering direction and rendering size for the virtual model, and the resource rendering module 303 is specifically used for: In response to the layered rendering instruction for the art resources, the target selection set is rendered one by one using the rendering direction, and the first rendering resources corresponding to each target selection set are output in the output directory according to the rendering size.

[0067] In one alternative embodiment, the rendering direction includes at least one of 1 direction, 2 directions, 4 directions, and 8 directions, and the rendering size includes at least a width size and a height size.

[0068] In one optional embodiment, the resource rendering module 303 is specifically used for: In response to the layered rendering instruction for the art resources, the resources of each target selection set are rendered one by one according to the output parameters, and the first rendering resource in TGA format corresponding to each target selection set is output in the output directory.

[0069] In one alternative embodiment, it further includes: In response to a format conversion instruction for the first rendering resource, the first rendering resource in TGA format is converted to a first rendering resource in TCP format, or the first rendering resource in TCP format is converted to a first rendering resource in TGA format.

[0070] In one optional embodiment, the data acquisition module 301 is specifically used for: In response to receiving a directory addition instruction, the system determines the file directory corresponding to the directory addition instruction and retrieves the art resources corresponding to the virtual model to be rendered from the file directory. In response to receiving a parameter configuration instruction, the rendering parameters for the art resource are determined according to the parameter configuration instruction.

[0071] In one alternative embodiment, it further includes: The progress display module is used to display the rendering progress corresponding to the target selection set in response to the resource rendering of the target selection set one by one.

[0072] In one alternative embodiment, it further includes: The overall rendering module is used to respond to the overall rendering command for the art resource, render the target art resource displayed in the rendering interface according to the output parameters, and output the second rendering resource corresponding to the target art resource in the output directory. The target art resource refers to the entirety of the art resource or a selected portion thereof.

[0073] In one alternative embodiment, it further includes: A single rendering module is configured to, in response to a single rendering instruction for any of the target selection sets, determine a selected target selection set, render resources for the selected target selection set according to the output parameters, and output a third rendering resource corresponding to the selected target selection set in the output directory.

[0074] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0075] In addition, this invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described art resource rendering method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0076] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the above-described art resource rendering method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0077] Figure 4 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0078] The electronic device 400 includes, but is not limited to, components such as: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and a power supply 411. Those skilled in the art will understand that the electronic device structure involved in the embodiments of the present invention does not constitute a limitation on the electronic device. An electronic device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. In the embodiments of the present invention, the electronic device includes, but is not limited to, mobile phones, tablet computers, laptop computers, PDAs, in-vehicle terminals, wearable devices, and pedometers.

[0079] It should be understood that, in this embodiment of the invention, the radio frequency unit 401 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink data from the base station and processes it with the processor 410; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 401 can also communicate with networks and other devices through a wireless communication system.

[0080] The electronic device provides users with wireless broadband internet access through the network module 402, such as helping users send and receive emails, browse web pages, and access streaming media.

[0081] The audio output unit 403 can convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into audio signals and output them as sound. Furthermore, the audio output unit 403 can also provide audio output related to specific functions performed by the electronic device 400 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, and a receiver, etc.

[0082] Input unit 404 is used to receive audio or video signals. Input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042. The GPU 4041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on display unit 406. The image frames processed by GPU 4041 can be stored in memory 409 (or other storage media) or transmitted via radio frequency unit 401 or network module 402. Microphone 4042 can receive sound and process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via radio frequency unit 401 in telephone call mode.

[0083] The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 4061 according to the ambient light level, and the proximity sensor can turn off the display panel 4061 and / or backlight when the electronic device 400 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used to identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The sensor 405 may also include a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here.

[0084] The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0085] User input unit 407 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of electronic devices. Specifically, user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 4071). Touch panel 4071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 410, which receives and executes commands from the processor 410. In addition, touch panel 4071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 4071, user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.

[0086] Furthermore, the touch panel 4071 can cover the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it transmits the information to the processor 410 to determine the type of touch event. Subsequently, the processor 410 provides corresponding visual output on the display panel 4061 according to the type of touch event. It is understood that in one embodiment, the touch panel 4071 and the display panel 4061 are implemented as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated to realize the input and output functions of the electronic device. The specific implementation is not limited here.

[0087] Interface unit 408 serves as an interface for connecting external devices to electronic device 400. For example, external devices may include a wired or wireless headphone port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 408 can be used to receive input from external devices (e.g., data, power, etc.) and transmit the received input to one or more components within electronic device 400, or it can be used to transmit data between electronic device 400 and external devices.

[0088] The memory 409 can be used to store software programs and various data. The memory 409 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 409 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0089] The processor 410 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 409, and by calling data stored in the memory 409, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 410.

[0090] The electronic device 400 may also include a power supply 411 (such as a battery) that supplies power to various components. Preferably, the power supply 411 can be logically connected to the processor 410 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.

[0091] In addition, the electronic device 400 includes some functional modules not shown, which will not be described in detail here.

[0092] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0093] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0094] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.

[0095] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0096] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0097] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0098] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0099] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0100] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0101] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for rendering art resources, characterized in that, include: Obtain the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least the output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. In response to a correction instruction for the resource selection set, a standard selection set for the resource selection set is obtained, and the standard selection set is compared with the resource selection set to obtain a corrected target selection set; In response to the layered rendering instruction for the art resources, the target selection set is rendered one by one according to the output parameters, and the first rendering resource corresponding to each target selection set is output in the output directory; The step of comparing the standard selection set with the resource selection set to obtain the modified target selection set includes: Obtain the target geometry identifier and target material information corresponding to the resource selection set, and the standard geometry identifier and standard material information corresponding to the standard selection set; The target material information and standard material information, which represent the same geometry as the target geometry identifier and the standard geometry identifier, are compared. If the target material information is different from the standard material information, the target material information is corrected to material information with the same material performance effect based on the standard material information. The corrected target selection set is obtained after the resource selection set is completely corrected.

2. The method according to claim 1, characterized in that, The output parameters include at least the rendering direction and rendering size for the virtual model. In response to the layered rendering instruction for the art resources, the resource rendering is performed on each of the target selection sets according to the output parameters, and the first rendering resource corresponding to each target selection set is output to the output directory, including: In response to the layered rendering instruction for the art resources, the target selection set is rendered one by one using the rendering direction, and the first rendering resources corresponding to each target selection set are output in the output directory according to the rendering size.

3. The method according to claim 2, characterized in that, The rendering direction includes at least one of 1 direction, 2 directions, 4 directions, and 8 directions, and the rendering size includes at least the width and height dimensions.

4. The method according to claim 1, characterized in that, The step of responding to the layered rendering instruction for the art resources, rendering the resources for each target selection set according to the output parameters, and outputting the first rendering resources corresponding to each target selection set in the output directory includes: In response to the layered rendering instruction for the art resources, the target selection set is rendered one by one according to the output parameters, and the first rendered resource in TGA format or TCP format corresponding to each target selection set is output in the output directory.

5. The method according to claim 4, characterized in that, Also includes: In response to a format conversion instruction for the first rendering resource, the first rendering resource in TGA format is converted to a first rendering resource in TCP format, or the first rendering resource in TCP format is converted to a first rendering resource in TGA format.

6. The method according to claim 1, characterized in that, The process of obtaining the art resources corresponding to the virtual model to be rendered and the rendering parameters for those art resources includes: In response to receiving a directory addition instruction, the system determines the file directory corresponding to the directory addition instruction and retrieves the art resources corresponding to the virtual model to be rendered from the file directory. In response to receiving a parameter configuration instruction, the rendering parameters for the art resource are determined according to the parameter configuration instruction.

7. The method according to any one of claims 1 to 6, characterized in that, Also includes: In response to rendering resources for each of the target selection sets, the rendering progress corresponding to the target selection set is displayed.

8. The method according to any one of claims 1 to 6, characterized in that, Also includes: In response to the overall rendering instruction for the art resource, the target art resource displayed in the rendering interface is rendered according to the output parameters, and a second rendering resource corresponding to the target art resource is output in the output directory. The target art resource refers to the entirety of the art resource or a selected portion thereof.

9. The method according to any one of claims 1 to 6, characterized in that, Also includes: In response to a single rendering instruction for any of the target selection sets, a selected target selection set is determined, resources for the selected target selection set are rendered according to the output parameters, and a third rendering resource corresponding to the selected target selection set is output in the output directory.

10. A rendering component for art resources, characterized in that, The rendering component includes at least a configuration module, a selection set correction module, and a rendering control module; wherein... The configuration module is used to obtain the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least the output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. The selection set correction module is used to respond to a correction instruction for the resource selection set, obtain a standard selection set for the resource selection set, and compare the standard selection set with the resource selection set to obtain a corrected target selection set; The rendering control module is used to respond to the layered rendering instruction for the art resources, render the resources of the target selection set one by one according to the output parameters, and output the first rendering resources corresponding to each target selection set in the output directory. Specifically, the selection set correction module is used for: Obtain the target geometry identifier and target material information corresponding to the resource selection set, and the standard geometry identifier and standard material information corresponding to the standard selection set; The target material information and standard material information, which represent the same geometry as the target geometry identifier and the standard geometry identifier, are compared. If the target material information is different from the standard material information, the target material information is corrected to material information with the same material performance effect based on the standard material information. The corrected target selection set is obtained after the resource selection set is completely corrected.

11. The rendering component according to claim 10, characterized in that, The rendering component includes a layered rendering control, and the output parameters include at least the rendering direction and rendering size for the virtual model; wherein, The rendering control module is used to respond to the layered rendering instruction for the layered rendering control, render resources for each target selection set according to the output parameters, and output the first rendering resources corresponding to each target selection set in the output directory.

12. The rendering component according to claim 11, characterized in that, The rendering direction includes at least one of 1 direction, 2 directions, 4 directions, and 8 directions, and the rendering size includes at least the width and height dimensions.

13. The rendering component according to claim 10, characterized in that, The rendering component includes a layered rendering control, and the target selection set includes a max file; wherein... The rendering control module is specifically used to respond to the layered rendering instructions for the layered rendering control, render resources for each target selection set according to the output parameters, and output the first rendering resources in TGA format or TCP format corresponding to each target selection set in the output directory.

14. The rendering component according to claim 13, characterized in that, The rendering component also includes a format conversion module; wherein... The format conversion module is configured to, in response to a format conversion instruction for the first rendering resource, convert the first rendering resource in TGA format to a first rendering resource in TCP format, or convert the first rendering resource in TCP format to a first rendering resource in TGA format.

15. The rendering component according to claim 10, characterized in that, The configuration module includes at least a directory addition control; wherein... The directory addition control is used to respond to a directory addition instruction, determine the file directory corresponding to the directory addition instruction, and obtain the art resources corresponding to the virtual model to be rendered from the file directory.

16. The rendering component according to claim 10, characterized in that, The configuration module includes at least a file addition control; wherein... The file addition control is used to retrieve the art resources corresponding to the virtual model to be rendered in response to a file addition command.

17. The rendering component according to claim 10, characterized in that, The rendering component further includes at least one rendering direction control, each of which corresponds to a rendering direction; wherein... The configuration module is used to obtain the rendering direction for the art resource in response to the selection instruction for the rendering direction control.

18. The rendering component according to claim 10, characterized in that, The rendering component also includes a height control and a width control; wherein... The configuration module is configured to obtain height information for the art resource in response to an input command for the height control; and to obtain width information for the art resource in response to an input command for the width control.

19. The rendering component according to claim 10, characterized in that, The rendering component also includes at least one size control; wherein... The configuration module is configured to, in response to a selection instruction for the size control, determine a target size control and use the preset rendering size corresponding to the target size control as the rendering size for the art resource.

20. The rendering component according to claim 10, characterized in that, The rendering component also includes a directory input control; wherein... The configuration module is used to determine the output directory for the art resources in response to the operation command for the directory input control.

21. The rendering component according to any one of claims 10 to 20, characterized in that, The rendering component also includes a progress bar; wherein... The rendering component is configured to respond to rendering resources for each of the target selection sets one by one, and to display the rendering progress corresponding to the target selection set in the progress bar.

22. The rendering component according to any one of claims 10 to 20, characterized in that, The rendering control module also includes an overall rendering control; wherein... The rendering control module is also used to respond to the overall rendering instruction for the overall rendering control, perform resource rendering on the target art resource displayed in the rendering interface according to the output parameters, and output the second rendering resource corresponding to the target art resource in the output directory; The target art resource refers to the entirety of the art resource or a selected portion thereof.

23. The rendering component according to any one of claims 10 to 20, characterized in that, The rendering component further includes a selection set rendering module, which at least includes a selection set display area, a region to be rendered, and a selection set rendering control; wherein... The selection set rendering module is configured to display a target selection set corresponding to the art resource in the selection set display area, display the selected target selection set in the rendering area in response to a single rendering instruction for any of the target selection sets, render the selected target selection set according to the output parameters in response to a single rendering instruction for the selection set rendering control, and output a third rendering resource corresponding to the selected target selection set in the output directory.

24. The rendering component according to claim 10, characterized in that, The rendering component is used in 3D computer graphics software.

25. A rendering device for art resources, characterized in that, include: The data acquisition module is used to acquire the art resources corresponding to the virtual model to be rendered and the rendering parameters for the art resources. The rendering parameters include at least an output directory and output parameters. The art resources include at least one resource selection set corresponding to the virtual model. The dataset comparison module is used to, in response to a correction instruction for the resource selection set, obtain a standard selection set for the resource selection set, and compare the standard selection set with the resource selection set to obtain a corrected target selection set; The resource rendering module is used to respond to the layered rendering instruction for the art resources, render the target selection set one by one according to the output parameters, and output the first rendering resource corresponding to each target selection set in the output directory. Specifically, the dataset comparison module is used for: Obtain the target geometry identifier and target material information corresponding to the resource selection set, and the standard geometry identifier and standard material information corresponding to the standard selection set; The target material information and standard material information, which represent the same geometry as the target geometry identifier and the standard geometry identifier, are compared. If the target material information is different from the standard material information, the target material information is corrected to material information with the same material performance effect based on the standard material information. The corrected target selection set is obtained after the resource selection set is completely corrected.

26. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-9.

27. A computer-readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Fast rendering method for virtual scene and model

    CN107103638A

  • Rendering verification method and device

    CN111127616A