CN111061480B - Method and device for rendering multi-layer material based on NGUI - Google Patents

Method and device for rendering multi-layer material based on NGUI Download PDF

Info

Publication number
CN111061480B
CN111061480B CN201911376306.6A CN201911376306A CN111061480B CN 111061480 B CN111061480 B CN 111061480B CN 201911376306 A CN201911376306 A CN 201911376306A CN 111061480 B CN111061480 B CN 111061480B
Authority
CN
China
Prior art keywords
additional
layer
mixing
mixed
rendering
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
CN201911376306.6A
Other languages
Chinese (zh)
Other versions
CN111061480A (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.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Digital Network Technology 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 Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority to CN201911376306.6A priority Critical patent/CN111061480B/en
Publication of CN111061480A publication Critical patent/CN111061480A/en
Application granted granted Critical
Publication of CN111061480B publication Critical patent/CN111061480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application provides a rendering method and a rendering device of a multi-layer material based on an NGUI, wherein the multi-layer material comprises a base layer material and at least one layer of additional material which are connected with each other, and the method comprises the following steps: calling a base material rendering target model; determining the mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is satisfied; and mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material. Therefore, the method and the device allow the support of calling multi-layer materials in the NGUI, mix the called additional materials with the base material to generate mixed materials, and render the target model based on the mixed materials so as to realize the rendering of the multi-material and realize more realistic simulation effect.

Description

Method and device for rendering multi-layer material based on NGUI
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and apparatus for rendering a multi-layer material based on NGUI, a computing device, and a computer readable storage medium.
Background
NGUI (Next-Gen User Interface kit, next generation user interface tool) is a plug-in to Unity. It is easy to use, powerful, and performance far superior to the UI system built in Unity. NGUI is written using c# and is straightforward.
NGUI itself does not support multi-layered materials, and is not suitable for use in animation scenes where multi-layered materials are required. For example, in a cooking game, the food material needs to be changed according to different time periods after entering the pot, such as skin wrinkling, color change and the like, so as to achieve a real simulation effect. In this case, it is necessary to switch between a plurality of materials.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and apparatus for rendering multi-layer materials based on NGUI, a computing device, and a computer readable storage medium, so as to solve the technical drawbacks existing in the prior art.
The embodiment of the application provides a rendering method of a multi-layer material based on an NGUI, wherein the multi-layer material comprises a base layer material and at least one layer of additional material which are connected with each other, and the method comprises the following steps:
calling a base material rendering target model;
determining the mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is satisfied;
and mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material.
Optionally, the method further comprises: and determining the additional material to be called by setting a material switch of each layer of the additional material.
Optionally, the mixing conditions include a mixing time;
determining the mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is met, wherein the method comprises the following steps:
and determining the mixing time of each additional material and the base material, and calling the corresponding additional material in turn based on the mixing time.
Optionally, the additional material comprises multiple layers;
mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material, wherein the method comprises the following steps:
and sequentially mixing the called multi-layer additional materials with the base material to generate mixed materials, and sequentially rendering the target model based on the mixed materials.
Optionally, mixing the invoked additional material with the base material to generate a mixed material, including:
determining a mixed mode of the additional material to be called and the base material by setting the mixed mode of each layer of the additional material;
and mixing the called additional material with the base material based on the mixing mode to generate a mixed material.
The embodiment of the application provides a rendering device of a multi-layer material based on an NGUI, wherein the multi-layer material comprises a base layer material and at least one layer of additional material which are connected with each other, and the device comprises:
the base material rendering module is configured to call a base material rendering target model;
an additional material calling module configured to determine a mixing condition of each additional material and a base material, and call the corresponding additional material when the mixing condition is satisfied;
and the mixed material rendering module is configured to mix the called additional material with the base material to generate a mixed material, and render the target model based on the mixed material.
Optionally, the apparatus further comprises: and the additional material determining module is configured to determine the additional material to be called by setting a material switch of each layer of the additional material.
Optionally, the mixing conditions include a mixing time;
the additional material calling module is specifically configured to: and determining the mixing time of each additional material and the base material, and calling the corresponding additional material in turn based on the mixing time.
Optionally, the additional material comprises multiple layers;
the hybrid material rendering module is specifically configured to: and sequentially mixing the called multi-layer additional materials with the base material to generate mixed materials, and sequentially rendering the target model based on the mixed materials.
Optionally, the hybrid material rendering module is specifically configured to: determining a mixed mode of the additional material to be called and the base material by setting the mixed mode of each layer of the additional material; and mixing the called additional material with the base material based on the mixing mode to generate a mixed material.
Embodiments of the present application provide a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, which when executed, implement the steps of the methods described above.
Embodiments of the present application provide a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method as described above.
According to the rendering method and device of the multi-layer material based on the NGUI, the base layer material and at least one layer of additional material which are connected with each other are arranged in the NGUI, so that the multi-layer material is supported and invoked in the NGUI, and in the rendering process, a base layer material rendering target model is invoked first; determining the mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is met; and mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material so as to realize the rendering of multiple materials and realize more realistic simulation effect.
Drawings
FIG. 1 is a schematic diagram of a computing device according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for rendering a multi-layer material based on an NGUI according to an embodiment of the application;
FIG. 3 is a schematic view of a portion of a panel of a shader according to an embodiment of the application;
fig. 4 is a schematic diagram of a rendering device for multi-layer material based on NGUI according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. The present application may be embodied in many other forms than those herein described, and those skilled in the art will readily appreciate that the present application may be similarly embodied without departing from the spirit or essential characteristics thereof, and therefore the present application is not limited to the specific embodiments disclosed below.
The terminology used in the one or more embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the specification. As used in this specification, one or more embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that, although the terms first, second, etc. may be used in one or more embodiments of this specification to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
First, several general terms related to the present application are explained as follows:
NGUI (Next-Gen User Interface kit, next generation user interface tool): is a plugin of Unity. It is easy to use, powerful, and performance far superior to the UI system built in Unity. NGUI is written using c# and is straightforward.
Material (Material): the texture of the object, what the object looks like, e.g., wood, metallic, plastic, etc.
Map (Map): ordinary material pictures.
Texture: is the most fundamental picture form of Unity, and is actually a pure picture.
In the present application, a method and apparatus for rendering a multi-layer material based on NGUI, a computing device, and a computer-readable storage medium are provided, and the following embodiments are described in detail one by one.
First, an image rendering task of the present embodiment will be described. The image rendering task is divided into at least one subtask, each subtask is divided into a plurality of modules, each module is divided into a plurality of elements, and each element comprises a plurality of layers of materials.
The function of the multi-layer material is to calculate and control the rendering sequence among each element and the rendering sequence among the modules formed by the elements by using the rendering Queue Render Queue of the material through a program.
Taking cooked chicken as an example, the initial material of the chicken is a basic material; after chicken is put into a pot and a button for starting cooking is clicked, the color and the material can be changed for the first time; after cooking, the chicken skin is wrinkled and the texture is changed for the second time. Optionally, in the cooking process, the materials can be changed for several times, so that the gradual wrinkling process of the chicken skin is represented, and the whole display effect is more vivid.
Fig. 1 is a block diagram illustrating a configuration of a computing device 100 according to an embodiment of the present description. The components of the computing device 100 include, but are not limited to, a memory 110 and a processor 120. Processor 120 is coupled to memory 110 via bus 130 and database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 140 may include one or more of any type of network interface, wired or wireless (e.g., a Network Interface Card (NIC)), such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 100, as well as other components not shown in FIG. 1, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device shown in FIG. 1 is for exemplary purposes only and is not intended to limit the scope of the present description. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smart phone), wearable computing device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
Wherein the processor 120 may perform the steps of the method shown in fig. 2. Fig. 2 is a schematic flow chart illustrating a method of rendering NGUI-based multi-layer materials according to an embodiment of the present application, including steps 201 to 203.
201. And calling a base material rendering target model.
Wherein, the basic unit material is comparatively public material, can all use in a plurality of scenes.
Several basic concepts in image rendering are as follows:
material (Material): the texture of the object, what the object looks like, e.g., wood, metallic, plastic, etc.
Map (Map): ordinary material pictures.
Texture: is the most fundamental picture form of Unity, and is actually a pure picture.
In Unity, one can understand that: the Material (Material) includes a Map (Map) including Texture (Texture).
The input map or color is added to the corresponding Shader (loader), and the specific parameter settings for the Shader (loader) are packed together to produce a texture.
The Shader (Shader) is actually a small program, and sets parameters to perform a combination of input mesh (mesh), texture, map, or color to obtain texture. Rendering is then performed by assigning the material to a suitable renderer (renderer) to effect rendering of the model.
202. And determining the mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is met.
Specifically, before the additional material is called, the additional material to be called can be determined by setting a material switch of each layer of the additional material.
When the switch is set to be on, the layer of additional material can be called; in the case where the switch is set to "off", this layer of additional material cannot be invoked.
For example, the NGUI includes 5 layers of materials, including a base layer material and four layers of additional materials, each layer of additional materials being provided with a material switch. In the rendering task, the 2 nd layer and the 3 rd layer of additional materials are used, and the 1 st layer of additional materials and the 4 th layer of additional materials are set to be 'off', and the 2 nd layer of additional materials and the 3 rd layer of additional materials are set to be 'on'.
Typically, switching of additional materials is accomplished by:
1) The manufacturer turns on the material switch of the required additional material in the manufacturing process.
2) The texture variant information is recorded by a special tool, for example using the multi_command instruction, which compiles two texture variants, one being a version of test_off and one being a version of test_on. In operation, it is determined which one should be used according to the texture keyword or the Shader loader global keyword, and if both keywords are false, the texture variant of the first test_off version is used.
3) And generating a texture variant before packaging so as to mark the additional texture to be called.
4) Special cases may be invoked dynamically by a command, such as loading an additional material when a certain condition is met.
After determining the state of the texture switch, the additional texture that needs to be invoked for this rendering is confirmed.
It should be noted that, after determining the additional materials to be called, the mixing condition of each layer of additional materials is also determined, and after the mixing condition is satisfied, the layer of additional materials will be called.
Specifically, there are various mixing conditions such as mixing time, mixing order, reception of a mixing command, and the like.
Taking the example where the mixing conditions include a mixing time, step 202 includes: and determining the mixing time of each additional material and the base material, and calling the corresponding additional materials in turn based on the mixing time.
In one specific use scenario, the additional material is 3 layers, and the mixing time is 1 minute, 3 minutes, and 5 minutes after the base material is used, respectively. Then, after the base material is used for rendering the target model, the additional material 1 and the base material are mixed to generate a mixed material 1 after 1 minute, then the additional material 2 and the base material are mixed to generate a mixed material 2 after 3 minutes to replace the mixed material 1, and then the additional material 3 and the base material are mixed to generate a mixed material 3 after 5 minutes to replace the mixed material 2, so that the replacement effect of the materials is realized, and the effect of animation presentation is more vivid.
203. And mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material.
Wherein, the additional material can be one layer or multiple layers.
In the case where the additional material comprises a layer, step 203 comprises: and mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material.
In the case where the additional material comprises multiple layers, step 203 comprises: and mixing the called multi-layer additional materials with the base material in sequence to generate mixed materials, and rendering the target model based on the mixed materials in sequence.
It should be noted that in this embodiment, the additional materials are mixed with the base material to generate a mixed material, and the additional materials are not mixed. For example, for layer 1 additional materials, they are mixed with the base material to generate layer 1 mixed materials; for the layer 2 additional material, the layer 2 additional material is not mixed with the layer 1 mixed material to generate a layer 2 mixed material, but is mixed with the base material to generate a layer 2 mixed material, and the layer 2 mixed material is used for replacing the layer 1 mixed material.
Further, between the additional material and the base materialHybrid modeThere may be various kinds such as rotation, twisting, modulation, etc.
Optionally, mixing the invoked additional material with the base material to generate a mixed material in step 203, including: determining a mixed mode of the additional material to be called and the base material by setting the mixed mode of each layer of additional material; and mixing the called additional material with the base material based on the mixed mode to generate a mixed material.
When the color filter is specifically used, all the layers of materials, including the base layer material and the additional material, are arranged in the panel of the color filter (loader) for setting all parameters so as to facilitate the operation of a user and save the time cost. For example, a blend mode between each layer of additional material and the base material is defined in the tab of each layer of additional material, and may further define whether each layer of material rotates, accepts a warp, has a mask, and so on.
Referring to fig. 3, fig. 3 shows a partial schematic view of a panel of a shader. The shader defines a specific effect of the burning of the fire. The first layer shows various setting parameters of the base material, including a map of the base material, whether a mask exists or not, and the like; the second layer displays each setting parameter of the additional material, the switch of the second layer additional material is selected by clicking the check box of the second layer, the mixing mode between the additional material and the base material is defined by selecting the mixing mode of the second layer, and each setting parameter of the second layer material comprises the functions of mapping of the additional material, whether a shade exists, whether the two sides are in fog effect, whether the two sides are dissolved or twisted and the like. In this embodiment, the above functions are all integrated into one Shader, so that not only consumption and material quantity can be greatly reduced, but also management can be facilitated.
According to the rendering method of the multi-layer material based on the NGUI, which is provided by the embodiment of the application, the base layer material and at least one layer of additional material which are connected with each other are arranged in the NGUI, so that the multi-layer material is supported to be invoked in the NGUI, and in the rendering process, a base layer material rendering target model is invoked first; determining the mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is met; and mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material so as to realize the rendering of multiple materials and realize more realistic simulation effect.
For ease of understanding, the following is a schematic illustration of a specific example. Taking cooking chicken as an example, the cooking chicken comprises a base material a1 and two additional materials b1 and b2. The base material a1 represents a state in which chicken is raw, the first additional material b1 represents a state in which the skin of the chicken is wrinkled, and the second additional material b2 represents a state in which the chicken is finally cooked. Each layer of additional material b1, b2 is provided with an access switch and a corresponding hybrid mode.
The rendering method comprises the following steps:
1) Calling a base material a1 to render a target model;
2) Respectively determining the mixing conditions of the first layer additional material b1 and the second layer additional material b2 and the base material a 1; and determining the mixed mode of the additional materials b1 and b2 to be called and the base material a1 by setting the mixed mode of each layer of the additional materials b1 and b2.
3) When the mixing condition of the additional material b1 is satisfied, the called additional material b1 and the base material a1 are mixed to generate a mixed material c1 based on the mixing pattern, and the target model is rendered based on the mixed material c 1. In this case, the chicken is in a half-cooked state.
4) When the mixing condition of the additional material b2 is satisfied, the called additional material b2 and the base material a1 are mixed to generate a mixed material c2 based on the mixing pattern, and the target model is rendered based on the mixed material c 2. In this case, the chicken is in a fully cooked state.
Through the switching of the multi-layer materials in the embodiment, the rendering states of different stages of the same target model in the NGUI are supported, and more realistic simulation effect is realized.
An embodiment of the present application further provides an NGUI-based multi-layer material rendering apparatus, referring to fig. 4, where the multi-layer material includes a base layer material and at least one additional layer material connected to each other, the apparatus includes:
a base material rendering module 401 configured to invoke a base material rendering target model;
an additional material calling module 402, configured to determine a mixing condition of each of the additional materials and a base material, and call the corresponding additional material if the mixing condition is satisfied;
the hybrid material rendering module 403 is configured to mix the invoked additional material with the base material to generate a hybrid material, and render the target model based on the hybrid material.
Optionally, the apparatus further comprises: and the additional material determining module is configured to determine the additional material to be called by setting a material switch of each layer of the additional material.
Optionally, the mixing conditions include a mixing time;
the additional material invocation module 402 is specifically configured to: and determining the mixing time of each additional material and the base material, and calling the corresponding additional material in turn based on the mixing time.
Optionally, the additional material comprises multiple layers;
the hybrid material rendering module 403 is specifically configured to: and sequentially mixing the called multi-layer additional materials with the base material to generate mixed materials, and sequentially rendering the target model based on the mixed materials.
Optionally, the hybrid material rendering module 403 is specifically configured to: determining a mixed mode of the additional material to be called and the base material by setting the mixed mode of each layer of the additional material; and mixing the called additional material with the base material based on the mixing mode to generate a mixed material.
According to the rendering device of the multi-layer material based on the NGUI, which is provided by the embodiment of the application, the base layer material and at least one layer of additional material which are connected with each other are arranged in the NGUI, so that the multi-layer material is supported to be invoked in the NGUI, and in the rendering process, a rendering target model of the base layer material is invoked first; determining the mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is met; and mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material so as to realize the rendering of multiple materials and realize more realistic simulation effect.
The above is a schematic scheme of a rendering device based on NGUI multi-layer materials in this embodiment. It should be noted that, the technical solution of the multi-layer material rendering device based on NGUI and the technical solution of the multi-layer material rendering method based on NGUI described above belong to the same concept, and details of the technical solution of the multi-layer material rendering device based on NGUI, which are not described in detail, can be referred to the description of the technical solution of the multi-layer material rendering method based on NGUI described above.
An embodiment of the present application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of a NGUI-based multi-layer material rendering method as described above.
The above is an exemplary version of a computer-readable storage medium of the present embodiment. It should be noted that, the technical solution of the storage medium and the technical solution of the above-mentioned multi-layer material rendering method based on NGUI belong to the same concept, and details of the technical solution of the storage medium, which are not described in detail, can be referred to the description of the technical solution of the above-mentioned multi-layer material rendering method based on NGUI.
The computer instructions include computer program code that may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the application disclosed above are intended only to assist in the explanation of the application. Alternative embodiments are not intended to be exhaustive or to limit the application to the precise form disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and the full scope and equivalents thereof.

