CN110097630A - The generation method of general camera and device, storage medium in 3D cartoon making - Google Patents

The generation method of general camera and device, storage medium in 3D cartoon making Download PDF

Info

Publication number
CN110097630A
CN110097630A CN201910268562.7A CN201910268562A CN110097630A CN 110097630 A CN110097630 A CN 110097630A CN 201910268562 A CN201910268562 A CN 201910268562A CN 110097630 A CN110097630 A CN 110097630A
Authority
CN
China
Prior art keywords
camera
key frame
original
model
dereferenced
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
CN201910268562.7A
Other languages
Chinese (zh)
Other versions
CN110097630B (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 Art Painting Opening Astronomical Communication Co Ltd
Original Assignee
Wuhan Art Painting Opening Astronomical Communication 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 Wuhan Art Painting Opening Astronomical Communication Co Ltd filed Critical Wuhan Art Painting Opening Astronomical Communication Co Ltd
Priority to CN201910268562.7A priority Critical patent/CN110097630B/en
Publication of CN110097630A publication Critical patent/CN110097630A/en
Application granted granted Critical
Publication of CN110097630B publication Critical patent/CN110097630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention discloses the generation method and device, storage medium of general camera in a kind of 3D cartoon making.The method comprise the steps that the single-point camera that creation is synchronous with original camera key frame or key frame collection;In each key frame of the original camera, the attitude data and photographed data of the original camera are obtained respectively;Key application frame or key frame integrate the corresponding attitude data and the photographed data to the single-point camera as dereferenced camera;Store the dereferenced camera.The present invention can create corresponding single-point camera, for exporting or baking under any scene according to the posture of original camera and parameter;The problem of original camera includes other relation conditions after export is overcome, the probability that camera occurs mistake when being loaded into other animation softs is reduced.

Description

The generation method of general camera and device, storage medium in 3D cartoon making
Technical field
The present invention relates to field of three-dimension modeling, the generation in particular to general camera in a kind of 3D cartoon making is filled It sets.
Background technique
Textures baking is that the Light energy transfer information in 3D animation soft is rendered to textures;Again by the textures after baking It is loaded into the technological means of model in scene.
In 3D cartoon making, in order to guarantee scene stabilization and efficiently;It needs to carry out the camera to be rendered in scene The baking of key frame or key frame collection.By baked in document scene camera that key frame or key frame collection generate can again by into One step is applied individually in other animation softs, is used for production process.
But when document scene is numerous and jumbled, camera is possible to by other nodes, expression formula, the constraint relationship, animation layer and change Change the limitation of the relation conditions such as node;The camera generated after being baked by existing key frame or key frame collection, can be with above-mentioned relation item The association of part causes camera when being imported into other animation softs, includes extra relation condition, causes other animations The loading mistake of Software for producing.
Summary of the invention
The embodiment of the present invention at least discloses a kind of generation method of general camera in 3D cartoon making, is able to solve camera and exists The problem of including other relation conditions after export, reduces the probability that camera occurs mistake when being loaded into other animation softs.
The described method includes:
Create the single-point camera synchronous with original camera key frame or key frame collection;
In each key frame of the original camera, the attitude data and photographed data of the original camera are obtained respectively;
Key application frame or the corresponding attitude data of key frame collection and the photographed data are to the single-point camera Dereferenced camera;
Store the dereferenced camera.
In some embodiments disclosed by the invention, in each key frame of the original camera, the original is obtained respectively The attitude data of beginning camera, is configured as:
Create locator;
The locator is constrained to original camera;
In each key frame of the original camera, the location data for obtaining the locator respectively is the posture number According to.
In some embodiments disclosed by the invention, the location data includes coordinate position and the rotation of the locator Angle.
In some embodiments disclosed by the invention, the photographed data includes the negative plate size and phase of the original camera Machine focal length.
In some embodiments disclosed by the invention, the dereferenced camera is baked frame by frame in the key frame or the pass The animation model of key frame collection.
In some embodiments disclosed by the invention, the dereferenced camera is baked in the key frame or the key frame The animation model of collection, is configured as:
Generate whole model nodes of animation model in scene;
Dereferenced camera described in current key frame is obtained in the field range of the animation model;
Extract the model node of the covering of field range described in current key frame;
Compact model is generated according to the capped model node;
The dereferenced camera is baked in the compact model of current key frame.
In some embodiments disclosed by the invention, compact model is generated according to the model node of covering, is configured Are as follows:
The model node is the surface point cloud of animation model;
Obtain the surface point cloud that the animation model is covered by the field range
Extended to outside the field range in advance for origin on the surface of the animation model according to any surface point cloud Set coordinate;
It is the compact model according to the part that the surface point cloud of extension intercepts the animation model.
The embodiment of the present invention at least discloses a kind of storage medium, and the storage medium is stored at least one formula, described When formula is performed device execution, realize such as the step of the above method.
The embodiment of the present invention at least discloses a kind of generating means of general camera in 3D cartoon making.
Described device includes:
Camera creation module is configured as obtaining original camera and create and the original camera key frame or key frame Collect synchronous single-point camera;
Posture synchronization module is configured as obtaining the original camera in the attitude data of each key frame;
Parameter synchronization module is configured as obtaining the original camera in the photographed data of each key frame;
Camera applications module is configured to apply key frame or the corresponding attitude data of key frame collection and the shooting Data to the single-point camera be dereferenced camera;
Camera bakes module, is configured as baking the dereferenced camera frame by frame in the key frame or the key frame collection Animation model.
In some embodiments disclosed by the invention, described device includes camera memory module;
The camera memory module is configured as storing the dereferenced camera.
For above scheme, the present invention is by being referring to the drawings described in detail disclosed exemplary embodiment, also The other feature and its advantage for making the embodiment of the present invention understand.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the framework map of embodiment generating means;
Fig. 2 is the flow chart of embodiment generation method.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of disclosed the embodiment of the present invention in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects It encloses.
The present embodiment provides a kind of generating means of general camera in 3D cartoon making.Device be put in such as maya and In the three-dimensional animation making softwares such as 3Dmax, such as the plug-in unit xp_exportBakCam.mel that can operate in maya as one.xp_ The framework of exportBakCam.mel is as shown in Figure 1, include camera creation module, posture synchronization module, parameter synchronization module, phase Machine application module and camera bake module.In original camera after configured with key frame or key frame collection, xp_ The execution that exportBakCam.mel can be selected when choosing original camera in maya.
Xp_exportBakCam.mel is performed, and executes or part executes above-mentioned module in order.
Camera creation module is performed, and creates the single-point synchronous with the key frame of original camera or key frame collection chosen The quantity of camera, single-point camera is configured according to selection.
Posture synchronization module is performed, and is created simultaneously in single-point camera, the positioning of creation one and original camera constraint Device, locator be able to record under each key frame the coordinate position of original camera and rotation angle in addition other in relation to posture Information, the present embodiment does not limit.
Parameter synchronization module is performed, and records the negative plate size and camera focus of original camera under each key frame, very To other parameters in relation to camera.
Camera applications module is performed for each key frame application in single-point camera after the execution of three above module The attitude data and photographed data of corresponding original camera, make coordinate position, angle, the acquisition parameters etc. of unidirectional camera in the scene It is consistent with original camera, while being not associated to the relation conditions such as other nodes as dereferenced camera.
Camera bakes module and is performed after the execution of camera applications module, is capable of the baking dereferenced camera of key frame one by one In the animation model of current key frame.
After camera applications module is performed, deposited under the path being set by the camera memory module of animation soft Energy storage reaches the general general camera in other animation softs.Meanwhile camera memory module is in the animation model of associated camera After being baked, the animation model textures that dereferenced camera is baked in each key frame can be stored under the path being set.
Further, camera bakes module when baking animation model of the dereferenced camera in current key frame, can hold Row following steps.
S100 generates all surfaces point cloud on animation model surface in scene.
S200 obtains dereferenced camera described in current key frame in the field range of the animation model.
S300 extracts the surface point cloud that animation model described in current key frame is covered by the field range.
S400 is origin on the surface of the animation model to the field range extension according to any surface point cloud Stretch pre-set co-ordinate;
S500 is the compact model according to the part that the surface point cloud of extension intercepts the animation model.
Referring to FIG. 2, xp_exportBakCam.mel is performed in maya, the life of general camera in maya is realized It is as follows at process.
S100 creates the single-point camera synchronous with original camera key frame or key frame collection by camera creation module;
S200 creates locator by posture synchronization module, and constrains the locator to original camera.
S300, in each key frame of the original camera, obtains the seat of the locator by posture synchronization module respectively Cursor position and rotation angle are the posture of the original cameras such as the attitude data.
S400, in each key frame of the original camera, obtains the original camera by parameter synchronization module respectively The parameter of the original cameras such as negative plate size and camera focus.
S500 passes through camera applications module application key frame or the corresponding attitude data of key frame collection and the shooting Data to the single-point camera be dereferenced camera.
S600 bakes module by camera and bakes the dereferenced camera frame by frame in the key frame or the key frame collection Animation model.
S700 stores the dereferenced camera and dereferenced camera in each key frame by the camera memory module of maya The animation model textures of lower baking.
In order to which embodiments of the present invention is further illustrated.The present embodiment discloses a kind of storage medium.Wherein storage medium It is stored with several formulas, formula can be performed device execution, the step of for realizing such as above-mentioned xp_exportBakCam.mel.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. the generation method of general camera in a kind of 3D cartoon making, which is characterized in that
The described method includes:
Create the single-point camera synchronous with original camera key frame or key frame collection;
In each key frame of the original camera, the attitude data and photographed data of the original camera are obtained respectively;
Key application frame or the corresponding attitude data of key frame collection and the photographed data to the single-point camera be non-pass Join camera;
Store the dereferenced camera.
2. the generation method of general camera in 3D cartoon making as described in claim 1, which is characterized in that
In each key frame of the original camera, the attitude data of the original camera is obtained respectively, is configured as:
Create locator;
The locator is constrained to original camera;
In each key frame of the original camera, the location data for obtaining the locator respectively is the attitude data.
3. the generation method of general camera in 3D cartoon making as claimed in claim 2, which is characterized in that
The location data includes the coordinate position and rotation angle of the locator.
4. the generation method of general camera in 3D cartoon making as described in claim 1, which is characterized in that
The photographed data includes the negative plate size and camera focus of the original camera.
5. the generation method of general camera in 3D cartoon making as described in claim 1, which is characterized in that
The dereferenced camera is baked frame by frame in the key frame or the animation model of the key frame collection.
6. the generation method of general camera in 3D cartoon making as claimed in claim 5, which is characterized in that
The dereferenced camera is baked in the key frame or the animation model of the key frame collection, is configured as:
Generate whole model nodes of animation model in scene;
Dereferenced camera described in current key frame is obtained in the field range of the animation model;
Extract the model node of the covering of field range described in current key frame;
Compact model is generated according to the capped model node;
The dereferenced camera is baked in the compact model of current key frame.
7. the generation method of general camera in 3D cartoon making as claimed in claim 6, which is characterized in that
Compact model is generated according to the model node of covering, is configured as:
The model node is the surface point cloud of animation model;
Obtain the surface point cloud that the animation model is covered by the field range
Extend preset seat to outside the field range on the surface of the animation model for origin according to any surface point cloud Mark;
It is the compact model according to the part that the surface point cloud of extension intercepts the animation model.
8. a kind of storage medium, which is characterized in that the storage medium is stored at least one formula, and the formula is performed device When execution, the step of realizing method as described in claim 1.
9. the generating means of general camera in a kind of 3D cartoon making, which is characterized in that
Described device includes:
Camera creation module is configured as obtaining original camera and create same with the original camera key frame or key frame collection The single-point camera of step;
Posture synchronization module is configured as obtaining the original camera in the attitude data of each key frame;
Parameter synchronization module is configured as obtaining the original camera in the photographed data of each key frame;
Camera applications module is configured to apply key frame or the corresponding attitude data of key frame collection and the photographed data It is dereferenced camera to the single-point camera;
Camera bakes module, is configured as baking the dereferenced camera frame by frame in the dynamic of the key frame or the key frame collection Draw model.
10. the generating means of general camera in 3D cartoon making as claimed in claim 9, which is characterized in that
Described device includes camera memory module;
The camera memory module is configured as storing the dereferenced camera.
CN201910268562.7A 2019-04-04 2019-04-04 Method and device for generating universal camera in 3D animation production and storage medium Active CN110097630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910268562.7A CN110097630B (en) 2019-04-04 2019-04-04 Method and device for generating universal camera in 3D animation production and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910268562.7A CN110097630B (en) 2019-04-04 2019-04-04 Method and device for generating universal camera in 3D animation production and storage medium

Publications (2)

Publication Number Publication Date
CN110097630A true CN110097630A (en) 2019-08-06
CN110097630B CN110097630B (en) 2022-06-14

Family

ID=67444342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910268562.7A Active CN110097630B (en) 2019-04-04 2019-04-04 Method and device for generating universal camera in 3D animation production and storage medium

Country Status (1)

Country Link
CN (1) CN110097630B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600665A (en) * 2016-12-01 2017-04-26 北京像素软件科技股份有限公司 Camera animation path generating method and device
CN106780675A (en) * 2016-12-01 2017-05-31 厦门幻世网络科技有限公司 A kind of method and apparatus for showing animation
CN106934827A (en) * 2015-12-31 2017-07-07 杭州华为数字技术有限公司 The method for reconstructing and device of three-dimensional scenic
CN108564617A (en) * 2018-03-22 2018-09-21 深圳岚锋创视网络科技有限公司 Three-dimensional rebuilding method, device, VR cameras and the panorama camera of more mesh cameras

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106934827A (en) * 2015-12-31 2017-07-07 杭州华为数字技术有限公司 The method for reconstructing and device of three-dimensional scenic
CN106600665A (en) * 2016-12-01 2017-04-26 北京像素软件科技股份有限公司 Camera animation path generating method and device
CN106780675A (en) * 2016-12-01 2017-05-31 厦门幻世网络科技有限公司 A kind of method and apparatus for showing animation
CN108564617A (en) * 2018-03-22 2018-09-21 深圳岚锋创视网络科技有限公司 Three-dimensional rebuilding method, device, VR cameras and the panorama camera of more mesh cameras

Also Published As

Publication number Publication date
CN110097630B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN109934914B (en) Embedded city design scene simulation method and system
CN109658365B (en) Image processing method, device, system and storage medium
US8014985B2 (en) Setting and visualizing a virtual camera and lens system in a computer graphic modeling environment
EP3251346B1 (en) Digital multi-dimensional image photon platform system and methods of use
CN104077804B (en) A kind of method based on multi-frame video picture construction three-dimensional face model
CN106971403A (en) Point cloud chart is as processing method and processing device
CN102447934B (en) Synthetic method of stereoscopic elements in combined stereoscopic image system collected by sparse lens
EP2236980A1 (en) A method for determining the relative position of a first and a second imaging device and devices therefore
JP2006107213A (en) Stereoscopic image printing system
CN108537890A (en) A kind of panoramic pictures mobile terminal methods of exhibiting of fusion BIM modelings and outdoor scene modeling
CN112765720B (en) BIM+GIS-based water conservancy and hydropower engineering multisource data fusion method
US20190130219A1 (en) System and method using augmented reality for efficient collection of training data for machine learning
CN104268939A (en) Transformer substation virtual-reality management system based on three-dimensional panoramic view and implementation method of transformer substation virtual-reality management system based on three-dimensional panoramic view
CN106270501B (en) A kind of 3D printing cross-sections match method, combined shaping method and section restorative procedure
CN108537881A (en) A kind of faceform's processing method and its equipment, storage medium
JPH10255069A (en) Image processing system
CN106611441B (en) The treating method and apparatus of three-dimensional map
JP7226534B2 (en) Model generation device, model generation system, model generation method, program
US7428482B2 (en) Visualization and setting of a virtual camera and lens system in a computer graphic modeling environment
JP7446414B2 (en) Method and related apparatus for obtaining textures of 3D models
CN109903382A (en) The fusion method and device of point cloud data
CN104732557A (en) Color point cloud generating method of ground laser scanner
CN110097630A (en) The generation method of general camera and device, storage medium in 3D cartoon making
CN109255295A (en) Dance spectrum generation method, device, equipment and the storage medium of view-based access control model
CN112652019A (en) Binocular vision three-dimensional positioning method

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