CN111445567A - Baking method and device for dynamic object, computer equipment and storage medium - Google Patents

Baking method and device for dynamic object, computer equipment and storage medium Download PDF

Info

Publication number
CN111445567A
CN111445567A CN202010268821.9A CN202010268821A CN111445567A CN 111445567 A CN111445567 A CN 111445567A CN 202010268821 A CN202010268821 A CN 202010268821A CN 111445567 A CN111445567 A CN 111445567A
Authority
CN
China
Prior art keywords
standard
model
module
target
baking
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.)
Granted
Application number
CN202010268821.9A
Other languages
Chinese (zh)
Other versions
CN111445567B (en
Inventor
王世安
查雁南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Institute of Technology
Original Assignee
Guangzhou Institute of Technology
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 Guangzhou Institute of Technology filed Critical Guangzhou Institute of Technology
Priority to CN202010268821.9A priority Critical patent/CN111445567B/en
Publication of CN111445567A publication Critical patent/CN111445567A/en
Application granted granted Critical
Publication of CN111445567B publication Critical patent/CN111445567B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/60Shadow generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Image Generation (AREA)

Abstract

The application discloses a baking method, a baking device, computer equipment and a storage medium of a dynamic object, wherein the baking method comprises the steps of obtaining a target dynamic object model to be baked and scene information; carrying out module division on the target dynamic object model to obtain a plurality of target module models; comparing each target module model with a standard module model in the baking data set, and finding out a standard module model corresponding to each target module model; determining each standard map corresponding to the standard module model and the scene information from the baking data set based on the standard module model and the scene information; and baking each target module model by adopting each standard mapping, and combining the baked target module models to obtain a baked target dynamic object model. The method statically cures the shadow of the dynamic object, and the cured shadow can be stored as a resource for subsequent dynamic calling, so that the efficiency is greatly improved, and the problems that the real-time curing occupies large resources and the system is blocked are avoided.

Description

Baking method and device for dynamic object, computer equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for baking a dynamic object, a computer device, and a storage medium.
Background
With the development of graphics technology and the improvement of computer performance, three-dimensional (3D) models, such as baking and rendering, are widely applied to industries such as movies, games, engineering design, and the like. However, as the fineness and complexity of the pictures in the virtual scene are increased, the amount of computation required for rendering the 3D model is also rapidly increased. In particular baking of large-scale clustered 3D models and dynamic objects. At present, the dynamic object is baked mainly by adopting a software real-time illumination technology to realize the dynamic following of shadows, namely, the real-time baking is carried out, but the method causes too large load of a system due to overlarge calculated amount and low operation efficiency, so that the system operates very slowly or even cannot operate.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a computer device and a storage medium for baking a dynamic object, so as to overcome the problems in the prior art that a real-time baking method for a dynamic object has a large calculation amount and low efficiency, which easily causes slow system operation.
In order to achieve the purpose, the invention provides the following technical scheme:
the embodiment of the invention provides a baking method of a dynamic object, which comprises the following steps:
acquiring a target dynamic object model to be baked and scene information;
performing module division on the target dynamic object model to obtain a plurality of target module models;
comparing each target module model with a standard module model in a baking data set to find out the standard module model corresponding to each target module model;
determining, from the baking dataset, each standard map corresponding to the standard module model and the scene information based on the standard module model and the scene information;
and baking each target module model by adopting each standard mapping, and combining the baked target module models to obtain a baked target dynamic object model.
Further, the air conditioner is provided with a fan,
further comprising:
acquiring a historical dynamic object model;
performing module division on the historical dynamic object model to obtain a plurality of standard module models;
baking each standard module model based on the scene information to obtain each standard mapping;
and establishing the baking data set according to each standard module model and each standard mapping.
Further, the air conditioner is provided with a fan,
baking each standard module model based on the scene information to obtain each standard mapping, wherein the step of baking each standard module model based on the scene information comprises the following steps:
adding a shadow plane to each standard module model to obtain the standard module model after each shadow is added;
and sequentially carrying out dark attribute setting and rendering baking on each standard module model after the shadow is added to obtain each standard chartlet.
Further, the air conditioner is provided with a fan,
the step of adding a shadow plane to each standard module model includes:
and selecting the shadow plane with the size larger than that of the standard module model and placing the shadow plane at the bottom of the standard module model.
Further, the air conditioner is provided with a fan,
the matte property settings include a matte object setting, an Alpha contribution setting, a direct light shadow setting, and an Alpha impact setting.
Further, the air conditioner is provided with a fan,
the standard mapping is a TGA format or a PNG format mapping.
Further, the air conditioner is provided with a fan,
the step of performing module division on the target dynamic object model to obtain a plurality of target module models comprises the following steps:
and dividing the target dynamic object model into tetrahedral, hexahedral or cylindrical modules to obtain a plurality of target module models.
The embodiment of the invention provides a baking device of a dynamic object, which comprises:
the information acquisition module is used for acquiring a target dynamic object model to be baked and scene information;
the target module model obtaining module is used for carrying out module division on the target dynamic object model to obtain a plurality of target module models;
the standard module model obtaining module is used for comparing each target module model with a standard module model in a baking data set and finding out a standard module model corresponding to each target module model;
a standard mapping determination module for determining, based on the standard module model and the scene information, each standard mapping corresponding to the standard module model and the scene information from the baking dataset;
and the baked dynamic object model obtaining module is used for baking the target module models by adopting each standard mapping and combining the baked target module models to obtain baked target dynamic object models.
The embodiment of the invention provides computer equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the following steps:
acquiring a target dynamic object model to be baked and scene information;
performing module division on the target dynamic object model to obtain a plurality of target module models;
comparing each target module model with a standard module model in a baking data set to find out the standard module model corresponding to each target module model;
determining, from the baking dataset, each standard map corresponding to the standard module model and the scene information based on the standard module model and the scene information;
and baking each target module model by adopting each standard mapping, and combining the baked target module models to obtain a baked target dynamic object model.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of:
acquiring a target dynamic object model to be baked and scene information;
performing module division on the target dynamic object model to obtain a plurality of target module models;
comparing each target module model with a standard module model in a baking data set to find out the standard module model corresponding to each target module model;
determining, from the baking dataset, each standard map corresponding to the standard module model and the scene information based on the standard module model and the scene information;
and baking each target module model by adopting each standard mapping, and combining the baked target module models to obtain a baked target dynamic object model.
According to the baking method, the baking device, the baking computer equipment and the storage medium of the dynamic object, firstly, a target dynamic object model to be baked and scene information are obtained, the target dynamic object model is subjected to module division to form a plurality of target module models, then each target module model is compared with a standard module model in a baking data set to find a standard module model corresponding to the target module model, then a standard chartlet (one standard module model corresponds to different standard chartlets under different scene information) is determined according to the standard module model and the scene information, the target module models are correspondingly baked by using the found standard chartlet, and the baked target module models are combined to obtain the baked target dynamic object model. According to the baking method of the dynamic object, the dynamic object model is divided into a plurality of small target module models, then the corresponding standard maps are found out from the baking data set for baking the small target module models, the baked small target module models are combined to form the whole baked target dynamic object model, on one hand, the shadow of the dynamic object is statically baked, and the baked small target module models can be stored as resources for subsequent dynamic calling, so that the efficiency is greatly improved, and the large resource occupation and the system blockage caused by real-time baking are avoided; on the other hand, the module division is carried out on the dynamic object, so that the baking calculation workload is greatly reduced, and the baking speed is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method for baking a dynamic object according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for baking a dynamic object according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for baking a dynamic object according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a baking apparatus for dynamic objects according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
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.
Fig. 1 is a schematic flow chart of a baking method of a dynamic object according to an embodiment of the present invention, and as shown in fig. 1, the baking method of a dynamic object disclosed in the embodiment of the present invention mainly includes the following steps:
step S102, acquiring a target dynamic object model to be baked and scene information;
the target dynamic object model to be baked refers to a dynamic object that needs to be baked, and the dynamic object is usually in a certain scene or multiple scenes. Scene information is information that can be used to reflect one or more scene states and may include lighting information, color information, brightness information, and the like.
Step S104, performing module division on the target dynamic object model to obtain a plurality of target module models;
specifically, the essence of module division of the target dynamic object model is to extract a large and complex target dynamic object model from a dynamic scene and divide the model into a plurality of small modules, and one small module correspondingly generates a target module model, so as to obtain a plurality of target module models. When the target dynamic object model is subjected to module division, a proper mode can be selected for division according to the complexity of the model, and the target dynamic object model can be divided into a plurality of regular small modules under the common condition, such as regular geometric figure models, so that on one hand, model searching and matching are facilitated, and later baking and rendering are facilitated.
In an optional implementation manner, the step of performing module division on the target dynamic object model to obtain a plurality of target module models includes: and dividing the target dynamic object model into tetrahedral, hexahedral or cylindrical modules to obtain a plurality of target module models.
In this embodiment, the target dynamic object model is divided into a plurality of regular geometric figure structures, such as a tetrahedral module, a hexahedral module, or a cylindrical module, to obtain a plurality of target module models. When the target dynamic object model is divided, the dividing modes can be various, and all the target dynamic object model can be divided into tetrahedral modules, all hexahedral modules or all columnar modules; the same may be any two or three types of tetrahedral modules, hexahedral modules and columnar modules, and in an actual process, the selection may be performed according to model complexity, baking difficulty, calculation amount and the like. The size of the target module model generated by dividing can be determined by referring to the standard module model in the baking data set, so that the generated target module model can find the corresponding standard module model in the baking data set, and the corresponding standard map can be searched according to the standard module model.
Step S106, comparing each target module model with a standard module model in the baking data set, and finding out a standard module model corresponding to each target module model;
the baking data set is mainly used for storing a standard module model and a database of standard maps under scene information corresponding to the standard module model. The standard module model corresponds to one standard map in each scene, so that the standard module model, the scene information and the standard map have a corresponding relation, and the standard map can be determined according to the standard module model and the scene information. The standard module model is a plurality of sub-module models which are obtained by dividing a historical dynamic object model into modules, and each sub-module model is marked as the standard module model; and baking the standard module model in different scenes (namely according to scene information) to obtain a plurality of maps, and marking the maps as standard maps. The standard module model, scene information, and standard map are then saved in the baking dataset.
Step S108, determining each standard mapping corresponding to the standard module model and the scene information from the baking data set based on the standard module model and the scene information;
and step S110, baking each target module model by adopting each standard mapping, and combining the baked target module models to obtain a baked target dynamic object model.
When the target dynamic object model needs to be baked, the target dynamic object is subjected to module division to generate a plurality of target module models, then corresponding standard maps are called from the baking data set to bake each target module model, and baked target module models are combined to obtain the baked target dynamic object model.
According to the baking method of the dynamic object in the embodiment of the invention, firstly, a target dynamic object model to be baked and scene information are obtained, the target dynamic object model is subjected to module division to form a plurality of target module models, then each target module model is compared with a standard module model in a baking data set to find the standard module model corresponding to the target module model, then standard maps (one standard module model corresponds to different standard maps under different scene information) are determined according to the standard module model and the scene information, the target module models are correspondingly baked by using the found standard maps, and the baked target module models are combined, so that the baked target dynamic object model is obtained. According to the baking method of the dynamic object, the dynamic object model is divided into a plurality of small target module models, then the corresponding standard maps are found out from the baking data set for baking the small target module models, the baked small target module models are combined to form the whole baked target dynamic object model, on one hand, the shadow of the dynamic object is statically baked, and the baked small target module models can be stored as resources for subsequent dynamic calling, so that the efficiency is greatly improved, and the large resource occupation and the system blockage caused by real-time baking are avoided; on the other hand, the module division is carried out on the dynamic object, so that the baking calculation workload is greatly reduced, and the baking speed is improved.
In one embodiment, as shown in fig. 2, further includes: establishing a baking data set; wherein the step of creating a baking data set comprises:
step S202, acquiring a historical dynamic object model;
step S204, performing module division on the historical dynamic object model to obtain a plurality of standard module models;
s206, baking each standard module model based on scene information to obtain each standard map;
and step S208, establishing a baking data set according to each standard module model and each standard mapping.
Specifically, building a baking dataset is the process of determining a standard module model, and a corresponding standard map. In the embodiment, the scene is baked (namely shadow making) according to the historical dynamic object model, the formed map is stored as a resource after baking, and the resource is dynamically called when the same scene needs to be used, so that complex calculation that the traditional real-time dynamic shadow consumes a long time is avoided, the resource consumption of the system is greatly reduced, and the efficiency is improved.
The method comprises the following specific steps: and acquiring a historical dynamic object model, wherein the historical dynamic object model can select a model which is the same as or similar to the target dynamic object model, so that the standard mapping obtained by later-stage matching is more accurate, and the baking effect on the target dynamic object model is more excellent.
After the historical dynamic object model is obtained, the historical dynamic object model is divided, namely the historical dynamic object model is extracted from a scene, and the historical dynamic object model is divided into a plurality of standard module models. When the modules are divided, the modules may also be divided into standard geometric modules, such as tetrahedral modules, hexahedral modules, and columnar modules.
When a plurality of standard module models are baked, the standard module models are determined according to scene information, namely, the corresponding baking results in different scenes are different, so that a plurality of standard maps are obtained. The plurality of standard module models and the plurality of standard maps are stored in a database to form a baking data set.
In one embodiment, as shown in fig. 3, the step of baking each standard module model based on the scene information to obtain each standard map includes:
step S302, adding a shadow plane to each standard module model to obtain the standard module model after each shadow is added;
and step S304, sequentially carrying out matte attribute setting and rendering baking on each shadow-added standard module model to obtain each standard mapping.
Specifically, before baking, shading is required, wherein a shading plane is added to each standard module model, and the shading plane is used for simulating the shading of the module model by baking. In the shadow making process, a larger plane is created for placing each standard module model, then test rendering is carried out, the size of the shadow is checked, and then a plane is reconstructed to be just slightly larger than the shadow of the standard module model and can cover the shadow. And after the size of the shadow bearing plane of the standard module model is determined, the setting of the non-light attribute and the rendering baking are needed, and a plurality of standard maps can be output after the baking rendering. The standard mapping obtained by the method achieves the effect of real-time shadow.
In one embodiment, the step of adding a shadow plane to each standard module model comprises: and selecting a shadow plane with the size larger than that of the standard module model and placing the shadow plane at the bottom of the standard module model.
When the shadow plane is selected for each standard module model, the added shadow platform is only required to be larger than the standard module model. Thus, the size of the added shadow planes may not be the same.
In one embodiment, the matte property settings include matte object settings, Alpha contribution settings, direct light shadow settings, and Alpha impact settings.
And performing the lightless attribute setting on each standard module model after the shadow plane is manufactured, so that the obtained standard mapping achieves the effect of real-time shadow.
In one embodiment, the standard mapping is a TGA format or PNG format mapping.
The PNG is in a streaming network graphic format, when the PNG is used for storing a gray image, the depth of the gray image can be as much as 16 bits, when a color image is stored, the depth of the color image can be as much as 48 bits, and α channel data with 16 bits can also be stored.TGA is in an image file format, the file is a 24-bit or 32-bit true color GIM.
The embodiment of the invention discloses a baking method for dynamic objects in detail, and the method can be realized by adopting various types of equipment, so the invention also discloses a baking device for dynamic objects corresponding to the method, and the detailed description is given below by giving specific embodiments.
Referring to fig. 4, a baking apparatus for dynamic objects according to an embodiment of the present invention mainly includes:
an information obtaining module 402, configured to obtain a target dynamic object model to be baked and scene information;
a target module model obtaining module 404, configured to perform module division on a target dynamic object model to obtain a plurality of target module models;
a standard module model obtaining module 406, configured to compare each target module model with a standard module model in the baking data set, and find out a standard module model corresponding to each target module model;
a standard map determination module 408 for determining each standard map corresponding to the standard module model and the scene information from the baking data set based on the standard module model and the scene information;
and a baked dynamic object model obtaining module 410, configured to bake each target module model by using each standard map, and combine each baked target module model to obtain a baked target dynamic object model.
In one embodiment, further comprising:
the historical model acquisition module is used for acquiring a historical dynamic object model;
the standard module model obtaining module is used for carrying out module division on the historical dynamic object model to obtain a plurality of standard module models;
the standard mapping obtaining module is used for baking each standard module model based on scene information to obtain each standard mapping;
and the baking data set establishing module is used for establishing a baking data set according to each standard module model and each standard mapping.
In one embodiment, further comprising: a shadow plane adding module for adding a shadow plane,
the shadow plane adding module is used for adding a shadow plane to each standard module model to obtain the standard module model after each shadow is added;
and the standard mapping obtaining module is also used for sequentially carrying out matt attribute setting and rendering baking on each shadow added standard module model to obtain each standard mapping.
In one embodiment, the shadow plane adding module is further configured to select a shadow plane having a size larger than that of the standard module model to be placed at the bottom of the standard module model.
In one embodiment, the matte property settings include matte object settings, Alpha contribution settings, direct light shadow settings, and Alpha impact settings.
In one embodiment, the standard mapping is a TGA format or PNG format mapping.
In one embodiment, the target module model obtaining module 404 is further configured to divide the target dynamic object model into tetrahedral, hexahedral, or cylindrical modules, resulting in a plurality of target module models.
For the specific definition of the baking apparatus for the dynamic object, reference may be made to the above definition of the baking method for the dynamic object, which is not described herein again. The various modules in the dynamic object baking apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
An embodiment of the present invention further provides a computer device, where the computer device may be a server, and an internal structure diagram of the computer device may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing data of the resistance equivalent model and the equivalent submodel, and storing equivalent resistance, working resistance and contact resistance obtained in the process of executing calculation. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a method of peak-to-valley electricity rates for a power distribution area.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a target dynamic object model to be baked and scene information; carrying out module division on the target dynamic object model to obtain a plurality of target module models; comparing each target module model with a standard module model in the baking data set, and finding out a standard module model corresponding to each target module model; determining each standard map corresponding to the standard module model and the scene information from the baking data set based on the standard module model and the scene information; and baking each target module model by adopting each standard mapping, and combining the baked target module models to obtain a baked target dynamic object model.
In one embodiment, the processor, when executing the computer program, further performs the steps of: further comprising: acquiring a historical dynamic object model; performing module division on a historical dynamic object model to obtain a plurality of standard module models; baking each standard module model based on scene information to obtain each standard mapping; and establishing a baking data set according to each standard module model and each standard mapping.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the step of baking each standard module model based on the scene information to obtain each standard mapping comprises the following steps: adding a shadow plane to each standard module model to obtain the standard module model after each shadow is added; and sequentially carrying out matte attribute setting and rendering baking on each shadow added standard module model to obtain each standard mapping.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the step of adding a shadow plane to each standard module model comprises the following steps: and selecting a shadow plane with the size larger than that of the standard module model and placing the shadow plane at the bottom of the standard module model.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the matte property settings include matte object settings, Alpha contribution settings, direct light shadow settings, and Alpha impact settings.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the standard mapping is TGA format or PNG format mapping.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the step of performing module division on the target dynamic object model to obtain a plurality of target module models comprises the following steps: and dividing the target dynamic object model into tetrahedral, hexahedral or cylindrical modules to obtain a plurality of target module models.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps: acquiring a target dynamic object model to be baked and scene information; carrying out module division on the target dynamic object model to obtain a plurality of target module models; comparing each target module model with a standard module model in the baking data set, and finding out a standard module model corresponding to each target module model; determining each standard map corresponding to the standard module model and the scene information from the baking data set based on the standard module model and the scene information; and baking each target module model by adopting each standard mapping, and combining the baked target module models to obtain a baked target dynamic object model.
In one embodiment, the computer program when executed by the processor further performs the steps of: further comprising: acquiring a historical dynamic object model; performing module division on a historical dynamic object model to obtain a plurality of standard module models; baking each standard module model based on scene information to obtain each standard mapping; and establishing a baking data set according to each standard module model and each standard mapping.
In one embodiment, the computer program when executed by the processor further performs the steps of: the step of baking each standard module model based on the scene information to obtain each standard mapping comprises the following steps: adding a shadow plane to each standard module model to obtain the standard module model after each shadow is added; and sequentially carrying out matte attribute setting and rendering baking on each shadow added standard module model to obtain each standard mapping.
In one embodiment, the computer program when executed by the processor further performs the steps of: the step of adding a shadow plane to each standard module model comprises the following steps: and selecting a shadow plane with the size larger than that of the standard module model and placing the shadow plane at the bottom of the standard module model.
In one embodiment, the computer program when executed by the processor further performs the steps of: the matte property settings include matte object settings, Alpha contribution settings, direct light shadow settings, and Alpha impact settings.
In one embodiment, the computer program when executed by the processor further performs the steps of: the standard mapping is TGA format or PNG format mapping.
In one embodiment, the computer program when executed by the processor further performs the steps of: the step of performing module division on the target dynamic object model to obtain a plurality of target module models comprises the following steps: and dividing the target dynamic object model into tetrahedral, hexahedral or cylindrical modules to obtain a plurality of target module models.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of baking a dynamic object, comprising the steps of:
acquiring a target dynamic object model to be baked and scene information;
performing module division on the target dynamic object model to obtain a plurality of target module models;
comparing each target module model with a standard module model in a baking data set to find out the standard module model corresponding to each target module model;
determining, from the baking dataset, each standard map corresponding to the standard module model and the scene information based on the standard module model and the scene information;
and baking each target module model by adopting each standard mapping, and combining the baked target module models to obtain a baked target dynamic object model.
2. The method of claim 1, further comprising:
acquiring a historical dynamic object model;
performing module division on the historical dynamic object model to obtain a plurality of standard module models;
baking each standard module model based on the scene information to obtain each standard mapping;
and establishing the baking data set according to each standard module model and each standard mapping.
3. The method of claim 2, wherein the step of baking each standard module model based on the scene information to obtain each standard map comprises:
adding a shadow plane to each standard module model to obtain the standard module model after each shadow is added;
and sequentially carrying out dark attribute setting and rendering baking on each standard module model after the shadow is added to obtain each standard chartlet.
4. The method of claim 3, wherein the step of adding a shadow plane to each of the standard module models comprises:
and selecting the shadow plane with the size larger than that of the standard module model and placing the shadow plane at the bottom of the standard module model.
5. The method according to claim 3 or 4, wherein the matte property settings include matte object settings, Alpha contribution settings, direct light shadow settings, and Alpha impact settings.
6. The method of claim 5, wherein the standard mapping is a TGA format or a PNG format mapping.
7. The method of claim 1, wherein the step of performing a modular division on the target dynamic object model to obtain a plurality of target module models comprises:
and dividing the target dynamic object model into tetrahedral, hexahedral or cylindrical modules to obtain a plurality of target module models.
8. A dynamic object baking apparatus, comprising:
the information acquisition module is used for acquiring a target dynamic object model to be baked and scene information;
the target module model obtaining module is used for carrying out module division on the target dynamic object model to obtain a plurality of target module models;
the standard module model obtaining module is used for comparing each target module model with a standard module model in a baking data set and finding out a standard module model corresponding to each target module model;
a standard mapping determination module for determining, based on the standard module model and the scene information, each standard mapping corresponding to the standard module model and the scene information from the baking dataset;
and the baked dynamic object model obtaining module is used for baking the target module models by adopting each standard mapping and combining the baked target module models to obtain baked target dynamic object models.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of claims 1-7 are performed when the program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of claims 1 to 7.
CN202010268821.9A 2020-04-08 2020-04-08 Baking method and device for dynamic object, computer equipment and storage medium Active CN111445567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010268821.9A CN111445567B (en) 2020-04-08 2020-04-08 Baking method and device for dynamic object, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010268821.9A CN111445567B (en) 2020-04-08 2020-04-08 Baking method and device for dynamic object, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111445567A true CN111445567A (en) 2020-07-24
CN111445567B CN111445567B (en) 2023-04-14

Family

ID=71651207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010268821.9A Active CN111445567B (en) 2020-04-08 2020-04-08 Baking method and device for dynamic object, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111445567B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112837405A (en) * 2020-12-04 2021-05-25 佛山欧神诺云商科技有限公司 Dynamic modeling implementation method, electronic device and storage medium
CN114419233A (en) * 2021-12-31 2022-04-29 网易(杭州)网络有限公司 Model generation method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310488A (en) * 2013-03-20 2013-09-18 常州依丽雅斯纺织品有限公司 mental ray rendering-based virtual reality rendering method
CN107909641A (en) * 2017-10-26 2018-04-13 广州市雷军游乐设备有限公司 One kind bakees rendering intent, device, terminal device and storage medium
US10102449B1 (en) * 2017-11-21 2018-10-16 Jasmin Cosic Devices, systems, and methods for use in automation
CN109741011A (en) * 2018-12-15 2019-05-10 武汉兴联云立方科技有限公司 A kind of service platform and method optimizing interior designer's workflow
CN110503709A (en) * 2019-08-26 2019-11-26 杭州师范大学 A method of realizing that extensive Web3D model is presented in data center's load
CN110570510A (en) * 2019-09-10 2019-12-13 珠海天燕科技有限公司 Method and device for generating material map
CN110599574A (en) * 2019-09-17 2019-12-20 网易(杭州)网络有限公司 Rendering method and device of game scene and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310488A (en) * 2013-03-20 2013-09-18 常州依丽雅斯纺织品有限公司 mental ray rendering-based virtual reality rendering method
CN107909641A (en) * 2017-10-26 2018-04-13 广州市雷军游乐设备有限公司 One kind bakees rendering intent, device, terminal device and storage medium
US10102449B1 (en) * 2017-11-21 2018-10-16 Jasmin Cosic Devices, systems, and methods for use in automation
CN109741011A (en) * 2018-12-15 2019-05-10 武汉兴联云立方科技有限公司 A kind of service platform and method optimizing interior designer's workflow
CN110503709A (en) * 2019-08-26 2019-11-26 杭州师范大学 A method of realizing that extensive Web3D model is presented in data center's load
CN110570510A (en) * 2019-09-10 2019-12-13 珠海天燕科技有限公司 Method and device for generating material map
CN110599574A (en) * 2019-09-17 2019-12-20 网易(杭州)网络有限公司 Rendering method and device of game scene and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
葛建霞等: "基于VR技术的人体科学馆虚拟场景模型构建", 《中国医学教育技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112837405A (en) * 2020-12-04 2021-05-25 佛山欧神诺云商科技有限公司 Dynamic modeling implementation method, electronic device and storage medium
CN114419233A (en) * 2021-12-31 2022-04-29 网易(杭州)网络有限公司 Model generation method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111445567B (en) 2023-04-14

Similar Documents

Publication Publication Date Title
CN108038897B (en) Shadow map generation method and device
CN108986200B (en) Preprocessing method and system for graphic rendering
CN111445567B (en) Baking method and device for dynamic object, computer equipment and storage medium
CN110990516A (en) Map data processing method and device and server
CN108205680B (en) Image feature extraction integrated circuit, method and terminal
CN111583378B (en) Virtual asset processing method and device, electronic equipment and storage medium
CN109683858B (en) Data processing method and device
CN111882631B (en) Model rendering method, device, equipment and storage medium
CN111784817B (en) Shadow display method and device, storage medium and electronic device
US20120275723A1 (en) Method and device for simplifying space data
CN115937439A (en) Method and device for constructing three-dimensional model of urban building and electronic equipment
CN110782391B (en) Image processing method and device in driving simulation scene and storage medium
CN115512025A (en) Method and device for detecting model rendering performance, electronic device and storage medium
CN110310359B (en) Method and device for transforming object states in game
CN113034658B (en) Method and device for generating model map
CN111800568B (en) Light supplement method and device
CN116188805B (en) Image content analysis method and device for massive images and image information network
CN110368693B (en) MMO game element cutting method and device based on multi-quadtree
CN112190937A (en) Illumination processing method, device, equipment and storage medium in game
CN111476872B (en) Image drawing method and image drawing device
CN108280887B (en) Shadow map determination method and device
CN114307158A (en) Three-dimensional virtual scene data generation method and device, storage medium and terminal
CN114299202A (en) Processing method and device for virtual scene creation, storage medium and terminal
CN110689606B (en) Method and terminal for calculating raindrop falling position in virtual scene
CN113436300A (en) Method and device for realizing explosion animation, electronic equipment and storage medium

Legal Events

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