CN104091359B - The method and apparatus that vector shape animation is simulated to the texture mapping of bitmap format - Google Patents
The method and apparatus that vector shape animation is simulated to the texture mapping of bitmap format Download PDFInfo
- Publication number
- CN104091359B CN104091359B CN201410353899.5A CN201410353899A CN104091359B CN 104091359 B CN104091359 B CN 104091359B CN 201410353899 A CN201410353899 A CN 201410353899A CN 104091359 B CN104091359 B CN 104091359B
- Authority
- CN
- China
- Prior art keywords
- texture mapping
- state
- texture
- model
- former
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Abstract
The present invention provides the method for simulating vector shape animation to the texture mapping of bitmap format, it is intended to the technical problem of bitmap itself distortion when the textures for solving the bitmap form of prior art offer realize shape animation.Methods described includes:To the former texture mapping of bitmap format except textures in itself in addition to part carry out the operation of at least one of displacement, scaling and rotation process, obtain the texture mapping of first state;The texture mapping of first state is beaten into key frame;To the texture mapping of first state except textures in itself in addition to part carry out the operation of at least one of displacement, scaling and rotation process, obtain the texture mapping of the second state;The texture mapping of second state is beaten into key frame.Although method provided by the invention is to carry out deformation to the texture mapping of bitmap format, but it ensure that textures occur without distortion phenomenon in itself in deformation process, vector shape animation is preferably simulated, the texture mapping that can reach vector bitmap-format carries out the effect reached during shape animation.
Description
Technical field
Vector shape animation is simulated the invention belongs to image processing field, more particularly to the texture mapping of bitmap format
Method.
Background technology
Vector graphics is based on intrinsic advantage, has very big advantage in irregular shape animation is handled.For polar plot
The image of shape, by calculating summit and boundary curve before and after image deformation, phase can be completed very simple, accurately, perfect
Close effect.Vector graphics need not aid in guiding deformation operation in deformation process, and can reach curve in deformation process
Effect without obvious sawtooth, display effect is improved, increases the visual experience of user.
If image is bitmap (bitmap), similar shape animation can not be done directly, can only be by being added to image
Grid deformation controller, simulate deformation effects.Specifically, the coordinate value to every frame calculating grid vertex is needed in whole process,
And the fine and smooth degree of shape animation depends on the sparse degree of grid, what closeer lengths were come is bigger amount of calculation.
Under three-dimensional (3Dimensions, 3D) environment, similar grid control, equivalent to the patch model summit of mobile divided several piece
Coordinate, so as to reach the control of deformation.
However, during the above-mentioned image deformation to bitmap format, by the sampling to image different zones, position can be caused
The problems such as distortion of figure itself, sawtooth.
The content of the invention
It is an object of the invention to provide the method that the texture mapping to bitmap format simulates vector shape animation, it is intended to solves
The technical problem of bitmap itself distortion when certainly the textures for the bitmap form that prior art provides realize shape animation.
The present invention is achieved in that a kind of method that texture mapping to bitmap format simulates vector shape animation, institute
The method of stating includes:
To the former texture mapping of bitmap format except textures in itself in addition to part carry out in displacement, scaling and rotation process extremely
Few a kind of operation, obtains the texture mapping of first state, the former texture mapping of the bitmap format except textures in itself in addition to portion
Divide the model for including the former texture mapping and/or the texture of the former texture mapping;
The texture mapping of the first state is beaten into key frame;
To the texture mapping of the first state except textures in itself in addition to part carry out in displacement, scaling and rotation process
At least one operation, obtains the texture mapping of the second state, the texture mapping of the first state except textures in itself in addition to portion
Divide the model for the texture mapping for including the first state and/or the texture of the texture mapping of the first state;
The texture mapping of second state is beaten into key frame.
Another object of the present invention is to the device that the texture mapping provided to bitmap format simulates vector shape animation, institute
Stating device includes:
First control module, for the former texture mapping to bitmap format except textures in itself in addition to part carry out displacement,
The operation of at least one of scaling and rotation process, obtains the texture mapping of first state, the former texture mapping of the bitmap format
Except textures in itself in addition to the model of part including the former texture mapping and/or the texture of the former texture mapping;
First key frame marker module, for the texture mapping of the first state to be beaten into key frame;
Second control module, for the texture mapping to the first state except textures in itself in addition to part enter line position
The operation of at least one of shifting, scaling and rotation process, obtains the texture mapping of the second state, the texture mapping of the first state
Except textures in itself in addition to part including the first state the model of texture mapping and/or the texture patch of the first state
The texture of figure;
Second key frame marker module, for the texture mapping of second state to be beaten into key frame.
It was found from the embodiments of the present invention, due to texture mapping carry out displacement, scaling and/or rotation when, it is only right
The texture mapping of the former texture mapping or first state of bitmap format except textures in itself in addition to part carry out displacement, scaling and
At least one of rotation process operates, i.e. only to the model and/or texture of former texture mapping or the texture mapping of first state
Displacement, scaling and/or rotation are carried out, and to textures in itself and without displacement, scaling and/or rotation process.Therefore, with it is existing
Technology is compared, and although method provided by the invention is to carry out deformation to the texture mapping of bitmap format, but protected in deformation process
Demonstrate,proved textures occur without in itself distortion phenomenon (for example, remained in that in former texture mapping some length-width ratios of textures in itself and
Angle of inclination and maintain word in textures and do not deform), preferably simulate vector shape animation, vector can be reached
The texture mapping of bitmap-format carries out the effect reached during shape animation.
Brief description of the drawings
Fig. 1 is the method that the texture mapping to bitmap format that the embodiment of the present invention one provides simulates vector shape animation
Implementation process schematic diagram;
Fig. 2 is the method that the texture mapping to bitmap format that the embodiment of the present invention two provides simulates vector shape animation
Implementation process schematic diagram;
Fig. 3 is that the texture of the former texture mapping provided in an embodiment of the present invention to bitmap format carries out displacement diagram;
Fig. 4 is the method that the texture mapping to bitmap format that the embodiment of the present invention three provides simulates vector shape animation
Implementation process schematic diagram;
Fig. 5 is the scaling for the model by the former texture mapping to bitmap format that the embodiment of the present invention four provides, by original
The size of the model of texture mapping is adapted to the big logotype of the texture mapping of first state;
Fig. 6-a are the scalings for the model by the texture mapping to first state that the embodiment of the present invention five provides, by the
The size of the model of the texture mapping of one state is adapted to the big logotype of the texture mapping of the second state;
Fig. 6-b are that the size of the model for the texture mapping by first state that the embodiment of the present invention six provides is adapted to second
After the size of the texture mapping of state, schematic diagram is zoomed in and out to the texture of the texture mapping of the second state;
Fig. 7 is the device that the texture mapping to bitmap format that the embodiment of the present invention seven provides simulates vector shape animation
Structural representation;
Fig. 8 is the device that the texture mapping to bitmap format that the embodiment of the present invention eight provides simulates vector shape animation
Structural representation;
Fig. 9 is the device that the texture mapping to bitmap format that the embodiment of the present invention nine provides simulates vector shape animation
Structural representation;
Figure 10 is the device that the texture mapping to bitmap format that the embodiment of the present invention ten provides simulates vector shape animation
Structural representation;
Figure 11 is the dress that the texture mapping to bitmap format that the embodiment of the present invention 11 provides simulates vector shape animation
The structural representation put;
Figure 12 is the dress that the texture mapping to bitmap format that the embodiment of the present invention 12 provides simulates vector shape animation
The structural representation put.
Embodiment
In order that the purpose of the present invention, technical scheme and beneficial effect are more clearly understood, below in conjunction with accompanying drawing and implementation
Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only explaining this hair
It is bright, it is not intended to limit the present invention.
The embodiment of the present invention provides the method for simulating vector shape animation to the texture mapping of bitmap format, methods described bag
Include:To the former texture mapping of bitmap format except textures in itself in addition to part carry out at least one in displacement, scaling and rotation process
Kind of operation, obtains the texture mapping of first state, the former texture mapping of the bitmap format except textures in itself in addition to part bag
Include the model of the former texture mapping and/or the texture of the former texture mapping;The texture mapping of the first state is beaten into pass
Key frame;To the texture mapping of the first state except textures in itself in addition to part carry out in displacement, scaling and rotation process extremely
Few a kind of operation, obtains the texture mapping of the second state, the texture mapping of the first state except textures in itself in addition to part
The texture of the texture mapping of the model of texture mapping including the first state and/or the first state;By described second
The texture mapping of state beats key frame.The embodiment of the present invention also provides simulates vector shape to the texture mapping of bitmap format accordingly
Become the device of animation.It is described in detail individually below.
Accompanying drawing 1 is referred to, is that the texture mapping simulation vector deformation to bitmap format that the embodiment of the present invention one provides is moved
The implementation process of the method for picture, mainly include the following steps that S101 to step S104:
S101, to the former texture mapping of bitmap format except textures in itself in addition to part carry out displacement, scaling and rotation and grasp
At least one of make operation, obtain the texture mapping of first state, wherein, the former texture mapping of bitmap format except textures in itself it
Outer part includes the model of former texture mapping and/or the texture of former texture mapping.
Under 3D environment, the texture mapping of a bitmap format includes three parts:Model, texture and textures are in itself.From
From level, model is in innermost layer, and texture is similar to shades such as the fabrics of real world on model, and textures are in the superiors,
It is the figure being attached on texture;The border of model and the border of texture can overlap, and both have confined the size in length and breadth of textures in itself.
It should be noted that in the present embodiment, the former texture mapping of so-called bitmap format, it is intended merely to and the texture mapping phase after deformation
Distinguish and to an appellation, its essence as the texture mapping of bitmap format.
S102, the texture mapping of first state is beaten into key frame.
In embodiments of the present invention, the texture mapping of first state is beaten into key frame, be in order in former texture mapping to
In the deformation process of the texture mapping of one state, computing device (for example, computer) can calculate former texture mapping to first
Any one frame texture mapping between the texture mapping of state, so as to efficiently realize animation effect.
S103, to the texture mapping of first state except textures in itself in addition to part carry out displacement, scaling and rotation process
At least one of operation, obtain the texture mapping of the second state, wherein, the texture mapping of first state except textures in itself in addition to
Part includes the model of the texture mapping of first state and/or the texture of the texture mapping of first state.
In embodiments of the present invention, the texture mapping of the texture mapping of first state and the second state is and bitmap format
Former texture mapping it is identical, and including model, texture and textures three parts in itself, model, texture and textures sheet therein
The definition of body and hierarchical structure also with the definition in itself of model, texture and the textures of the former texture mapping of bitmap format and layer
Secondary structure is identical, does not repeat herein.
S104, the texture mapping of the second state is beaten into key frame.
It is similar with step S102, in embodiments of the present invention, the texture mapping of the second state is beaten into key frame, be in order to
For the texture mapping of first state into the deformation process of the texture mapping of the second state, computing device (for example, computer) can
The texture mapping of first state is calculated to any one frame texture mapping between the texture mapping of the second state, so as to efficiently
Realize animation effect.
The method that the texture mapping to bitmap format provided from the embodiments of the present invention simulates vector shape animation can
Know, due to when carrying out displacement and/or scaling to texture mapping, only to the former texture mapping or first state of bitmap format
Texture mapping except textures in itself in addition to part carry out at least one of displacement, scaling and rotation process operation, i.e. only to former line
The model and/or texture for managing the texture mapping of textures or first state carry out displacement, scaling and/or rotation, and to textures sheet
Body and without displacement, scaling and/or rotation process.Therefore, compared with prior art, although method provided by the invention is pair
The texture mapping of bitmap format carries out deformation, but ensure that textures occur without distortion phenomenon (for example, still in itself in deformation process
So maintain some length-width ratios of textures in former texture mapping in itself and angle of inclination and maintain word in textures and do not become
Shape etc.), vector shape animation is preferably simulated, the texture mapping that can reach vector bitmap-format reach during shape animation
Effect.
Accompanying drawing 2 is referred to, is that the texture mapping simulation vector deformation to bitmap format that the embodiment of the present invention two provides is moved
The implementation process of the method for picture, mainly include the following steps that S201 to step S204:
S201, displacement is carried out to the texture of the former texture mapping of bitmap format, obtains the texture mapping of first state.
For example, the animation to do the texture mapping that can simulate a vector bitmap-format deformation, for example, simulates polar plot
The movement of the texture mapping of form, then without being moved as prior art to the texture mapping of whole bitmap format, only
Need to carry out displacement to the texture of the former texture mapping of bitmap format.As shown in the subgraph A to subgraph C of accompanying drawing 3, subgraph A
The former texture mapping of bitmap format, wherein, the parallelogram of black be textures in itself, the rectangle with tiny grid represents
Texture, the scope of the boundary representation model of rectangle, its overlapping margins with texture.It is now to by moving subgraph A to simulate
The animation of the texture mapping deformation of vector bitmap-format, only texture can be moved, for example, the upper right angular vertex pair by model
The UV points for the texture answered i.e. Texture Editing point moves, and as shown in the subgraph B of accompanying drawing 3, then the former texture mapping of bitmap format occurs
Mobile, the texture mapping after movement is the texture mapping of first state, as shown in the subgraph C of accompanying drawing 3.
S202, the texture mapping of first state is beaten into key frame.
It is in order to which computing device efficiently realizes animation as it was previously stated, beating key frame to the texture mapping after change state.
Specifically, in the present embodiment, the attribute of Texture Editing point in the texture mapping of first state can be recorded, for example, each line
Manage the parameters such as the X, Y, Z axis coordinate of in-edit.Then, computing device can be to the texture mapping and state change before state change
Texture mapping afterwards is that the texture mapping between the texture mapping of first state enters row interpolation, for example, linear interpolation or Bezier
Curve interpolation method, any one frame texture mapping between the texture mapping before state change and after state change is simulated, so as to
Realize the shape animation of the texture mapping of bitmap format.
S203, displacement is carried out to the texture of the texture mapping of first state, obtains the texture mapping of the second state.
Displacement is carried out with the texture of the foregoing former texture mapping to bitmap format, obtains the texture mapping class of first state
Seemingly, the texture mapping of the second state is obtained here, displacement can also be carried out by the texture of the texture mapping to first state
To realize, without being moved as prior art to the texture mapping of whole first state.For example, for accompanying drawing 3
The texture mapping of first state shown in subgraph C, can be that texture is compiled by the UV points of the texture of the lower left corner vertex correspondence of model
Point movement is collected, as shown in the subgraph D of accompanying drawing 3, then the former texture mapping of bitmap format is moved, and the texture mapping after movement is
The texture mapping of second state, as shown in the subgraph E of accompanying drawing 3.
S204, the texture mapping of the second state is beaten into key frame.
As step S202 is similar, key frame is beaten to the texture mapping after change state, is in order to which computing device is efficiently real
Existing animation.Specifically, in the present embodiment, the attribute of Texture Editing point in the texture mapping of the second state can be recorded, for example,
The parameters such as the X, Y, Z axis coordinate of each Texture Editing point.Then, computing device can be to the texture mapping before state change
Texture mapping after the texture mapping and state change of one state is that the texture mapping between the texture mapping of the second state is carried out
Interpolation, for example, linear interpolation or Bezier interpolation method, simulate the texture mapping of first state and the texture of the second state
Any one frame texture mapping between textures, so as to realize the shape animation of the texture mapping of bitmap format.
Accompanying drawing 4 is referred to, is that the texture mapping simulation vector deformation to bitmap format that the embodiment of the present invention three provides is moved
The implementation process of the method for picture, mainly include the following steps that S401 to step S404:
S401, by the scaling of the model of the former texture mapping to bitmap format, by the size of the model of former texture mapping
It is adapted to the size of the texture mapping of first state.
It is relatively common by changing to greatly small and changing to big deformation by small again for the texture mapping of bitmap format
Animation mode.In this above-mentioned deformation process of the texture mapping of bitmap format is realized, the method that the present embodiment provides is not
The texture mapping of whole bitmap format is zoomed in and out, but realized by the scaling of the model to texture mapping.Specifically,
The embodiment of the present invention four as shown in Figure 5, it is by the scaling of the model of the former texture mapping to bitmap format, former texture is pasted
The size of the model of figure is adapted to the texture mapping for the size of the texture mapping of first state, obtaining first state.The son of accompanying drawing 5
Figure A is scaling to the model of the former texture mapping of bitmap format to subgraph B examples, by the size of the model of former texture mapping
It is adapted to the process of the size to the texture mapping of first state, the subgraph C of accompanying drawing 5 to subgraph D examples is by aligning map grid
The scaling of the model of the former texture mapping of formula, obtains the process of the texture mapping of first state.
It should be noted that the size of the above-mentioned model by former texture mapping be adapted to it is big to the texture mapping of first state
Hour, the eyesight of user can be specifically relied on, is adjusted manually, for example, the size of the texture mapping of range estimation first state, then,
The size of the model of former texture mapping is adapted to the size of the texture mapping of first state, this mode is applied to need not be very
The scene of precise results, or, the scene of the size of the texture mapping of first state can not be known.It is above-mentioned by former texture mapping
The size of model is adapted to the another way of the size of the texture mapping of first state, knows the texture of first state first
The size of textures, for example, the parameter such as length and width, then, by by the corresponding parameter of the model of former texture mapping, for example,
Length and width is arranged to the length and width of the respectively equal to texture mapping of first state, so as to by the model of former texture mapping
Size be adapted to the size of the texture mapping of first state, this mode is applicable to the scene of very precise results, or,
The scene of the size of the texture mapping of first state can be known.
S402, the texture mapping of first state is beaten into key frame.
Here by the texture mapping of first state beat the purpose of key frame with previous embodiment one or embodiment three by the
The purpose that the texture mapping of one state beats key frame is identical.Except that because the present embodiment is by bitmap format
The scaling of the model of former texture mapping, the texture mapping simulation vector shape animation of bitmap format is realized, therefore, in the present embodiment
In, the texture mapping of first state is beaten into the central point that key frame can be specifically the model for the texture mapping for recording first state
Attribute, for example, the parameter such as X-axis, Y-axis and Z axis coordinate of central point of model of texture mapping of record first state.
S403, by the scaling of the model of the texture mapping to first state, by the model of the texture mapping of first state
Size be adapted to the size of the texture mapping to the second state.
Detailed process can refer to the embodiment of the present invention five shown in accompanying drawing 6-a.Accompanying drawing 6-a subgraph A is to subgraph B examples
It is the scaling to the model of the texture mapping of first state, the size of the model of the texture mapping of first state is adapted to second
The process of the size of the texture mapping of state, accompanying drawing 6-a subgraph C to subgraph D examples are by the texture to first state
The scaling of the model of textures, the process of the size of the texture mapping of the second state is obtained, wherein, subgraph C examples are the first shapes
The texture mapping of state, subgraph D examples be the second state texture mapping.
S404, the texture mapping of the second state is beaten into key frame.
It is similar with the step S402 of the present embodiment, in the present embodiment, the texture mapping of the second state is beaten into key frame tool
Body can be the attribute of the central point of the model of the texture mapping for second state that records, for example, the texture patch of the second state of record
The parameters such as X-axis, Y-axis and the Z axis coordinate of the central point of the model of figure.
In the above-described embodiments, by the scaling of the model of the texture mapping to first state, by the first state
The size of the model of texture mapping is adapted to the size of the texture mapping of second state, in fact it could happen that a kind of situation
It is:Compared with the texture mapping of former texture mapping or first state, there is stretching in the texture mapping of the second state, i.e. the second shape
The width of the width of the texture mapping of state and/or angle of inclination and former texture mapping or the texture mapping of first state and/or incline
Rake angle have it is different degrees of inconsistent, or, have another texture mapping (such as accompanying drawing 6-a subgraph D on texture mapping
On " this logo of You Tube ") when, another texture mapping and original texture textures (" this logo of You Tube ") phase
Than there is also a certain degree of stretching or distortion.
In order to solve the above problems, the embodiment of the present invention six as shown in accompanying drawing 6-b, pass through the texture mapping to first state
Model scaling, the size of the model of the texture mapping of the first state is adapted to the texture mapping of second state
Size after, the texture of the texture mapping of second state can be zoomed in and out.Can be specifically to the second state
The texture of texture mapping does the scaling of XY axial directions, makes height, width and the angle of inclination of the texture mapping of the second state and former line
It is identical to manage height, width and the angle of inclination difference of the texture mapping of textures or first state, as shown in accompanying drawing 6-b.
Accompanying drawing 7 is referred to, is that the texture mapping simulation vector deformation to bitmap format that the embodiment of the present invention seven provides is moved
The structural representation of the device of picture.For convenience of description, it illustrate only the part related to the embodiment of the present invention.The example of accompanying drawing 7
The device that vector shape animation is simulated to the texture mapping of bitmap format mainly to include the first control module 701, first crucial
Frame flag module 702, the second control module 703 and the second key frame marker module 704, each functional module describe in detail as follows:
First control module 701, for the former texture mapping to bitmap format except textures in itself in addition to part enter line position
The operation of at least one of shifting, scaling and rotation process, obtain the texture mapping of first state, the former texture patch of the bitmap format
Figure except textures in itself in addition to the model of part including the former texture mapping and/or the texture of the former texture mapping;
First key frame marker module 702, for the texture mapping of the first state to be beaten into key frame;
Second control module 703, for the texture mapping to the first state except textures in itself in addition to part carry out
At least one of displacement, scaling and rotation process operate, and obtain the texture mapping of the second state, the texture patch of the first state
Figure except textures in itself in addition to part include the model of texture mapping and/or the texture of the first state of the first state
The texture of textures;
Second key frame marker module 704, for the texture mapping of second state to be beaten into key frame.
First control module 701 of the example of accompanying drawing 7 can include the first displacement unit 801, and the second control module 703 can be with
Including second displacement unit 802, the texture mapping to bitmap format that the embodiment of the present invention eight provides as shown in Figure 8 simulates arrow
The device of shape animation is measured, wherein:
First displacement unit 801, for carrying out displacement to the texture of the former texture mapping, obtain the first state
Texture mapping;
Second displacement unit 802, the texture for the texture mapping to the first state carry out displacement, obtain described the
The texture mapping of two-state.
First key frame marker module 702 of the example of accompanying drawing 7 can include the first recording unit 901, the second key frame mark
Note module 704 can include the second recording unit 902, as shown in Figure 9 the embodiment of the present invention nine offer to bitmap format
Texture mapping simulates the device of vector shape animation, wherein:
First recording unit 901, the attribute of Texture Editing point in the texture mapping for recording the first state;
Second recording unit 902, the attribute of Texture Editing point in the texture mapping for recording second state.
First control module 701 of the example of accompanying drawing 7 can include the first adaptation unit 1001, and the second control module 703 can
To include the texture mapping mould to bitmap format of the second adaptation unit 1002, the as shown in Figure 10 offer of the embodiment of the present invention ten
Intend the device of vector shape animation, wherein:
First adaptation unit 1001, for the scaling by the model to the former texture mapping, the former texture is pasted
The size of the model of figure is adapted to the size of the texture mapping to the first state;
Second adaptation unit 1002, for the scaling of the model by the texture mapping to the first state, by described in
The size of the model of the texture mapping of first state is adapted to the size of the texture mapping to second state.
The device that the texture mapping to bitmap format of the example of accompanying drawing 10 simulates vector shape animation can also include texture
Zoom module 1101, the texture mapping to bitmap format that the embodiment of the present invention 11 provides as shown in Figure 11 simulate vector shape
Become the device of animation.Texture scale module 1101 is used for the texture mapping of the first state in the second adaptation unit 1002
The size of model is adapted to the size of the texture mapping of second state, to the line of the texture mapping of second state
Reason zooms in and out.
First key frame marker module 702 of the example of accompanying drawing 10 can include the 3rd recording unit 1201, the second key frame
Mark module 704 can include the 4th recording unit 1202, the contraposition map grid that the embodiment of the present invention 12 provides as shown in Figure 9
The device of the texture mapping simulation vector shape animation of formula, wherein:
3rd recording unit 1201, the attribute of the central point of the model of the texture mapping for recording the first state;
4th recording unit 1202, the attribute of the central point of the model of the texture mapping for recording second state.
It should be noted that the content such as information exchange, implementation procedure between each module/unit of said apparatus, due to
The inventive method embodiment is based on same design, and its technique effect brought is identical with the inventive method embodiment, particular content
Reference can be made to the narration in the inventive method embodiment, here is omitted.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
The method that the texture mapping to bitmap format provided above the embodiment of the present invention simulates vector shape animation
It is described in detail with device, specific case used herein is set forth to the principle and embodiment of the present invention,
The explanation of above example is only intended to help the method and its core concept for understanding the present invention;Meanwhile for the one of this area
As technical staff, according to the thought of the present invention, there will be changes in specific embodiments and applications, to sum up institute
State, this specification content should not be construed as limiting the invention.
Claims (10)
1. a kind of method that texture mapping to bitmap format simulates vector shape animation, it is characterised in that methods described includes:
To the former texture mapping of bitmap format except textures in itself in addition to part carry out at least one in displacement, scaling and rotation process
Kind of operation, obtains the texture mapping of first state, the former texture mapping of the bitmap format except textures in itself in addition to part bag
Include the model of the former texture mapping and/or the texture of the former texture mapping;
The texture mapping of the first state is beaten into key frame, the texture mapping by the first state beats key frame, bag
Include:Record the attribute of Texture Editing point in the texture mapping of the first state;
To the texture mapping of the first state except textures in itself in addition to part carry out in displacement, scaling and rotation process at least
One kind operation, obtains the texture mapping of the second state, the texture mapping of the first state except textures in itself in addition to part bag
Include the model of the texture mapping of the first state and/or the texture of the texture mapping of the first state;
The texture mapping of second state is beaten into key frame, the texture mapping by second state beats key frame, bag
Include:Record the attribute of Texture Editing point in the texture mapping of second state.
2. the method as described in claim 1, it is characterised in that the former texture mapping to bitmap format except textures in itself it
Outer part carries out the operation of at least one of displacement, scaling and rotation process, obtains the texture mapping of first state, including:It is right
The texture of the former texture mapping carries out displacement, obtains the texture mapping of the first state;
The texture mapping to the first state except textures in itself in addition to part carry out in displacement, scaling and rotation process
At least one operation, obtains the texture mapping of the second state, including:Line position is entered to the texture of the texture mapping of the first state
Move, obtain the texture mapping of second state.
3. the method as described in claim 1, it is characterised in that the former texture mapping to bitmap format except textures in itself it
Outer part carries out the operation of at least one of displacement, scaling and rotation process, obtains the texture mapping of first state, including:It is logical
The scaling of the model to the former texture mapping is crossed, the size of the model of the former texture mapping is adapted to the first state
Texture mapping size;
The texture mapping to the first state except textures in itself in addition to part carry out in displacement, scaling and rotation process
At least one operation, obtains the texture mapping of the second state, including:Pass through the model of the texture mapping to the first state
Scaling, the size of the model of the texture mapping of the first state is adapted to the size of the texture mapping to second state.
4. method as claimed in claim 3, it is characterised in that the model of the texture mapping by the first state
Scaling, the size of the model of the texture mapping of the first state is adapted to the size of the texture mapping to second state
Afterwards, in addition to:
The texture of the texture mapping of second state is zoomed in and out.
5. method as claimed in claim 3, it is characterised in that the texture mapping by the first state beats key frame,
Including:Record the attribute of the central point of the model of the texture mapping of the first state;
The texture mapping by second state beats key frame, including:Record the mould of the texture mapping of second state
The attribute of the central point of type.
6. a kind of texture mapping to bitmap format simulates the device of vector shape animation, it is characterised in that described device includes:
First control module, for the former texture mapping to bitmap format except textures in itself in addition to part carry out displacement, scaling
With the operation of at least one of rotation process, the texture mapping of first state is obtained, the former texture mapping of the bitmap format is except patch
Figure in itself outside the model of part including the former texture mapping and/or the texture of the former texture mapping;
First key frame marker module, for the texture mapping of the first state to be beaten into key frame;
Second control module, for the texture mapping to the first state except textures in itself in addition to part carry out displacement, contracting
Put with the operation of at least one of rotation process, obtain the texture mapping of the second state, the texture mapping of the first state is except patch
Figure in itself outside part including the first state the model of texture mapping and/or the texture mapping of the first state
Texture;
Second key frame marker module, for the texture mapping of second state to be beaten into key frame;
The first key frame marker module includes the first recording unit, and the second key frame marker module includes the second record
Unit;
First recording unit, the attribute of Texture Editing point in the texture mapping for recording the first state;
Second recording unit, the attribute of Texture Editing point in the texture mapping for recording second state.
7. device as claimed in claim 6, it is characterised in that first control module includes the first displacement unit, described
Second control module includes second displacement unit;
First displacement unit, for carrying out displacement to the texture of the former texture mapping, obtain the line of the first state
Manage textures;
The second displacement unit, the texture for the texture mapping to the first state carry out displacement, obtain described second
The texture mapping of state.
8. device as claimed in claim 6, it is characterised in that first control module includes the first adaptation unit, described
Second control module includes the second adaptation unit;
First adaptation unit, for the scaling by the model to the former texture mapping, by the former texture mapping
The size of model is adapted to the size of the texture mapping to the first state;
Second adaptation unit, for the scaling of the model by the texture mapping to the first state, by described first
The size of the model of the texture mapping of state is adapted to the size of the texture mapping to second state.
9. device as claimed in claim 8, it is characterised in that described device also includes:
Texture scale module, for fitting the size of the model of the texture mapping of the first state in second adaptation unit
It is assigned to after the size of the texture mapping of second state, the texture of the texture mapping of second state is zoomed in and out.
10. device as claimed in claim 8, it is characterised in that the first key frame marker module includes the 3rd record
Member, the second key frame marker module include the 4th recording unit;
3rd recording unit, the attribute of the central point of the model of the texture mapping for recording the first state;
4th recording unit, the attribute of the central point of the model of the texture mapping for recording second state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410353899.5A CN104091359B (en) | 2014-07-23 | 2014-07-23 | The method and apparatus that vector shape animation is simulated to the texture mapping of bitmap format |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410353899.5A CN104091359B (en) | 2014-07-23 | 2014-07-23 | The method and apparatus that vector shape animation is simulated to the texture mapping of bitmap format |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104091359A CN104091359A (en) | 2014-10-08 |
CN104091359B true CN104091359B (en) | 2018-01-16 |
Family
ID=51639074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410353899.5A Active CN104091359B (en) | 2014-07-23 | 2014-07-23 | The method and apparatus that vector shape animation is simulated to the texture mapping of bitmap format |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104091359B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113808243B (en) * | 2021-09-23 | 2023-09-15 | 光线云(杭州)科技有限公司 | Drawing method and device for deformable snowfield grid |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1894727A (en) * | 2003-12-19 | 2007-01-10 | 英特尔公司 | Method and apparatus for producing animation |
CN101339668A (en) * | 2008-08-08 | 2009-01-07 | 浙江大学 | Three-dimensional animations cartoon flame creation method |
CN101436310A (en) * | 2008-11-28 | 2009-05-20 | 牡丹江新闻传媒集团有限公司 | Method for automatically generating middle frame during two-dimension cartoon making process |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8988446B2 (en) * | 2011-10-07 | 2015-03-24 | Zynga Inc. | 2D animation from a 3D mesh |
-
2014
- 2014-07-23 CN CN201410353899.5A patent/CN104091359B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1894727A (en) * | 2003-12-19 | 2007-01-10 | 英特尔公司 | Method and apparatus for producing animation |
CN101339668A (en) * | 2008-08-08 | 2009-01-07 | 浙江大学 | Three-dimensional animations cartoon flame creation method |
CN101436310A (en) * | 2008-11-28 | 2009-05-20 | 牡丹江新闻传媒集团有限公司 | Method for automatically generating middle frame during two-dimension cartoon making process |
Also Published As
Publication number | Publication date |
---|---|
CN104091359A (en) | 2014-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2339687C (en) | Three-dimensional cad system and recording medium for three-dimensional cad system | |
TWI837115B (en) | Non-transitory medium, system and method for multi-material mesh generation from fill- fraction voxel data | |
CN101216949A (en) | A 3D face animation manufacturing method based on region segmentation and segmented learning | |
WO2015101160A1 (en) | Method for making projection of three-dimensional object based on preset site | |
CN104574472B (en) | Solid fragmentation simulation and animation method based on embedded grid | |
KR101591427B1 (en) | Method for Adaptive LOD Rendering in 3-D Terrain Visualization System | |
CN102163340A (en) | Method for labeling three-dimensional (3D) dynamic geometric figure data information in computer system | |
CN101894388A (en) | Display method of growth of virtual plant | |
WO2022033009A1 (en) | Rendering processing method and apparatus, electronic device and storage medium | |
CN103366402B (en) | The rapid posture-synchronizing method of three-dimensional dress ornament | |
CN113191018B (en) | Cloth simulation method and system, electronic equipment and storage medium | |
CN108230452B (en) | Model hole filling method based on texture synthesis | |
CN110033507A (en) | Line method for drafting, device, equipment and readable storage medium storing program for executing are retouched in model pinup picture | |
CN104091359B (en) | The method and apparatus that vector shape animation is simulated to the texture mapping of bitmap format | |
CN100416611C (en) | Network topology model construction based three-dimensional human face cartoon making method | |
CN117635634A (en) | Image processing method, device, electronic equipment, chip and storage medium | |
CN108898679A (en) | A kind of method of component serial number automatic marking | |
CN116310188B (en) | Virtual city generation method and storage medium based on instance segmentation and building reconstruction | |
CN108986212B (en) | Three-dimensional virtual terrain LOD model generation method based on crack elimination | |
Nam et al. | SPACESKETCH: Shape modeling with 3D meshes and control curves in stereoscopic environments | |
CN102547270B (en) | Method and system for obtaining availability information of adjacent blocks of current block | |
CN104036547B (en) | Method and device for three-dimensional brush to generate network module in real time based on Leap Motion control | |
CN107507265A (en) | Model pinup picture method and device based on three-dimensional rendering two dimension | |
CN107103642B (en) | Three-dimensional model voxelization entity filling method | |
JP6969149B2 (en) | 3D shape data editing device and 3D shape data editing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |