Material generation method, device, electronic device and storage medium

By configuring material keywords on the client, using artificial intelligence to generate material balls, the problems of low material generation efficiency and high labor cost in animation production are solved, and intelligent and automated material generation is realized, and a variety of DCC software is adapted to.

CN117011442BActive Publication Date: 2025-08-22DIVINE VISION (SHENZHEN) CULTURE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310965144.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-01
Publication Date
2025-08-22
Estimated Expiration
2043-08-01

AI Technical Summary

Technical Problem

In animation production, the material generation efficiency is low, the labor cost is high, and the existing material production methods mainly based on handmade are inefficient.

Method used

The material keywords are configured by the client, instruct the server to generate basic maps, and select and confirm the generated materials on the client. The artificial intelligence model is used to automatically generate material balls, which supports thumbnails, tiling and three-dimensional preview modes, and is adapted to different DCC software.

Benefits of technology

It improves material generation efficiency, reduces labor costs, supports a variety of DCC software, and realizes intelligent and automated material generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117011442B_ABST
    Figure CN117011442B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a material generation method, device, electronic device, and storage medium. The method includes: in response to a parameter configuration operation for a target material to be generated, determining basic generation parameters required to generate a base map, wherein the basic generation parameters include: material keywords used to describe the target material; sending a base map generation request to a server based on the basic generation parameters, obtaining at least one base map returned by the server, and displaying at least one base map; in response to selecting a base map from the at least one displayed base map and confirming the generation of a material for the selected base map, downloading a map file of the selected base map from the server, and using the map file to generate the target material. According to the embodiments of the present disclosure, the efficiency of material generation can be effectively improved and the cost of manual production can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a material generation method, device, electronic device, and storage medium. Background Art

[0002] During animation production, materials are used in conjunction with shaders to control the surface appearance of animation elements. Materials are the most basic elements. Currently, the industry's main method of producing materials is manual production. Basic maps, normal maps, height maps, and other maps are manually created, and finally the produced maps are manually configured into material balls in DCC (Digital Content Creation) software. The current material production method is inefficient and has high labor costs. Summary of the Invention

[0003] In view of this, the present disclosure proposes a material generation method, device, electronic device and storage medium, which can improve material generation efficiency and reduce manual production costs.

[0004] According to one aspect of the present disclosure, a material generation method is provided, which is applied to a client, and the method includes: in response to a parameter configuration operation for a target material to be generated, determining basic generation parameters required for generating a base map, wherein the basic generation parameters include: material keywords for describing the target material; sending a base map generation request to a server based on the basic generation parameters, obtaining at least one base map returned by the server and displaying the at least one base map; in response to selecting a base map from the at least one displayed base map and confirming the generation of the material of the selected base map, downloading a map file of the selected base map from the server, and the map file is used to generate the target material.

[0005] In one possible implementation, the method further includes: in response to selecting a base texture from at least one displayed base texture and configuring other generation parameters for the selected base texture, sending a request for generating other textures to the server based on the other generation parameters configured for the selected base texture, obtaining at least one other texture returned by the server and displaying the at least one other texture; wherein the other texture parameters include a texture type, and the texture type is used to indicate the type of other texture to be generated; in response to confirming the generation of the material of the selected base texture and selecting other textures from at least one displayed other texture, downloading the texture file of the selected base texture and the texture file of the selected other texture from the server, and the texture file of the selected base texture and the texture file of the selected other texture are used to generate the target material.

[0006] In one possible implementation, the other texture parameters further include: an algorithm type and a magnification factor of a magnification algorithm, wherein the magnification algorithm is used to magnify the resolution of the texture according to the magnification factor; the at least one other texture returned by the server includes at least one other texture with a magnified resolution and a base texture with a magnified resolution; wherein displaying the at least one other texture includes: displaying the at least one other texture with a magnified resolution and the base texture with a magnified resolution returned by the server.

[0007] In a possible implementation, the basic generation parameters also include at least one of the following: a model type of a texture generation model used to generate a basic texture, image information of the basic texture to be generated, keyword relevance, and reverse keywords; the image information includes size and quantity; the keyword relevance is used to control the degree of proximity between the basic texture generated by the basic texture generation model and the material keyword; the reverse keyword is used to prevent the basic texture generated by the basic texture generation model from containing the features described by the reverse keyword.

[0008] In one possible implementation, the basic generation parameters further include: an algorithm type and a magnification factor of a magnification algorithm; the at least one basic texture returned by the server includes at least one basic texture with a magnified resolution; wherein displaying the at least one basic texture includes: displaying the at least one basic texture with a magnified resolution returned by the server.

[0009] In a possible implementation, the method further includes: generating a target material ball adapted to the client according to the map file, and saving the target material ball to a pre-specified local folder or a default file directory of the client.

[0010] In one possible implementation, the method displays a base map and other maps through at least one preview mode of thumbnail mode, tile mode, and three-dimensional mode; the base map includes a diffuse map, and the other maps include at least one of the following: a normal map, a height map, a light map, and a texture map.

[0011] According to another aspect of the present disclosure, a material generation device is provided, which is applied to a client, and the device includes: a basic parameter configuration module, which is used to determine the basic generation parameters required for generating a basic map in response to a parameter configuration operation for a target material to be generated, wherein the basic generation parameters include: material keywords for describing the target material; a map generation module, which is used to send a basic map generation request to a server based on the basic generation parameters, obtain at least one basic map returned by the server and display the at least one basic map; a material generation module, which is used to download a map file of the selected base map from the server in response to selecting a base map from the at least one displayed base map and confirming the generation of the material of the selected base map, and the map file is used to generate the target material.

[0012] In one possible implementation, the device also includes: an other parameter configuration module, which is used to respond to selecting a base texture from at least one displayed base texture and configuring other generation parameters for the selected base texture, send other texture generation requests to the server based on the other generation parameters configured for the selected base texture, obtain at least one other texture returned by the server and display the at least one other texture; wherein the other texture parameters include a texture type, and the texture type is used to indicate the type of other texture to be generated; the material generation module is also used to: respond to confirming the generation of the material of the selected base texture and selecting other textures from at least one other texture displayed, download the texture file of the selected base texture and the texture file of the selected other texture from the server, and the texture file of the selected base texture and the texture file of the selected other texture are used to generate the target material.

[0013] In one possible implementation, the other texture parameters further include: an algorithm type and a magnification factor of a magnification algorithm, wherein the magnification algorithm is used to magnify the resolution of the texture according to the magnification factor; the at least one other texture returned by the server includes at least one other texture with a magnified resolution and a base texture with a magnified resolution; wherein displaying the at least one other texture includes: displaying the at least one other texture with a magnified resolution and the base texture with a magnified resolution returned by the server.

[0014] In a possible implementation, the basic generation parameters also include at least one of the following: a model type of a texture generation model used to generate a basic texture, image information of the basic texture to be generated, keyword relevance, and reverse keywords; the image information includes size and quantity; the keyword relevance is used to control the degree of proximity between the basic texture generated by the basic texture generation model and the material keyword; the reverse keyword is used to prevent the basic texture generated by the basic texture generation model from containing the features described by the reverse keyword.

[0015] In one possible implementation, the basic generation parameters further include: an algorithm type and a magnification factor of a magnification algorithm; the at least one basic texture returned by the server includes at least one basic texture with a magnified resolution; wherein displaying the at least one basic texture includes: displaying the at least one basic texture with a magnified resolution returned by the server.

[0016] In a possible implementation, the device further includes: a material ball generation module, configured to generate a target material ball adapted to the client according to the texture file, and save the target material ball to a pre-specified local folder or a default file directory of the client.

[0017] In one possible implementation, the device displays a base map and other maps through at least one preview mode among thumbnail mode, tile mode and three-dimensional mode; the base map includes a diffuse map, and the other maps include at least one of the following: a normal map, a height map, a light map, and a texture map.

[0018] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0019] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.

[0020] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0021] According to the embodiments of the present disclosure, by configuring the material keywords of the target material in the client, the user can automatically instruct the server to generate at least one basic map. Then, by selecting any basic map and confirming the generation of the material of the selected basic map, the user can automatically download the map file from the server and automatically generate the corresponding target material, thereby realizing intelligent and automatic generation of target materials, which is conducive to improving material production efficiency and reducing labor costs.

[0022] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0024] Figure 1 A flowchart of a method for generating motion effects according to an embodiment of the present disclosure is shown.

[0025] Figure 2 A schematic diagram illustrating a basic texture display effect in a thumbnail mode according to an embodiment of the present disclosure.

[0026] Figure 3 A schematic diagram illustrating a basic texture display effect in a tiling mode according to an embodiment of the present disclosure.

[0027] Figure 4 A schematic diagram illustrating a basic texture display effect in a three-dimensional mode according to an embodiment of the present disclosure.

[0028] Figure 5 A schematic diagram illustrating other sticker display effects in a thumbnail mode according to an embodiment of the present disclosure.

[0029] Figure 6 A schematic diagram illustrating a main interface for configuring basic biometrics according to an embodiment of the present disclosure is shown.

[0030] Figure 7 A schematic diagram illustrating a main interface for configuring basic biometrics according to an embodiment of the present disclosure is shown.

[0031] Figure 8 A schematic diagram illustrating a configuration interface for other generation parameters according to an embodiment of the present disclosure is shown.

[0032] Figure 9 A schematic diagram illustrating a process of generating a material according to an embodiment of the present disclosure is shown.

[0033] Figure 10 A block diagram of a motion effect generating device according to an embodiment of the present disclosure is shown.

[0034] Figure 11 A block diagram of an electronic device 800 according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0035] Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.

[0036] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0037] In addition, numerous specific details are provided in the following detailed description to better illustrate the present disclosure. Those skilled in the art will appreciate that the present disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail in order to highlight the main points of the present disclosure.

[0038] In order to better understand the solutions of the embodiments of the present disclosure, the following briefly introduces relevant terms and concepts that may be involved in the embodiments of the present disclosure.

[0039] 1) Materials: used to render the visual appearance of virtual models in scenes such as animation, games, and film and television.

[0040] 2) Diffuse Map: Used to describe the color and texture of the model surface, usually including basic color, pattern, texture and other information.

[0041] 3) Normal Map: Used to enhance the details and depth of the model surface, and to produce a visual effect of height and depth by adjusting the normal direction of the model surface.

[0042] 4) Height or Displacement Map: Similar to a normal map, it is used to enhance the depth and details of the model surface, but it is achieved by modifying the actual vertex position.

[0043] 5) Light Map is used to enrich the lighting information of the model surface and to provide indirect lighting on static models.

[0044] 6) Texture Map is used to enhance the texture details of the model surface, making the rendered model surface look more realistic.

[0045] 7) Unreal Engine (UE for short): It is a game engine, mainly used as a rendering engine in the animation production field.

[0046] 8) USD (Universal Scene Description): is a three-dimensional (3D) computer graphics scene description format.

