CN103606180B - The rendering intent and device of 3D skeleton cartoons - Google Patents

The rendering intent and device of 3D skeleton cartoons Download PDF

Info

Publication number
CN103606180B
CN103606180B CN201310634747.8A CN201310634747A CN103606180B CN 103606180 B CN103606180 B CN 103606180B CN 201310634747 A CN201310634747 A CN 201310634747A CN 103606180 B CN103606180 B CN 103606180B
Authority
CN
China
Prior art keywords
data
matrix data
bone matrix
action
skeleton
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.)
Expired - Fee Related
Application number
CN201310634747.8A
Other languages
Chinese (zh)
Other versions
CN103606180A (en
Inventor
陈苏俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU FEIDONG SOFTWARE SCIENCE & TECHNOLOGY Co Ltd
Original Assignee
GUANGZHOU FEIDONG SOFTWARE SCIENCE & TECHNOLOGY 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 GUANGZHOU FEIDONG SOFTWARE SCIENCE & TECHNOLOGY Co Ltd filed Critical GUANGZHOU FEIDONG SOFTWARE SCIENCE & TECHNOLOGY Co Ltd
Priority to CN201310634747.8A priority Critical patent/CN103606180B/en
Publication of CN103606180A publication Critical patent/CN103606180A/en
Application granted granted Critical
Publication of CN103606180B publication Critical patent/CN103606180B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of rendering intent and device of 3D skeleton cartoons, the described method comprises the following steps:Skeleton cartoon object is created, and loads the global bone matrix data for previously generating;It is loaded into animation object action picture of going forward side by side to play, the bone matrix data required for the present frame of animation is obtained from the global bone matrix data, and by the incoming GPU of the bone matrix data;Skeleton cartoon shader code, image object and model vertices data are obtained in GPU, and computing is carried out according to acquired bone matrix data, skeleton cartoon shader code, image object and model vertices data, render skeleton cartoon picture.The method of the present invention and device are avoided the cpu resource brought by the global bone matrix data of CPU calculating in actual environment and consume excessive problem, the occupancy of CPU is effectively reduced, there is significant performance advantage especially for the complicated and huge skeleton cartoon model of amount of calculation.

Description

The rendering intent and device of 3D skeleton cartoons
Technical field
The present invention relates to computer graphics techniques field, more particularly to a kind of rendering intent and of 3D skeleton cartoons Plant the rendering device of 3D skeleton cartoons.
Background technology
Currently there are two kinds of modes of model animation:Vertex animation and skeleton cartoon.In skeleton cartoon, model has mutual Connection " bone " composition skeleton structure, by change bone direction and position come be model generate animation.
The skeleton cartoon processor performance higher than vertex animation requirement, but it also has more advantages, bone simultaneously Animation can be easier, more quickly create.Different skeleton cartoons can be incorporated into together, such as model can be with rotary head Portion, shooting are while also walking.Some engines can be with the single bone of real time management, thus can be more accurate with environment Interact --- model can bend and observe or shoot to certain direction, or somewhere pick up one from ground Thing etc..
At present, general 3D(It is i.e. three-dimensional)All it is that every frame animation uses CPU when skeleton cartoon is realized in engine (Central Processing Unit, central processing unit)Instant computing overall situation bone matrix data, then submits to GPU again (Graphics Processing Unit, GPU), render 3D skeleton cartoons model.However, using above-mentioned Method realizes 3D skeleton cartoons, and because every frame animation is both needed to consume CPU computing resources, 3D skeleton cartoon model quantity can be led when big Cause CPU usage too high;It is right especially for some especially consumption CPU come for the skeleton model for calculating bone gesture data The consumption of cpu resource is even more serious, results even in the appearance for quoting Caton phenomenon.
The content of the invention
Based on this, the present invention provides a kind of rendering intent and device of 3D skeleton cartoons, can reduce the occupancy of CPU, Reduce the consumption of cpu resource.
To achieve the above object, the present invention is adopted the following technical scheme that:
A kind of rendering intent of 3D skeleton cartoons, comprises the following steps:
Skeleton cartoon object is created, and loads the global bone matrix data for previously generating;
Be loaded into animation object go forward side by side action picture play, from the global bone matrix data obtain animation present frame institute The bone matrix data of needs, and by the incoming GPU of the bone matrix data;
Skeleton cartoon shader code, image object and model vertices data are obtained in GPU, and according to acquired Bone matrix data, skeleton cartoon shader code, image object and model vertices data carry out computing, render bone and move Drawing face.
A kind of rendering device of 3D skeleton cartoons, including:
Object Creation and data load-on module, for creating skeleton cartoon object, and load the global bone for previously generating Matrix data;
Data acquisition module, for be loaded into animation object go forward side by side action picture play, from the global bone matrix data Bone matrix data required for obtaining the present frame of animation, and by the incoming GPU of the bone matrix data;
Rendering module, for obtaining skeleton cartoon shader code, image object and model vertices data in GPU, And transported according to acquired bone matrix data, skeleton cartoon shader code, image object and model vertices data Calculate, render skeleton cartoon picture.
By above scheme as can be seen that the rendering intent and device of 3D skeleton cartoons of the invention, before animation broadcasting Through having previously generated global bone matrix data, global bone square can be so loaded directly into during playing animation Battle array data, it is no longer necessary to which CPU goes to calculate global bone matrix data of the skeleton cartoon per frame, so as to avoid in actual environment The cpu resource brought by the global bone matrix data of CPU calculating consumes excessive problem, effectively reduces the occupancy of CPU Rate, has significant performance advantage especially for the complicated and huge skeleton cartoon model of amount of calculation.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the rendering intent of 3D skeleton cartoons of the invention;
Fig. 2 is a kind of structural representation of the rendering device of 3D skeleton cartoons of the invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Shown in Figure 1, a kind of rendering intent of 3D skeleton cartoons is comprised the following steps:
Step S101, creates skeleton cartoon object, and load the global bone matrix data for previously generating.
It should be noted that the global bone matrix data in the present invention is not that CPU is utilized in practical service environment Instant computing out, but has just been generated in advance outside practical service environment.To be in practical service environment such as game Example is illustrated, and the present invention has just previously generated global bone matrix data before game, and global bone is directly used during game Bone matrix is rendered in being submitted to GPU, is gone to calculate global bone posture matrix with CPU without again, therefore can be without examining Consider the consumption problem of resource.As a preferable embodiment, the process of the global bone matrix data is generated in the present invention Specifically include as follows:
Skeleton cartoon object, the resource required for loading skeleton cartoon are created, and the resource is parsed, obtain bone Bone, action data;
Animation broadcasting is carried out according to the bone, action data, and is calculated in each frame of playing animation global Bone posture matrix data, the global bone posture matrix data that will be calculated are stored in an action action frame list;
After current action whole frame is calculated and finished, all of global bone square that will be deposited in the action action frame list Battle array data preserve into action disk file.Specifically, the disk file can be binary format, the action that will be calculated Global bone matrix data preserves into action disk file in binary form.
In addition, used as a preferable embodiment, the process of the global bone matrix data that the loading is previously generated has Body can include as follows:The action disk file is loaded, and (this time can bullet to the action disk file time segment Property control so that resolving will not cause to play the phenomenon of interim card because of excess CPU is taken) parsed, obtain described complete Office's bone matrix data.
Step S102, be loaded into animation object go forward side by side action picture play, obtain animation from the global bone matrix data Present frame required for bone matrix data, and by the incoming GPU of the bone matrix data.
Specifically, carry out can be with call frame function, and according to frame function come required for obtaining present frame when animation is played Bone matrix data, then by GPU objects by the incoming GPU internal memories of the bone matrix data.
Step S103, obtains skeleton cartoon shader code in GPU(That is Shader), image object and model vertices Data, specifically can be by GPU objects by skeleton cartoon shader code, image object and the incoming GPU of model vertices data In internal memory;And according to the skeleton cartoon tinter got in bone matrix data acquired in step S102 and this step Code, image object, model vertices data carry out computing, render the skeleton cartoon picture of present frame.
Corresponding with a kind of above-mentioned rendering intent of 3D skeleton cartoons, the present invention also provides a kind of rendering for 3D skeleton cartoons Device, as shown in Fig. 2 including:
Object Creation and data load-on module 101, for creating skeleton cartoon object, and load the global bone for previously generating Bone matrix data;
Data acquisition module 102, for be loaded into animation object go forward side by side action picture play, from the global bone matrix data Bone matrix data required for the middle present frame for obtaining animation, and by the incoming GPU of the bone matrix data;
Rendering module 103, for obtaining skeleton cartoon shader code, image object and model vertices number in GPU According to, and carried out according to acquired bone matrix data, skeleton cartoon shader code, image object and model vertices data Computing, renders skeleton cartoon picture.
Used as a preferable embodiment, the rendering device of the 3D skeleton cartoons can also include:
Pretreatment module, for before the global bone matrix data that loading is previously generated, generating the global bone Matrix data.
Used as a preferable embodiment, the pretreatment module can include:
Parsing module, for creating skeleton cartoon object, the resource required for loading skeleton cartoon, and enters to the resource Row parsing, obtains bone, action data;
Computing module, for carrying out animation broadcasting according to the bone, action data, and in each of playing animation Global bone posture matrix data are calculated during frame, the global bone posture matrix data that will be calculated are stored in action action frame list In;
Memory module, for after current action whole frame is calculated and finished, by the global bone in the action action frame list Matrix data preserves into action disk file.
Used as a preferable embodiment, the Object Creation and data load-on module can include:
Action disk file parsing module, for loading the action disk file, and to the action disk file timesharing Between section parsed, obtain the global bone matrix data.
Used as a preferable embodiment, the disk file can be binary format.
A kind of other technical characteristics of the rendering device of above-mentioned 3D skeleton cartoons and a kind of 3D skeleton cartoons of the invention Rendering intent is identical, and it will not go into details herein.
It should be noted that the description of specific distinct unless the context otherwise, element and component in the present invention, quantity was both Can exist in single form, it is also possible to which multiple forms is present, the present invention is defined not to this.Step in the present invention Although being arranged with label, be not used to limit the precedence of step, unless expressly stated the order of step or The execution of person's step is needed based on other steps, and the relative rank of otherwise step is adjustable.
By above scheme as can be seen that the rendering intent and device of 3D skeleton cartoons of the invention, before animation broadcasting Global bone matrix data is previously generated, global bone can be so loaded directly into during playing animation Matrix data, it is no longer necessary to which CPU goes to calculate global bone matrix data of the skeleton cartoon per frame, so as to avoid in actual environment In the cpu resource that global bone matrix data brought calculated by CPU consume excessive problem, effectively reduce accounting for for CPU With rate, there is significant performance advantage especially for the complicated and huge skeleton cartoon model of amount of calculation.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Shield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (9)

1. a kind of rendering intent of 3D skeleton cartoons, it is characterised in that comprise the following steps:
Skeleton cartoon object is created, and loads the global bone matrix data for previously generating;Wherein, the global bone matrix function Previously generated according to outside actual application environment;
Be loaded into animation object go forward side by side action picture play, from the global bone matrix data obtain animation present frame required for Bone matrix data, and by the incoming GPU of the bone matrix data, specifically include, carrying out call frame letter when animation is played Number, and the bone matrix data required for present frame is obtained according to the frame function, then by GPU objects by the bone In the incoming GPU internal memories of matrix data;
Skeleton cartoon shader code, image object and model vertices data are obtained in GPU, and according to acquired bone Matrix data, skeleton cartoon shader code, image object and model vertices data carry out computing, render skeleton cartoon picture Face.
2. the rendering intent of 3D skeleton cartoons according to claim 1, it is characterised in that the generation global bone matrix The process of data includes:
Skeleton cartoon object, the resource required for loading skeleton cartoon are created, and the resource is parsed, acquisition bone, Action data;
Animation broadcasting is carried out according to the bone, action data, and global bone is calculated in each frame of playing animation Posture matrix data, the global bone posture matrix data that will be calculated are stored in action action frame list;
After current action whole frame is calculated and finished, the global bone matrix data in the action action frame list is preserved into action Disk file.
3. the rendering intent of 3D skeleton cartoons according to claim 2, it is characterised in that it is complete that the loading is previously generated The process of office's bone matrix data includes:
The action disk file is loaded, and the action disk file time segment is parsed, obtain the global bone Matrix data.
4. the rendering intent of 3D skeleton cartoons according to claim 2, it is characterised in that the disk file is binary system Form.
5. a kind of rendering device of 3D skeleton cartoons, it is characterised in that including:
Object Creation and data load-on module, for creating skeleton cartoon object, and load the global bone matrix for previously generating Data;Wherein, the global bone matrix data is previously generated outside actual application environment;
Data acquisition module, for be loaded into animation object go forward side by side action picture play, from the global bone matrix data obtain Bone matrix data required for the present frame of animation, and by the incoming GPU of the bone matrix data, specifically include, carrying out Call frame function when animation is played, and the bone matrix data required for present frame, Ran Houtong are obtained according to the frame function GPU objects are crossed by the incoming GPU internal memories of the bone matrix data;
Rendering module, for obtaining skeleton cartoon shader code, image object and model vertices data, and root in GPU Computing, wash with watercolours are carried out according to acquired bone matrix data, skeleton cartoon shader code, image object and model vertices data Dye skeleton cartoon picture.
6. the rendering device of 3D skeleton cartoons according to claim 5, it is characterised in that also include:
Pretreatment module, for before the global bone matrix data that loading is previously generated, generating the global bone matrix Data.
7. the rendering device of 3D skeleton cartoons according to claim 6, it is characterised in that the pretreatment module includes:
Parsing module, for creating skeleton cartoon object, the resource required for loading skeleton cartoon, and solves to the resource Analysis, obtains bone, action data;
Computing module, for carrying out animation broadcasting according to the bone, action data, and in each frame of playing animation Global bone posture matrix data are calculated, the global bone posture matrix data that will be calculated are stored in action action frame list;
Memory module, for after current action whole frame is calculated and finished, by the global bone matrix in the action action frame list Data preserve into action disk file.
8. the rendering device of 3D skeleton cartoons according to claim 7, it is characterised in that the Object Creation and data add Carrying module includes:
Action disk file parsing module, for loading the action disk file, and to the action disk file time segment Parsed, obtained the global bone matrix data.
9. the rendering device of 3D skeleton cartoons according to claim 7, it is characterised in that the disk file is binary system Form.
CN201310634747.8A 2013-11-29 2013-11-29 The rendering intent and device of 3D skeleton cartoons Expired - Fee Related CN103606180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310634747.8A CN103606180B (en) 2013-11-29 2013-11-29 The rendering intent and device of 3D skeleton cartoons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310634747.8A CN103606180B (en) 2013-11-29 2013-11-29 The rendering intent and device of 3D skeleton cartoons

Publications (2)

Publication Number Publication Date
CN103606180A CN103606180A (en) 2014-02-26
CN103606180B true CN103606180B (en) 2017-06-16

Family

ID=50124400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310634747.8A Expired - Fee Related CN103606180B (en) 2013-11-29 2013-11-29 The rendering intent and device of 3D skeleton cartoons

Country Status (1)

Country Link
CN (1) CN103606180B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927184A (en) * 2014-04-29 2014-07-16 深圳第七大道网络技术有限公司 Optimization method and device for rendering on same screen
CN105279780A (en) * 2015-10-22 2016-01-27 苏州仙峰网络科技有限公司 Role selection method and system
CN106709976B (en) * 2016-12-22 2020-04-24 厦门黑镜科技有限公司 Skeleton animation generation method and device
CN106709041A (en) * 2016-12-29 2017-05-24 深圳岂凡网络有限公司 Rendering system and method for webpage graphic images
CN108010112B (en) * 2017-11-28 2023-08-22 腾讯数码(天津)有限公司 Animation processing method, device and storage medium
CN107967705B (en) * 2017-12-06 2019-02-01 央视动画有限公司 The store method of animated actions, the call method of animated actions and device
CN108122266B (en) * 2017-12-20 2021-07-27 成都卓杭网络科技股份有限公司 Method, device and storage medium for caching rendering textures of skeleton animation
CN110134636B (en) * 2018-02-09 2023-04-18 中兴通讯股份有限公司 Model training method, server, and computer-readable storage medium
CN109767482B (en) * 2019-01-09 2024-01-09 北京达佳互联信息技术有限公司 Image processing method, device, electronic equipment and storage medium
CN109840931B (en) * 2019-01-21 2023-07-25 网易(杭州)网络有限公司 Batch rendering method, device and system for skeletal animation and storage medium
CN110175061B (en) * 2019-05-20 2022-09-09 北京大米科技有限公司 Animation-based interaction method and device and electronic equipment
CN110570500B (en) * 2019-09-12 2023-11-21 网易(杭州)网络有限公司 Character drawing method, device, equipment and computer readable storage medium
CN111402369B (en) * 2020-03-10 2023-11-03 京东科技控股股份有限公司 Interactive advertisement processing method and device, terminal equipment and storage medium
CN111462283B (en) * 2020-03-27 2023-03-03 厦门梦加网络科技股份有限公司 Method, medium, device and apparatus for playing large number of same character animations
CN113129415A (en) * 2020-06-22 2021-07-16 完美世界(北京)软件科技发展有限公司 Animation mixed space subdivision method, device, equipment and readable medium
CN112489183A (en) * 2020-11-26 2021-03-12 北京邮电大学 Unity 3D-based skeletal animation rendering method and system
CN115457189B (en) * 2022-11-11 2023-03-24 四川大学 PBD (skeletal driven software) simulation system and method based on cluster coloring

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930584A (en) * 2012-11-13 2013-02-13 沈阳信达信息科技有限公司 Bone animation optimization based on graphics processing unit (GPU)
CN102968815A (en) * 2012-12-05 2013-03-13 上海创图网络科技发展有限公司 Complex bone animation data transmission method based on texture data and implementation method thereof
CN102999933A (en) * 2012-12-01 2013-03-27 王爽 Skeletal animation batch rendering based on Graphics Processing Unit (GPU)
CN103021008A (en) * 2012-12-11 2013-04-03 湖南师范大学 Bone animation processing method based on programmable graphics processing unit (GPU)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7920144B2 (en) * 2005-01-18 2011-04-05 Siemens Medical Solutions Usa, Inc. Method and system for visualization of dynamic three-dimensional virtual objects

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930584A (en) * 2012-11-13 2013-02-13 沈阳信达信息科技有限公司 Bone animation optimization based on graphics processing unit (GPU)
CN102999933A (en) * 2012-12-01 2013-03-27 王爽 Skeletal animation batch rendering based on Graphics Processing Unit (GPU)
CN102968815A (en) * 2012-12-05 2013-03-13 上海创图网络科技发展有限公司 Complex bone animation data transmission method based on texture data and implementation method thereof
CN103021008A (en) * 2012-12-11 2013-04-03 湖南师范大学 Bone animation processing method based on programmable graphics processing unit (GPU)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
大规模虚拟人群运动绘制技术研究;张姮;《中国优秀硕士学位论文全文数据库 信息科技辑》;20110315(第3期);第33页第3.2节,第3.2.1节,第34-37页第3.2.2节,图3.13 *

Also Published As

Publication number Publication date
CN103606180A (en) 2014-02-26

Similar Documents

Publication Publication Date Title
CN103606180B (en) The rendering intent and device of 3D skeleton cartoons
US10275926B2 (en) Crowd-sourced video rendering system
US9480914B2 (en) Online gaming
CN112381918A (en) Image rendering method and device, computer equipment and storage medium
US20170013246A1 (en) HoloPortal and HoloCloud System and Method of Operation
US9396564B2 (en) Atlas generation based on client video configuration
US20140292803A1 (en) System, method, and computer program product for generating mixed video and three-dimensional data to reduce streaming bandwidth
CN103021023A (en) Three-dimensional scene construction method based on browser
CN103617643A (en) Rendering method and system of bone animation
CN109035383A (en) A kind of method for drafting, device and the computer readable storage medium of volume cloud
CN102982159A (en) Three-dimensional webpage multi-scenario fast switching method
CN112316433B (en) Game picture rendering method, device, server and storage medium
CN111773719A (en) Rendering method and device of virtual object, storage medium and electronic device
US9305373B2 (en) Customized real-time media system and method
Dyken et al. Semi‐Uniform Adaptive Patch Tessellation
CN106326186B (en) A kind of system on chip, pattern drawing method, middle layer and embedded device
CN104008565A (en) System and method for playing Flash bitmap animation by using cocos2d-x and HE engines
CN109064539A (en) A kind of method and computer readable storage medium being embedded in special efficacy in UGUI
JP2023547838A (en) Latency restoration cloud rendering
CN112802174A (en) Web-based wind field three-dimensional dynamic visual presentation method
CN110223367A (en) Cartoon display method, device, terminal and storage medium
Trapp et al. Geometry Batching using Texture-arrays.
Rodríguez et al. A simple method to measure the image complexity on a fault tolerant cluster computing
de Lucas et al. Ultra-low power render-based collision detection for CPU/GPU systems
US20240070961A1 (en) Vertex index routing for two level primitive batch binning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170616

Termination date: 20211129