CN109377545B - Alembic-based model sharing and rendering method and electronic terminal - Google Patents

Alembic-based model sharing and rendering method and electronic terminal Download PDF

Info

Publication number
CN109377545B
CN109377545B CN201811143491.XA CN201811143491A CN109377545B CN 109377545 B CN109377545 B CN 109377545B CN 201811143491 A CN201811143491 A CN 201811143491A CN 109377545 B CN109377545 B CN 109377545B
Authority
CN
China
Prior art keywords
model
file
rendering
original
abc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811143491.XA
Other languages
Chinese (zh)
Other versions
CN109377545A (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.)
Wuhan Xiafan Culture Communication Co.,Ltd.
Original Assignee
Yhkt Entertainment 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 Yhkt Entertainment Co ltd filed Critical Yhkt Entertainment Co ltd
Priority to CN201811143491.XA priority Critical patent/CN109377545B/en
Publication of CN109377545A publication Critical patent/CN109377545A/en
Application granted granted Critical
Publication of CN109377545B publication Critical patent/CN109377545B/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/10Geometric effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Information Transfer Between Computers (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a model sharing and rendering method based on Alembic and an electronic terminal. The method comprises the following steps: selecting a locally stored model file and importing the model file into an animation component; the animation assembly obtains an original model and a copy model of the original model according to the model file; selecting a copy model as a deformation basis in the animation assembly, and carrying out fusion deformation on the original model and the copy model to obtain a target model; judging whether a target model is cached or not; and after the cached target model is judged, exporting an abc cache file of the target model and a rendering file matched with the abc cache file through the animation component, wherein the rendering file at least comprises material information and texture mapping information of the target model. The method can avoid that the cached geometric result cannot be matched with the original model before modification due to subsequent modification of the original model, and on the other hand, the original model can be quickly restored through the combination of the exported material information, the exported texture mapping information and the abc cache file, so that the operation flow is simplified.

Description

Alembic-based model sharing and rendering method and electronic terminal
Technical Field
The invention relates to the technical field of computers, in particular to a model sharing and rendering method based on Alembic and an electronic terminal.
Background
In the process of 3D animation production, in order to improve the rendering effect, the relevant character props in the shots are usually required to be produced as geometric cache.
Wherein, the Alembic cache is a file format widely used at present; the Alembic file format (hereinafter referred to as abc cache file) is an open computer image exchange framework; the complex scene with animation can be refined into a set of non-process and application program independent baking geometric figure results.
The abc cache file comprises information such as displacement, vertex, UV (ultraviolet) and visibility of the cache geometric result; and does not include information such as texture and texture maps of the cache geometry results.
After an abc cache file of an original model is exported by using an abc cache function matched with Maya, the abc cache file needs to be imported into Maya or other 3D components for obtaining a geometric result of the original model. But before exporting the abc cache file of the original model, if the original model is modified, the exported abc cache file is different from the geometric result of the original model. Meanwhile, the cached geometric result does not include the material and the texture map of the geometric result, and the material and the texture map of the geometric result are added again in the subsequent process, so that the process is complex and deviation is easy to occur.
Disclosure of Invention
The embodiment of the invention at least discloses a model sharing method based on Alembic, which can solve the technical problems that the abc cache file only can cache the geometric result of a model in the prior art, so that the geometric result of the abc cache file needs to be imported before subsequent rendering, the material of the geometric result needs to be reconstructed, a word graph is pasted, and other complex operations are required.
The specific implementation of the above embodiment is as follows.
The method comprises the following steps:
selecting a locally stored model file and importing the model file to an animation component;
the animation assembly obtains the original model and a copy model of the original model according to the model file;
selecting the copy model as a deformation basis in the animation assembly, and carrying out fusion deformation on the original model and the copy model to obtain a target model;
judging whether the target model is cached or not;
and after the cached target model is judged, exporting an abc cache file of the target model and a rendering file matched with the abc cache file through an animation component, wherein the rendering file at least comprises material information and texture mapping information of the target model.
In some embodiments of the present disclosure, the model file stored in the local address is deleted after the animation component imports the model file.
In some embodiments of the present disclosure, the deformation history of the target model is hidden or deleted after the target model is obtained.
In some embodiments of the present disclosure, importing the abc cache file and the rendering file to a rendering component;
obtaining a geometric result of the target model at the rendering component according to the abc cache file;
acquiring material information and texture mapping information matched with the geometric result at the rendering component according to the rendering file;
and constructing a sharing model at the rendering component according to the geometric result, the material information and the texture mapping information.
In some embodiments of the present disclosure, the model file is imported at the rendering component;
the rendering component acquires the original model according to the model file;
comparing the consistency of the original model and the shared model;
and after the original model is judged to be consistent with the shared model, selecting the shared model to perform subsequent rendering work and deleting the model file.
In some embodiments of the present disclosure, upon determining that the original model is inconsistent with the shared model,
deleting the abc cache file and the rendering file;
and acquiring the target model in the animation software again.
The embodiment of the invention at least discloses a model sharing method based on Alembic,
the method comprises the following steps:
selecting and importing a locally stored model file;
acquiring the original model and a copy model of the original model according to the model file;
selecting the replication model as a basis to perform fusion deformation on the original model and the replication model so as to obtain a target model;
judging whether a target model is cached or not;
exporting and locally storing abc cache files of the target model after judging the cached target model;
and at least recording material information and texture mapping information related to the abc cache file.
The embodiment of the invention at least discloses a model rendering method, which comprises the following steps:
importing the abc cache file for constructing a geometric result of the target model;
and acquiring the recorded material information and texture mapping information, and constructing the shared model for rendering according to the material information, the texture mapping information and the geometric result.
In some embodiments of the present disclosure, consistency of the original model and the shared model is compared;
and after the original model is judged to be consistent with the shared model, selecting the shared model to perform subsequent rendering work and deleting the model file.
The embodiment of the invention at least discloses an electronic terminal which is used for storing and executing instructions and is characterized in that the instructions realize the steps of the method when being executed.
In view of the above, other features and advantages of the disclosed exemplary embodiments will become apparent from the following detailed description of the disclosed exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a flow chart of a first embodiment;
FIG. 2 is a partial flowchart of the second embodiment;
fig. 3 is a flow chart subsequent to fig. 2.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, as disclosed in the accompanying drawings, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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.
Example one
The embodiment discloses a model sharing method based on Alembic. According to the method, on one hand, the situation that the cached geometric result cannot be matched with the original model before modification due to subsequent modification of the original model can be avoided, on the other hand, the original model can be quickly restored through the combination of the exported material information, the exported texture mapping information and the abc cache file, and the operation flow is simplified.
To achieve the above, please refer to fig. 1; the steps of the method of this example are carried out as follows.
And Step110, selecting the model files stored in the local folder.
Step120, importing a model file in Maya, and acquiring an original model with animation.
Step200, copy model of original model copied in Maya.
Step310, selecting a Shape fusion deformer Blend Shape of Maya, taking the copy model as a deformation basis, and carrying out fusion deformation on the original model and the copy model to obtain a target model.
The target model of the implementation always takes the copy model as the basis of fusion deformation, so that the copy model can always keep all the initial characteristics of the original model. Then the target model can be guaranteed to have the original features of the original model before rendering, even if the original model is modified.
And Step320, after the original model is modified, judging whether to export an abc cache file of the target model according to the user requirement. The basis for deriving the abc cache file of the target model in this embodiment is to determine that a model for rendering in a subsequent rendering process is an original model before modification.
And Step330, deleting the deformation history of the target model after judging the abc cache file of the exported target model, even if the target model is consistent with the imported original model. Or deleting the target model after judging that the abc cache file of the target model is not exported.
And Step400, exporting the abc cache file and a rendering file matched with the abc cache file, wherein the rendering file at least comprises material information and texture mapping information matched with the abc cache file.
Step500, importing an abc cache file and houdiiini used for rendering the rendering file; other materials such as 3Dmax and maya may be used.
Step610, as the abc cache file stores the geometry result after baking; the geometric result of the target model is obtained from the abc cache file at houdiiini.
And Step620, obtaining material information and texture mapping information matched with the geometric result according to the rendering file at houdiiini.
And Step630, constructing a shared model in houdiiini according to the geometric result, the material information and the texture mapping information.
Step710, import model file in houdiiini.
And Step720, obtaining the original model by the houdiiini according to the model file.
Step730, judging the consistency of the original model and the shared model, wherein the consistency at least comprises the displacement, fixed point, UV coordinate, visibility and the like of the corresponding geometric results of the original model and the shared model.
And Step740, after the original model is judged to be consistent with the shared model, selecting the shared model to perform subsequent rendering work and deleting the model file.
Or deleting the abc cache file and the rendering file after the original model is judged to be inconsistent with the shared model, and obtaining the target model again at maya according to the model file.
The present embodiment further discloses an electronic terminal, and for convenience of description, only the parts related to the embodiments of the present invention are shown. The electronic terminal of this embodiment is configured to store and execute one or more instructions, and when the instructions are executed by the processor of the electronic terminal, all or part of the steps of the method of this embodiment are implemented.
Electronic terminals may also be referred to as Mobile terminals (Mobile terminals), Mobile Stations (MSs), User Equipments (UEs), and so on. May be a device providing voice and/or data connectivity to a user, a handheld device with wireless connection capability, or other processing device connected to a wireless modem, such as: the electronic terminal may be a mobile phone (or referred to as a "cellular" phone), a Computer with a mobile terminal, or a portable, pocket, handheld, Computer-embedded or vehicle-mounted mobile device, or may be a wearable device (such as a smart watch, a smart bracelet, or the like), a tablet Computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a POS (Point of Sales), or the like.
Example two
The embodiment discloses a model sharing method based on Alembic. The difference between this embodiment and the first embodiment is that, in this embodiment, the sharing and rendering of the original model are implemented by maya at the same terminal. Referring to fig. 2, the method of this embodiment is implemented in maya as follows.
Step100, selecting and importing the model file stored in the local folder.
And Step200, acquiring the original model and a copy model of the original model according to the model file.
Step300, selecting a Shape fusion deformer Blend Shape and taking the copy model as a deformation basis, and carrying out fusion deformation on the original model and the copy model to obtain a target model.
Step410, judging whether a target model is cached or not;
and Step420, exporting after judging the cached target model, and storing an abc cache file of the target model in a local folder.
And Step430, recording the material information and the texture mapping information of the target model.
Then, with the above-mentioned scheme, the method of this embodiment can obtain the abc cache file of the target model, so as to cache the geometric result of the target model, and after maya performs other animation operations, can import the geometric result stored in the local folder and merge the texture map information and the texture information recorded in maya. The original model is restored.
Further, the embodiment discloses a model rendering method based on Alembic. Please refer to fig. 3; the implementation steps of this embodiment after the sharing method based on the second embodiment are as follows.
And Step510, importing an abc cache file for constructing a geometric result of the target model.
And Step520, acquiring the recorded material information and texture mapping information, and constructing a shared model for rendering according to the material information, the texture mapping information and the geometric result.
And Step600, judging the consistency of the original model and the shared model.
And Step700, selecting the shared model to perform subsequent rendering work and deleting the model file after judging that the original model is consistent with the shared model.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A method for sharing models based on Alembic is characterized by comprising the following steps:
selecting a locally stored model file and importing the model file to an animation component;
the animation assembly obtains an original model and a copy model of the original model according to the model file;
selecting the copy model as a deformation basis in the animation assembly, and carrying out fusion deformation on the original model and the copy model to obtain a target model;
judging whether a target model is cached or not;
and after the cached target model is judged, exporting an abc cache file of the target model and a rendering file matched with the abc cache file through an animation component, wherein the rendering file at least comprises material information and texture mapping information of the target model.
2. The Alembic-based model sharing method as claimed in claim 1, wherein the model file stored in a local address is deleted after the animation component imports the model file.
3. The Alembic-based model sharing method as claimed in claim 1, wherein the deformation history of the target model is hidden or deleted after the target model is obtained.
4. The Alembic-based model sharing method of claim 1, wherein importing the abc cache file and the render file to a rendering component;
acquiring a geometric result of the target model at the rendering component according to the abc cache file;
acquiring material information and texture mapping information matched with the geometric result at the rendering component according to the rendering file;
and constructing a sharing model at the rendering component according to the geometric result, the material information and the texture mapping information.
5. The Alembic-based model sharing method as claimed in claim 4, wherein the model file is imported at the rendering component;
the rendering component acquires the original model according to the model file;
comparing the consistency of the original model and the shared model;
and after the original model is judged to be consistent with the shared model, selecting the shared model to perform subsequent rendering work and deleting the model file.
6. The Alembic-based model sharing method as claimed in claim 5, wherein the abc cache file and the render file are deleted after the original model is judged to be inconsistent with the shared model;
and acquiring the target model again in the animation software.
7. An electronic terminal for storing and executing instructions, characterized in that said instructions, when executed, implement the steps of the method according to any of claims 1-6.
CN201811143491.XA 2018-09-28 2018-09-28 Alembic-based model sharing and rendering method and electronic terminal Active CN109377545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811143491.XA CN109377545B (en) 2018-09-28 2018-09-28 Alembic-based model sharing and rendering method and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811143491.XA CN109377545B (en) 2018-09-28 2018-09-28 Alembic-based model sharing and rendering method and electronic terminal

Publications (2)

Publication Number Publication Date
CN109377545A CN109377545A (en) 2019-02-22
CN109377545B true CN109377545B (en) 2022-06-24

Family

ID=65403032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811143491.XA Active CN109377545B (en) 2018-09-28 2018-09-28 Alembic-based model sharing and rendering method and electronic terminal

Country Status (1)

Country Link
CN (1) CN109377545B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838159B (en) * 2019-11-06 2022-11-25 武汉艺画开天文化传播有限公司 Object sharing device and method with material information in animation production
CN111445558B (en) * 2020-03-23 2023-05-16 华强方特(深圳)动漫有限公司 Three-dimensional manufacturing method applying Alemmic format
CN112150592B (en) * 2020-09-28 2023-07-14 腾讯科技(深圳)有限公司 Animation file generation method and device, storage medium and electronic equipment
CN113947657A (en) * 2021-10-18 2022-01-18 网易(杭州)网络有限公司 Target model rendering method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617643A (en) * 2013-11-29 2014-03-05 广州菲动软件科技有限公司 Rendering method and system of bone animation
CN108122266A (en) * 2017-12-20 2018-06-05 成都卓杭网络科技股份有限公司 A kind of method, apparatus and storage medium for caching skeleton cartoon and rendering texture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617643A (en) * 2013-11-29 2014-03-05 广州菲动软件科技有限公司 Rendering method and system of bone animation
CN108122266A (en) * 2017-12-20 2018-06-05 成都卓杭网络科技股份有限公司 A kind of method, apparatus and storage medium for caching skeleton cartoon and rendering texture

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
将Alembic构架嵌入基于Maya的三维动画制作流程的二次开发和应用;高磊;《现代电影技术》;20130228;第28-30页 *
浅谈三维动画电影制作在Maya里的数据规划与数据管理;许震;《现代电影技术》;20180131;第37-39页 *

Also Published As

Publication number Publication date
CN109377545A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN109377545B (en) Alembic-based model sharing and rendering method and electronic terminal
KR20220156926A (en) Combining first user interface content into a second user interface
US11494999B2 (en) Procedurally generating augmented reality content generators
US11513753B2 (en) Data processing method and electronic terminal
US9747007B2 (en) Resizing technique for display content
CN107578467B (en) Three-dimensional modeling method and device for medical instrument
US20220375111A1 (en) Photometric-based 3d object modeling
WO2023226371A1 (en) Target object interactive reproduction control method and apparatus, device and storage medium
CN110134452B (en) Object processing method and device
TW201024668A (en) Method and system for information linking between applications and mobile device using the same
CN115438396A (en) Package design method and device
CN108399038A (en) A kind of picture synthetic method and mobile terminal
US20220101419A1 (en) Ingestion pipeline for generating augmented reality content generators
CN113926190A (en) Method and device for controlling three-dimensional model in game editor and storage medium
US11468613B2 (en) Annotating an image with a texture fill
CN111443945B (en) Component code modification method and device
CN116206038A (en) Rendering method, rendering device, electronic equipment and storage medium
CN110838159B (en) Object sharing device and method with material information in animation production
TW201913370A (en) Application page display method and device, device, storage medium
CN113168496A (en) Note synchronization method, system and related device
CN114095719B (en) Image display method, image display device and storage medium
CN109993815B (en) Method and device for processing picture object in electronic document
KR20190101601A (en) Method for displaying chart and apparatus using the same
WO2023221683A1 (en) Image rendering method and apparatus, device, and medium
WO2021174538A1 (en) Application processing method and related 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221101

Address after: Room 1401, Floor 14, Building 8A, Gaoxin Second Road, Wuhan, Hubei 430,000

Patentee after: Wuhan Xiafan Culture Communication Co.,Ltd.

Address before: 430000 Guannan science and Technology Industrial Park, East Lake New Technology Development Zone, Wuhan City, Hubei Province No. 7, 8 and 9, floor 9, building 9, phase III, international design City

Patentee before: YHKT ENTERTAINMENT Co.,Ltd.

TR01 Transfer of patent right