CN116993869A - Skin animation LOD model generation method and device, electronic device and storage medium - Google Patents
Skin animation LOD model generation method and device, electronic device and storage medium Download PDFInfo
- Publication number
- CN116993869A CN116993869A CN202310809812.XA CN202310809812A CN116993869A CN 116993869 A CN116993869 A CN 116993869A CN 202310809812 A CN202310809812 A CN 202310809812A CN 116993869 A CN116993869 A CN 116993869A
- Authority
- CN
- China
- Prior art keywords
- model
- animation
- lod
- generating
- skin animation
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000003860 storage Methods 0.000 title claims abstract description 18
- 230000009467 reduction Effects 0.000 claims abstract description 56
- 238000012545 processing Methods 0.000 claims abstract description 21
- 238000004590 computer program Methods 0.000 claims description 14
- 238000007781 pre-processing Methods 0.000 claims description 9
- 238000011946 reduction process Methods 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 238000009877 rendering Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/20—Finite element generation, e.g. wire-frame surface description, tesselation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/04—Indexing scheme for image data processing or generation, in general involving 3D image data
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses a method and a device for generating a skin animation LOD model, an electronic device and a storage medium. The method for generating the skin animation LOD model comprises the following steps: and obtaining grid data and a face reduction rate of the original skin animation model, wherein the grid data comprises vertex data and triangular surface patch data, carrying out face reduction processing on the original skin animation model according to the face reduction rate to obtain a plurality of grades of lightweight models, deleting all vertex data in the lightweight models of each grade in the face reduction processing process, and generating a skin animation LOD model according to the original skin animation model and the lightweight models of the plurality of grades. According to the application, when the skin animation LOD model is generated, the vertex data is deleted from the lightweight model of each level, and only the triangular patch data is stored, so that the whole data volume can be reduced.
Description
Technical Field
The present application relates to the field of three-dimensional model processing technologies, and in particular, to a method and an apparatus for generating a skin animation LOD model, an electronic device, and a storage medium.
Background
LOD (English language details) is an important technology in computer graphics, which uses details with different fine degrees to represent the same three-dimensional model, and the higher the LOD level, the higher the abstract degree of the model, and the smaller the data volume of the model. Thus, when the display is performed, a coarser model can be used for a scene with lower detail requirements, and a finer model can be used for a scene with higher detail requirements. By the LOD method, a model with a higher abstract degree can be used for most non-key areas, so that the data volume of the whole scene is smaller, and the rendering display efficiency is higher.
At present, the LOD generation method of the skin animation model mainly integrates model data with different accuracies according to LOD grades, and calls models with different grades in different application scenes. However, both the manual LOD generation method and the automatic method repeatedly store a large amount of redundant vertex data, resulting in a large amount of LOD data to be generated.
Disclosure of Invention
The purpose of the application is that: a method, a device, an electronic device and a storage medium for generating a skin animation LOD model are provided, so that the problem of overlarge data volume in the existing LOD generation method is solved.
In order to achieve the above object, a first aspect of the present application provides a method for generating a skin animation LOD model, including:
acquiring grid data and a face reduction rate of an original skin animation model; wherein the mesh data includes vertex data and triangular patch data;
carrying out surface reduction treatment on the original skin animation model according to the surface reduction rate to obtain a plurality of grades of lightweight models; in the face reduction process, deleting all vertex data in the lightweight model of each level;
and generating the skin animation LOD model according to the original skin animation model and the light-weight models of a plurality of grades.
Preferably, before acquiring the mesh data and the reduction rate of the original skin animation model, the generating method further includes:
performing at least one of the following preprocessing operations on the original skinned animation model:
deleting repeated vertexes of the original skin animation model;
repairing the joint of the original skin animation model;
and removing the overlapped part model in the original skin animation model.
Preferably, the facet-reducing rate is preconfigured according to at least one requirement of different platforms, different hardware, different terminals and different application scenes.
Preferably, the surface reduction processing is performed on the original skin animation model according to the surface reduction rate to obtain a plurality of grades of lightweight models, including:
and carrying out surface reduction treatment on the original skin animation model in a vertex deleting mode according to the surface reduction rate to obtain a plurality of grades of lightweight models.
Preferably, the generating method further includes:
and converting the skin animation LOD model into a target model file according to the target file format.
The second aspect of the present application provides a device for generating a skin animation LOD model, comprising:
the data acquisition module is used for acquiring grid data and the face reduction rate of the original skin animation model; wherein the mesh data includes vertex data and triangular patch data;
the surface reduction processing module is used for carrying out surface reduction processing on the original skin animation model according to the surface reduction rate to obtain a plurality of grades of lightweight models; in the face reduction process, deleting all vertex data in the lightweight model of each level;
and the model generation module is used for generating the skin animation LOD model according to the original skin animation model and the light-weight models of a plurality of grades.
Preferably, the generating device further includes:
the preprocessing module is used for executing at least one preprocessing operation of the following on the original skin animation model:
deleting repeated vertexes of the original skin animation model;
repairing the joint of the original skin animation model;
and removing the overlapped part model in the original skin animation model.
Preferably, the generating device further includes:
and the format conversion module is used for converting the skin animation LOD model into a target model file according to the target file format.
A third aspect of the present application provides an electronic device comprising a memory in which a computer program is stored, and a processor configured to implement the steps of the method for generating a skin animation LOD model described above when the computer program is executed.
A fourth aspect of the present application provides a storage medium having stored therein a computer program which, when executed by a processor, performs the steps of the method for generating a skin animation LOD model described above.
The application has at least the following beneficial effects:
according to the application, the mesh data and the face reduction rate of the original skin animation model are obtained, wherein the mesh data comprise vertex data and triangular patch data, the face reduction processing is carried out on the original skin animation model according to the face reduction rate to obtain a plurality of grades of lightweight models, all the vertex data in the lightweight models of each grade are deleted in the face reduction processing process, and the skin animation LOD model is generated according to the original skin animation model and the lightweight models of the plurality of grades, and because the vertex data are deleted in the lightweight models of each grade when the skin animation LOD model is generated, only the triangular patch data are stored, so that the whole data amount can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art.
FIG. 1 is a hardware configuration diagram of a computer device for a method for generating a skin animation LOD model in an embodiment of the application;
FIG. 2 is a flowchart of a method for generating a skin animation LOD model according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a device for generating a skin animation LOD model according to an embodiment of the present application.
Detailed Description
The present application will be described and illustrated with reference to the accompanying drawings and examples in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by a person of ordinary skill in the art based on the embodiments provided by the present application without making any inventive effort, are intended to fall within the scope of the present application. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the described embodiments of the application can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," and similar referents in the context of the application are not to be construed as limiting the quantity, but rather as singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in connection with the present application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means greater than or equal to two. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The method embodiment provided by the embodiment of the application can be executed in a terminal, a computer device or a similar computing device. Taking the operation on a computer device as an example, fig. 1 is a hardware configuration diagram of the computer device of the method for generating the skin animation LOD model in the embodiment of the application. As shown in fig. 1, the computer apparatus includes a processor a01, a network interface a02, a display screen a04, an input device a05, and a memory (not shown in the figure) connected through a system bus. Wherein the processor a01 of the computer device is adapted to provide computing and control capabilities. The memory of the computer device includes an internal memory a03 and a nonvolatile storage medium a06. The nonvolatile storage medium a06 stores an operating system B01 and a computer program B02. The internal memory a03 provides an environment for the operation of the operating system B01 and the computer program B02 in the nonvolatile storage medium a06. The network interface a02 of the computer device is used for communication with an external terminal through a network connection. The computer program, when executed by the processor a01, implements the method for generating a skinned animation LOD model according to an embodiment of the present application. The display screen a04 of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device a05 of the computer device may be a touch layer covered on the display screen, or may be a key, a track ball or a touch pad arranged on a casing of the computer device, or may be an external keyboard, a touch pad or a mouse.
It will be appreciated by those skilled in the art that the architecture shown in fig. 1 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements may be implemented, as a particular computer device may include more or less components than those shown, or may be combined with some components, or may have a different arrangement of components.
The embodiment of the application provides a method for generating a skin animation LOD model. Referring to fig. 2, fig. 2 is a flowchart illustrating a method for generating a skin animation LOD model according to an embodiment of the present application. The generating method may include the steps of:
s210, acquiring grid data and a face reduction rate of an original skin animation model; wherein the mesh data includes vertex data and triangular patch data.
In the embodiment of the application, the original skin animation model is a grid model with highest fineness, and is taken as LOD 0 Vertex data and triangular patch data of the mesh model are read, and a face reduction rate is determined. The face reduction rate is used for representing an evaluation index which enables the model to be simplified most under the condition that the minimum characteristic change of the model before and after simplification is ensured as much as possible. That is, the reduction ratio is a preset degree of the model to be reduced, and the value may be a range from 0 to 1.
S220, carrying out face reduction treatment on the original skin animation model according to the face reduction rate to obtain a plurality of grades of lightweight models; and deleting all vertex data in the lightweight model of each level in the face reduction processing process.
In the embodiment of the application, the original skin animation model is subjected to the face reduction treatment according to the face reduction rate from large to small, so that a plurality of grades of light models with fine degree (data size) arranged from high to low can be obtained and respectively used as LOD (line of sight) 1 -LOD N Wherein N is a positive integer greater than 1. It will be appreciated that the lightweight model contains less vertex data and less triangle patch data. In order to further reduce the data amount, in the face-reduction processing, a vertex deletion method is adopted, and since vertex data can be multiplexed, all vertex data in the lightweight model of each level can be deleted. That is, LOD 0 Store all vertex data and triangular patch data, while LOD 1 -LOD N Only the triangular patch data after the face subtraction processing is stored.
S230, generating a skin animation LOD model according to the original skin animation model and the light weight models of a plurality of grades.
In the embodiment of the application, an original skin animation model is taken as LOD 0 The lightweight models of a plurality of grades are respectively used as LOD 1 -LOD N Since vertex data is deleted from each level of lightweight model, only triangular patch data is stored, and the overall data volume can be reduced.
For example, if the original skinned animation model LOD 0 Vertex number V of mesh of (2) 0 24744 number of triangular patches F 0 49108. LOD is realized by adopting the traditional light weight technology 0 Simplifying, and taking a lightweight model with 80% of the surface reduction rate as LOD 1 The number of vertexes of the grid V 1 19834 number of triangular patches F 1 39288; a light model with a reduction of 50% was used as LOD 2 The number of vertexes of the grid V 2 12468 number of triangular patches F 2 24556; a light model with a reduction of 10% was used as LOD 3 The number of vertexes of the grid V 3 5101 number of triangular patches F 3 9822. The number of vertices required to be stored for the generated skinned animated LOD model is 62151 and the number of triangular patches required to be stored is 122274. If the vertex coordinates are represented by double-precision floating point numbers and the vertex indexes of the triangular patches are represented by integer numbers, the mesh data amount required to be stored by the skin animation LOD model is as follows:
62151*3*8+122274*3*4=2958912B.
in the embodiment of the application, the light weight of the skin animation model adopts a vertex deleting mode, and vertex data can be multiplexed. I.e. LOD 0 Store all vertex data and triangular patch data, while LOD 1 -LOD N Only the triangular patch data after the face subtraction processing is stored. The number of vertices V' that the generated skinned animated LOD model needs to store is:
V′=V 0 .
at this time, the mesh data amount that the skin animation LOD model needs to store is:
24744*3*8+122274*3*4=2061144B.
therefore, by adopting the method for generating the skin animation LOD model, the grid number can be reduced by more than 30%.
As can be seen from the foregoing, in the generating method of the skin animation LOD model provided by the embodiment of the present application, by acquiring the mesh data and the face reduction rate of the original skin animation model, where the mesh data includes the vertex data and the triangular patch data, the face reduction processing is performed on the original skin animation model according to the face reduction rate to obtain a plurality of grades of lightweight models, where all the vertex data in each grade of lightweight models are deleted during the face reduction processing, and the skin animation LOD model is generated according to the original skin animation model and the plurality of grades of lightweight models, and since the vertex data is deleted in each grade of lightweight models and only the triangular patch data is stored when the skin animation LOD model is generated, the overall data amount can be reduced.
Optionally, in the foregoing embodiment, before step S210, the generating method further includes:
performing at least one of the following preprocessing operations on the original skinned animation model:
deleting repeated vertexes of the original skin animation model;
repairing the joint of the original skin animation model;
and removing the overlapped part model in the original skin animation model.
In the embodiment of the application, the repeated vertexes of the original skin animation model are deleted, the joints of the original skin animation model are repaired, and the overlapped partial models in the original skin animation model are removed, so that the original skin animation model is internally fused into a whole under the condition of keeping the appearance structure unchanged, and compared with the original skin animation model, the whole is on basic data, and a large amount of repeated vertexes, lines and overlapping entity data are reduced. Therefore, the data structure of the original skin animation model is greatly optimized, the data volume is reduced, and the difficulty in simplifying the original skin animation model in the later period is reduced.
In specific implementation, the facet reducing rate is preconfigured according to at least one requirement of different platforms, different hardware, different terminals and different application scenes.
Wherein the different platform may be at least one of an artificial intelligence adaptive platform, a three-dimensional modeling platform, a platform for texture rendering, and the like. Correspondingly, different hardware, different terminals and requirements for matching different application scenes can be deployed on different platforms according to requirements.
Further, in the above embodiment, in step S220, the face reduction process is performed on the original skin animation model according to the face reduction rate, so as to obtain a plurality of grades of lightweight models, including:
and carrying out surface reduction treatment on the original skin animation model in a vertex deleting mode according to the surface reduction rate to obtain a plurality of grades of lightweight models.
In the embodiment of the application, in the face reduction processing process of the original skin animation model, the original skin animation model is simplified by adopting a vertex deleting mode, and meanwhile, vertex data can be multiplexed by adopting the vertex deleting mode, so that the simplified lightweight model only contains fewer triangle patch data, and the whole data quantity is greatly reduced.
Optionally, in the foregoing embodiment, the generating method further includes:
and converting the skin animation LOD model into a target model file according to the target file format.
In the embodiment of the application, the generated skin animation LOD model is converted into the target model file according to the target file format required to be output. Meanwhile, a visual rendering environment can be built, and the target model file is loaded into the visual environment to perform skin animation LOD model rendering visualization.
The embodiment of the application also provides a device for generating the skin animation LOD model. Referring to fig. 3, fig. 3 is a schematic structural diagram of a generating device of a skin animation LOD model according to an embodiment of the application. The generating means may include:
a data acquisition module 310, configured to acquire mesh data and a face reduction rate of the original skin animation model; wherein the mesh data includes vertex data and triangular patch data;
the surface reduction processing module 320 is configured to perform surface reduction processing on the original skin animation model according to the surface reduction rate, so as to obtain a plurality of grades of lightweight models; in the face reduction process, deleting all vertex data in the lightweight model of each level;
the model generation module 330 is configured to generate a skinned animation LOD model according to the original skinned animation model and the multiple levels of lightweight models.
Optionally, in the foregoing embodiment, the generating device further includes:
the preprocessing module is used for executing at least one preprocessing operation of the following on the original skin animation model:
deleting repeated vertexes of the original skin animation model;
repairing the joint of the original skin animation model;
and removing the overlapped part model in the original skin animation model.
Further, in the above embodiment, the generating device further includes:
and the format conversion module is used for converting the skin animation LOD model into a target model file according to the target file format.
It should be noted that, in the apparatus provided in the above embodiment, when performing the related operation, only the division of each program module is used as an example, and in practical application, the processing allocation may be performed by different program modules according to needs, that is, the internal structure of the terminal is divided into different program modules to complete all or part of the processing described above. In addition, the apparatus provided in the foregoing embodiments belongs to the same concept as the method embodiments in the foregoing embodiments, and specific implementation processes of the apparatus are detailed in the method embodiments, which are not repeated herein.
Based on the hardware implementation of the program module, and in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to implement the steps of the method for generating the skin animation LOD model when the computer program is executed.
In an exemplary embodiment, the processor may be implemented by one or more application specific integrated circuits (ASIC, applicationSpecificIntegratedCircuit), DSPs, programmable logic devices (PLD, programmableLogicDevice), complex programmable logic devices (CPLD, complexProgrammableLogicDevice), field-programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers (MCU, microControllerUnit), microprocessors (microprocessors), or other electronic elements for performing the foregoing methods.
It will be appreciated that the memory of embodiments of the application may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Wherein the non-volatile memory may be read-only memory (ROM, readOnlyMemory), programmable read-only memory (PROM, programmableRead-only memory), erasable programmable read-only memory (EPROM, erasableProgrammableRead-only memory), electrically erasable programmable read-only memory (EEPROM, electricallyErasableProgrammableRead-only memory), magnetic random access memory (FRAM), flash memory (flash memory), magnetic surface memory, optical disk, or compact disk-read-only memory (CD-ROM, compactDiscRead-only memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM, randomAccessMemory) that acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, staticRandomAccessMemory), synchronous static random access memory (SSRAM, synchronousStaticRandomAccessMemory), dynamic random access memory (DRAM, dynamicRandomAccessMemory), synchronous dynamic random access memory (SDRAM, synchronousDynamicRandomAccessMemory), double data rate synchronous dynamic random access memory (DDRSDRAM, doubleDataRateSynchronousDynamicRandomAccessMemory), enhanced synchronous dynamic random access memory (ESDRAM, enhancedSynchronousDynamicRandomAccessMemory), synchronous link dynamic random access memory (SLDRAM, syncLinkDynamicRandomAccessMemory), direct memory bus random access memory (DRRAM, directRambusRandomAccessMemory). The memory described by embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
In one embodiment, the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for generating a skin animation LOD model described above.
It is to be understood that the computer-readable storage media of embodiments of the present application, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable storage media, as defined herein, does not include transitory computer-readable media (transshipment) such as modulated data signals and carrier waves.
It will be understood by those skilled in the art that the present application is not limited to the embodiments described above, and that the above embodiments and descriptions are merely illustrative of the principles of the present application, and various changes and modifications may be made without departing from the spirit and scope of the application, which is defined in the appended claims. The scope of the application is defined by the appended claims and equivalents thereof.
Claims (10)
1. The method for generating the skin animation LOD model is characterized by comprising the following steps of:
acquiring grid data and a face reduction rate of an original skin animation model; wherein the mesh data includes vertex data and triangular patch data;
carrying out surface reduction treatment on the original skin animation model according to the surface reduction rate to obtain a plurality of grades of lightweight models; in the face reduction process, deleting all vertex data in the lightweight model of each level;
and generating a skinning animation LOD model according to the original skinning animation model and the multiple grades of lightweight models.
2. The method of generating a skinned animation LOD model according to claim 1, wherein prior to the acquiring mesh data and the face reduction rate of the original skinned animation model, the generating method further comprises:
performing at least one of the following preprocessing operations on the original skin animation model:
deleting repeated vertexes of the original skin animation model;
repairing the joint of the original skin animation model;
and removing part of overlapped models in the original skin animation model.
3. The method for generating a skin animation LOD model according to claim 1, wherein the face reduction rate is preconfigured according to at least one requirement of different platforms, different hardware, different terminals and different application scenes.
4. The method for generating a skinned animation LOD model according to claim 1, wherein the performing the face reduction process on the original skinned animation model according to the face reduction rate to obtain a plurality of levels of lightweight models comprises:
and carrying out surface reduction treatment on the original skin animation model in a vertex deleting mode according to the surface reduction rate to obtain a plurality of grades of lightweight models.
5. The method of generating a skinned animated LOD model of claim 1, further comprising:
and converting the skin animation LOD model into a target model file according to a target file format.
6. The utility model provides a generating device of skin animation LOD model which characterized in that includes:
the data acquisition module is used for acquiring grid data and the face reduction rate of the original skin animation model; wherein the mesh data includes vertex data and triangular patch data;
the surface reduction processing module is used for carrying out surface reduction processing on the original skin animation model according to the surface reduction rate to obtain a plurality of grades of lightweight models; in the face reduction process, deleting all vertex data in the lightweight model of each level;
and the model generation module is used for generating a skin animation LOD model according to the original skin animation model and the multiple levels of lightweight models.
7. The apparatus for generating a skin animation LOD model according to claim 6, wherein the apparatus for generating further comprises:
the preprocessing module is used for executing at least one preprocessing operation of the original skin animation model:
deleting repeated vertexes of the original skin animation model;
repairing the joint of the original skin animation model;
and removing part of overlapped models in the original skin animation model.
8. The apparatus for generating a skin animation LOD model according to claim 6, wherein the apparatus for generating further comprises:
and the format conversion module is used for converting the skin animation LOD model into a target model file according to the target file format.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being configured to run the computer program to perform the method of generating a skin animation LOD model of any one of claims 1 to 5.
10. A storage medium having a computer program stored therein, wherein the computer program is configured to, when run, perform the method of generating a skinned animation LOD model of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310809812.XA CN116993869A (en) | 2023-07-04 | 2023-07-04 | Skin animation LOD model generation method and device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310809812.XA CN116993869A (en) | 2023-07-04 | 2023-07-04 | Skin animation LOD model generation method and device, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116993869A true CN116993869A (en) | 2023-11-03 |
Family
ID=88520492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310809812.XA Pending CN116993869A (en) | 2023-07-04 | 2023-07-04 | Skin animation LOD model generation method and device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116993869A (en) |
-
2023
- 2023-07-04 CN CN202310809812.XA patent/CN116993869A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230120253A1 (en) | Method and apparatus for generating virtual character, electronic device and readable storage medium | |
CN110992466B (en) | Illumination probe generation method and device, storage medium and computer equipment | |
CN113628331B (en) | Data organization and scheduling method for photogrammetry model in illusion engine | |
CN113793286B (en) | Media image watermark removing method based on multi-order attention neural network | |
Ting et al. | Image inpainting by global structure and texture propagation | |
CN116310143B (en) | Three-dimensional model construction method, device, equipment and storage medium | |
CN112819199A (en) | Precipitation prediction method, device, equipment and storage medium | |
CN116958379A (en) | Image rendering method, device, electronic equipment, storage medium and program product | |
Guan et al. | Voxel-based quadrilateral mesh generation from point cloud | |
CN109858059B (en) | Application method of virtual reality technology based on CAD (computer-aided design) super-large model in hydropower station simulation | |
CN115713585B (en) | Texture image reconstruction method, apparatus, computer device and storage medium | |
CN116993869A (en) | Skin animation LOD model generation method and device, electronic device and storage medium | |
CN111617480A (en) | Point cloud rendering method and device | |
Yang et al. | CAD data visualization on mobile devices using sequential constrained Delaunay triangulation | |
CN114140508A (en) | Method, system and equipment for generating three-dimensional reconstruction model and readable storage medium | |
CN113593032A (en) | Three-dimensional building model edge folding simplified algorithm considering angle error | |
CN114692865A (en) | Neural network quantitative training method and device and related products | |
Shi et al. | Mesh Simplification Method Based on Reverse Interpolation Loop Subdivision | |
CN112767550B (en) | Space target light scattering characteristic modeling method based on grid | |
US11048971B1 (en) | Method for training image generation model and computer device | |
CN116030176A (en) | Three-dimensional model rendering method, device, equipment and medium based on cluster division | |
CN116129025A (en) | Three-dimensional model rendering method, device, equipment and medium based on model depth | |
Kuth et al. | Edge‐Friend: Fast and Deterministic Catmull‐Clark Subdivision Surfaces | |
CN117851704A (en) | Method, device, equipment and medium for loading mass model | |
CN118135080A (en) | Laser point cloud model rendering method and system |
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 |