[0047] As mentioned above, the current method of making materials in the industry is mainly manual production, which has low production efficiency and high labor costs. In view of this, the embodiment of the present disclosure provides a material generation method, which can use artificial intelligence technology to automatically generate maps such as diffuse maps (Diffuse Map), normal maps (Normal Map) and height maps (Height or Displacement Map) required for material balls, and then automatically generate target material balls that can be applied to DCC software through programming, which greatly improves the production efficiency of materials. Specifically, the user can generate the corresponding basic maps by inputting the material keywords of the target material to be created, and then automatically generate materials according to the basic maps. It also supports preview modes such as thumbnail preview, tiled preview and 3D preview, and is simple and easy to use. It supports a variety of DCC software, such as DCC software under web client Web and application programs. It can be used as a plug-in for Unreal Engine to directly generate UE format material balls, and can also generate USD format material balls to adapt to other DCC software.

[0048] It should be understood that the material generation method of the embodiment of the present disclosure can be applied to various scenes that require material production, such as animation production scenes, game production scenes, film and television production scenes, etc., and the embodiment of the present disclosure is not limited to this.

[0049] The material generation method of the embodiment of the present disclosure can be deployed on various terminal devices through software or hardware modification. The terminal device involved in this application may refer to a device with a wireless connection function. The wireless connection function refers to the ability to connect to other terminal devices through wireless connection methods such as wifi and Bluetooth. The terminal device of this application may also have the function of communicating through a wired connection. The terminal device of this application may be a touch screen, a non-touch screen, or no screen. The touch screen device can be controlled by clicking, sliding, etc. on the display screen with a finger or a stylus. The non-touch screen device can be connected to an input device such as a mouse, keyboard, touch panel, etc., and the terminal device is controlled by the input device. For example, a device without a screen can be a Bluetooth speaker without a screen. For example, the terminal device of this application can be a smart phone, a netbook, a tablet computer, a laptop computer, a wearable electronic device (such as a smart bracelet, a smart watch, etc.), a TV, a virtual reality device, etc.

[0050] The following Figures 1 to 9 The material generation method provided in the embodiment of the present disclosure is introduced in detail.

[0051] Figure 1 The flowchart of the method for generating dynamic effects according to an embodiment of the present disclosure is shown. The method can be applied to a client, for example, a web client for various production materials, an application client, and a plug-in for the Unreal Engine. Figure 1 As shown, the material generation method includes:

[0052] Step S11 : In response to a parameter configuration operation for a target material to be generated, determining basic generation parameters required for generating a base map, wherein the basic generation parameters include: material keywords for describing the target material.

[0053] In actual applications, the client can provide the user with a main interface for configuring basic generation parameters. The main interface can include functional controls for configuring basic generation parameters. For example, an input box can be provided in the main interface to facilitate users to enter material keywords, that is, the parameter configuration operation includes the operation of users entering material keywords.

[0054] The material keyword is used to describe the target material, or to describe the characteristics of the target material. For example, if a user wishes to create a material made of redwood, they can enter keywords such as "red, wood" in the input box to describe the target material they wish to create. It should be understood that users can enter material keywords for the target material they wish to create based on their actual needs, and this disclosure is not limited to this.

[0055] Step S12: Send a basic texture generation request to the server based on the basic generation parameters, obtain at least one basic texture returned by the server, and display the at least one basic texture.

[0056] Optionally, the base texture generation request may be used to instruct the server to generate at least one base texture according to the material keyword in the base generation parameters.

[0057] Among them, sending a basic map generation request to the server based on the basic generation parameters can be understood as calling the relevant interface provided by the server based on the basic generation parameters to instruct the server to generate a basic map. In actual applications, the server can be deployed with a basic map generation model, which can generate at least one basic map based on material keywords. Among them, the basic map generation model can adopt an artificial intelligence model known in the art, for example, a StableDiffusion model (a text-to-image generation model based on a potential diffusion model, which can generate images based on arbitrary text input), etc. The embodiment of the present disclosure does not limit the type of the basic map generation model, as long as it can generate images based on text.

[0058] It should be understood that a base texture generation request includes base generation parameters. Upon receiving the base texture generation request, the server can invoke a deployed base texture generation model to generate at least one base texture based on the material keywords in the base generation parameters. The server can then return the at least one base texture generated by the base texture generation model to the client. The base texture can be a diffuse texture, and based on the diffuse texture, other texture types such as normal maps, height maps, light maps, and texture maps can be generated, but are not limited to these.

[0059] Optionally, the main interface of the client may include a texture preview area, in which the base texture returned by the server may be displayed to preview the base texture, making it convenient for subsequent users to select any base texture to generate the target material.

[0060] In a possible implementation, the method may further display the base texture in at least one preview mode of thumbnail mode, tile mode, and 3D mode. The thumbnail mode may be used to display the base texture with a thumbnail effect, the tile mode may be used to display the base texture with a tile effect, and the 3D mode may be used to display the base texture with a 3D effect. For example, Figure 2 Shows the basic texture display effect in thumbnail mode. Figure 3 Shows the basic texture display effect in a tiling mode. Figure 4 It should be understood that the client can provide the user with the above three preview modes, and the user can select any preview mode to preview the basic texture.

[0061] Step S13 , in response to selecting a base texture from at least one displayed base texture and confirming to generate a material of the selected base texture, downloading a texture file of the selected base texture from the server, wherein the texture file is used to generate a target material.

[0062] Among them, the user can select one or more base textures from at least one displayed base texture; as mentioned above, the base texture returned by the server can be displayed in the texture preview area. For example, the user can select one or more base textures in the texture preview area of ​​the main interface, and then determine the material for generating the selected base texture through the button control for confirming the generation of material provided in the main interface. Then, the client can download the texture file of the selected base texture from the server and generate the target material based on the texture file.

[0063] Among them, the texture file can be an image file specifically used for graphics rendering and image processing, and the texture file of the base texture can specifically include the color, texture and other information contained in the base texture. The base texture returned by the above-mentioned server can be understood as a preview image, which serves as a display in the client, and the texture file of the base texture can be understood as the specific image information of the base texture. The server generates the base texture as a preview image and also generates the texture file of the base texture. Since the data volume of the preview image is much smaller than the data volume of the texture file, by downloading the texture file of the selected base texture from the server when the user selects any base texture and confirms the generation of the material of the selected base texture, it can avoid wasting the client's storage resources.

[0064] Among them, those skilled in the art can use material generation techniques known in the art, such as combining the above-mentioned DCC software, to generate a target material based on a texture file, and the embodiments of the present disclosure are not limited to this. For example, a base material ball can be created first, and then the texture file can be imported into the base material ball to obtain a target material ball.

[0065] As described above, the material generation method of the embodiment of the present disclosure can be applied to different clients such as web clients, application clients, and Unreal Engine plug-ins, and the material formats adapted by different clients are different. For example, web clients or application clients are usually adapted to materials in USD format, and Unreal Engine plug-ins are usually adapted to materials in UE format. In addition, materials are usually saved in the form of material balls in this field to more conveniently use materials to render and color models. Based on this, in a possible implementation, the method further includes: generating a target material ball adapted to the client based on the map file, and saving the target material ball to a pre-specified local folder or the client's default file directory.

[0066] Among them, those skilled in the art can adopt the material ball generation technology known in the art, for example, can be combined with the above-mentioned DCC software to realize the generation of a target material ball adapted to the client based on the map file. For example, if the client is a web client or an application client, the target material ball can be in USD format, and if the client is a plug-in of Unreal Engine, the target material ball can be in UE format. The user can pre-set the save address of the target material ball to save the target material ball in a specified local folder or the default file directory of the client (such as the Content directory of Unreal Engine, etc.), so as to facilitate the application of the target material ball in subsequent animation production scenes, game production scenes and other scenes. It should be understood that the embodiment of the present disclosure does not limit the save address of the target material ball.

[0067] According to the embodiment of the present disclosure, by configuring the material keyword of the target material in the client, the user can automatically instruct the server to generate at least one basic map. Then, by selecting any basic map and confirming the generation of the material of the selected basic map, the user can automatically download the map file from the server and automatically generate the corresponding target material, thereby realizing intelligent and automatic generation of target materials, which is conducive to improving material production efficiency and reducing labor costs.

[0068] Taking into account that, in actual situations, users may also have the need to generate base textures of different styles, base textures of different sizes, and different numbers of base textures. There may also be a need to control the proximity of the base texture to the material keyword and not expect the target material to have certain characteristics. In order to meet the above-mentioned various needs of users, in a possible implementation method, the above-mentioned basic generation parameters also include at least one of the following: the model type of the texture generation model used to generate the base texture, the image information of the base texture to be generated, the keyword relevance, and the reverse keyword; wherein the image information includes the size and quantity; the keyword relevance is used to control the proximity of the base texture generated by the base texture generation model to the material keyword; the reverse keyword is used to prevent the base texture generated by the base texture generation model from containing the features described by the reverse keyword.

[0069] In actual applications, the server can deploy multiple basic texture generation models. Different types of basic texture generation models can be used to generate basic textures of different styles, such as cartoon-style, realistic-style, and other types of basic textures. The client can recommend a default model type to the user. If the user does not adjust the recommended model type, it can be assumed that the user wishes to use the basic texture generation model of the default model type to generate the basic texture. The default model type can then be directly included in the basic generation parameters. Of course, the user can adjust the recommended model type. In this case, the basic generation parameters will include the user-adjusted model type.

[0070] The user can configure the image information of the base texture to instruct the server to generate a base texture that matches the image information, that is, to generate a base texture that matches the size and quantity specified in the image information. The client can recommend default image information to the user. If the user does not adjust the recommended image information, it can be assumed that the user wishes to generate a base texture based on the default image information, and the default image information can be directly included in the above-mentioned basic generation parameters. Of course, the user can adjust the image information, in which case the basic generation parameters will include the user-adjusted image information.

[0071] Among them, the user can control the degree of closeness between the basic texture generated by the basic texture generation model and the material keyword by configuring the keyword relevance. For example, the greater the keyword relevance, the closer the basic texture generated by the basic texture generation model is to the material keyword; the default keyword relevance can also be recommended to the user, and the user can adjust the recommended keyword relevance. The basic generation parameters can include the default keyword relevance or the adjusted keyword relevance.

[0072] The user can configure reverse keywords to exclude the features described by the reverse keywords from the base texture generated by the base texture generation model. For example, if the user does not want holes in redwood, they can enter "hole" in the reverse keyword input box. It should be understood that the user does not need to configure reverse keywords. Only when the user configures reverse keywords will the basic generation parameters above include the configured reverse keywords.

[0073] Based on the aforementioned basic generation parameters, the aforementioned basic texture generation request may also be used to instruct the server to invoke the basic texture generation model indicated by the model type in the basic generation parameters to generate at least one base texture based on the material keywords in the basic generation parameters, as well as at least one of image information, keyword relevance, and reverse keywords. If the basic generation parameters include a model type, the server invokes the basic texture generation model indicated by the model type in the basic generation parameters to generate the base texture. If the basic generation parameters do not include a model type, the server may invoke a default basic texture generation model to generate the base texture.

[0074] Among them, when using the basic map generation model to generate the basic map, the basic generation parameters need to include material keywords, which may include at least one of picture information, keyword relevance and reverse keywords, and may not include picture information, keyword relevance and reverse keywords; when the basic generation parameters include picture information, keyword relevance and reverse keywords, the basic map generation model generates at least one basic map according to the material keywords in the basic generation parameters, as well as the requirements of picture information, keyword relevance and reverse keywords; when the basic generation parameters do not include picture information, the basic map generation model can generate the basic map with default picture information, when the basic generation parameters do not include keyword relevance, the basic map generation model can generate the basic map with default keyword relevance, and when the basic generation parameters do not include reverse keywords, the basic map generation model can generate the basic map with material keywords.

