CN106097415A - A kind of 2.5 dimension rope distortion animation producing methods - Google Patents
A kind of 2.5 dimension rope distortion animation producing methods Download PDFInfo
- Publication number
- CN106097415A CN106097415A CN201610671529.5A CN201610671529A CN106097415A CN 106097415 A CN106097415 A CN 106097415A CN 201610671529 A CN201610671529 A CN 201610671529A CN 106097415 A CN106097415 A CN 106097415A
- Authority
- CN
- China
- Prior art keywords
- subregion
- contour line
- rope
- line
- distortion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000013507 mapping Methods 0.000 claims abstract description 11
- 230000008859 change Effects 0.000 claims abstract description 7
- 239000000203 mixture Substances 0.000 claims description 2
- 238000002372 labelling Methods 0.000 abstract description 2
- 230000009471 action Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 244000025254 Cannabis sativa Species 0.000 description 3
- 239000003973 paint Substances 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000000465 moulding Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000007620 mathematical function Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The open a kind of 2.5 dimension rope distortion animation producing methods of the present invention, its step is as follows: (1) sets up plane right-angle coordinate, and the vaulted curve of delimiting period change is upper end contour line in a coordinate system;Symmetrical upset upper end contour line is the most mobile to determine lower end contour line, and upper end contour line and the route of movement thereof after wherein lower end contour line is overturn by symmetry are constituted;(2) built closed area by outer contour, divide the area into some subregions, and subregion is marked;Determined the scope of subregion by the boundary line of subregion, and in subregion, build quadrilateral mesh;(3) input the filling texture of rope, and determine the filling texture of subregion according to labelling;It is then determined that the mapping relations of quadrilateral mesh summit and texture coordinate in subregion;(4) outer contour of consecutive variations rope, picture frame during output rope distortion, generate the animation of rope distortion.This method principle is simple, it is easy to accomplish, and animation producing is effective.
Description
Technical field
The present invention relates to a kind of generation method of 2.5 dimension animations, belong to Computer Animated Graph field, particularly relate to one
2.5 dimension rope distortion animation producing methods.
Background technology
In computer animation field, according to cartoon making skill and present the difference of effect and animation can be divided into following
Three kinds: plane animation, three-dimensional animation and 2.5 dimension animations.
Chinese patent CN103065348A, title " a kind of 2 D animation automatic generation method based on skeleton maneuver library ",
The skeleton of establishment and skeleton action are first saved in skeleton cartoon storehouse by such technology;Then according to the appearance requirement of moulding, paint
Manufacture type figure;Secondly from skeleton maneuver library, call skeleton action, and skeleton action is bound with moulding figure;Finally
Require interpolation skeleton action action frame according to animation, obtain animation sequence.Although the method can generate complexity 2 D animation, but
Need during realization to constantly update skeleton action data, and renewal speed is slower.Additionally, the image quality obtained also needs to be carried
Rise.
" a kind of 2.5 dimension cartoons generated based on line transect change " (Rivers etc., 2.5D Cartoon Models,
Transactions on Graphics, 2010,29 (4): 19-66), the method SPL represents that the three of cartoon object regards
Diagram data, and set up in three-view diagram the corresponding relation between every curve.Then by visual angle change, cartoon character is produced
Arbitrarily view, thus the 3D effect realizing cartoon character rotates.But specific drawing program is had in drawing process by the method
More dependence, and the quality of medial view has to be hoisted.
Chinese patent CN101958007A, title " a kind of three-dimensional animation posture modeling method using grass to paint ", this technology
First resolve the modularization human body contour outline sketch of user's input, extract human skeleton structure, skeleton pose and skeleton profile etc.
Parameter, and generate 3 D human body attitude mode;Secondly, 3 D human body attitude mode assembly is projected to two dimensional surface, by two
Dimension grass is painted alternately, edits skeleton locus, backbone length and the skeleton profile of 3 D human body attitude mode;Finally,
Sport interpolation method interpolation attitude key frame based on core stipulations is used to generate 3 D human body animation.This technology and conventional three-dimensional people
Body posture modeling method is compared, and can effectively support that the method that animation teacher paints with two dimension grass carries out attitude design and volume to animation
Volume, but relate to substantial amounts of data when three-dimensional animation renders and calculate, and the longest.
Summary of the invention
For defect present in above prior art, the present invention provides a kind of 2.5 dimension ropes based on two-sided figure to turn round
Bent animation producing method, the method can simulate the three-dimensional animation effect of object in the plane.In the present invention, user only needs
Inputting filling texture and control parameter, system just can automatically generate the rope under different twisting magnitude, and this technology generates
Animation there is good three-dimensional stereo effect.
The technical solution used in the present invention is as follows:
A kind of generation method of 2.5 dimension rope distortion animations, comprises the steps:
A. drawing outer contour: set up plane right-angle coordinate, the vaulted curve of delimiting period change is in a coordinate system
Upper end contour line;Symmetrical upset upper end contour line is the most mobile to determine lower end contour line, and wherein lower end contour line is overturn by symmetry
After upper end contour line and movement route constitute;
B. build quadrilateral mesh: built closed area by outer contour, divide the area into some subregions, and antithetical phrase
Region is marked;Determined the scope of subregion by the boundary line of subregion, and in the range of subregion, build quadrilateral mesh;
C. the mapping relations on quadrilateral mesh summit and texture coordinate are determined: input the filling texture of rope;By subregion
Labelling determine the filling texture of subregion;It is then determined that quadrilateral mesh summit is closed with the mapping of texture coordinate in subregion
System;
D. generation 2.5 dimension ropes distortion animations: the outer contour of consecutive variations rope, image during output rope distortion
Frame, generates the animation of rope distortion.
The present invention, relative to prior art, has the advantage that
(1), during the present invention 2.5 ties up the generation of rope distortion animation, user only needs input fill texture and control ginseng
Number, system will automatically generate 2.5 dimension rope distortion animations.Compared with two dimension, three-dimensional animation, the amount of calculation that this method relates to
Little, disposable, renewal speed is fast.
(2) present invention utilizes the outer contour that two groups of mathematical functions change during determining rope distortion, by controlling number
Parameter in mathematic(al) function can realize colourful rope torsional deformation effect.
(3) by building rectangular mesh summit in drawing area, and the mapping pass of grid vertex and texture coordinate is set up
System, distortion phenomenon when can efficiently reduce rope distortion, promote the three dimensions third dimension of distortion rope.
(4) the inventive method principle is simple, it is easy to accomplish, and animation producing effect is preferable.
Accompanying drawing explanation
Fig. 1 is a kind of 2.5 dimension rope distortion animation producing flow charts of the present invention;
Fig. 2 is rope profile schematic diagram in embodiment;
Fig. 3 is subregion schematic diagram;
Fig. 4 is y=sin (x) function schematic diagram;
Fig. 5 is quadrilateral mesh structural representation.
Detailed description of the invention
In order to more clearly illustrate technical scheme, below in conjunction with the accompanying drawings and example, to correlation step of the present invention
Elaborate.
As shown in Figure 1, a kind of 2.5 dimension rope distortion animation producing methods of the present embodiment, it is as follows that it is embodied as step:
1. drawing outer contour: outer contour is made up of upper and lower end contour line, sees shown in accompanying drawing 2, wherein x represents horizontal
Axle, y represents the longitudinal axis, fkRepresent vaulted curve, skExpression branch, wherein k=0,1,2 ..., control parameter alpha, β are respectively the cycle
With phase place, it is used for determining vaulted curve fkShape;Symmetrical upset upper end contour line is the most mobile to determine lower end contour line, wherein
Lower end contour line overturn by symmetry after upper end contour line and the route of movement constitute.Fig. 2 middle conductor a represents the road of movement
Line, vaulted curve gkBy vaulted curve fkDetermine, branch ekBy branch skDetermine, line segment a and vaulted curve gkCombination determines lower end
Contour line.
(1) definition upper end contour line: without loss of generality, the vaulted curve f in the contour line of definition upper endk:
fk=cos (α x-k β)
Defining the intersection point between vaulted curve is branch sk, branch skAbscissa be:
In this example, the initial value of α, β is respectively 0.1 π, 0.5 π, k=0,1,2....
(2) definition lower end contour line: lower end contour line is by line segment a and vaulted curve gkComposition.The coordinate of definition line segment a
For:
Y=-1, x ∈ [0, (π-β)/α]
Define vaulted curve gkFor:
gk=-cos (α (x-(π-β)/α)-k β)
Branch ekAbscissa be:
Wherein, α, β, k and fkIn coefficient corresponding and keep consistent.
2. structure quadrilateral mesh:
See Fig. 2, upper and lower end contour line and straight line x=p, x=0 and form closed area, by branch ekWith branch skRight
And should connect, closed area is divided into some subregions;The scope of subregion, and really stator region is determined by the boundary line of subregion
Network of quadrilaterals lattice structure in territory.See Fig. 3, the boundary line of subregion determine between subregion forward projection region on transverse axis, and
Sampled equidistant is carried out to determine one group of point in this interval;Cross this group point and do the vertical line of transverse axis, definition vertical line and subregion limit
The intersection point in boundary line is boundary point, such as accompanying drawing 3 midpointShown in;Carry out equidistant again in the vertical line section determined by boundary point
From sampling, obtain another group sampled point;Set up the corresponding relation of adjacent vertical line section up-sampling point;By the incidence relation of sampled point even
Connect the employing point on adjacent vertical line, determine network of quadrilaterals lattice structure in subregion.
(1) molecular regime is drawn: the closing finite region that definition is surrounded by upper and lower end contour line and straight line x=p, x=0 is
Drawing area, p=1 in this example;By branch sk、ekConnect with solid line, drawing area is divided into some subregion Ev(v=0,
1,2...)。
(2) build quadrilateral mesh: without loss of generality, as a example by the subregion shown in accompanying drawing 3, in subregion, build four limits
Shape grid process is as follows:
A. determine between subregion forward projection region on transverse axis: determine that subregion is on transverse axis by the boundary line of subregion
Forward projection region between.See accompanying drawing 3, be [x between upper end contour line forward projection region on transverse axis0,x1], lower end contour line is at horizontal stroke
It is [x between the forward projection region on axle2,x3], line segmentIt is [x between the forward projection region on transverse axis0,x2], line segmentAt horizontal stroke
It is [x between the forward projection region on axle1,x3], combine interval obtains [x between subregion forward projection region on transverse axis0,x3]。
B. the initial position on quadrilateral mesh summit is determined: by interval [x0,x3] it is divided into M equal portions, in this exampleAnd obtain each branch (sampled point) coordinate (h on this line segmentt, 0) (t=0 ..., M) andFor not
Less than the smallest positive integral of q, ht+1>ht;Cross point (ht, 0) and it is perpendicular to the vertical line of transverse axis, the boundary line phase of every vertical line and subregion
Meet at2 points, respective coordinates is respectivelyWhereinSee accompanying drawing 3;By line segment
It is divided into N part, obtains line segmentCoordinate (the h of upper each pointt,kr) (r=0 ..., N), N=20 in this example, wherein krMeter
Calculation formula is:
C. determine grid vertex final position: see shown in accompanying drawing 4, interval [-pi/2, pi/2] is divided into N part, and obtains
One group of point;Done the vertical line of transverse axis by this group point, the curve that y=sin (x) function determines retrieves one group of intersection point, and
By in this group intersection point transverse projection to the longitudinal axis, its projection coordinate is (0, lr), wherein lr+1>lr;Determine point (ht,kr) after skew
Coordinate position (ht,wr), wherein wrComputing formula be:
By the point (h in adjacent vertical line section in subregiont,wr) corresponding by subscript r and connect, set up in subregion
Network of quadrilaterals lattice structure.According to the method described above at the built-in vertical network of quadrilaterals lattice structure of every sub regions, see shown in accompanying drawing 5.
3. determine the mapping relations on quadrilateral mesh summit and texture coordinate: input picture I0、I1As rope contour area
Filling texture, wherein subregion EvWhen subscript v is even number, determine image I0Fill texture for it, otherwise determine image I1For its
Fill texture;It is then determined that quadrilateral mesh summit and texture coordinate map relation in subregion, concrete mapping relations are as follows:
(1) subregion E is determined0Interior quadrilateral mesh summit and the mapping relations of texture coordinate: calculate grid vertex (ht,
wr) texture coordinate (qt,zr) it is:
(2) subregion E is determinedv(v=1,2,3...) interior quadrilateral mesh summit and texture coordinate map relation: do not lose
As property, as a example by the subregion shown in accompanying drawing 3.In fig. 3, subregion EvIt is [x between the forward projection region of transverse axis0,x3], line
SectionMidpoint projection coordinate on transverse axis be (ds, 0), line segmentMidpoint projection coordinate's point on transverse axis be
(de,0);If ht∈[x0,ds], then grid vertex (ht,wr) texture coordinate (qt,zr) it is:
If ht∈[ds,de], then grid vertex (ht,wr) texture coordinate (qt,zr) it is:
If ht∈[de,x3], then grid vertex (ht,wr) texture coordinate (qt,zr) it is:
According to above-mentioned (1) or (2) method, determine grid vertex and the mapping relations of texture coordinate in all subregions.Right
In the subregion of a part of upper and lower end contour line of disappearance, such as subregion E in accompanying drawing 24.Its texture coordinate asks the method to be: first determine
Complete upper and lower end contour line, sees vaulted curve f in accompanying drawing 24、g4, then according to subregion EvSubscript v selects above-mentioned (1)
Or (2) method, determine grid vertex and the mapping relations of texture coordinate in drawing area.
4. draw animation: adjust and control parameter alpha, the value of β, the outer contour of change rope, figure during output rope distortion
As frame, generate rope distortion animation.In this example, β value is constant, and between adjacent animation frame, α value increases with step delta, wherein Δ=0.1
π。
Claims (3)
1. the generation method of a dimension rope distortion animation, it is characterised in that comprise the steps:
A. drawing outer contour: set up plane right-angle coordinate, the vaulted curve of delimiting period change is upper end in a coordinate system
Contour line;Symmetrical upset upper end contour line is the most mobile to determine lower end contour line, after wherein lower end contour line is overturn by symmetry
The route of upper end contour line and movement thereof is constituted;
B. build quadrilateral mesh: built closed area by outer contour, divide the area into some subregions, and to subregion
It is marked;Determined the scope of subregion by the boundary line of subregion, and in the range of subregion, build quadrilateral mesh;
C. the mapping relations on quadrilateral mesh summit and texture coordinate are determined: input the filling texture of rope;By the mark of subregion
Note determines the filling texture of subregion;It is then determined that the mapping relations of quadrilateral mesh summit and texture coordinate in subregion;
D. generation 2.5 dimension ropes distortion animations: the outer contour of consecutive variations rope, picture frame during output rope distortion, life
Become the animation of rope distortion.
The generation method of a kind of 2.5 dimension rope distortion animations the most according to claim 1, it is characterised in that described step a
In, the vaulted curve f in the contour line of upper endkFor: fk=cos (α x-k β), wherein k=0,1,2..., α, β are respectively used for controlling
Curve fkCycle and phase place;Lower end contour line is by line segment a and vaulted curve gkComposition, the abscissa of described line segment a is: x ∈
[0, (π-β)/α], its vertical coordinate is: y=-1;Described vaulted curve gkFor: gk=-cos (α (x-(π-β)/α)-k β).
The generation method of a kind of 2.5 dimension rope distortion animations the most according to claim 1 and 2, it is characterised in that described step
In rapid b, closed area is made up of upper end contour line, lower end contour line and straight line x=p, x=0, by by the contour line of upper end
Branch skBranch e corresponding with on the contour line of lower endkIt is connected, closed area is divided into some subregions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610671529.5A CN106097415A (en) | 2016-08-15 | 2016-08-15 | A kind of 2.5 dimension rope distortion animation producing methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610671529.5A CN106097415A (en) | 2016-08-15 | 2016-08-15 | A kind of 2.5 dimension rope distortion animation producing methods |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106097415A true CN106097415A (en) | 2016-11-09 |
Family
ID=58069386
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610671529.5A Pending CN106097415A (en) | 2016-08-15 | 2016-08-15 | A kind of 2.5 dimension rope distortion animation producing methods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106097415A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107170025A (en) * | 2017-05-04 | 2017-09-15 | 福建天泉教育科技有限公司 | The method for drafting and system of a kind of picture frame |
CN111941587A (en) * | 2020-08-05 | 2020-11-17 | 山东大学 | Lofting curved surface generation method and system for ceramic 3D printing |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1630876A (en) * | 2002-02-12 | 2005-06-22 | 国际商业机器公司 | Space-optimized texture maps |
CN102147930A (en) * | 2011-04-13 | 2011-08-10 | 北京农业信息技术研究中心 | Texture mapping method for three-dimensional curved surface of irregular plant leaf |
CN102750733A (en) * | 2011-08-26 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method and system used for building three-dimensional earth and based on multiple textures |
-
2016
- 2016-08-15 CN CN201610671529.5A patent/CN106097415A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1630876A (en) * | 2002-02-12 | 2005-06-22 | 国际商业机器公司 | Space-optimized texture maps |
CN102147930A (en) * | 2011-04-13 | 2011-08-10 | 北京农业信息技术研究中心 | Texture mapping method for three-dimensional curved surface of irregular plant leaf |
CN102750733A (en) * | 2011-08-26 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method and system used for building three-dimensional earth and based on multiple textures |
Non-Patent Citations (2)
Title |
---|
CHIH-KUO YEH 等: "Double-sided 2.5D graphics", 《IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS》 * |
吴磊 等: "2.5D图形技术在教学中的应用初探", 《教育现代化》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107170025A (en) * | 2017-05-04 | 2017-09-15 | 福建天泉教育科技有限公司 | The method for drafting and system of a kind of picture frame |
CN111941587A (en) * | 2020-08-05 | 2020-11-17 | 山东大学 | Lofting curved surface generation method and system for ceramic 3D printing |
CN111941587B (en) * | 2020-08-05 | 2021-11-12 | 山东大学 | Lofting curved surface generation method and system for ceramic 3D printing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100561523C (en) | A kind of method for re-establishing three-dimensional model gridding | |
CN101609564B (en) | Method for manufacturing three-dimensional grid model by draft input | |
CN101308579B (en) | Adaptive simplifying method for three-dimensional animation model | |
CN104599305B (en) | A kind of two three-dimensional animation producing methods combined | |
CN101408991B (en) | Curved surface molding method combing interpolation type subdivision and approach type subdivision | |
CN102339475A (en) | Rapid hair modeling method based on surface grids | |
CN106055794A (en) | Method for building three-dimensional pipeline model in parametric manner | |
CN104680573A (en) | Texture mapping method based on triangular mesh simplification | |
CN103714575A (en) | Fluid simulation method for combining SPH and dynamic surface mesh | |
Gao et al. | Grid generation on free-form surface using guide line advancing and surface flattening method | |
CN107578472A (en) | The orientation optimization method and device of three-dimensional surface triangle mesh model | |
CN102903138A (en) | Shape-considered two-dimensional digital character skeleton operation method | |
CN106875487B (en) | Geological hexahedral mesh smoothing method based on neighborhood acting force | |
CN106097415A (en) | A kind of 2.5 dimension rope distortion animation producing methods | |
CN107273617B (en) | A kind of real time simulation method and system obtaining surface stream fluid motion using shallow water equation | |
CN109360266A (en) | A kind of road modeling method, relevant apparatus and equipment | |
Corker-Marin et al. | 4d cubism: Modeling, animation, and fabrication of artistic shapes | |
CN104463934B (en) | A kind of point-based surface Automatic Generation of Computer Animation method of " mass spring " system drive | |
Zhang et al. | Adaptive generation of hexahedral element mesh using an improved grid-based method | |
CN106960469B (en) | A kind of smooth free-form deformation of Fast Segmentation triangle | |
Remacle et al. | Fast and robust mesh generation on the sphere—Application to coastal domains | |
JPH08315183A (en) | Method and system for automatic mesh generation | |
CN103886635A (en) | Self-adaption LOD model establishing method based on face clustering | |
CN116451540A (en) | Construction surface construction curved surface dividing method | |
Talgorn et al. | Real-time sketch-based terrain generation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
RJ01 | Rejection of invention patent application after publication |