Claims (8)

1. A method for rendering a multi-layer material based on NGUI, wherein the multi-layer material comprises a base layer material and at least one additional layer of material connected to each other, wherein the material is a texture of an object, the method comprising:
calling a base material rendering target model;
determining the mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is met, wherein the mixing condition comprises mixing time;
mixing the called additional material with the base material to generate a mixed material, and rendering the target model based on the mixed material, wherein the additional material comprises multiple layers;
mixing the called multi-layer additional materials with the base material in sequence to generate mixed materials, and rendering the target model based on the mixed materials in sequence;
determining a mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is met, wherein the method comprises the following steps:
and determining the mixing time of each additional material and the base material, and calling the corresponding additional material in turn based on the mixing time.
2. The method as recited in claim 1, further comprising: and determining the additional material to be called by setting a material switch of each layer of the additional material.
3. The method of claim 1, wherein blending the invoked additional material with the base material to generate a blended material comprises:
determining a mixed mode of the additional material to be called and the base material by setting the mixed mode of each layer of the additional material;
and mixing the called additional material with the base material based on the mixing mode to generate a mixed material.
4. A rendering device for a multi-layer material based on NGUI, wherein the multi-layer material comprises a base layer material and at least one additional layer of material connected to each other, wherein the material is a texture of an object, the device comprising:
the base material rendering module is configured to call a base material rendering target model;
an additional material calling module configured to determine a mixing condition of each additional material and a base material, and call the corresponding additional material if the mixing condition is satisfied, wherein the mixing condition includes a mixing time;
the mixed material rendering module is configured to mix the called additional material with the base material to generate a mixed material, and render the target model based on the mixed material, wherein the additional material comprises multiple layers;
mixing the called multi-layer additional materials with the base material in sequence to generate mixed materials, and rendering the target model based on the mixed materials in sequence;
determining a mixing condition of each additional material and the base material, and calling the corresponding additional material under the condition that the mixing condition is met, wherein the method comprises the following steps:
and determining the mixing time of each additional material and the base material, and calling the corresponding additional material in turn based on the mixing time.
5. The apparatus as recited in claim 4, further comprising: and the additional material determining module is configured to determine the additional material to be called by setting a material switch of each layer of the additional material.
6. The apparatus of claim 4, wherein the hybrid material rendering module is specifically configured to: determining a mixed mode of the additional material to be called and the base material by setting the mixed mode of each layer of the additional material; and mixing the called additional material with the base material based on the mixing mode to generate a mixed material.
7. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor, when executing the instructions, implements the steps of the method of any of claims 1-3.
8. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1-3.
CN201911376306.6A 2019-12-27 2019-12-27 Method and device for rendering multi-layer material based on NGUI Active CN111061480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911376306.6A CN111061480B (en) 2019-12-27 2019-12-27 Method and device for rendering multi-layer material based on NGUI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911376306.6A CN111061480B (en) 2019-12-27 2019-12-27 Method and device for rendering multi-layer material based on NGUI