[0075] Considering that the resolution of the base texture generated by the base texture generation model may be low in actual situations and may not meet the user's requirements for texture resolution, in one possible implementation, the base generation parameters may also include: the algorithm type and magnification factor of the magnification algorithm; wherein the magnification algorithm is used to magnify the resolution of the texture according to the specified magnification factor. The server may pre-deploy a magnification algorithm known in the art, such as Realesrgan-X4Plus, Realesrnet-X4Plus, etc. The disclosed embodiments do not limit the type of magnification algorithm; the user can configure the algorithm type and magnification factor of the desired magnification algorithm on the client to instruct the server to magnify the resolution of the base texture generated by the base texture generation model. It should be understood that the user can also choose not to magnify the resolution of the base texture. In this case, the algorithm type and magnification factor of the magnification algorithm do not need to be configured, that is, the basic generation parameters do not need to include the algorithm type and magnification factor of the magnification algorithm.

[0076] In the case where the basic generation parameters include the algorithm type and magnification factor of the magnification algorithm, the above-mentioned basic map generation request can also be used to instruct the server to call the magnification algorithm indicated by the algorithm type in the basic generation parameters to magnify the resolution of at least one basic map generated by the basic map generation model according to the magnification factor in the basic generation parameters, obtain at least one basic map with magnified resolution and return it to the client; that is, the at least one basic map returned by the server includes at least one basic map with magnified resolution; based on this, the client displays at least one basic map in the above-mentioned step 12, including: displaying at least one basic map with magnified resolution returned by the server; and then in the above-mentioned step S13, the user can select a basic map from the at least one displayed base map with magnified resolution, and when determining to generate the material of the selected base map, the client downloads the map file of the selected base map with magnified resolution from the server, and generates the target material based on the downloaded map file at this time.

[0077] Considering that in actual applications, users may also want to generate other types of maps based on base maps in addition to base maps. Other maps can enrich or enhance information that the base maps lack. For example, normal maps can enhance the details and depth of the model surface. In this way, more natural and realistic materials can be generated using the map files of base maps and other maps. In one possible implementation, the method may further include:

[0078] Step S14, in response to selecting a base texture from at least one displayed base texture and configuring other generation parameters for the selected base texture, sending a request to the server to generate another texture based on the other generation parameters configured for the selected base texture, obtaining at least one other texture returned by the server, and displaying the at least one other texture; wherein the other texture parameters include a texture type, and the texture type is used to indicate the type of the other texture to be generated;

[0079] Step S15, in response to confirming the generation of the material of the selected base texture and selecting other textures from at least one other texture displayed, downloading the texture file of the selected base texture and the texture files of the selected other textures from the server, and the texture files of the selected base texture and the texture files of the selected other textures are used to generate the target material.

[0080] Optionally, other texture generation requests may be used to instruct the server to call other texture generation models corresponding to the texture type, and generate at least one other texture based on the selected base texture.

[0081] As described above, other stickers are stickers generated based on the base sticker, so the user can select one or more base stickers from at least one displayed base sticker and configure other generation parameters for generating other stickers. For example, the user can select any base sticker and confirm the generation of other stickers corresponding to the selected base sticker. At this time, other parameter configuration interfaces can be displayed in the client to facilitate the user to configure other generation parameters. Specifically, the sticker type of other stickers that the user expects to generate can be configured.

[0082] The other maps may include, but are not limited to, at least one of the following: a normal map, a height map, a light map, and a texture map. In actual applications, the above-mentioned other parameter configuration interface may also display the map types of other maps available for user selection, so that the user can easily select at least one desired map type from the displayed map types. The other generation parameters include the map type selected by the user.

[0083] Sending a request to the server to generate another sticker based on the other generation parameters configured for the selected base sticker can be understood as calling the relevant server-provided API based on the other generation parameters to instruct the server to generate another sticker. In actual applications, the server can deploy multiple other sticker generation models, and different other sticker generation models can be used to generate other stickers of different sticker types. These other sticker generation models can employ artificial intelligence models known in the art, such as the DeepBump model, and are not limited to this in the present embodiment.

[0084] It should be understood that other texture generation requests include the above-mentioned other generation parameters. After receiving other texture generation requests, the server can call other texture generation models corresponding to the texture type (that is, other texture generation models used to generate basic textures of the texture type) according to the texture type in the other generation parameters to generate at least one other texture based on the selected basic texture, and then the server can return at least one other texture generated by the other texture generation models to the client.

[0085] As described above, the client's main interface can include a texture preview area to display the base texture returned by the server. The texture preview area can also simultaneously display other textures returned by the server, making it easier for users to select other textures they need to generate the target material. Based on this, the method can also display the base texture and other textures in at least one preview mode of thumbnail mode, tile mode, and 3D mode. For example, Figure 5 Shows a base texture, a normal map, and a height map for the selected base texture displayed in thumbnail mode.

[0086] In actual applications, for example, a user can first select a base texture in the texture preview area of ​​the main interface and simultaneously select one or more other textures corresponding to the base texture. The user can then use the button control provided in the main interface to confirm the material generation to determine the material to be generated for the selected base texture. The client can then download the texture file for the selected base texture and the texture files for the selected other textures from the server and generate the target material based on the texture files downloaded from the server. As described above, those skilled in the art can use material generation techniques known in the art to achieve target material generation based on texture files, and the present disclosure is not limited to this.

[0087] As described above, the material generation method of the embodiment of the present disclosure can be applied to different clients such as web clients, application clients, and Unreal Engine plug-ins, and the material formats adapted to different clients are different. Based on this, in a possible implementation method, the method may also include: generating a target material ball adapted to the client based on the texture file of the selected basic texture and the texture files of the selected other textures, and saving the target material ball to a pre-specified local folder or the client's default file directory.

[0088] Considering that in actual situations, the resolution of other textures generated by other texture generation models may also be lower and may not meet the user's texture resolution requirements, based on this, in one possible implementation, other texture parameters may also include: the algorithm type and magnification factor of the magnification algorithm, where the magnification algorithm is used to magnify the texture resolution according to the magnification factor. As described above, the server can pre-deploy a magnification algorithm known in the art, such as RealESRGAN-X4Plus, RealESRNet-X4Plus, and other types of magnification algorithms.

[0089] When configuring the texture type, the user can configure the algorithm type and magnification factor of the required magnification algorithm to instruct the server to amplify the resolution of other textures generated by other texture generation models. Taking into account that the amplification parameters (i.e., the algorithm type and magnification factor of the amplification algorithm) may not be configured when configuring the basic generation parameters, or the amplification parameters configured in the basic generation parameters no longer meet the requirements, in order to make the resolution of the selected base texture consistent with the resolution of other textures generated based on the selected base texture, if the amplification parameters are configured in the other generation parameters, the server can amplify the resolution of other textures according to the amplification parameters in the other generation parameters and also amplify the resolution of the selected base texture, thereby making the resolution of the selected base texture consistent with the resolution of other textures generated based on the selected base texture.

[0090] If the other generation parameters include an algorithm type and a magnification factor of an upscaling algorithm, the other texture generation request may also instruct the server to invoke the upscaling algorithm indicated by the algorithm type in the other texture parameters to upscale the resolution of at least one other texture generated by the other texture generation model and the selected base texture according to the magnification factor in the other texture parameters, thereby obtaining and returning the at least one other texture with upscaled resolution and the base texture with upscaled resolution to the client. In other words, the at least one base texture returned by the server may include the at least one base texture with upscaled resolution. Based on this, the client displaying the at least one other texture in step S14 includes displaying the at least one other texture with upscaled resolution and the base texture with upscaled resolution returned by the server. Furthermore, in step S15, after the user selects another texture from the displayed at least one other texture with upscaled resolution and determines to generate the material for the selected base texture, the client downloads the texture file of the selected base texture with upscaled resolution and the texture file of the selected other texture with upscaled resolution from the server, and generates the target material based on the downloaded texture files. In this way, you can use the texture files of the base texture and other textures with a larger resolution to generate a higher-resolution target material.

[0091] According to the embodiment of the present disclosure, users can automatically generate other maps by configuring other generation parameters, reducing the labor cost of making other maps, and can automatically use basic maps and other maps to generate more natural and realistic target materials, thereby improving the efficiency of material generation.

[0092] To facilitate understanding of the material generation method of the embodiment of the present disclosure, Figure 6 and Figure 7 The main interface for configuring basic parameters is shown. Figure 8 A configuration interface for generating other parameters is shown to introduce the parameter configuration process.

[0093] like Figure 6 As shown, the main interface mainly includes a parameter configuration area on the left, a texture preview area on the right, and a function button area at the bottom; wherein, the texture preview area can be used to preview the basic texture and other textures generated subsequently. The texture preview area provides thumbnail mode, tile mode, and 3D preview mode (i.e., three-dimensional mode) for previewing each texture; the "Generate Preview" in the function button area can be used to send a basic texture generation request to the server to instruct the server to regenerate the basic texture based on the basic generation parameters. For example, when the user has configured or reconfigured the basic generation parameters, the basic texture can be generated by clicking "Generate Preview";

[0094] The "Generate Texture" button in the function button area can be used to generate other types of textures. For example, when the user selects a basic texture and clicks the "Generate Texture" button, the client can display Figure 7 The configuration interface shown is used to configure other generation parameters to generate other types of maps such as normal maps and height maps; the "Generate Material Ball" in the function button area can be used to instruct the client to generate a target material ball. For example, when the user selects a base map and other maps generated based on the base map at the same time, the user can click the "Generate Material Ball" button. At this time, the client can download the texture file of the selected base map and the texture files of the other selected maps from the server, and generate a material ball based on the downloaded texture files; alternatively, the user can also select only the base map and click the "Generate Material Ball" button. In this case, the client can download the texture file of the selected base map from the server and generate a material ball based on the downloaded texture file.

[0095] like Figure 6 As shown, the parameter configuration area can be used to configure the above basic generation parameters. For example, the user can select the model type of the basic map generation model through the drop-down box (such as Figure 6 v1-5-pruned in the current model type can be selected), you can enter the material keyword in the input box (for example Figure 6 You can also enter reverse keywords; you can configure the image width through the slider or input box (such as Figure 6 512) and picture height (such as Figure 6 512 in the configuration), that is, the size of the basic map; you can configure the generated batch through the slider or input box (such as Figure 6 2) and the number of pictures per batch (such as Figure 6 2) is configured in the configuration, that is, the number of configured base maps. It should be understood that the base map generation model usually generates images in batches. The product of the configured generation batch and the number of images in each batch is the number of configured base maps, for example Figure 6 The generation batch and the number of images per batch configured in are 2 respectively, which means that a total of 4 basic maps will be generated; users can also configure the keyword relevance through the slider or input box (such as Figure 6 7) The user can also select whether to use the magnification algorithm through the selection box. If the magnification algorithm is selected, the following will be displayed: Figure 7 Configuration controls for the amplification parameters shown are used to configure the algorithm type and amplification factor of the amplification algorithm.

[0096] In practical applications, Figure 6 The parameter configuration area in the can also add user-configurable basic generation parameters based on actual needs. For example, model parameters of the base texture generation model (such as the Stable Diffusion model) can be added, such as the sampling method, sampling iteration number, and other model parameters. The sampling method and sampling iteration number can be parameters that control the generation accuracy and generation speed of the base texture generation model. The parameter configuration area can also add the "Tile / Block" option to support optimizing the base texture in a tiled or block manner to meet user needs.

[0097] like Figure 8 As shown, the configuration interface of other generation parameters can directly display the configuration control of the amplification parameters, and the user can select the algorithm type of the amplification algorithm through the drop-down box (for example Figure 8 The R-ESRGAN 4x+ shown in the figure is an algorithm type), and the magnification can be set by sliding the bar or inputting a box. The base map in the map list is the default item, and the normal map, height map, light map, and texture map are optional. The user can select one or more other maps from the optional items, and then the user can click the "Generate" button to generate other maps, or click the "Cancel" button to cancel the generation of other maps. It should be understood that when the user clicks the "Generate" button, the client can send other map generation requests to the server to instruct the server to generate other maps; the other maps returned by the server can be displayed in Figure 6 The texture preview area.

[0098] It should be noted that Figure 6 and Figure 7 The main interface shown is Figure 8 The configuration interface shown is an exemplary possible implementation provided by the embodiment of the present disclosure. Figure 6 、 Figure 7 and Figure 8 The parameter configuration process is described above as an example, but those skilled in the art will appreciate that the present disclosure is not limited thereto. In fact, users can flexibly set the layout of the parameter configuration interface and the included functional controls based on their personal preferences and / or actual application scenarios, as long as they can configure the above-mentioned basic generation parameters and other generation parameters.

[0099] Based on the above Figure 6 and Figure 8 , the present disclosure also provides Figure 9 A schematic diagram showing a process of material generation is shown below. Figure 9 As shown, the process includes: the user opens the material generation tool (that is, the client that applies the material generation method of the embodiment of the present disclosure) to display Figure 6 The main interface of the main interface, enter the material keyword of the target material to be generated in the main interface and adjust other basic generation parameters provided in the main interface. The client sends a basic map generation request to the server based on the configured basic generation parameters. The server generates the basic map and returns it to the client for display. The user selects any basic map from the displayed basic maps and enters Figure 8 After configuring other texture parameters using the configuration interface shown, the client sends a request to the server to generate other textures based on the configured other generation parameters. The server generates a high-definition texture, that is, generates other textures with enlarged resolution and basic textures with enlarged resolution, and returns them to the client for display. The user selects other textures with enlarged resolution, and the client downloads the texture files of the selected other textures with enlarged resolution and basic textures with enlarged resolution from the server, generates a target material ball based on the downloaded texture file, and exports and saves the target material ball.

[0100] Figure 10 A block diagram of a motion effect generation device according to an embodiment of the present disclosure is shown. The device can be applied to a client, such as Figure 10 As shown, the device includes:

[0101] The basic parameter configuration module 101 is used to determine the basic generation parameters required for generating a basic map in response to a parameter configuration operation for a target material to be generated, wherein the basic generation parameters include: material keywords for describing the target material;

[0102] A texture generation module 102 is configured to send a basic texture generation request to a server based on the basic generation parameters, obtain at least one basic texture returned by the server, and display the at least one basic texture;

[0103] The material generation module 103 is configured to, in response to selecting a base texture from at least one displayed base texture and confirming to generate a material of the selected base texture, download a texture file of the selected base texture from the server, and the texture file is used to generate a target material.

[0104] In one possible implementation, the apparatus further includes: an other parameter configuration module, configured to, in response to selecting a base texture from at least one displayed base texture and configuring other generation parameters for the selected base texture, send an other texture generation request to the server based on the other generation parameters configured for the selected base texture, obtain at least one other texture returned by the server, and display the at least one other texture; wherein the other texture parameters include a texture type, and the texture type is used to indicate the type of the other texture to be generated;

[0105] The material generation module 103 is further configured to: in response to confirming the generation of the material of the selected base texture and selecting another texture from at least one other texture displayed, download the texture file of the selected base texture and the texture file of the other selected texture from the server, and use the texture file of the selected base texture and the texture file of the other selected texture to generate the target material.

[0106] In one possible implementation, the other texture parameters further include: an algorithm type and a magnification factor of a magnification algorithm, wherein the magnification algorithm is used to magnify the resolution of the texture according to the magnification factor; the at least one other texture returned by the server includes at least one other texture with a magnified resolution and a base texture with a magnified resolution; wherein displaying the at least one other texture includes: displaying the at least one other texture with a magnified resolution and the base texture with a magnified resolution returned by the server.

[0107] In a possible implementation, the basic generation parameters also include at least one of the following: a model type of a texture generation model used to generate a basic texture, image information of the basic texture to be generated, keyword relevance, and reverse keywords; the image information includes size and quantity; the keyword relevance is used to control the degree of proximity between the basic texture generated by the basic texture generation model and the material keyword; the reverse keyword is used to prevent the basic texture generated by the basic texture generation model from containing the features described by the reverse keyword.

[0108] In one possible implementation, the basic generation parameters further include: an algorithm type and a magnification factor of a magnification algorithm; wherein the at least one basic texture returned by the server includes at least one basic texture with a magnified resolution; wherein displaying the at least one basic texture includes: displaying the at least one basic texture with a magnified resolution returned by the server.

[0109] In a possible implementation, the device further includes: a material ball generation module, configured to generate a target material ball adapted to the client according to the texture file, and save the target material ball to a pre-specified local folder or a default file directory of the client.

[0110] In one possible implementation, the device displays a base map and other maps through at least one preview mode among thumbnail mode, tile mode and three-dimensional mode; the base map includes a diffuse map, and the other maps include at least one of the following: a normal map, a height map, a light map, and a texture map.

[0111] According to the embodiment of the present disclosure, by configuring the material keyword of the target material in the client, the user automatically instructs the server to generate at least one basic map. Then, by selecting any basic map and confirming the generation of the material of the selected basic map, the user can automatically download the map file from the server and automatically generate the corresponding target material, thereby realizing intelligent and automated production of the target material, which is conducive to improving material production efficiency and reducing labor costs.

[0112] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.

[0113] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

[0114] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0115] An embodiment of the present disclosure also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0116] Figure 11 The block diagram of an electronic device 800 according to an embodiment of the present disclosure is shown. For example, the electronic device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or other terminal device.

[0117] Reference Figure 11 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 (I / O interface), a sensor component 814 , and a communication component 816 .

[0118] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

[0119] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0120] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0121] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0122] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0123] The input / output interface 812 provides an interface between the processing component 802 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0124] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect changes in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and temperature changes of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0125] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0126] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0127] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions. The computer program instructions can be executed by the processor 820 of the electronic device 800 to perform the above method.

[0128] The present disclosure may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0129] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.

[0130] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in the computer-readable storage medium in each computing / processing device.

[0131] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, and conventional procedural programming languages ​​such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., utilizing an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions. The electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0132] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0133] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0134] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0135] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the prescribed logical function. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the prescribed function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0136] While various embodiments of the present disclosure have been described above, the foregoing description is intended to be illustrative, non-exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or technological improvements in the marketplace, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A material generation method, characterized in that: Applied to a client, the method includes: In response to a parameter configuration operation for a target material to be generated, determining basic generation parameters required for generating a base texture, wherein the basic generation parameters include at least two of the following: a material keyword for describing the target material, a model type of a texture generation model for generating the base texture, image information of the base texture to be generated, keyword relevance, and reverse keywords; Sending a basic texture generation request to a server based on the basic generation parameters, obtaining at least one basic texture generated and returned by the server according to the basic generation parameters, and displaying the at least one basic texture, wherein the basic texture serves as a preview image displayed on the client; In response to selecting a base texture from at least one displayed base texture and confirming to generate a material of the selected base texture, downloading a texture file of the selected base texture from the server, wherein the texture file is used to generate a target material; The method further comprises: In response to selecting a base texture from at least one displayed base texture and configuring other texture parameters for the selected base texture, sending an additional texture generation request to the server based on the other texture parameters configured for the selected base texture, obtaining at least one additional texture returned by the server, and displaying the at least one additional texture; wherein the other texture parameters include a texture type, and the texture type is used to indicate the type of additional texture to be generated; In response to confirming the generation of the material of the selected base texture and selecting another texture from at least one other texture displayed, downloading the texture file of the selected base texture and the texture files of the selected other textures from the server, and the texture files of the selected base texture and the texture files of the selected other textures are used to generate the target material.

2. The method according to claim 1, characterized in that The other mapping parameters also include: an algorithm type and a magnification factor of an amplification algorithm, wherein the amplification algorithm is used to amplify the resolution of the map according to the magnification factor; The at least one other texture returned by the server includes the at least one other texture with a larger resolution and the base texture with a larger resolution; The displaying of the at least one other texture includes: displaying the at least one other texture with an enlarged resolution returned by the server and the basic texture with an enlarged resolution.

3. The method according to claim 1, characterized in that The basic generation parameters also include: the algorithm type and magnification of the amplification algorithm; The at least one base texture returned by the server includes at least one base texture with a magnified resolution; The displaying of the at least one basic texture includes: displaying the at least one basic texture returned by the server with an amplified resolution.

4. The method according to claim 1, wherein The method further comprises: A target material ball adapted to the client is generated according to the map file, and the target material ball is saved in a pre-specified local folder or a default file directory of the client.

5. The method according to claim 1 or 2, characterized in that The method displays the base texture and other textures in at least one preview mode of thumbnail mode, tile mode and three-dimensional mode; The basic map includes a diffuse map, and the other maps include at least one of the following: a normal map, a height map, a light map, and a texture map.

6. A material generation device, characterized in that: Applied to a client, the device includes: a basic parameter configuration module, configured to determine basic generation parameters required for generating a base texture in response to a parameter configuration operation for a target material to be generated, wherein the basic generation parameters include at least two of the following: a material keyword for describing the target material, a model type of a texture generation model for generating the base texture, image information of the base texture to be generated, keyword relevance, and reverse keywords; a texture generation module, configured to send a basic texture generation request to a server based on the basic generation parameters, obtain at least one basic texture generated and returned by the server based on the basic generation parameters, and display the at least one basic texture, wherein the basic texture serves as a preview image displayed on the client; a material generation module, configured to, in response to selecting a base texture from at least one displayed base texture and confirming to generate a material of the selected base texture, download a texture file of the selected base texture from the server, wherein the texture file is used to generate a target material; The device further includes: an other parameter configuration module, configured to, in response to selecting a base sticker from at least one displayed base sticker and configuring other sticker parameters for the selected base sticker, send an other sticker generation request to the server based on the other sticker parameters configured for the selected base sticker, obtain at least one other sticker returned by the server, and display the at least one other sticker; wherein the other sticker parameters include a sticker type, and the sticker type is used to indicate the type of other sticker to be generated; The material generation module is further configured to: in response to confirming the generation of the material of the selected base texture and selecting another texture from at least one other texture displayed, download the texture file of the selected base texture and the texture file of the other selected texture from the server, and use the texture file of the selected base texture and the texture file of the other selected texture to generate the target material.

7. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 5 when executing the instructions stored in the memory.

8. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Map generation method, device, apparatus and storage medium

    CN108537861A

  • Material generation method of virtual object, electronic equipment and storage medium

    CN116485973A