CN111192353B - Material generation method and device - Google Patents

Material generation method and device Download PDF

Info

Publication number
CN111192353B
CN111192353B CN201911395488.1A CN201911395488A CN111192353B CN 111192353 B CN111192353 B CN 111192353B CN 201911395488 A CN201911395488 A CN 201911395488A CN 111192353 B CN111192353 B CN 111192353B
Authority
CN
China
Prior art keywords
mapping
materials
module
target model
generating
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
CN201911395488.1A
Other languages
Chinese (zh)
Other versions
CN111192353A (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 CN201911395488.1A priority Critical patent/CN111192353B/en
Publication of CN111192353A publication Critical patent/CN111192353A/en
Application granted granted Critical
Publication of CN111192353B publication Critical patent/CN111192353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a material generation method and a device, wherein the material generation method comprises the following steps: s1, obtaining a mapping material; s2, grouping the mapping materials according to the rendering purpose to generate a mapping group; s3, selecting a material template from a material template library according to the rendering purpose of the mapping group, and generating a material to-be-configured file storing parameters to be configured; s4, obtaining a mapping path of the mapping material in the mapping group, correspondingly writing the mapping path into parameters to be configured of the material to be configured, and generating a material configuration file; and S5, generating materials according to the mapping materials and the material configuration file.

Description

Material generation method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a material generating method, a device, a computing device, and a storage medium.
Background
With the rapid development of the internet technology field, more and more application software is applied, and in many application software, various models can be designed to be built, and the models are vivid through the art designing treatment of the appearance of the models.
In the current art designing processing process, different materials are required to be manually drawn by an art staff by using drawing tools such as Photoshop and the like to cover the surface of a design model, certain color errors can be brought by the work because of subjective consciousness of the art staff, and the art staff needs to continuously adjust the color errors, so that the work is time-consuming and labor-consuming, the efficiency is low, and the progress of model creation is greatly hindered.
It is important to improve the accuracy of the art staff, save time and improve the working efficiency.
Disclosure of Invention
In view of the above, embodiments of the present application provide a material generating method, device, computing apparatus and storage medium, so as to solve the technical defects existing in the prior art.
According to a first aspect of an embodiment of the present application, there is provided a material generating method, including:
s1, obtaining a mapping material;
s2, grouping the mapping materials according to the rendering purpose to generate a mapping group;
s3, selecting a material template from a material template library according to the rendering purpose of the mapping group, and generating a material to-be-configured file storing parameters to be configured;
s4, obtaining a mapping path of the mapping material in the mapping group, correspondingly writing the mapping path into parameters to be configured of the material to be configured, and generating a material configuration file;
and S5, generating materials according to the mapping materials and the material configuration file.
Optionally, the steps S3 to S5 are performed by a script program created in advance.
Optionally, before step S4, the method further includes: and acquiring a material template library, and creating a material template corresponding to the rendering destination when the material template library is determined to not be pre-stored with the material template corresponding to the rendering destination.
Optionally, the method further comprises: and storing the generated materials to form a material database.
Optionally, the method further comprises: creating a target model to be rendered;
at least one material is selected from the target model, and the material is attached to the target model.
Optionally, at least two materials are selected from the target model, and the materials are attached to the target model in a superposition mode.
According to a second aspect of an embodiment of the present application, there is provided a material generating apparatus, including:
the acquisition module is configured to acquire the map material;
the grouping module is configured to group the map materials according to the rendering purpose to generate a map group;
the selecting module is configured to select a material template from a material template library according to the rendering purpose of the mapping group, and generate a material to-be-configured file storing parameters to be configured;
the writing module is configured to acquire a mapping path of the mapping material in the mapping group, write the mapping path into parameters to be configured of the material to be configured file, and generate a material configuration file;
and the generating module is configured to generate materials according to the map materials and the material configuration file.
Optionally, the selecting module, the writing module, and the generating module are executed by a script program created in advance.
Optionally, before writing to the module, the method further includes: the determining module is configured to acquire a material template library, and newly establish a material template corresponding to the rendering destination when the material template library is determined to not be pre-stored with the material template corresponding to the rendering destination.
Optionally, the method further comprises: and the storage module is configured to store the generated materials and form a material database.
Optionally, the method further comprises: a creation module configured to create a target model to be rendered;
an attachment module configured to select at least one of the materials in the target model and attach the material to the target model.
Optionally, the attaching module is further configured to select at least two materials in the target model, and the materials are attached to the target model through superposition.
According to a third aspect of embodiments of the present application, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the texture generation method when executing the instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the texture generation method.
According to the embodiment of the application, through the material generation method, the physical parameters in the map are more standard and accurate, the influence of inaccurate numerical values caused by hand painting of artistic staff is reduced, and the working efficiency is improved.
In another embodiment of the application, a lot of materials can be rapidly generated by using a pre-created script program, so that the working efficiency is further improved.
In another embodiment of the present application, the generated materials are stored to form a material library, so that the generated materials can be reused, and the overall resource reuse rate of the materials is improved.
Drawings
FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;
FIG. 2 is a flowchart of a material generation method according to an embodiment of the present application;
FIG. 3 is a flowchart of a material generation method according to another embodiment of the present application;
FIG. 4 is a flowchart of a material generation method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a material generating apparatus 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 application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the application. As used in one or more embodiments of the application 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 application 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 the application 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 application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
First, terms related to one or more embodiments of the present application will be explained.
Material quality: for specifying the characteristics of the surface or surfaces of an object, which determine the characteristics of these surfaces when colored, such as color, brightness, self-luminosity, opacity, etc.
Mapping: the graphics overlaid onto the model are called a map.
In the present application, a material generating method, apparatus, computing device, and storage medium are provided, and the following embodiments are described in detail.
FIG. 1 illustrates a block diagram of a computing device 100, according to an embodiment of the application. 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 application, 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 application. 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.
The processor 120 may perform the steps of the texture generation method shown in fig. 2. FIG. 2 is a flowchart of a material generation method according to an embodiment of the application, including steps 202 to 210.
Step 202: and obtaining the mapping material.
In an embodiment of the present application, rendering a model requires a corresponding material, and generating the material requires using an existing mapping material, and first, the mapping material is acquired.
The mapping materials can be obtained from a mapping material library stored in the current electronic equipment in advance, and also can be obtained by crawling the mapping materials from the Internet through a web crawler tool.
Step 204: and grouping the map materials according to the rendering purpose to generate a map group.
In one embodiment of the application, the map materials are grouped according to different rendering purposes. There are various ways of grouping, including, for example, placing the map materials having the same rendering purpose under the same folder, and taking the folder as the generated map group.
For example, a tree model needs to be rendered, a folder is newly created and named as wood, and a mapping material a, a mapping material b and a mapping material c which render the tree model are stored under the wood folder.
The concrete expression form of the map group is not limited to the folder, but can be other expression forms of the map group, such as a compression package, and the like.
Step 206: and selecting a material template from a material template library according to the rendering purpose of the mapping group, and generating a material to be configured file storing parameters to be configured.
In an embodiment of the present application, according to different rendering purposes, a corresponding material template stored in advance in a material template library is selected to generate a material to be configured file corresponding to one rendering purpose, where the material to be configured file stores parameters to be configured of default values.
For example, when a model of a tree is required to be rendered, a material to be configured file related to the tree is selected, wherein the file comprises parameters to be configured A, parameters to be configured B and parameters to be configured C. And storing the material to-be-configured file under the wood folder generated in the step 204.
Step 208: and obtaining a mapping path of the mapping material in the mapping group, writing the mapping path into parameters to be configured of the material to be configured, and generating a material configuration file.
In an embodiment of the present application, a mapping path of the mapping material is obtained, and the mapping path is filled into the parameters to be configured of the material to be configured file generated in step 206 and stored, so as to generate the material configuration file.
For example, a mapping material a, a mapping material B and a mapping material C under a wood folder are obtained, mapping paths of the mapping material C are respectively "wood\a", "wood\b", "wood\c", and the mapping paths are correspondingly written into parameters to be configured A, parameters to be configured B and parameters to be configured C of a material to be configured created in the step 206, and then the parameters are stored, so that a configured material configuration file is obtained, and the material configuration file is named as WoodConfig.
Step 210: and generating a material according to the mapping material and the material configuration file.
In an embodiment of the present application, the map material and the material configuration file are composed of materials.
For example, the map material a, the map material b, the map material c and the material configuration file WoodConfig under the wood folder together form wood materials.
The material generation method provided by the embodiment can enable physical parameters in the map to be more standard and accurate, reduce the influence of inaccurate numerical values caused by hand painting of artistic staff, save time and improve work efficiency.
In this embodiment, the above steps 206 to 210 may also be implemented by executing a script program created in advance.
Script programs are a collection of command programs, which are relatively close to natural language compared with general program development, and can be interpreted instead of compiled, thus facilitating rapid development or some lightweight control. The script program may be stored as a file with a suffix name of cfg, which is entered at the console when executed: "exec script file name. Cfg".
The material generation method provided by the embodiment can quickly generate a large amount of materials, and further improves the working efficiency.
Another embodiment of the present application discloses a material generating method, referring to fig. 3, including:
and 302, obtaining the mapping material.
And 304, grouping the map materials according to the rendering purpose to generate a map group.
The steps 302 to 304 are the same as the steps 202 to 204 in the previous embodiment, and the detailed explanation of the steps 302 to 304 can be referred to the explanation of the steps 202 to 204, and will not be repeated here.
And 306, acquiring a material template library, and creating a material template corresponding to the rendering destination when the material template corresponding to the rendering destination is determined not to be pre-stored in the material template library.
In this embodiment, a material template library is obtained, and it is determined whether a material template corresponding to the rendering destination is pre-stored in the material template library, and if there is no pre-stored material template, a material template corresponding to the rendering destination is newly created.
And 308, selecting a material template from a material template library according to the rendering purpose of the map set, and generating a material to be configured file storing parameters to be configured.
Step 310, obtaining a mapping path of the mapping material in the mapping group, and correspondingly writing the mapping path into parameters to be configured of the material to be configured to generate a material configuration file.
And 312, generating a material according to the map material and the material configuration file.
For the steps 308 to 312, the same steps as the steps 206 to 210 in the previous embodiment, and for the detailed explanation of the steps 310 to 312, the explanation of the steps 206 to 210 can be referred to, and the details are not repeated here.
And step 314, storing the generated materials to form a material database.
In this embodiment, all the declared materials are stored to form a material library.
According to the material generation method, physical parameters in the map can be more standard and accurate, the influence of numerical inaccuracy caused by manual drawing of art staff is reduced, time is saved, working efficiency is improved, material templates are stored in advance, time for building the templates each time is saved, further working efficiency is improved, the generated materials are stored to form a material library, the generated materials are repeatedly used, and the overall resource multiplexing rate of the materials is improved.
Another embodiment of the present application discloses a material generating method, referring to fig. 4, including:
step 402, obtaining the mapping material.
In this embodiment, the map materials dirt_a, dirt_b, dirt_c, move_e, move_f, move_g, wood_x, wood_y, wood_z are obtained from a locally pre-stored map material library.
And step 404, grouping the map materials according to the rendering purpose to generate a map group.
In this embodiment, a map needs to be created for a certain game, and elements such as soil, moss, trees and the like are on the map, and rendering is performed to make the abstract graph conform to the needs of the model, so that the model is more vivid.
Therefore, the objects to be rendered are soil, moss and trees, the dirt_a, the dirt_b and the dirt_c are correspondingly stored in a dirt folder, the move_e, the move_f and the move_g are stored in a move folder, and the wood_x, the wood_y and the wood_z are stored in a wood folder.
Step 406, obtaining a material template library, and creating a material template corresponding to the rendering destination when it is determined that the material template corresponding to the rendering destination is not pre-stored in the material template library.
In this embodiment, a texture template library is obtained, and no pre-stored mos texture template is found in the texture template library, so a mos texture template is newly created.
And 408, selecting a material template from a material template library according to the rendering purpose of the map set, and generating a material to be configured file storing parameters to be configured.
In this embodiment, a pre-saved dirt material template is selected from a material template library and saved in a dirt folder, and a dirt to-be-configured file containing a to-be-configured parameter a, a to-be-configured parameter B and a to-be-configured parameter C is generated;
selecting a pre-stored mass material template to store in a mass folder, and generating a mass to-be-configured file containing to-be-configured parameters E, F and G;
and selecting a pre-stored wood material template, and storing the wood material template in a wood folder to generate a wood to-be-configured file containing to-be-configured parameters X, Y and Z.
Step 410, obtaining a mapping path of the mapping material in the mapping group, and writing the mapping path into the parameters to be configured of the material to be configured to generate a material configuration file.
In this embodiment, the mapping paths of the dirt_a, the dirt_b, and the dirt_c under the dirt folder are respectively "dirt\a", "dirt\b", and "dirt\c", and the mapping paths are correspondingly written into the parameters to be configured a, the parameters to be configured B, and the parameters to be configured C of the dirt to be configured created in step 408, and then stored, so as to obtain a configured dirt configuration file, named as dirt_config;
obtaining mapping paths of a mos_e, a mos_f and a mos_g under a mos folder, which are respectively 'mos\e', 'mos\f', 'mos\g', correspondingly writing the mapping paths into a to-be-configured parameter E, a to-be-configured parameter F and a to-be-configured parameter G of a mos to-be-configured file created in step 408, and then storing to obtain a configured mos configuration file, which is named as a mos_config;
the method comprises the steps of obtaining the mapping paths of wood_x, wood_y and wood_z under a wood folder, wherein the mapping paths are respectively 'wood\x', 'wood\y', 'wood\z', and correspondingly writing the mapping paths into parameters X, Y and Z to be configured of a wood to be configured file created in step 408, and then storing the parameters to obtain a configured wood configuration file named as wood_config.
And step 412, generating a material according to the map material and the material configuration file.
In this embodiment, the dirt_a, dirt_b, dirt_c and the texture configuration file dirt_config under the dirt folder together form a dirt texture;
the moss_e, the moss_f, the moss_g and the texture configuration file moss_config under the moss folder form a moss texture together;
wood_x, wood_y, wood_z and a material configuration file wood_config under the wood folder together form wood materials.
And step 414, storing the generated materials to form a material database.
And storing the generated dirt material, the mos material and the wood material, and forming a material library by taking the dirt material, the mos material and the wood material as materials.
In this embodiment, the steps 408 to 412 may be implemented by executing a script program created in advance.
Step 416, creating a target model to be rendered.
In this embodiment, a map needs to be built for a certain game, and elements such as soil, moss and trees are arranged on the map, so that a model of the earth is built, the model includes the elements such as soil, moss and trees, the model is only an abstract graph, and the abstract graph needs to be rendered to meet the requirements of the model.
Step 418, selecting at least one material in the target model, and attaching the material to the target model.
In this embodiment, the dirt material is selected in the earth model, and then the dirt material can be attached to the earth element of the earth, and the attachment is that the material can be attached to the model.
In the ground model, the moss material and the wood material are selected, so that the moss material can be attached to the moss element in the ground, the wood material can be attached to the tree element in the ground, the moss material and the wood material are respectively overlapped on the dirt material, and the effect is shown that soil, moss and trees are arranged on a map, and the moss and the trees are arranged on the soil.
According to the material generation method, physical parameters in the map can be more standard and accurate, the influence of numerical inaccuracy caused by manual drawing of artistic staff is reduced, time is saved, working efficiency is improved, a large number of materials can be rapidly generated through a script program, the working efficiency is further improved, material templates are stored in advance, time for building the templates each time is saved, the working efficiency is further improved, a material library is formed by storing the generated materials, the generated materials are repeatedly used, the overall resource multiplexing rate of the materials is improved, the materials are attached to the model in a superposition mode, and the performance effect of the materials is further enriched.
Corresponding to the method embodiment, the present application further provides an embodiment of a material generating device, and fig. 5 shows a schematic structural diagram of the material generating device according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
an acquisition module 502 is configured to acquire the map material.
A grouping module 504 configured to group the map materials according to rendering purposes, generating a map group.
The determining module 506 is configured to obtain a material template library, and newly create a material template corresponding to the rendering destination when it is determined that the material template corresponding to the rendering destination is not pre-stored in the material template library.
The selecting module 508 is configured to select a material template from a material template library according to the rendering purpose of the map set, and generate a material to be configured file storing parameters to be configured.
The writing module 510 is configured to obtain a mapping path of the mapping material in the mapping group, write the mapping path into parameters to be configured of the material to be configured file, and generate a material configuration file.
The generating module 512 is configured to generate a material according to the map material and the material configuration file.
The storage module 514 is configured to store the generated materials, and form a material database.
A creation module 516 configured to create a target model to be rendered.
An attaching module 518 configured to select at least one of the materials in the target model, attach the material to the target model; further configured to select at least two of the materials in the target model, the materials being attached to the target model in a superimposed fashion.
According to the material generation device, physical parameters in the map can be more standard and accurate, the influence of numerical inaccuracy caused by hand painting of artistic staff is reduced, time is saved, working efficiency is improved, a large number of materials can be rapidly generated through a script program, the working efficiency is further improved, material templates are stored in advance, time for building the templates each time is saved, the working efficiency is further improved, a material library is formed by the generated materials, the generated materials are repeatedly used, the overall resource multiplexing rate of the materials is improved, the materials are attached to the model in a superposition mode, and the performance effect of the materials is further enriched.
In one embodiment, the present application further provides a computing device, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, where the processor executes the instructions to implement the steps of the texture generation method.
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 the texture generation 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 material generating method 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 material generating method.
The foregoing describes certain embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
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 (14)

1. A method of generating a material, comprising:
s1, obtaining a mapping material, wherein the mapping material is obtained from a mapping material library;
s2, grouping the mapping materials according to the rendering purpose to generate a mapping group;
s3, selecting a material template from a material template library according to the rendering purpose of the mapping group, and generating a material to-be-configured file storing parameters to be configured, wherein the material to-be-configured file stores parameters to be configured with default values;
s4, obtaining a mapping path of the mapping material in the mapping group, correspondingly writing the mapping path into parameters to be configured of the material to be configured, and generating a material configuration file;
and S5, generating materials according to the mapping materials and the material configuration file.
2. The material generation method according to claim 1, wherein the steps S3 to S5 are performed by a script program created in advance.
3. The material generation method as claimed in claim 1, further comprising, prior to step S4:
and acquiring a material template library, and creating a material template corresponding to the rendering destination when the material template library is determined to not be pre-stored with the material template corresponding to the rendering destination.
4. The material generation method of claim 1, further comprising:
and storing the generated materials to form a material database.
5. The material generation method of claim 1, further comprising:
creating a target model to be rendered;
at least one material is selected from the target model, and the material is attached to the target model.
6. The material generation method of claim 5, wherein selecting at least one of the materials in the target model, attaching the material to the target model, comprises:
at least two materials are selected from the target model, and the materials are attached to the target model in a superposition mode.
7. A material generating apparatus, comprising:
the acquisition module is configured to acquire the mapping material, wherein the mapping material is acquired from a mapping material library;
the grouping module is configured to group the map materials according to the rendering purpose to generate a map group;
the selecting module is configured to select a material template from a material template library according to the rendering purpose of the mapping group, and generate a material to-be-configured file storing parameters to be configured, wherein the material to-be-configured file stores parameters to be configured with default values;
the writing module is configured to acquire a mapping path of the mapping material in the mapping group, write the mapping path into parameters to be configured of the material to be configured file, and generate a material configuration file;
and the generating module is configured to generate materials according to the map materials and the material configuration file.
8. The material generating apparatus according to claim 7, wherein,
the selection module, the writing module, the generating module is executed by a script program created in advance.
9. The texture generating apparatus of claim 7, further comprising, prior to writing to the module:
the determining module is configured to acquire a material template library, and newly establish a material template corresponding to the rendering destination when the material template library is determined to not be pre-stored with the material template corresponding to the rendering destination.
10. The texture generating apparatus according to claim 7, further comprising:
and the storage module is configured to store the generated materials and form a material database.
11. The texture generating apparatus according to claim 7, further comprising:
a creation module configured to create a target model to be rendered;
an attachment module configured to select at least one of the materials in the target model and attach the material to the target model.
12. The material generating apparatus according to claim 11, wherein,
the attachment module is further configured to select at least two of the materials in the target model, the materials being attached to the target model in a superimposed form.
13. 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-6.
14. 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 to 6.
CN201911395488.1A 2019-12-30 2019-12-30 Material generation method and device Active CN111192353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911395488.1A CN111192353B (en) 2019-12-30 2019-12-30 Material generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911395488.1A CN111192353B (en) 2019-12-30 2019-12-30 Material generation method and device

Publications (2)

Publication Number Publication Date
CN111192353A CN111192353A (en) 2020-05-22
CN111192353B true CN111192353B (en) 2023-08-25

Family

ID=70709468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911395488.1A Active CN111192353B (en) 2019-12-30 2019-12-30 Material generation method and device

Country Status (1)

Country Link
CN (1) CN111192353B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002342787A (en) * 2001-05-22 2002-11-29 Minolta Co Ltd Method and device for generating three-dimensional model and computer program
CN103578128A (en) * 2013-11-05 2014-02-12 大连创达技术交易市场有限公司 Method for particle effect optimization based on materials
CN105763885A (en) * 2014-12-19 2016-07-13 艾迪普(北京)文化科技股份有限公司 Three-dimensional graphics and text information real-time distribution method and device
CN106067185A (en) * 2016-05-27 2016-11-02 美屋三六五(天津)科技有限公司 A kind of threedimensional model processing method and processing device
CN107103638A (en) * 2017-05-27 2017-08-29 杭州万维镜像科技有限公司 A kind of Fast rendering method of virtual scene and model
WO2017153910A1 (en) * 2016-03-07 2017-09-14 Mollazadeh Sardroudi Mohammad Reza Encoded illustrations
CN107221023A (en) * 2017-05-27 2017-09-29 郑州云海信息技术有限公司 A kind of creation method and device of modularized equipment design sketch
CN110297838A (en) * 2019-07-04 2019-10-01 珠海金山网络游戏科技有限公司 A kind of landform material edit methods, calculate equipment and storage medium at device
CN110363839A (en) * 2019-06-19 2019-10-22 深圳市彬讯科技有限公司 Model rendering method, apparatus, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002342787A (en) * 2001-05-22 2002-11-29 Minolta Co Ltd Method and device for generating three-dimensional model and computer program
CN103578128A (en) * 2013-11-05 2014-02-12 大连创达技术交易市场有限公司 Method for particle effect optimization based on materials
CN105763885A (en) * 2014-12-19 2016-07-13 艾迪普(北京)文化科技股份有限公司 Three-dimensional graphics and text information real-time distribution method and device
WO2017153910A1 (en) * 2016-03-07 2017-09-14 Mollazadeh Sardroudi Mohammad Reza Encoded illustrations
CN106067185A (en) * 2016-05-27 2016-11-02 美屋三六五(天津)科技有限公司 A kind of threedimensional model processing method and processing device
CN107103638A (en) * 2017-05-27 2017-08-29 杭州万维镜像科技有限公司 A kind of Fast rendering method of virtual scene and model
CN107221023A (en) * 2017-05-27 2017-09-29 郑州云海信息技术有限公司 A kind of creation method and device of modularized equipment design sketch
CN110363839A (en) * 2019-06-19 2019-10-22 深圳市彬讯科技有限公司 Model rendering method, apparatus, computer equipment and storage medium
CN110297838A (en) * 2019-07-04 2019-10-01 珠海金山网络游戏科技有限公司 A kind of landform material edit methods, calculate equipment and storage medium at device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曾敏.在3D MAX中贴图路径的解决方案.《数字技术与应用》.2012,参见正文第一页. *

Also Published As

Publication number Publication date
CN111192353A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN110414148B (en) Open BIM (building information modeling) cross-platform online visualization method based on WebGL (WebGL)
CN109934897B (en) Swing effect simulation system, method, computing device and storage medium
JP7455161B2 (en) Line drawing automatic coloring program, line drawing automatic coloring device and graphical user interface program
US8280703B1 (en) Method and apparatus for controlling procedural models
CN112199086A (en) Automatic programming control system, method, device, electronic device and storage medium
CN111617485B (en) Virtual terrain scene manufacturing method and device
CN110297838B (en) Terrain material editing method, device, computing equipment and storage medium
CN110727969B (en) Method, device and equipment for automatically adjusting workflow and storage medium
CN112598773A (en) Method and device for realizing skeleton skin animation
US20210012189A1 (en) Incorporating black-box functions in neural networks
CN112668552A (en) Method and system for automatically extracting water and soil conservation measure pattern spots based on deep learning
CN111192353B (en) Material generation method and device
CN112604280B (en) Game topography generation method and device
CN112685033A (en) Method and device for automatically generating user interface component and computer readable storage medium
CN113052981A (en) Model editing and constructing method and related equipment and computer storage medium
CN112396680B (en) Method and device for making hair flow diagram, storage medium and computer equipment
CN111640170B (en) Bone animation generation method, device, computer equipment and storage medium
CN108153678A (en) A kind of test assignment processing method and processing device
CN111744196B (en) Task target guiding method and device in game task
CN114579118A (en) Programming method and system, equipment, storage medium
CN113244625A (en) Game terrain data editing method and device, storage medium and electronic device
CN113209626A (en) Game picture rendering method and device
CN112604276B (en) Terrain modification method and terrain modification device
Olaya SEXTANTE, a free platform for geospatial analysis
CN114119925B (en) Game image modeling method and device and electronic equipment

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