Compression method and device for role play
A compression device and role technology, applied in the field of data processing, can solve the problem of occupying a large storage space and achieve the effect of reducing the memory of the mobile terminal
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] The embodiment of the present invention provides a character animation compression method, which is suitable for compressing character key frame animation games, such as figure 1 As shown, it specifically includes the following steps:
[0035] Step S101, respectively collect the data increment of each skeleton data of the current frame relative to each skeleton data of the previous frame.
[0036] In step S101, due to the continuity of the key frame animation, the action generated during the movement from the bone position in the previous frame to the bone position in the current frame can be regarded as the difference between the bone action in the current frame and the bone action in the previous frame. The relative action increment between them. The current skeletal motion can be obtained by superimposing the relative motion increment of the previous frame skeletal motion. Therefore, collecting the data increment of each skeleton data of the current frame relative ...
Embodiment 2
[0043] Embodiments of the present invention provide a character animation compression method on the basis of the above embodiments, such as image 3 shown, including:
[0044] Step S301, respectively collecting data increments of each skeleton data of the current frame relative to each skeleton data of the previous frame.
[0045] Step S302, converting the type of the data increment to compress the data increment.
[0046] Step S303, compressing the converted data increments into a Zip format, so as to compress the converted data increments.
[0047] In step S303, the WinRAR compression software can be used to compress the converted data increments into Zip format. If the converted data increments are binary codes, the WinRAR compression software can compress the binary codes, and the adjacent 0,1 Code reduction, for example, if there is 000000, it can be changed to 60 with 6 zeros to reduce the memory occupied by the converted data increment.
[0048] The embodiment of the...
Embodiment 3
[0050] An embodiment of the present invention provides a compression device for character animation, such as Figure 4 As shown, the device specifically includes: a data increment acquisition module 41 and a first compression module 42 .
[0051] Among them, the data increment acquisition module 41 is used to respectively collect the data increments of each skeleton data of the current frame relative to the respective skeleton data of the previous frame; the first compression module is used to convert the type of data increments to compress data increments. quantity.
[0052]In the data incremental acquisition module 41, due to the continuity of the key frame animation, the action generated during the movement from the bone position in the previous frame to the bone position in the current frame can be regarded as the difference between the bone action of the current frame and the previous frame. The relative motion delta between frame bone motions. The current skeletal moti...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 