CN102999935A - 3D (three-dimensional) skeletal animation rendering algorithm based on smart mobile phone platform - Google Patents

3D (three-dimensional) skeletal animation rendering algorithm based on smart mobile phone platform Download PDF

Info

Publication number
CN102999935A
CN102999935A CN 201110270747 CN201110270747A CN102999935A CN 102999935 A CN102999935 A CN 102999935A CN 201110270747 CN201110270747 CN 201110270747 CN 201110270747 A CN201110270747 A CN 201110270747A CN 102999935 A CN102999935 A CN 102999935A
Authority
CN
China
Prior art keywords
bone
animation
mobile phone
file
rendering algorithm
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
Application number
CN 201110270747
Other languages
Chinese (zh)
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.)
Enjia One (shanghai) Network Technology Co Ltd
Original Assignee
Enjia One (shanghai) Network 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 Enjia One (shanghai) Network Technology Co Ltd filed Critical Enjia One (shanghai) Network Technology Co Ltd
Priority to CN 201110270747 priority Critical patent/CN102999935A/en
Publication of CN102999935A publication Critical patent/CN102999935A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides a 3D (three-dimensional) skeletal animation rendering algorithm based on a smart mobile phone platform. Animation information is exported into a text formatting animation information file by a 3D software export plug-in, the text formatting animation information file is converted into binary formatting file special for games by a data conversion and package tool, and every four composite bones and basic bones are grouped and arranged. Grouping number of one bone and four weight information can be distributed for each vertex type data. The binary formatting animation file is read and analyzed by a bottom rendering terminal, and final vertex rendering is realized by means of animation matrix list of weights of each group of bones. The 3D skeletal animation rendering algorithm can be applied to development of 3D network mobile phone games on the smart mobile phone platforms or development of 3D application programs such as 3D design software, so that skeletal operation of mobile phone platforms is optimized, real-time calculus 3D animation speed is increased, and data security is improved. Accordingly, the 3D skeletal animation rendering algorithm has the advantages of high reliability, convenience in use, popularization easiness and the like.

Description

