CN111524215B - Method for splitting CG picture rendering layer - Google Patents

Method for splitting CG picture rendering layer Download PDF

Info

Publication number
CN111524215B
CN111524215B CN202010312404.XA CN202010312404A CN111524215B CN 111524215 B CN111524215 B CN 111524215B CN 202010312404 A CN202010312404 A CN 202010312404A CN 111524215 B CN111524215 B CN 111524215B
Authority
CN
China
Prior art keywords
rendering
layer
rendering layer
splitting scheme
common
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010312404.XA
Other languages
Chinese (zh)
Other versions
CN111524215A (en
Inventor
沈康
万寿龙
王振兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Global Digital Film And Television Culture Co ltd
Original Assignee
Shenzhen Global Digital Film And Television Culture Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Global Digital Film And Television Culture Co ltd filed Critical Shenzhen Global Digital Film And Television Culture Co ltd
Priority to CN202010312404.XA priority Critical patent/CN111524215B/en
Publication of CN111524215A publication Critical patent/CN111524215A/en
Application granted granted Critical
Publication of CN111524215B publication Critical patent/CN111524215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/60Shadow generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a method for splitting a CG picture rendering layer, which comprises the following steps: acquiring a common rendering requirement and a characteristic rendering requirement of a file to be processed; determining a common rendering layer splitting scheme corresponding to the common rendering requirement, and determining a characteristic rendering splitting scheme corresponding to the characteristic rendering requirement; and performing rendering layer splitting on the file to be processed based on the common rendering layer splitting scheme and the characteristic rendering splitting scheme. According to the method and the device, the common rendering layer splitting scheme and the characteristic rendering layer splitting scheme of the file to be processed are determined, and the rendering layer of the file to be processed is split according to the common rendering layer splitting scheme and the characteristic rendering layer splitting scheme, so that the rendering layer is automatically split, the efficiency of splitting the rendering layer is greatly improved, and the error rate of splitting the rendering layer is greatly reduced compared with the traditional manual processing.

Description

Method for splitting CG picture rendering layer
Technical Field
The invention relates to the technical field of image processing, in particular to a method for splitting a CG picture rendering layer.
Background
With the development of a series of related industries that perform visual design and production using computers as main tools, the field of visual design and production using computer technology is internationally customary and commonly referred to as CG. From two dimensions to three dimensions, from the flat printing industry, the webpage design industry to the three-dimensional animation industry and the film and television special effect industry, along with the continuous improvement of the technology, the CG has continuously grown in the application field. Hierarchical rendering schemes are commonly used in three-dimensional animation.
Rendering splitting schemes commonly used in the layered rendering scheme include a render layer splitting method based on a Maya classic mode and a render setup layer splitting method based on Maya, wherein the render layer based on the Maya classic mode needs an artist to manually create a material extraction layer, and the workload of the artist is increased; according to the render setup rendering layer splitting method based on Maya, a matched template is manually set for each rendering file, and the matched template cannot be used under the condition of corresponding to other lens files, so that an artist needs to execute repeated work.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method for splitting a CG image rendering layer.
The technical scheme provided by the invention is as follows:
a method for splitting a CG picture rendering layer, the method comprising:
acquiring a common rendering requirement and a characteristic rendering requirement of a file to be processed;
determining a common rendering layer splitting scheme corresponding to the common rendering requirement, and determining a characteristic rendering splitting scheme corresponding to the characteristic rendering requirement;
and performing rendering layer splitting on the file to be processed based on the common rendering layer splitting scheme and the characteristic rendering splitting scheme.
The method for splitting the CG picture rendering layer comprises the steps that any rendering requirement in the common rendering requirements is different from any rendering requirement in the characteristic rendering requirements, and the common rendering requirements and the characteristic rendering comprise all rendering requirements forming the file to be processed.
The method for splitting the CG image rendering layer, wherein the determining of the splitting scheme of the common rendering layer corresponding to the common rendering requirement specifically includes:
acquiring a project identifier corresponding to the file to be processed, and searching a rendering layer splitting scheme corresponding to the project identifier in a preset rendering layer layering scheme rule base;
and if the rendering layer splitting scheme corresponding to the item identifier is found, taking a common rendering layer splitting scheme in the found rendering layer splitting scheme as the common rendering layer splitting scheme corresponding to the common rendering requirement.
The method for splitting the CG picture rendering layer comprises the following steps:
and if the common rendering layer splitting scheme corresponding to the project identification is not found, establishing the common rendering layer splitting scheme for the common rendering requirement.
The CG image rendering layer splitting method, wherein, if the common rendering layer splitting scheme corresponding to the item identifier is not found, after the common rendering layer splitting scheme is created for the common rendering requirement, the method further includes:
and creating a rendering layer splitting scheme corresponding to the project identification in the preset rendering layer splitting scheme rule base, and storing the created common rendering layer splitting scheme in the rendering layer splitting scheme.
The method for splitting the CG image rendering layer, wherein the determining of the characteristic rendering splitting scheme corresponding to the characteristic rendering requirement specifically includes:
acquiring a project identifier corresponding to the file to be processed, and searching a rendering layer splitting scheme corresponding to the project identifier in a preset rendering layer layering scheme rule base;
for each characteristic rendering requirement in the characteristic rendering requirements, searching a characteristic rendering layer splitting scheme corresponding to the characteristic rendering requirement in the rendering layer splitting scheme;
and for each characteristic rendering requirement of the characteristic rendering layer splitting scheme which is not found, establishing the characteristic rendering layer splitting scheme for the characteristic rendering requirement.
The method for splitting the CG image rendering layer, wherein after determining the characteristic rendering splitting scheme corresponding to the characteristic rendering requirement, the method further comprises:
and adding the created characteristic rendering layer splitting scheme into the rendering layer splitting scheme corresponding to the project identification.
The method for splitting the CG image rendering layer, wherein the step of performing rendering layer splitting on the file to be processed based on the common rendering layer splitting scheme and the characteristic rendering splitting scheme specifically comprises:
for each element in the file to be processed, determining the category of the element;
and determining a splitting rule corresponding to the element according to the category to which the element belongs, and splitting the element to a rendering layer corresponding to the element according to the splitting rule, wherein the splitting rule comprises the category of the element, a rendering material, the rendering layer and a rendering parameter.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs, which are executable by one or more processors, to implement the steps in the CG screen rendering layer splitting method as described in any one of the above.
A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes the connection communication between the processor and the memory;
the terminal device implements the steps of the method for splitting the CG image rendering layer as described above when executing the computer readable program.
Has the beneficial effects that: the invention discloses a method for splitting a CG picture rendering layer, which comprises the following steps: acquiring a common rendering requirement and a characteristic rendering requirement of a file to be processed; determining a common rendering layer splitting scheme corresponding to the common rendering requirement, and determining a characteristic rendering splitting scheme corresponding to the characteristic rendering requirement; and performing rendering layer splitting on the file to be processed based on the common rendering layer splitting scheme and the characteristic rendering splitting scheme. According to the method and the device, the common rendering layer splitting scheme and the characteristic rendering layer splitting scheme of the file to be processed are determined, and the rendering layer of the file to be processed is split according to the common rendering layer splitting scheme and the characteristic rendering layer splitting scheme, so that the rendering layer is automatically split, the efficiency of splitting the rendering layer is greatly improved, and the error rate of splitting the rendering layer is greatly reduced compared with the traditional manual processing.
Drawings
Fig. 1 is a flowchart of a method for splitting a CG image rendering layer according to this embodiment.
Fig. 2 is a schematic flowchart of a method for splitting a CG image rendering layer according to this embodiment.
Fig. 3 is a schematic structural diagram of a terminal device provided in this embodiment.
Detailed Description
The present invention provides a method for splitting a CG image rendering layer, and the following describes the present invention in further detail in order to make the purpose, technical solution and effect of the present invention clearer and clearer. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The embodiment provides a method for splitting a CG picture rendering layer, which can be applied to electronic equipment, and the electronic equipment can be realized in various forms. Such as a mobile phone, a tablet computer, a palmtop computer, a Personal Digital Assistant (PDA), etc. In addition, the functions implemented by the method can be implemented by calling program code by a processor in an electronic device, and the program code can be stored in a computer storage medium.
The present invention will be described in detail with reference to specific examples.
As shown in fig. 1 and 2, the present embodiment provides a method for splitting a CG image rendering layer, where the method for splitting a CG image rendering layer includes:
and S10, acquiring a common rendering requirement and a specific rendering requirement of the file to be processed.
Specifically, the file to be processed is a maya file, and the file to be processed may include several 3D elements. The maya file may belong to a rendering item, the rendering item may include a plurality of maya files, and each maya file in the rendering item corresponds to a common rendering requirement. It is understood that, for each pending file in a rendering project, the pending file includes at least one rendering requirement, and the rendering requirement is a rendering requirement included in all pending files in the rendering project. That is to say, all the files to be processed in the rendering item have a common rendering requirement, and the common rendering requirement of all the files to be processed in the rendering item is used as a common rendering requirement corresponding to the files to be processed. Therefore, the common rendering requirement is a rendering requirement common to all the files to be processed in the rendering item, for example, the common rendering requirement may include a color layer, a highlight layer, a normal layer Z channel layer, and the like. The specific rendering requirements may be different according to different files to be processed, and for any one of the specific rendering requirements, at least one file to be processed does not include the rendering requirement in a project corresponding to the file to be processed, for example, the specific rendering requirements may include a trace layer, a gray layer, and the like. Certainly, the file to be processed may not include a specific rendering requirement, and when the file to be processed does not include a characteristic rendering requirement, the file to be processed may be directly subjected to rendering layer splitting according to a common rendering layer splitting scheme determined by the common rendering requirement. However, in practical applications, different rendering requirements generally exist in each to-be-processed file in each project, and thus the embodiment takes the example that the to-be-processed file includes a specific rendering requirement as an example.
Further, in an implementation manner of this embodiment, the acquiring a common rendering requirement and a specific rendering requirement of the to-be-processed file specifically includes:
receiving a file to be processed, and acquiring a common rendering requirement of a project corresponding to the file to be processed;
taking the obtained common rendering requirement as the common rendering requirement of the file to be processed, and obtaining all rendering requirements of the file to be processed;
and determining the specific rendering requirements of the file to be processed based on all the obtained rendering requirements and the common rendering requirements.
Specifically, the common rendering requirements and the specific rendering requirements constitute all rendering requirements of the file to be processed, and any one of the common rendering requirements is different from any one of the specific rendering requirements. It can be understood that the common rendering requirement is not overlapped with the specific rendering requirement, that is, after all the rendering requirements and the common rendering requirement are obtained, the common rendering requirement is removed from the rendering requirements, that is, the specific rendering requirement corresponding to the file to be processed can be obtained, where the specific rendering requirement may include one rendering requirement or may include a plurality of rendering requirements. In addition, the present invention is applicable to various fields.
S20, determining a common rendering layer splitting scheme corresponding to the common rendering requirement, and determining a specific rendering layer splitting scheme corresponding to the specific rendering requirement.
Specifically, the common rendering layer splitting scheme is a splitting scheme corresponding to the common rendering requirement, and the common rendering layer splitting scheme includes a splitting rule, where the splitting rule includes four element rules, and the four element rules are respectively an element category, a rendering material, a rendering layer, and a specified adjustment (i.e., a rendering parameter of the rendering layer). The four large element rule is used to determine the element classes required for each rendering layer, with what material to render to that rendering layer and what rendering parameters to set. For example, the four element rules corresponding to trace layers are: and respectively endowing the object needing to participate in the trace layer with the trace color and the material ball of the mask to the object needing to display the trace and the element category of the mask, and finally adjusting the attribute of the trace layer. Therefore, after the common rendering layer splitting scheme is obtained, the rendering layer, the adopted rendering material and the rendering parameter corresponding to each 3D element in the file to be processed can be determined according to the four major element rules in the common rendering layer splitting scheme, that is, the rendering layer splitting element corresponding to each rendering layer can be determined according to the four major element rules in the common rendering layer splitting scheme, and the material, the rendering parameter and the like corresponding to each rendering layer splitting element can be determined.
Further, in an implementation manner of this embodiment, the determining a common rendering layer splitting scheme corresponding to the common rendering requirement specifically includes:
acquiring a project identifier corresponding to the file to be processed, and searching a rendering layer splitting scheme corresponding to the project identifier in a preset rendering layer layering scheme rule base;
if the rendering layer splitting scheme corresponding to the item identifier is found, taking a common rendering layer splitting scheme in the found rendering layer splitting scheme as a common rendering layer splitting scheme corresponding to the common rendering requirement;
and if the common rendering layer splitting scheme corresponding to the project identifier is not found, establishing the common rendering layer splitting scheme for the common rendering requirement.
Specifically, the preset rendering layer hierarchical scheme rule base is pre-established and is used for storing a common rendering layer splitting scheme corresponding to each project and a corresponding relation between the common rendering layer splitting scheme and the project identifier. It can be understood that, in the preset rendering layer splitting scheme rule base, the common rendering layer splitting scheme corresponding to the preset rendering layer splitting scheme may be determined according to the item identifier, and the item corresponding to the common rendering layer splitting scheme may also be determined. Therefore, when the common rendering layer splitting scheme of the file to be processed is determined, the item identifier of the item to which the file to be processed belongs can be obtained, and then the common rendering layer splitting scheme corresponding to the item identifier is searched in the preset rendering layer layering scheme rule base according to the item identifier.
Further, a rendering layer splitting scheme corresponding to the item identifier may exist in the preset rendering layer hierarchical scheme rule base, or a rendering layer splitting scheme corresponding to the item identifier may not exist, where the rendering layer splitting scheme corresponding to the item identifier includes a common rendering layer splitting scheme of a common rendering requirement corresponding to the item identifier. In addition, when a common rendering layer splitting scheme corresponding to the project identifier exists, the common rendering layer splitting scheme corresponding to the project identifier is directly used as the common rendering layer splitting scheme of the file to be processed; and when the common rendering layer splitting scheme corresponding to the item identifier does not exist, creating the common rendering layer splitting scheme for the common rendering requirement.
Further, in order to reduce the number of times of creating a common rendering layer splitting scheme, in an implementation manner of this embodiment, after creating a common rendering layer splitting scheme for the common rendering requirement if the common rendering layer splitting scheme corresponding to the item identifier is not found, the method further includes: and creating a rendering layer splitting scheme corresponding to the project identification in the preset rendering layer splitting scheme rule base, and storing the created common rendering layer splitting scheme in the rendering layer splitting scheme. It is to be understood that, after creating the common rendering layer splitting scheme for the common rendering requirement, the common rendering layer splitting scheme may be stored in the preset rendering layer splitting scheme rule base, and the common rendering layer splitting scheme may be associated with the item identifier corresponding to the to-be-processed file.
Further, in an implementation manner of this embodiment, the determining a unique rendering layer splitting scheme corresponding to the unique rendering requirement specifically includes:
acquiring a project identifier corresponding to the file to be processed, and searching a rendering layer splitting scheme corresponding to the project identifier in a preset rendering layer layering scheme rule base;
for each unique rendering requirement in the unique rendering requirements, searching a unique rendering layer splitting scheme corresponding to the unique rendering requirement in the rendering layer splitting scheme;
and for each unique rendering requirement of which the unique rendering layer splitting scheme is not found, creating the unique rendering layer splitting scheme for the unique rendering requirement.
Specifically, the rendering layer splitting scheme corresponding to the item identifier includes a common rendering layer splitting scheme of the item corresponding to the item identifier, and may further include a specific rendering layer splitting scheme of each specific rendering requirement for drinking, for example, the rendering layer splitting scheme corresponding to the item identifier includes a shadow layer splitting scheme. Therefore, after the specific rendering requirements of the file to be processed are obtained, whether all rendering requirements in the specific rendering requirements of the file to be processed, or part of rendering requirements in the specific rendering requirements of the file to be processed, or any one of the rendering requirements which are not included in the specific rendering requirements of the file to be processed are included in the rendering layer splitting scheme corresponding to the project identifier can be determined. For example, the specific rendering requirement includes a shadow layer and a trace layer, and the rendering layer splitting scheme corresponding to the item identifier includes a shadow layer splitting scheme, so that the shadow layer splitting scheme can be found through the preset rendering layer splitting scheme rule base, and the trace layer splitting scheme cannot be obtained.
Further, for a specific rendering requirement of the specific rendering layer splitting scheme which is not found, a specific rendering layer splitting scheme needs to be created for the specific rendering requirement, and the specific rendering layer splitting schemes found in the created specific rendering layer splitting scheme are used as the specific rendering layer splitting scheme corresponding to the specific rendering requirement of the file to be processed. In addition, in order to reduce the number of times of creating the unique rendering layer splitting scheme and improve the high automation of the rendering layer splitting, after the unique rendering layer splitting scheme is created for the unique rendering requirement, the created unique rendering layer splitting scheme may be added to the rendering layer splitting scheme corresponding to the project identifier. Thus, after determining the unique rendering layer splitting scheme corresponding to the unique rendering requirement, the method further includes: and adding the created unique rendering layer splitting scheme into the rendering layer splitting scheme corresponding to the project identification. Of course, it should be noted that the specific rendering layer splitting scheme also includes four major element rules, and the four major element rules are the same as the four major element rules included in the common rendering layer splitting scheme, and are not described herein again.
And S30, performing rendering layer splitting on the file to be processed based on the common rendering layer splitting scheme and the specific rendering layer splitting scheme.
Specifically, the step of splitting the rendering layer of the file to be processed refers to splitting 3D elements in the file to be processed so as to split each 3D element to the corresponding rendering layer, and then saving each split rendering layer as a production file, so that when the file to be processed is rendered, each rendering layer can be rendered according to the corresponding production file. In addition, the step of splitting the rendering layer based on the common rendering layer splitting scheme and the specific rendering layer splitting scheme refers to determining the 3D elements corresponding to each rendering layer according to four major element rules included in the common rendering layer splitting scheme and the specific rendering layer splitting scheme, so as to split the rendering layer of the file to be processed.
In an implementation manner of this embodiment, the performing, based on the common rendering layer splitting scheme and the characteristic rendering splitting scheme, rendering layer splitting on the file to be processed specifically includes:
for each element in the file to be processed, determining the category of the element;
and determining a splitting rule corresponding to the element according to the category to which the element belongs, and splitting the element to a rendering layer corresponding to the element according to the splitting rule, wherein the splitting rule comprises the category of the element, a rendering material, the rendering layer and a rendering parameter.
Specifically, the attribute category is preconfigured for each 3D element in the file to be processed, and it can be understood that each 3D element in the file to be processed corresponds to an element tag, where the element tag may be a category to which the 3D element belongs. The common rendering layer splitting scheme and the specific rendering layer splitting scheme both comprise splitting rules corresponding to element categories, wherein the splitting rules comprise the element categories, rendering materials, rendering layers and rendering parameters. Thus, when a common rendering layer splitting scheme and a specific rendering layer splitting scheme are obtained, a rendering layer to which the element belongs can be determined according to the element tag, the common rendering layer splitting scheme and the specific rendering layer splitting scheme, and the 3D element is split to the rendering layer, wherein splitting the element to the rendering layer corresponding to the element according to the splitting rule means that rendering materials are automatically given to the 3D element according to the common rendering layer splitting scheme and the specific rendering layer splitting scheme, the rendering materials are added to the rendering layer, and designated adjustment is performed on the rendering layer and other elements.
Based on the above-described method for splitting a CG image rendering layer, the present embodiment further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps in the method for splitting a CG image rendering layer in the embodiment.
Based on the above method for splitting the CG image rendering layer, the present embodiment further provides a terminal device, as shown in fig. 3, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, and may further include a communication Interface (Communications Interface) 23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional applications and data processing, i.e. implements the methods in the above embodiments, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for splitting a CG picture rendering layer is characterized by comprising the following steps:
acquiring a common rendering requirement and a characteristic rendering requirement of a file to be processed, wherein the file to be processed is a maya file, and the common rendering requirement comprises a color layer, a highlight layer, a normal layer and a Z channel layer; the characteristic rendering requirement comprises a trace layer and a gray level layer;
determining a common rendering layer splitting scheme corresponding to the common rendering requirement, and determining a characteristic rendering layer splitting scheme corresponding to the characteristic rendering requirement;
performing rendering layer splitting on the file to be processed based on the common rendering layer splitting scheme and the characteristic rendering layer splitting scheme;
wherein any rendering requirement in the common rendering requirements is different from any rendering requirement in the characteristic rendering requirements, and the common rendering requirements and the characteristic rendering comprise all rendering requirements constituting the file to be processed;
the determining of the common rendering layer splitting scheme corresponding to the common rendering requirement specifically includes:
acquiring a project identifier corresponding to the file to be processed, and searching a rendering layer splitting scheme corresponding to the project identifier in a preset rendering layer layering scheme rule base;
if the rendering layer splitting scheme corresponding to the item identifier is found, taking a common rendering layer splitting scheme in the found rendering layer splitting scheme as a common rendering layer splitting scheme corresponding to the common rendering requirement;
if the common rendering layer splitting scheme corresponding to the project identifier is not found, establishing a common rendering layer splitting scheme for the common rendering requirement;
wherein the determining of the characteristic rendering layer splitting scheme corresponding to the characteristic rendering requirement specifically includes:
acquiring a project identifier corresponding to the file to be processed, and searching a rendering layer splitting scheme corresponding to the project identifier in a preset rendering layer layering scheme rule base;
for each characteristic rendering requirement in the characteristic rendering requirements, searching a characteristic rendering layer splitting scheme corresponding to the characteristic rendering requirement in the rendering layer splitting scheme;
for each characteristic rendering requirement of the characteristic rendering layer splitting scheme which is not found, establishing a characteristic rendering layer splitting scheme for the characteristic rendering requirement;
wherein the performing rendering layer splitting on the to-be-processed file based on the common rendering layer splitting scheme and the characteristic rendering layer splitting scheme specifically includes:
for each element in the file to be processed, determining the category of the element; wherein the belonging category is an element tag;
determining a splitting rule corresponding to the element according to the category to which the element belongs, splitting the element to a rendering layer corresponding to the element according to the splitting rule,
the splitting rule comprises element categories, rendering materials, rendering layers and rendering parameters;
splitting the element to the rendering layer corresponding to the element according to the splitting rule specifically comprises: and automatically endowing the element with rendering materials according to the common rendering layer splitting scheme and the specific rendering layer splitting scheme, and adding the element to the rendering layer.
2. The method for splitting a CG image rendering layer according to claim 1, wherein, after creating the common rendering layer splitting scheme for the common rendering requirement if the common rendering layer splitting scheme corresponding to the item identifier is not found, the method further comprises:
and creating a rendering layer splitting scheme corresponding to the project identification in the preset rendering layer splitting scheme rule base, and storing the created common rendering layer splitting scheme in the rendering layer splitting scheme.
3. The method for splitting a CG (CG) image rendering layer according to claim 1, wherein after determining the characteristic rendering layer splitting scheme corresponding to the characteristic rendering requirement, the method further comprises:
and adding the created characteristic rendering layer splitting scheme into the rendering layer splitting scheme corresponding to the project identification.
4. A computer-readable storage medium storing one or more programs which are executable by one or more processors to implement the steps in the CG picture rendering layer splitting method according to any one of claims 1 to 3.
5. A terminal device, comprising: the device comprises a processor, a memory and a communication bus, wherein the memory is stored with a computer readable program which can be executed by the processor;
the communication bus realizes connection communication between the processor and the memory;
the terminal device implements the steps in the method for splitting the CG picture rendering layer according to any one of claims 1 to 3 when executing the computer readable program.
CN202010312404.XA 2020-04-20 2020-04-20 Method for splitting CG picture rendering layer Active CN111524215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010312404.XA CN111524215B (en) 2020-04-20 2020-04-20 Method for splitting CG picture rendering layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010312404.XA CN111524215B (en) 2020-04-20 2020-04-20 Method for splitting CG picture rendering layer

Publications (2)

Publication Number Publication Date
CN111524215A CN111524215A (en) 2020-08-11
CN111524215B true CN111524215B (en) 2022-12-16

Family

ID=71903950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010312404.XA Active CN111524215B (en) 2020-04-20 2020-04-20 Method for splitting CG picture rendering layer

Country Status (1)

Country Link
CN (1) CN111524215B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390288A (en) * 2012-05-09 2013-11-13 上海幻维数码创意科技有限公司 Three-dimensional rendering file rendering layer batch splitting processing system
CN109308296A (en) * 2018-09-30 2019-02-05 税友软件集团股份有限公司 A kind of generation method, device and the computer readable storage medium of business datum table
CN109857971A (en) * 2019-02-01 2019-06-07 天津字节跳动科技有限公司 Page rendering method and apparatus
CN110827386A (en) * 2019-11-06 2020-02-21 武汉艺画开天文化传播有限公司 Rendering layer object distribution method and system for Maya

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7996356B2 (en) * 2005-03-24 2011-08-09 Xerox Corporation Text searching and categorization tools

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390288A (en) * 2012-05-09 2013-11-13 上海幻维数码创意科技有限公司 Three-dimensional rendering file rendering layer batch splitting processing system
CN109308296A (en) * 2018-09-30 2019-02-05 税友软件集团股份有限公司 A kind of generation method, device and the computer readable storage medium of business datum table
CN109857971A (en) * 2019-02-01 2019-06-07 天津字节跳动科技有限公司 Page rendering method and apparatus
CN110827386A (en) * 2019-11-06 2020-02-21 武汉艺画开天文化传播有限公司 Rendering layer object distribution method and system for Maya

Also Published As

Publication number Publication date
CN111524215A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN105511873A (en) User interface control display method and device
CN105531998A (en) Method, apparatus and computer program product for object detection and segmentation
CN106600700B (en) Three-dimensional model data processing system
CN110232131B (en) Creative material searching method and device based on creative tag
US20190164029A1 (en) Generating Parts with Encoded Geometry for Passively Representing Information
CN104281995A (en) Method and device for adding watermark to picture
EP3937134A1 (en) Image processing method and device, and electronic device
CN114792355B (en) Virtual image generation method and device, electronic equipment and storage medium
CN111450529A (en) Game map acquisition method and device, storage medium and electronic device
CN114266093A (en) Standardized BIM model lightweight realization method
CN111222611B (en) Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium
CN114296660A (en) Label printing method based on Vue framework
CN105096364B (en) Animation data generation method and device and electronic equipment
WO2022033136A1 (en) Hand-drawn animation material generating method based on hand-drawn materials
CN111524215B (en) Method for splitting CG picture rendering layer
US9665668B2 (en) Configuring a dispatching rule for execution in a simulation
CN117112090A (en) Business page theme generation method, device, computer equipment, medium and product
CN112102441A (en) Color card manufacturing method and device, electronic equipment and storage medium
CN106569816B (en) Rendering method and device
CN112149745B (en) Method, device, equipment and storage medium for determining difficult example sample
CN104750691A (en) User-defined webpage generation method and user-defined webpage generation device
US10713792B1 (en) System and apparatus for image processing
CN112256896A (en) CAD (computer-aided design) primitive automatic identification and replacement method
CN116452702B (en) Information chart rapid design method, device, computer equipment and storage medium
CN109712221A (en) Three-dimensional visualization rendering method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant