CN115375813A - Rendering method and device of virtual model, storage medium and electronic device - Google Patents

Rendering method and device of virtual model, storage medium and electronic device Download PDF

Info

Publication number
CN115375813A
CN115375813A CN202210963459.6A CN202210963459A CN115375813A CN 115375813 A CN115375813 A CN 115375813A CN 202210963459 A CN202210963459 A CN 202210963459A CN 115375813 A CN115375813 A CN 115375813A
Authority
CN
China
Prior art keywords
information
model
rendered
rendering
map
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.)
Pending
Application number
CN202210963459.6A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210963459.6A priority Critical patent/CN115375813A/en
Publication of CN115375813A publication Critical patent/CN115375813A/en
Pending legal-status Critical Current

Links

Images

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
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a rendering method and device of a virtual model, a storage medium and an electronic device. The method comprises the following steps: obtaining art resources of a model to be rendered; dividing art resources to obtain model information, material information and associated information, wherein the model information is used for representing attribute information of a model to be rendered, the material information is used for representing material performance of the model to be rendered, and the associated information at least comprises a corresponding relation between the model information and the material information; generating a plurality of material layers based on the material information, wherein each material layer corresponds to a different type of material; rendering the model to be rendered based on the multiple material layers, the model information and the associated information to obtain a first target model. The method solves the technical problem that in the prior art, the material iteration efficiency is low when the virtual model is rendered due to the mutual coupling of the material and the model.

Description

Rendering method and device of virtual model, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a rendering method and device of a virtual model, a storage medium and an electronic device.
Background
At present, with the requirement of players on the quality of game art becoming higher and higher, the time period of game development is becoming longer and longer in order to meet the requirements of players. With the improvement of the competitive requirement of the game, the traditional model-material art resource is more and more difficult to meet the requirement on precision. Moreover, as the game development period is prolonged, the model material with high quality at the initial stage of the project may not meet the project requirements at the later stage of the project, and the traditional model material making mode has high cost when the model material is iterated and low material development efficiency.
Conventionally, when creating a texture, a DCC tool of Substance Painter is generally used to create various texture maps, such as an albedo map, a degree of metallization map, a normal map, and an environmental shield map. In the game engine, the texture map is directly connected to the corresponding texture, so that the virtual model is rendered.
The accuracy of material is mainly paid attention to current material preparation scheme, and the quality of material can be guaranteed to current preparation material scheme promptly, but the expression effect of material on virtual model can receive the influence of different fine arts personnel preparation material skills, and especially under the environment of difference, there is the difference in the expression effect of material to lead to the problem that the material goes out the inconsistent quality. Moreover, the existing material manufacturing scheme is also influenced by the resolution of the mapping, wherein the better the expression effect is, the higher the resolution of the mapping is required, so that a large number of mappings are required when the virtual model is subjected to close-up writing, and therefore, greater pressure is generated on the performance of a game engine and a bag body. In addition, in the process of manufacturing the material in the prior art, if some parameters of the virtual model are changed, the artistic personnel is required to re-manufacture the chartlet, the operation is complex, and the iteration efficiency of the material is reduced. In addition, in the prior art, in the process of iterating the material, if the material chartlet needs to be replaced, the chartlet needs to be redrawn, so that the manufacturing cost of the material is increased, and the iteration efficiency of the material is reduced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
At least some embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic apparatus for rendering a virtual model, so as to at least solve the technical problem in the prior art that a material iteration efficiency is low when a virtual model is rendered due to mutual coupling between a material and the model.
According to an embodiment of the present invention, there is provided a rendering method of a virtual model, including: obtaining art resources of a model to be rendered; dividing art resources to obtain model information, material information and associated information, wherein the model information is used for representing attribute information of a model to be rendered, the material information is used for representing material performance of the model to be rendered, and the associated information at least comprises a corresponding relation between the model information and the material information; generating a plurality of material layers based on the material information, wherein each material layer corresponds to a different type of material; rendering the model to be rendered based on the multiple material layers, the model information and the associated information to obtain a first target model.
According to an embodiment of the present invention, there is also provided an apparatus for rendering a virtual model, including: the acquisition module is used for acquiring art resources of the model to be rendered; the system comprises a classification module, a rendering module and a rendering module, wherein the classification module is used for dividing art resources to obtain model information, material information and associated information, the model information is used for representing attribute information of a model to be rendered, the material information is used for representing material expression of the model to be rendered, and the associated information at least comprises a corresponding relation between the model information and the material information; the generating module is used for generating a plurality of material layers based on the material information, wherein each material layer corresponds to different types of materials; and the rendering module is used for rendering the model to be rendered based on the multiple material layers, the model information and the associated information to obtain a first target model.
According to an embodiment of the present invention, there is further provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above-mentioned rendering method of the virtual model when running.
There is further provided, according to an embodiment of the present invention, an electronic apparatus including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the rendering method of the virtual model.
In this application at least some embodiments, adopt the mode of carrying out the decoupling zero to model information and material information in the fine arts resource, after obtaining the fine arts resource of waiting to render the model, through dividing the fine arts resource, obtain model information, material information and associated information, and generate a plurality of material layers based on the material information, finally, based on a plurality of material layers, model information and associated information, it is to the model of waiting to render, obtain first object model, wherein, model information is used for the attribute information of the model of waiting to render of sign, material information is used for the material performance of the model of waiting to render of sign, associated information includes the corresponding relation between model information and the material information at least, every material layer corresponds the material of different grade type.
In the process, the art resources are divided into the model information, the material information and the associated information, namely, in the application, the model information and the material information in the art resources are decoupled, so that when the model information of the virtual model is adjusted, the material information does not need to be adjusted, the chartlet does not need to be redrawn, and the iteration efficiency of the material is improved. In addition, in the application, the material layers are generated based on the material information, and different material layers correspond to different types of materials, so that in the process of rendering the model, if the material of the virtual model needs to be replaced, only the current material layer needs to be switched to the material layer corresponding to the material, the material information does not need to be modified, the charting is not needed to be redrawn, and the iteration efficiency of the material is further improved.
According to the technical scheme, the purpose of rendering the virtual model is achieved, the technical effect of improving the iteration efficiency of the material is achieved, and the technical problem that in the prior art, due to the fact that the material and the model are coupled with each other, the material iteration efficiency is low when the virtual model is rendered is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a rendering method of a virtual model according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method of rendering a virtual model according to one embodiment of the invention;
FIG. 3 is a diagram illustrating third texture information according to an alternative embodiment of the present invention;
FIG. 4 is a diagram illustrating fourth texture information in accordance with an alternative embodiment of the present invention;
FIG. 5 is a schematic view of a door lock model according to an alternative embodiment of the present invention;
FIG. 6 is a schematic diagram of a metal material according to an alternative embodiment of the present invention;
FIG. 7 is a schematic diagram of a material corresponding to a material of a fabric according to an alternative embodiment of the present invention;
FIG. 8 is a schematic view of the leather material according to an alternative embodiment of the present invention;
FIG. 9 is a schematic view of a key model according to an alternative embodiment of the present invention;
FIG. 10 is a schematic illustration of a normal map in accordance with an alternative embodiment of the present invention;
FIG. 11 is a schematic view of an environmental occlusion map, in accordance with an alternative embodiment of the present invention;
FIG. 12 is a schematic illustration of a hybrid map according to an alternative embodiment of the present invention;
FIG. 13 is a schematic illustration of a hybrid map according to an alternative embodiment of the present invention;
FIG. 14 is a schematic illustration of a key ring texture map in accordance with an alternative embodiment of the present invention;
FIG. 15 is a schematic illustration of a metal chartlet of a key body according to an alternate embodiment of the present invention;
FIG. 16 is a schematic representation of a rubber material map of a key handle according to an alternative embodiment of the present invention;
FIG. 17 is a diagrammatic illustration of a dirty map in accordance with an alternative embodiment of the present invention;
FIG. 18 is a schematic illustration of a scratch map in accordance with an alternative embodiment of the present invention;
FIG. 19 is a schematic view of a brass key model in accordance with an alternative embodiment of the present invention;
FIG. 20 is a block diagram of an apparatus for rendering a virtual model according to an alternative embodiment of the present invention;
fig. 21 is a schematic diagram of an electronic device according to an alternative embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with one embodiment of the present invention, there is provided an embodiment of a method for rendering a virtual model, wherein the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and wherein although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that described herein.
The method embodiments may be performed in a mobile terminal, a computer terminal or a similar computing device. Taking the example of the mobile terminal running on the mobile terminal, the mobile terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a mobile internet device (MID for short), a PAD, a game machine, etc. Fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a rendering method of a virtual model according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may further include a transmission device 106, an input/output device 108, and a display device 110 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the rendering method of the virtual model in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above-described rendering method of the virtual model. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet via wireless.
The inputs in the input output Device 108 may come from a plurality of Human Interface Devices (HIDs). For example: keyboard and mouse, game pad, other special game controller (such as steering wheel, fishing rod, dance mat, remote controller, etc.). Some human interface devices may provide output functions in addition to input functions, such as: force feedback and vibration of the gamepad, audio output of the controller, etc.
The display device 110 may be, for example, a head-up display (HUD), a touch screen type Liquid Crystal Display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on a touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, talking interfaces, playing digital video, playing digital music, and/or web browsing, etc., and for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable storage media.
The rendering method of the virtual model in one embodiment of the present disclosure may be executed on a local terminal device or a server. When the rendering method of the virtual model is run on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and operation of the rendering method of the virtual model are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an optional implementation manner, taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
In a possible implementation manner, an embodiment of the present invention provides a rendering method for a virtual model, which provides a graphical user interface through a terminal device, where the terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in a cloud interaction system. Fig. 2 is a flowchart of a rendering method of a virtual model according to an embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
and step S202, obtaining art resources of the model to be rendered.
In step S202, the model to be rendered may be a virtual character model in a game scene or other scenes, or may be a non-character model (e.g., a mountain, a stone, a tree, a river, a cloud, etc.). The model to be rendered may be the whole of the virtual model or may be part of the virtual model.
In addition, the art resources are resources required for rendering the model to be rendered. The terminal equipment can read the art resources corresponding to the model to be rendered from the resource library in which the various art resources are stored. For example, the terminal device may read the corresponding art resource from the resource library according to the model identifier of the model to be rendered, where the model identifier may represent the model type of the model to be rendered.
In addition, the terminal equipment can also receive a resource library customized by a user, and reads art resources corresponding to the model to be rendered from the resource library.
And step S204, dividing the art resources to obtain model information, material information and associated information.
In step S204, the model information is used to represent attribute information of the model to be rendered, the material information is used to represent material expression of the model to be rendered, and the association information at least includes a corresponding relationship between the model information and the material information. That is, the material information is information related to material expression, such as inherent color information of material texture, roughness information of material, degree of metallization information, highlight information, and ambient light shielding information. The model information and the related information are resources other than information related to material expression in the art resources, for example, the model information may include, but is not limited to, inherent color information of the model material, normal information including only the model irregularity, scratch information (e.g., position, length, etc.) of the model surface, smudge information of the model surface, groove information of the model surface, ambient light shielding information of the model, roughness information based on the model, and the like; the associated information may include, but is not limited to, mask maps (i.e., mask maps) used to partition information of different materials on the model and correspondence between the materials and the Mask maps.
It should be noted that, in step S204, the art resources are divided into model information, material information and associated information, and the fact is that decoupling of the model information and the material information is realized, so that modification of the model information does not affect the material information, and similarly, adjustment of the material information does not affect the model information, so that when the model information changes, a chartlet does not need to be redrawn; when the material is required to be adjusted, the corresponding material information is adjusted, and the chartlet is not required to be redrawn, so that the iteration efficiency of the material is improved.
In addition, it should be noted that, in the present application, the model information and the material information are not completely decoupled, but are decoupled to a certain extent, so that the reuse rate of the virtual model is ensured.
In step S206, a plurality of material layers are generated based on the material information, wherein each material layer corresponds to a different type of material.
In step S206, the artist can combine the material information according to actual requirements, and can obtain a plurality of different types of materials, for example, the artist can obtain two materials with different roughness by modifying the roughness of the texture of the material.
In addition, the terminal device acquires combination information obtained by combining the material information by the art personnel, and then generates a material layer for each combination information. When a user needs to render the model to be rendered, the corresponding material layer and the part to be rendered in the model to be rendered can be connected, and the part to be rendered can have the material performance corresponding to the material layer. For example, if the user connects the brass material to the metal portion of the key model, the metal portion of the key model may have an expression effect corresponding to the brass material.
It should be noted that, because different types of materials correspond to different material layers, for example, a rusty spot steel material is different from a material layer corresponding to a corroded wood material and a cupreous ash material, in the process of rendering the model to be rendered, a user can switch different material layers according to requirements to switch the materials of the model to be rendered, and in the process, an art worker does not need to redraw the material map, so that the iteration efficiency of the material map is improved.
And S208, rendering the model to be rendered based on the multiple material layers, the model information and the associated information to obtain a first target model.
It should be noted that, because the association information includes the corresponding relationship between the model information and the material information, the material type corresponding to each part of the model to be rendered can be determined according to the corresponding relationship and the model information, and then the corresponding part of the model to be rendered is rendered according to the material layer corresponding to each material type, thereby implementing the rendering of the model to be rendered.
It should be noted that, in the process of rendering a model to be rendered, the same material library is used, where the material library is composed of a plurality of material layers, and therefore, when different virtual models are rendered, the rendered models are basically consistent in model quality, thereby avoiding the problem of large model quality difference caused by the influence of the production skills of different artists on the expression effect of the virtual models in the prior art.
Based on the schemes defined in the foregoing steps S202 to S208, it can be known that, in at least some embodiments of the present application, a manner of decoupling model information and material information in an art resource is adopted, after the art resource of a model to be rendered is obtained, the art resource is divided to obtain model information, material information, and association information, a plurality of material layers are generated based on the material information, and finally, the model to be rendered is rendered based on the plurality of material layers, the model information, and the association information to obtain a first target model, where the model information is used to represent attribute information of the model to be rendered, the material information is used to represent material performance of the model to be rendered, the association information at least includes a corresponding relationship between the model information and the material information, and each material layer corresponds to a material of a different type.
It is easy to note that in the above process, the art resources are divided into model information, material information and associated information, that is, in the present application, the model information and the material information in the art resources are decoupled, so that when the model information of the virtual model is adjusted, the material information does not need to be adjusted, and the chartlet does not need to be redrawn, thereby improving the iteration efficiency of the material. In addition, in the application, the material layers are generated based on the material information, and different material layers correspond to different types of materials, so that in the process of rendering the model, if the material of the virtual model needs to be replaced, only the current material layer needs to be switched to the material layer corresponding to the material, the material information does not need to be modified, the charting is not needed to be redrawn, and the iteration efficiency of the material is further improved.
According to the technical scheme, the purpose of rendering the virtual model is achieved, the technical effect of improving the iteration efficiency of the material is achieved, and the technical problem that in the prior art, due to the fact that the material is coupled with the model, the material iteration efficiency is low when the virtual model is rendered is solved.
In an optional embodiment, in the process of rendering the model to be rendered, after the terminal device obtains the art resources, the terminal device divides the art resources, and after the art resources are divided to obtain the model information, the material information and the associated information, the terminal device continues to further divide the divided material information.
Specifically, the terminal device first obtains sub-material information from the material information, then classifies the material information according to the influence degree of the sub-material information on the material surface to obtain first material information and second material information, and classifies the second material information according to the influence type of the sub-material information on the material surface to obtain third material information and fourth material information, wherein the first material information represents that the sub-material information does not influence the material surface, the second material information represents that the sub-material information influences the material surface, the third material information represents that a newly added substance exists on the material surface, and the third material information is a schematic diagram of the third material information shown in fig. 3, the material is composed of a bottom layer material and a surface layer material, and the surface layer material has ash; the fourth material information represents that there is a damage on the surface of the material, and as shown in the schematic diagram of the fourth material information in fig. 4, the material is composed of the bottom layer material and the surface layer material, and the surface layer material is damaged.
Optionally, the first material information is basic information, for example, solid color or fixed value of the texture of the material Tiling, normal information of the material Tiling, roughness or fixed value of the material Tiling, metal degree or fixed value of the material Tiling, highlight or fixed value of the material Tilling, ambient light shielding or fixed value of the material Tiling, and the like.
The second material information is non-basic information, wherein the second material information can be divided into third material information (i.e. stain type information) and fourth material information (i.e. scratch type) according to the principle of whether the material itself is damaged. Optionally, the information of the rust, dust, stain, etc. is attributed to the third material information, for example, the fixed color or fixed numerical value of the stain area Tiling texture, the normal information of the stain area Tiling, the roughness or fixed numerical value of the stain area Tiling, the metal degree or fixed numerical value of the stain area Tiling, the highlight or fixed numerical value of the stain area Tilling, and the ambient light shielding or fixed numerical value of the stain area Tiling. Optionally, the information of scratch, damage, abrasion, etc. is attributed to the fourth material information, for example, the inherent color or fixed value of the texture of the scratch region Tiling, the normal information of the scratch region Tiling, the roughness or fixed value of the scratch region Tiling, the metalalness or fixed value of the scratch region Tiling, the highlight or fixed value of the scratch region Tilling, the ambient light shielding or fixed value of the scratch region Tiling, etc.
Optionally, the schematic diagram of the door lock model shown in fig. 5 is taken as an example for explanation, and in fig. 5, the door lock model shows the following material information: handle wear information, handle rust information, door panel scratch information, door frame damage information, groove dust information, door lock stain information. As shown in area 1 in fig. 5, in the door handle position, because the door handle is used by a person for a long time, the edge of the hand-held part is worn and the metal on the surface layer is worn and polished to generate wear, so that the handle wear information needs to be added when the material corresponding to the door handle of the door lock model is generated; as shown in area 2 of fig. 5, sweat on the palm of the hand can corrode the metal part of the door handle due to long-time use, so that the door handle has obvious rust, and therefore, handle rust information needs to be added when the material corresponding to the door handle of the door lock model is generated; as shown in an area 3 in fig. 5, due to the use problem, scratches are left on the door panel, the paint on the surface layer is rubbed off, and the original wood color under the door panel is exposed, so that door panel scratch information needs to be added when the material corresponding to the door panel of the door lock model is generated; as shown in the area 4 of fig. 5, damage is generated at the edge of the door due to the impact between the door and the door frame, and the damage exposes the color of the wood itself, so that it is necessary to add door frame damage information when generating a material corresponding to the door frame of the door lock model; as shown in an area 5 in fig. 5, the door lock groove is prone to dust deposition, and as time increases, the door lock groove is prone to generate a lot of dust, so that the door lock performance is affected, and therefore, when a material corresponding to the door lock groove of the door lock model is generated, groove dust information needs to be added; as shown in an area 6 in fig. 5, due to the installation problem, some stains such as oil stains and water stains appear on the door lock, and therefore, door lock stain information needs to be added when the material corresponding to the door lock of the door lock model is generated.
It should be noted that, the detail information on the virtual model, usually from the above-mentioned detail classification, may be added to the model detail information in the process of making the virtual model, that is, the above detail information types are added to enhance the representation effect of the virtual model.
In addition, the third material information (i.e. the stain type information) and the fourth material information (i.e. the scratch type) belong to the virtual model, and the classification of the material information is performed, so that the performance and the memory of the terminal device are considered, and the system performance of the terminal device is improved on the basis of ensuring the rendering effect of the terminal device on the virtual model.
In an optional embodiment, after the art resources are divided to obtain the model information, the material information and the associated information, the terminal device may directly perform mixing processing on the model information and the material information based on the associated information without using a map to render the model to be rendered to obtain the first target model.
It should be noted that, in the process of rendering the model to be rendered, the model to be rendered may be calculated in real time through the normal line, the Ambient light shielding information (i.e., ambient illumination), the groove information (i.e., cavity) on the surface of the model, and other information, without using any map, in the process of rendering the model to be rendered in real time, thereby achieving the rendering of the model to be rendered. Because the method does not use any map, the problem of high model rendering cost caused by map making is avoided, and the problem of poor system performance caused by the fact that the map occupies a system memory is also avoided.
In another alternative embodiment, the terminal device may generate a material map based on the material information, and render the model to be rendered based on the material map. Wherein, before generating the material map, the terminal device generates a plurality of material layers based on the material information.
Specifically, the terminal device combines the sub-material information to obtain a plurality of types of materials, and generates a material layer corresponding to the plurality of types of materials.
It should be noted that the material layer refers to template information corresponding to each type of material, where each type of material corresponds to one material layer, and the material layer is formed by combining multiple types of sub-material information, for example, the material layer 1 corresponds to the material a, where the sub-material information included in the material layer 1 is a solid color of a texture of the material Tiling is A1, a roughness of a scratch area Tiling is A2, and a degree of metallization of a dirty area Tiling is A3; the material layer 2 corresponds to the material B, wherein the sub-material information included in the material layer 2 is the inherent color of the texture of the material Tiling is B1, the roughness of the scratch region Tiling is B2, the metal degree of the dirty region Tiling is B3, and the highlight B4 of the dirty region Tilling.
Optionally, fig. 6 shows a schematic diagram of a material corresponding to a metal material, fig. 7 shows a schematic diagram of a material corresponding to a cloth material, and fig. 8 shows a schematic diagram of a material corresponding to a leather material.
It should be noted that, because each material layer corresponds to one type of material, when a certain model part of the model to be rendered needs to be replaced, the material layer connected to the model part can be directly replaced without redrawing the map, thereby improving the iteration efficiency of the material.
Further, after generating the plurality of material layers based on the material information, the terminal device may generate a material map based on the material layers. Specifically, the terminal device generates a material map corresponding to the material layer, and caches the material map in a preset storage area. The material map is composed of a plurality of sub maps, and the sub maps respectively correspond to material detail information in the material map.
It should be noted that, when caching the texture map, an offline caching mode may be adopted, and an online caching mode may also be adopted. The material map is cached offline, when the material map is used for rendering the model to be rendered, the corresponding material map can be directly obtained from the preset storage area, and the problem that the performance of the system is reduced due to the fact that the map is generated in real time is avoided.
In addition, because the material map is composed of a plurality of sub maps, and the plurality of sub maps respectively correspond to material detail information in the material map, in the application, the Tiling map is used for showing material details, so that when the details of the virtual model are amplified and displayed, the material showing of the virtual model is not distorted, and the material showing of the virtual model is not influenced by the map resolution.
In an optional embodiment, after the multiple material layers are generated, the terminal device may render the model to be rendered based on the multiple material layers, the model information, and the association information, so as to obtain the first target model. Specifically, the terminal device generates a normal map and an environment shielding map corresponding to a model to be rendered according to model information, generates a mixed map based on the associated information, determines a target material layer from the multiple material layers, acquires a material map corresponding to the target material layer, obtains a target material map, and performs mixed processing on the normal map, the environment shielding map and the target material map based on the mixed map to render the model to be rendered, thereby obtaining a first target model.
Optionally, the rendering process is described by taking the generation of the key model shown in fig. 9 as an example. First, the terminal device generates a normal map shown in fig. 10 and an Ambient Occlusion map (AO) shown in fig. 11 from model information (for example, shape, size, illumination information, type of required material, and the like) of the key model, and generates a hybrid map as shown in fig. 12 and 13 from the model information and the material information. Then, the terminal device obtains material layers of required materials from the plurality of material layers, for example, the material of the key ring is a metal material layer, the metal material layer of the key body and a rubber material layer corresponding to the key handle. Further, the terminal device generates material maps corresponding to the materials from the plurality of material layers, such as a key ring material map shown in fig. 14, a key body metal map shown in fig. 15, and a key grip rubber material map shown in fig. 16.
Further, in order to improve the detailed representation of the key model, the terminal device may further generate a dirty information layer based on the third material information, and generate a dirty map shown in fig. 17 based on the dirty information layer, so as to add dirty details to the key model. Meanwhile, the terminal device can also generate a scratch information layer based on the fourth material information, and generate a scratch map shown in fig. 18 based on the scratch information layer, so as to add scratch details to the key model. And finally, the terminal equipment performs mixing treatment on the key ring material map, the key body metal map and the key handle rubber material map based on the mixed maps, and uses the dirty map and the scratch map to increase material details, so as to obtain the rendered key model shown in fig. 9.
In an optional embodiment, after rendering the model to be rendered based on the multiple material layers, the model information, and the associated information to obtain the first target model, the terminal device may adjust the model information in response to the model information adjustment instruction to obtain the adjusted model information, and render the model to be rendered based on the multiple material layers, the adjusted model information, and the associated information to obtain the second target model.
It should be noted that, in the present application, the model information and the material information are decoupled to a certain extent, so that when a user needs to modify the texture information of the model to be rendered, the user only needs to modify the texture information of the model to be rendered, and does not need to adjust the chartlet, thereby avoiding the problem of low material iteration efficiency caused by redrawing the chartlet after modifying the model information of the model to be rendered in the prior art, and improving the material iteration efficiency.
In another optional embodiment, after rendering a model to be rendered based on a plurality of material layers, model information, and associated information to obtain a first target model, the terminal device determines a target model part from the plurality of model parts of the model to be rendered, adjusts a material layer of the target model part from the first material layer to a second material layer, and then renders the target model part based on the second material layer, the model information, and the associated information to obtain a third target model.
Optionally, when the user needs to replace the material of the key body of the key model shown in fig. 9, the user only needs to replace the material layer corresponding to the key body, and the replacement of the material of the key body can be realized, for example, the user only needs to replace the material layer corresponding to the key body with the material layer corresponding to the brass material, and the material of the key body in fig. 9 can be replaced with the brass material, so that the brass key model shown in fig. 19 is obtained.
According to the method and the device, the model information and the material information in the art resources are split, and the material information is divided into the basic information, the dirty information and the scratch information according to the attribute of the material information. And then, the texture information is transmitted to a texture layer of the game engine, and the game engine renders texture effects corresponding to the textures on the model to be rendered based on the texture information corresponding to the texture layer. Meanwhile, the texture expression is realized by using detail texture of Tiling on the material in the game engine, and the model information and the material information are assembled by using a Mask map, so that a target rendering model after the model to be rendered is obtained.
In the present application, a new material may be developed based on an existing material layer, for example, the new material may be obtained by mixing the existing material layer, thereby improving the development efficiency of the material. In addition, when the material is iterated, only the material layer needs to be iterated, and after certain sub-material information in the material information is changed, the material layer containing the sub-material information can be automatically updated, so that the iteration cost of resources is reduced. In addition, since the material layer itself is based on continuous mapping, that is, in the present application, the material layer corresponds to the Tiling mapping, the solution provided in the present application can meet the requirements of different resolutions. In this application, the fine arts resource need not to bind with fine arts quality and fine arts style by force to when the virtual model is rendered, can utilize the deposit resource, reach the purpose of cost reduction increase. Finally, in the pure material expression, the art resources among projects with different art styles can be reused, and in the process of project development, the art styles can be modified without spending too much cost, so that the art styles can be adjusted.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a rendering apparatus for a virtual model is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated after the description. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 20 is a block diagram of a rendering apparatus of a virtual model according to an embodiment of the present invention, as shown in fig. 20, the apparatus including: an acquisition module 2001, a classification module 2003, a generation module 2005, and a rendering module 2007. The obtaining module 2001 is configured to obtain art resources of the model to be rendered; the classification module 2003 is configured to divide the art resources to obtain model information, material information, and associated information, where the model information is used to represent attribute information of the model to be rendered, the material information is used to represent material performance of the model to be rendered, and the associated information at least includes a correspondence between the model information and the material information; a generating module 2005 configured to generate a plurality of material layers based on the material information, wherein each material layer corresponds to a different type of material; a rendering module 2007, configured to render the model to be rendered based on the multiple material layers, the model information, and the association information, so as to obtain a first target model.
Optionally, the rendering apparatus for a virtual model further includes: the device comprises a first acquisition module, a first classification module and a second classification module. The first obtaining module is used for obtaining the sub-material information from the material information after the art resources are divided to obtain the model information, the material information and the associated information; the first classification module is used for classifying the material information according to the influence degree of the sub-material information on the material surface to obtain first material information and second material information, wherein the first material information represents that the sub-material information does not influence the material surface, and the second material information represents that the sub-material information influences the material surface; and the second classification module is used for classifying the second material information according to the influence type of the sub-material information on the material surface to obtain third material information and fourth material information, wherein the third material information represents that a newly added substance exists on the material surface, and the fourth material information represents that a damage exists on the material surface.
Optionally, the generating module includes: the device comprises a combination module and a first generation module. The combination module is used for combining the sub-material information to obtain a plurality of types of materials; the first generation module is used for generating material layers corresponding to a plurality of types of materials.
Optionally, the rendering apparatus for a virtual model further includes: a second generation module and a cache module. The second generation module is used for generating a material map corresponding to the material layer after generating a plurality of material layers based on the material information, wherein the material map is composed of a plurality of sub-maps which respectively correspond to material detail information in the material map; and the cache module is used for caching the material mapping in a preset storage area.
Optionally, the rendering module includes: the device comprises a third generation module, a fourth generation module, a second acquisition module and a first mixing module. The third generation module is used for generating a normal map and an environmental shielding map corresponding to the model to be rendered according to the model information; the fourth generation module is used for generating a mixed map based on the associated information; the second acquisition module is used for determining a target material layer from the multiple material layers and acquiring a material chartlet corresponding to the target material layer to obtain a target material chartlet; and the first mixing module is used for mixing the normal map, the environment shielding map and the target material map based on the mixed map so as to render the model to be rendered and obtain a first target model.
Optionally, the rendering apparatus for a virtual model further includes: the device comprises a first adjusting module and a first rendering module. The first adjusting module is used for responding to a model information adjusting instruction after rendering a model to be rendered based on a plurality of material layers, model information and associated information to obtain a first target model, and adjusting the model information to obtain adjusted model information; and the first rendering module is used for rendering the model to be rendered based on the multiple material layers, the adjusted model information and the associated information to obtain a second target model.
Optionally, the rendering apparatus for a virtual model further includes: the device comprises a determination module, a second adjustment module and a second rendering module. The determination module is used for determining a target model part from a plurality of model parts of the model to be rendered after rendering the model to be rendered based on the plurality of material layers, the model information and the associated information to obtain a first target model; the second adjusting module is used for adjusting the material layer of the target model part from the first material layer to a second material layer; and the second rendering module is used for rendering the target model part based on the second material layer, the model information and the associated information to obtain a third target model.
Optionally, the rendering apparatus for a virtual model further includes: and the second mixing module is used for mixing the model information and the material information based on the associated information after the art resources are divided to obtain the model information, the material information and the associated information so as to render the model to be rendered to obtain the first target model.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are located in different processors in any combination.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
Optionally, in this embodiment, the nonvolatile storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, in this embodiment, the nonvolatile storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present invention.
In an exemplary embodiment of the present application, a computer readable storage medium has stored thereon a program product capable of implementing the above-described method of the present embodiment. In some possible embodiments, the various aspects of the embodiments of the present invention may also be implemented in the form of a program product, which includes program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above section "exemplary method" of this embodiment, when the program product runs on the terminal device.
According to the program product for realizing the method, the portable compact disc read only memory (CD-ROM) can be adopted, the program code is included, and the program product can be operated on terminal equipment, such as a personal computer. However, the program product of the embodiments of the invention is not limited thereto, and in the embodiments of the invention, the computer readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product described above may employ any combination of one or more computer-readable media. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the program code embodied on the computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Fig. 21 is a schematic diagram of an electronic device according to an embodiment of the invention. As shown in fig. 21, the electronic device 2100 is only an example and should not bring any limitation to the function and the scope of the use of the embodiment of the present invention.
As shown in fig. 21, the electronic apparatus 2100 is represented in the form of a general purpose computing device. The components of the electronic device 2100 may include, but are not limited to: the at least one processor 2110, the at least one memory 2120, the bus 2130 that connects the various system components including the memory 2120 and the processor 2110, and the display 2140.
Wherein the above-mentioned memory 2120 stores program code, which can be executed by the processor 2110 for causing the processor 2110 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned method section of the embodiments of the present application.
The memory 2120 may include readable media in the form of volatile memory units such as a random access memory unit (RAM) 2120 and/or a cache memory unit 2120, and may further include a read only memory unit (ROM) 21203, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
In some examples, memory 2120 may also include a program/utility 21204 having a set (at least one) of program modules 2120, such program modules 2120 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment. The memory 2120 may further include memory remotely located from the processor 2110 that may be connected to the electronic device 2100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Bus 2130 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, processor 2110, or a local bus using any of a variety of bus architectures.
The display 2140 may, for example, be a touch screen Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the electronic device 2100.
Optionally, the electronic apparatus 2100 may also communicate with one or more external devices 2200 (e.g., a keyboard, a pointing device, a bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic apparatus 2100, and/or with any device (e.g., a router, a modem, etc.) that enables the electronic apparatus 2100 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 2150. Also, the electronic device 2100 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 2160. As shown in fig. 21, the network adapter 2160 communicates with the other modules of the electronic device 2100 over a bus 2130. It should be appreciated that although not shown in FIG. 21, other hardware and/or software modules may be used in conjunction with the electronic device 2100, which may include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The electronic device 2100 may further include: a keyboard, a cursor control device (e.g., a mouse), an input/output interface (I/O interface), a network interface, a power source, and/or a camera.
It will be understood by those skilled in the art that the structure shown in fig. 21 is merely illustrative and is not intended to limit the structure of the electronic device. For example, the electronic device 2100 may also include more or fewer components than shown in FIG. 21, or have a different configuration than shown in FIG. 1. The memory 2120 may be used for storing a computer program and corresponding data, such as a computer program and corresponding data corresponding to the rendering method of the virtual model in the embodiment of the present invention. The processor 2110 performs various functional applications and data processing, i.e., implements the above-described rendering method of the virtual model, by running a computer program stored in the memory 2120.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method for rendering a virtual model, comprising:
obtaining art resources of a model to be rendered;
dividing the art resources to obtain model information, material information and associated information, wherein the model information is used for representing attribute information of the model to be rendered, the material information is used for representing material expression of the model to be rendered, and the associated information at least comprises a corresponding relation between the model information and the material information;
generating a plurality of material layers based on the material information, wherein each material layer corresponds to a different type of material;
rendering the model to be rendered based on the plurality of material layers, the model information and the associated information to obtain a first target model.
2. The method of claim 1, wherein after the art resource is partitioned to obtain model information, material information, and association information, the method further comprises:
acquiring sub-material information from the material information;
classifying the material information according to the influence degree of the sub-material information on the material surface to obtain first material information and second material information, wherein the first material information represents that the sub-material information does not influence the material surface, and the second material information represents that the sub-material information influences the material surface;
classifying the second material information according to the type of the influence of the sub-material information on the surface of the material to obtain third material information and fourth material information, wherein the third material information represents that a newly added substance exists on the surface of the material, and the fourth material information represents that the surface of the material is damaged.
3. The method of claim 2, wherein generating a plurality of material layers based on the material information comprises:
combining the sub-material information to obtain a plurality of types of materials;
generating material layers corresponding to the plurality of types of materials.
4. The method of claim 3, wherein after generating a plurality of material layers based on the material information, the method further comprises:
generating a material map corresponding to the material layer, wherein the material map is composed of a plurality of sub-maps, and the plurality of sub-maps respectively correspond to material detail information in the material map;
and caching the material mapping in a preset storage area.
5. The method of claim 4, wherein rendering the model to be rendered based on the plurality of material layers, the model information, and the correlation information to obtain a first target model comprises:
generating a normal map and an environment shielding map corresponding to the model to be rendered according to the model information;
generating a mixed map based on the associated information;
determining a target material layer from the plurality of material layers, and acquiring a material chartlet corresponding to the target material layer to obtain a target material chartlet;
and mixing the normal map, the environment shielding map and the target material map based on the mixed map so as to render the model to be rendered, thereby obtaining the first target model.
6. The method of claim 1, wherein after rendering the model to be rendered based on the plurality of material layers, the model information, and the association information, resulting in a first target model, the method further comprises:
responding to a model information adjusting instruction, and adjusting the model information to obtain adjusted model information;
rendering the model to be rendered based on the plurality of material layers, the adjusted model information and the associated information to obtain a second target model.
7. The method of claim 1, wherein after rendering the model to be rendered based on the plurality of material layers, the model information, and the association information, resulting in a first target model, the method further comprises:
determining a target model part from a plurality of model parts of the model to be rendered;
adjusting the material layer of the target model part from a first material layer to a second material layer;
and rendering the target model part based on the second material layer, the model information and the associated information to obtain a third target model.
8. The method of claim 1, wherein after the art resource is partitioned to obtain model information, material information, and association information, the method further comprises:
and mixing the model information and the material information based on the associated information so as to render the model to be rendered, thereby obtaining the first target model.
9. An apparatus for rendering a virtual model, comprising:
the acquisition module is used for acquiring art resources of the model to be rendered;
the classification module is used for dividing the art resources to obtain model information, material information and associated information, wherein the model information is used for representing attribute information of the model to be rendered, the material information is used for representing material performance of the model to be rendered, and the associated information at least comprises a corresponding relation between the model information and the material information;
a generation module, configured to generate a plurality of material layers based on the material information, where each material layer corresponds to a different type of material;
and the rendering module is used for rendering the model to be rendered based on the plurality of material layers, the model information and the associated information to obtain a first target model.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to, when executed by a processor, perform a method of rendering a virtual model as claimed in any one of claims 1 to 8.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the method of rendering a virtual model as claimed in any one of claims 1 to 8.
CN202210963459.6A 2022-08-11 2022-08-11 Rendering method and device of virtual model, storage medium and electronic device Pending CN115375813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210963459.6A CN115375813A (en) 2022-08-11 2022-08-11 Rendering method and device of virtual model, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210963459.6A CN115375813A (en) 2022-08-11 2022-08-11 Rendering method and device of virtual model, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115375813A true CN115375813A (en) 2022-11-22

Family

ID=84065727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210963459.6A Pending CN115375813A (en) 2022-08-11 2022-08-11 Rendering method and device of virtual model, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115375813A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117495995A (en) * 2023-10-26 2024-02-02 神力视界(深圳)文化科技有限公司 Method, device, equipment and medium for generating texture map and model training method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117495995A (en) * 2023-10-26 2024-02-02 神力视界(深圳)文化科技有限公司 Method, device, equipment and medium for generating texture map and model training method

Similar Documents

Publication Publication Date Title
KR101851356B1 (en) Method for providing intelligent user interface by 3D digital actor
CN111167120A (en) Method and device for processing virtual model in game
CN113240783B (en) Stylized rendering method and device, readable storage medium and electronic equipment
CN115375813A (en) Rendering method and device of virtual model, storage medium and electronic device
CN115375822A (en) Cloud model rendering method and device, storage medium and electronic device
US11034092B2 (en) 3D-printed object with dynamic augmented-reality textures
Coninx et al. A hybrid 2D/3D user interface for immersive object modeling
US11908073B2 (en) Methods and systems for dynamically rendering three-dimensional models in real-time to generate a non-fungible token and a physical model thereof without provisioning or managing servers
US20180165877A1 (en) Method and apparatus for virtual reality animation
CN115375797A (en) Layer processing method and device, storage medium and electronic device
CN115131489A (en) Cloud layer rendering method and device, storage medium and electronic device
CN115888085A (en) Game information processing method, device and storage medium
CN115713586A (en) Method and device for generating fragmentation animation and storage medium
CN114742970A (en) Processing method of virtual three-dimensional model, nonvolatile storage medium and electronic device
CN113706675A (en) Mirror image processing method, mirror image processing device, storage medium and electronic device
CN115713589A (en) Image generation method and device for virtual building group, storage medium and electronic device
CN114816457A (en) Method, device, storage medium and electronic device for cloning virtual model
CN115115814A (en) Information processing method, information processing apparatus, readable storage medium, and electronic apparatus
CN114299203A (en) Processing method and device of virtual model
CN115120973A (en) Model rendering method and device, nonvolatile storage medium and terminal equipment
US20220392152A1 (en) Method for operating component, electronic device, storage medium and program product
CN115089964A (en) Method and device for rendering virtual fog model, storage medium and electronic device
Kim et al. WYSIWYG Stereo Paintingwith Usability Enhancements
JP7190785B1 (en) Information processing device and program
CN114299211A (en) Information processing method, information processing apparatus, readable storage medium, and electronic apparatus

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