A kind of 3D figure skeleton cartoon rendering algorithm based on intelligent mobile phone platform
Technical field
The present invention relates to the 3D figure skeleton cartoon rendering algorithm of intelligent mobile phone platform, especially based on the 3D figure skeleton cartoon rendering algorithm of intelligent mobile phone platform.
Background technology
Existing 3D game and application program mainly are the household PC platforms.And with the iphone of apple, ipad, ipad2 and android smart mobile phone be representative novel Client application platform just in the world blowout increase.Traditional 3D skeleton cartoon algorithm inefficiency on cell phone platform can't satisfy the figure that normal 3D uses and 3D plays and describe.
Summary of the invention
The object of the invention is to provides a kind of 3D figure skeleton cartoon rendering algorithm based on the portable mobile apparatus platform for having the blank that the 3D graphic animations is described on the intelligent mobile phone platform now, has efficient high, the advantage of conveniently using and being easy to popularize.
To achieve these goals, technical scheme of the present invention is: a kind of 3D figure skeleton cartoon rendering algorithm based on intelligent mobile phone platform is characterized in that this algorithm comprises: make skeleton cartoon, described skeleton cartoon comprises basic bone and compound bone; Above-mentioned skeleton cartoon information is led into text formatting animation information file, when deriving, will be take 4 one group as the unit arrangement with compound bone and basic bone, and will distribute marshalling number and 4 weight informations of a bone in each vertex information, described text formatting animation information file conversion is become game binary format file; Bottom is described end and is read the described binary format animation file of analysis, takes advantage of the bone Matrix List according to weight, obtains vertex position, realizes playing up of final vertex.
The invention provides a kind of 3D figure skeleton cartoon rendering algorithm based on intelligent mobile phone platform, comprise 3D design software Maya, derivation plug-in unit after the cartoon making of 3dMax, data-switching strapping tool, and bone information read method and the implementation describing to hold at bottom.By described 3D software (Maya, 3dMax) derive plug-in unit animation information is led into text formatting animation information file, described data-switching strapping tool becomes special-purpose game-specific binary format file with described text formatting animation information file conversion, will arrange take 4 one group as unit according to the compound bone of the characteristics animation information of described intelligent mobile phone platform and basic bone.And will distribute marshalling number and 4 weight informations of a bone in each vertex information.Described bottom is described end and is read the described binary format animation file of analysis, and every group of bone weight realized playing up of final vertex by the animation Matrix List.Use algorithm of the present invention can realize at intelligent mobile phone platform the exploitation of mobile phone 3D online game, the perhaps exploitation of the 3D application program such as 3D design software, optimize the bone computing of cell phone platform, improved the 3D animation speed of real-time calculation, also strengthened the security of data.Have reliability high, the convenient use such as is easy to popularize at the advantage.
Embodiment
A kind of 3D figure skeleton cartoon rendering algorithm based on intelligent mobile phone platform is characterized in that this algorithm comprises: utilize the 3D design software to make skeleton cartoon, described skeleton cartoon comprises basic bone and compound bone; Utilize the 3D design software to derive plug-in unit above-mentioned skeleton cartoon information is led into text formatting animation information file, when deriving, compound bone and basic bone will be arranged take 4 one group as unit, and will distribute marshalling number and 4 weight informations of a bone in each vertex information; Utilize the data-switching strapping tool that described text formatting animation information file conversion is become game binary format file; Bottom is described end and is read the described binary format animation file of analysis, takes advantage of the bone Matrix List according to weight, obtains vertex position, realizes playing up of final vertex.Above-mentioned all algorithms all carry out in cellphone subscriber's terminal, and grouping is arranged, and weight allocation is to carry out when deriving plug-in unit, and encrypting storing.Then when describing, decode and realize describing.
Described 3D design software comprises Maya, 3dMax, and softimage, other 3D design softwares such as AutoCad.The iphone series mobile phone that described smart phone user terminal is apple.Preferably, described smart phone user terminal is for using the intelligent Android mobile phone of the above system of Android2.2 of Google.Preferably, described smart phone user terminal also comprises the ipad of apple, ipad2 series panel computer.Preferably, described smart phone user terminal is for using the intelligent Android panel computer of the above system of Android2.2 of Google.
Described 3D software is derived plug-in unit and is used for the animation file of making is led into text formatting animation information file, deriving the bone tabulation is can be take 4 as one group, and be kept at form of weights in 32 memory blocks on summit, and the summit that belongs to a bone group together will be packaged in the same memory block, the derivation efficient when having accelerated like this to draw.
Traditional skeleton cartoon algorithm goes out weight information that practical matrix multiply by Composite Bone again by numeral index with bone numbering and corresponding matrix data packing generated data file when real-time rendering, obtain final bone position.But this algorithm exists operation efficiency low at cell phone platform, problem that can't be practical.The present invention by basic bone and compound bone are sorted+divide into groups+number arrangement, and the number information after the bone grouping is carried out weight by 32 bits preserves.Basic bone will be arranged take 4 one group as unit, and will distribute marshalling number and 4 weight informations of a bone in each vertex information.The numbering that is bone will be saved as 32 bits with 4 one group, wherein per 8 binary numbers represent the numbering of a bone, as: No. 3 bone as described in 0xff000000 represents to use in the group, and weight is 1.0, in 0x00008080 represents to use described group the 0th, No. 1 bone, and weight is 0.5.
And as the 3D computing module, bottom is described end and is read and analyze described binary format animation file, converts the bone weight information on each summit to floating number divided by 255, then by multiply by programmed matrix group list, obtains final matrix.Again vertex coordinate be multiply by final matrix and get to the limit final coordinate position, realize playing up of final vertex.
As shown in the figure, suppose the action Matrix List in take four basic bones as one group, be expressed as Mtx00, Mtx01, Mtx02, Mtx03.Then during the bone weight calculation, numbering 0x00008080: matrix=
Mtx00*0.5+Mtx01*0.5+?Mtx02*0.0+Mtx03*0.0。Being each summit represents with one 32 binary data, specify simultaneously the weight of 4 bones, the bone weight of per 8 bit representation positions multiply by the bone weight skeleton motion space matrix of each corresponding frame, has just obtained the motion coordinate of this summit when each frame.
Described packing crossover tool is prior art, and according to one embodiment of present invention, the packing crossover tool can adopt maya2010, the built-in plug-in unit iPad3dTo_NPF3.mel of 3dmax.IPad3dTo_NPF3.mel is installed under the system plugin catalogue of maya2010, enter maya2010, open ready-made 3D model scene or 3D model character, click " iPad3dToNPF3 " button, plug-in unit will calculate the summit of model automatically, pinup picture, bone be the information such as animation, then automatically generates the npf3 file of text type.And maya2010, the built-in tool Npf3ToWJT.exe of 3dmax becomes the required bin file of various platforms by it with above-mentioned npf3 file conversion, in game.
According to one embodiment of present invention, a role is by 10 basic bones, and No. 0~No. 9 bone forms, and total number of vertex of role is 1000.10 these bones of foundation are pressed 4 component groups, such as (0,1,2,3) a group, (4,5,6,7) a group, (8,9) a group.Then can designated one group of bone for each summit, be the bone group on No. 500 summits as specifying (0,1,2,3), distribute one 32 data message, the bone weight of per 8 bit representation positions, then the summit can be specified the weight of 4 bones simultaneously.As: (0x00001010) just represent that this summit is--(No. 0 bone * 50%)+(No. 1 bone * 50%)+(No. 2 bone * 0%)+(No. 3 bone * 0%).Again the bone weight be multiply by the skeleton motion space matrix of each corresponding frame, just obtained the motion coordinate of this summit when each frame.By other camera lens, the projection conversion is signed in the summit on the screen at last.
According to one embodiment of present invention, the npf3 file structure is by following Composition of contents:
1. file header information---header is preserved in the beginning of file.Comprised file size in the header, pinup picture quantity, the essential informations such as model quantity.
2. model header---model content of each model-composing, and preserve a model header in the beginning of model content.The model header has comprised summit sum, pinup picture index, skeletal structure, the essential informations such as animated format.
3. model information---closelying follow model header back is the concrete data of model.Comprised the vertex data sequence, comprised the basic coordinate values on each summit in the vertex sequence, normal line vector, pinup picture coordinate, the bone of binding number, bone weight etc.
4. animation header---comprised the bone sequence number, total animation frame number, the information such as key frame numbering.
5. animation information---closelying follow animation header back is the concrete data of animation.Comprise the animation data sequence, comprised each bone spatial movement matrix of each frame in the animation data sequence.

Claims (4)

1. 3D figure skeleton cartoon rendering algorithm based on intelligent mobile phone platform is characterized in that this algorithm comprises: make skeleton cartoon, described skeleton cartoon comprises basic bone and compound bone; Above-mentioned skeleton cartoon information is led into text formatting animation information file, when deriving, will be take 4 one group as the unit arrangement with compound bone and basic bone, and will distribute marshalling number and 4 weight informations of a bone in each vertex information, described text formatting animation information file conversion is become game binary format file; Bottom is described end and is read the described binary format animation file of analysis, takes advantage of the bone Matrix List according to weight, obtains vertex position, realizes playing up of final vertex.
2. 3D figure skeleton cartoon rendering algorithm according to claim 1, it is characterized in that: each summit represents with one 32 binary data, specify simultaneously the weight of 4 bones, the bone weight of per 8 bit representation positions, the bone weight be multiply by the skeleton motion space matrix of each corresponding frame, just obtained the motion coordinate of this summit when each frame.
3. 3D figure skeleton cartoon rendering algorithm according to claim 1 and 2, it is characterized in that: described 3D design software comprises Maya, 3dMax, softimage or AutoCad.
4. 3D figure skeleton cartoon rendering algorithm according to claim 1 and 2, it is characterized in that: the iphone series mobile phone that described smart phone user terminal is apple, the intelligent Android mobile phone that uses the above system of Android2.2 of Google, the ipad of apple, the intelligent Android panel computer of ipad2 series panel computer or the above system of Android2.2 of use Google.
CN 201110270747 2011-09-14 2011-09-14 3D (three-dimensional) skeletal animation rendering algorithm based on smart mobile phone platform Pending CN102999935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110270747 CN102999935A (en) 2011-09-14 2011-09-14 3D (three-dimensional) skeletal animation rendering algorithm based on smart mobile phone platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110270747 CN102999935A (en) 2011-09-14 2011-09-14 3D (three-dimensional) skeletal animation rendering algorithm based on smart mobile phone platform

Publications (1)

Publication Number Publication Date
CN102999935A true CN102999935A (en) 2013-03-27

Family

ID=47928464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110270747 Pending CN102999935A (en) 2011-09-14 2011-09-14 3D (three-dimensional) skeletal animation rendering algorithm based on smart mobile phone platform

Country Status (1)

Country Link
CN (1) CN102999935A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107213638A (en) * 2017-04-06 2017-09-29 珠海金山网络游戏科技有限公司 A kind of 3D game bone processing systems and its processing method
CN108447111A (en) * 2018-03-05 2018-08-24 网易(杭州)网络有限公司 Processing method, device, storage medium, processor and the terminal of normal map
CN113450452A (en) * 2021-07-05 2021-09-28 网易(杭州)网络有限公司 Three-dimensional model file conversion method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107213638A (en) * 2017-04-06 2017-09-29 珠海金山网络游戏科技有限公司 A kind of 3D game bone processing systems and its processing method
CN107213638B (en) * 2017-04-06 2020-12-08 珠海金山网络游戏科技有限公司 3D game skeleton processing system and processing method thereof
CN108447111A (en) * 2018-03-05 2018-08-24 网易(杭州)网络有限公司 Processing method, device, storage medium, processor and the terminal of normal map
CN108447111B (en) * 2018-03-05 2022-05-03 网易(杭州)网络有限公司 Normal map processing method and device, storage medium, processor and terminal
CN113450452A (en) * 2021-07-05 2021-09-28 网易(杭州)网络有限公司 Three-dimensional model file conversion method and device
CN113450452B (en) * 2021-07-05 2023-05-26 网易(杭州)网络有限公司 Conversion method and device of three-dimensional model file

Similar Documents

Publication Publication Date Title
US12017145B2 (en) Method and system of automatic animation generation
CN105635712B (en) Video real time recording method and recording arrangement based on augmented reality
CN104077797B (en) three-dimensional game animation system
CN102800065B (en) Based on the augmented reality Apparatus and method for of Quick Response Code recognition and tracking
CN104778654A (en) Intangible cultural heritage digital display system and method thereof
CN106231205B (en) Augmented reality mobile terminal
CN106713988A (en) Beautifying method and system for virtual scene live
CN106600688A (en) Virtual reality system based on three-dimensional modeling technology
CN102368247B (en) Method for executing SWF (Small Web Format) file on handheld terminal
CN107403462A (en) The method and apparatus that the image of the scene containing real object and its virtual repetitions is presented
CN102508644A (en) 3D (three-dimensional) user interface graphics engine framework
CN102970043A (en) GZIP (GNUzip)-based hardware compressing system and accelerating method thereof
CN105917382A (en) Method and system for interactive graphics streaming
CN104199659A (en) Method and device for exporting model information capable of being identified by 3DMAX
CN108810561A (en) A kind of three-dimensional idol live broadcasting method and device based on artificial intelligence
CN102999935A (en) 3D (three-dimensional) skeletal animation rendering algorithm based on smart mobile phone platform
CN110120053A (en) Face's dressing processing method, device and equipment
CN112487073A (en) Data processing method based on building information model and related device
CN116152416A (en) Picture rendering method and device based on augmented reality and storage medium
CN204406423U (en) The augmented reality recognition device that a kind of image and Quick Response Code combine
US20160093112A1 (en) Deep image identifiers
CN104267880A (en) Method and equipment for displaying handwriting locus on 3D (three-dimensional) interface
CN116115995A (en) Image rendering processing method and device and electronic equipment
CN106887032A (en) Three-dimensional scenic rendering intent and system and relevant device
CN104112017A (en) Method of realizing script model exporting based on 3D MAX (Three-dimensional Studio Max)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130327