Publications (2)

Publication Number Publication Date
CN111061480A CN111061480A (en) 2020-04-24
CN111061480B true CN111061480B (en) 2023-08-25

Family

ID=70304154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911376306.6A Active CN111061480B (en) 2019-12-27 2019-12-27 Method and device for rendering multi-layer material based on NGUI

Country Status (1)

Country Link
CN (1) CN111061480B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110073164A (en) * 2009-12-21 2011-06-29 한국전자통신연구원 Apparatus and method for processing complex material appearance information
CN104574492A (en) * 2014-12-23 2015-04-29 福建天晴数码有限公司 Real-time rendering method and device for object composed of multiple layers of materials
CN106952329A (en) * 2017-02-21 2017-07-14 长沙趣动文化科技有限公司 Particle effect edit methods and system based on Unity3D and NGUI
CN108363569A (en) * 2018-03-07 2018-08-03 腾讯科技(深圳)有限公司 Image frame generating method, device, equipment and storage medium in
CN109064539A (en) * 2018-08-02 2018-12-21 苏州蜗牛数字科技股份有限公司 A kind of method and computer readable storage medium being embedded in special efficacy in UGUI
CN109903366A (en) * 2019-03-13 2019-06-18 网易(杭州)网络有限公司 The rendering method and device of dummy model, storage medium and electronic equipment
CN110297838A (en) * 2019-07-04 2019-10-01 珠海金山网络游戏科技有限公司 A kind of landform material edit methods, calculate equipment and storage medium at device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5215374B2 (en) * 2009-12-21 2013-06-19 韓國電子通信研究院 Complex material feeling information processing apparatus and method
US20170078713A1 (en) * 2015-09-10 2017-03-16 Cisco Technology, Inc. Cloud Image Renderer

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110073164A (en) * 2009-12-21 2011-06-29 한국전자통신연구원 Apparatus and method for processing complex material appearance information
CN104574492A (en) * 2014-12-23 2015-04-29 福建天晴数码有限公司 Real-time rendering method and device for object composed of multiple layers of materials
CN106952329A (en) * 2017-02-21 2017-07-14 长沙趣动文化科技有限公司 Particle effect edit methods and system based on Unity3D and NGUI
CN108363569A (en) * 2018-03-07 2018-08-03 腾讯科技(深圳)有限公司 Image frame generating method, device, equipment and storage medium in
CN109064539A (en) * 2018-08-02 2018-12-21 苏州蜗牛数字科技股份有限公司 A kind of method and computer readable storage medium being embedded in special efficacy in UGUI
CN109903366A (en) * 2019-03-13 2019-06-18 网易(杭州)网络有限公司 The rendering method and device of dummy model, storage medium and electronic equipment
CN110297838A (en) * 2019-07-04 2019-10-01 珠海金山网络游戏科技有限公司 A kind of landform material edit methods, calculate equipment and storage medium at device

Also Published As

Publication number Publication date
CN111061480A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN103530018B (en) The method for building up and mobile terminal at widget interface in Android operation system
CN109448089A (en) A kind of rendering method and device
CN109358936A (en) Information processing method, device, storage medium, electronic equipment and system
US20190324777A1 (en) System and methods for a run time configurable user interface controller
CN110297838B (en) Terrain material editing method, device, computing equipment and storage medium
CN110533755A (en) A kind of method and relevant apparatus of scene rendering
CN111145323B (en) Image rendering method and device
CN110321192A (en) A kind of method and apparatus that boarding program is presented
CN109147022A (en) VR data rendering method and system, computer equipment, computer storage medium
CN105512133B (en) A kind of Web page picture synthetic method, device and picture synthesize webpage
CN110134300A (en) A kind of picture editing method and device
TW201234825A (en) Method and apparatus for providing synthesizable graphics for user terminals
CN111145318B (en) Rendering method and device based on NGUI
US20240078072A1 (en) Method and apparatus for displaying message box, terminal device and non-transitory computer-readable storage medium
CN111061480B (en) Method and device for rendering multi-layer material based on NGUI
CN106293679B (en) A kind of element term conflict processing method and device
CN105843604A (en) Animation playing method and device
CN102508647A (en) Synthetic method and synthetic system for tabletop as well as mobile terminal
CN110148214A (en) A kind of data visualization method and device of more scenes
CN108268293B (en) Method for demonstrating rapid prototype of mobile APP
CN108986187A (en) A kind of implementation method, device, storage medium and the android terminal of general animation
CN110310352A (en) A kind of role action edit methods and device calculate equipment and storage medium
CN110047120A (en) A kind of animated show method and device
CN113076162B (en) Processing method, device and storage medium for interactive scene plug-in half-screen display
CN114565707A (en) 3D object 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
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant