CN109660784A - Special effects data treating method and apparatus - Google Patents
Special effects data treating method and apparatus Download PDFInfo
- Publication number
- CN109660784A CN109660784A CN201811450372.9A CN201811450372A CN109660784A CN 109660784 A CN109660784 A CN 109660784A CN 201811450372 A CN201811450372 A CN 201811450372A CN 109660784 A CN109660784 A CN 109660784A
- Authority
- CN
- China
- Prior art keywords
- data
- special effects
- current
- data file
- information
- 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
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of special effects data processing methods, wherein the method includes the data information of each picture frame on acquisition time axis, data information includes used special effects data collection in each picture frame;Data information is generated current data file by preset rules by the data information for extracting current image frame, and current data file is the data file stored with plain text format;It successively combines the sequence of picture frame each in current data file temporally axis and obtains data file collection.Scheme disclosed by the invention can simplify the data sharing between different software, improve the production effect of production of film and TV.
Description
Technical field
The invention belongs to computer graphic image processing technology fields, and in particular to a kind of special effects data processing method and dress
It sets.
Background technique
Video display special efficacy as one of element indispensable in cinematic industry, for film, TV development be made that it is huge
Contribution, production person's system for avoiding allowing performer to be in dangerous condition, reduce film using video display special efficacy of film, TV
Make cost, meanwhile, also film can be allowed more exciting using video display special efficacy, the appearance of 3D video display also more promotes video display
The development of special efficacy.
But in the interaction and transmission process of three-dimensional data, data interaction format that different application software may be supported
It is not identical, therefore cause three-dimensional data performance and afunction in data transmission and exchange process serious, in addition, by phase
The limitation for closing hardware and software, causes the data volume of some special efficacys and performance to be restricted, such as the population in particle effect
Amount is restricted by hardware limitation, the type of special effects data storage, is often made the Production Time of production of film and TV too long, is made
Make that result is not fully up to expectations, brings great difficulty to the d-making of film, TV.
Therefore, how to simplify the data sharing between different software, the production effect for improving production of film and TV, which becomes, urgently to be solved
Certainly the technical issues of.
Summary of the invention
The technical problem to be solved in the present invention is that how to simplify the data sharing between different software, production of film and TV is improved
Production effect.
For this purpose, according in a first aspect, the embodiment of the invention discloses a kind of special effects data processing methods, comprising:
The data information of each picture frame on acquisition time axis, data information include used special efficacy in each picture frame
Data set;Data information is generated current data file, current data by preset rules by the data information for extracting current image frame
File is the data file stored with plain text format;By the sequence of picture frame each in current data file temporally axis
Successively combination obtains data file collection.
Optionally, data information is generated current data file by preset rules by the data information for extracting current image frame
It include: to analyze the data information of current image frame to obtain the special effects data collection in current image frame;Parse special effects data collection with
Special efficacy element information is obtained, special efficacy element information is the element information for each element that special effects data is concentrated;According to special efficacy element
Information generates current data file by preset rules.
Optionally, data file is obtained successively combining the sequence of picture frame each in current data file temporally axis
After collection, further includes: parse data file collection to obtain the current data file of each picture frame on a timeline;According to current
Special effects data collection on data file recovery time axis in each picture frame, to carry out data render to each picture frame.
Optionally, special effects data collection includes particle effect data, volume effect data, rigid body crushing effect data and fluid
One of grid effect data or any combination.
According to second aspect, the embodiment of the invention provides a kind of special effects data processing units, comprising:
Data acquisition module, the data information of each picture frame on acquisition time axis, data information include each figure
As used special effects data collection in frame;Data extraction module, for extracting the data information of current image frame, by data information
Current data file is generated by preset rules, current data file is the data file stored with plain text format;File
Composite module obtains data file collection for successively combining the sequence of picture frame each in current data file temporally axis.
Optionally, data extraction module includes: special effects data unit, for analyzing the data information of current image frame to obtain
Take the special effects data collection in current image frame;Special efficacy element units, for parsing special effects data collection to obtain special efficacy element information,
Special efficacy element information is the element information for each element that special effects data is concentrated;File generating unit, for according to special efficacy element
Information generates current data file by preset rules.
Optionally, further includes: data resolution module, for parsing data file collection to obtain each image on a timeline
The current data file of frame;Rendering module is restored, for according on current data file recovery time axis in each picture frame
Special effects data collection, to carry out data render to each picture frame.
Optionally, special effects data collection includes particle effect data, volume effect data, rigid body crushing effect data and fluid
One of grid effect data or any combination.
According to the third aspect, the present invention provides a kind of computer installation, including processor, processor is for executing storage
The computer program stored in device realizes the special effects data processing method of above-mentioned first aspect any one.
According to fourth aspect, the present invention provides a kind of computer readable storage mediums, are stored thereon with computer program,
Processor is realized at the special effects data of above-mentioned first aspect any one for executing the computer program stored in storage medium
Reason method.
The beneficial effects of the present invention are:
A kind of special effects data treating method and apparatus disclosed by the embodiments of the present invention, first each image on acquisition time axis
The data information of frame, wherein data information includes used special effects data collection in each picture frame, then to current image frame
Data information extract to generate current data file according to preset rules, with plain text format when current data file
The data file stored, then by the current data file of generation according to the sequence successively group of picture frame each on time shaft
It closes to obtain data file collection.The side not modified to the special effects data file format of generation in compared with the existing technology
Case, scheme disclosed by the embodiments of the present invention make the data file collection generated be the data file stored with plain text format
Collection, so that different application programs can be with shared data, the transmission between data is more easier, simultaneously because data are with pure
Text formatting is stored, therefore is also convenient for operator by various incompatible application programs to read data, to drop
Complexity when low data interaction.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those skilled in the art, without creative efforts,
It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of special effects data of embodiment of the present invention processing method;
Fig. 2 is the structural schematic diagram of special effects data of embodiment of the present invention processing unit.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation
Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to FIG. 1, for special effects data processing method flow chart disclosed in the present embodiment, the special effects data processing method packet
It includes:
Step S101, the data information of each picture frame on acquisition time axis.
After getting the video source handled, the data information of each picture frame first on acquisition time axis,
Wherein, in the present embodiment, data information includes used special effects data collection in each picture frame, in specific implementation process
In, special effects data collection includes particle effect data, volume effect data, rigid body crushing effect data and fluid grid effect data
One of or any combination.It in a particular embodiment, can be simultaneously to the number of whole section of video source when handling video source
It is believed that breath is obtained, it can also be segmented and repeatedly be obtained.
Step S102 extracts the data information of current image frame, and data information is generated current data text by preset rules
Part.
In the present embodiment, step S102 specifically includes: to analyze the data information of current image frame to obtain current figure
As the special effects data collection in frame;For parsing special effects data collection to obtain special efficacy element information, special efficacy element information is special effects data collection
In each element element information;Current data file is generated by preset rules according to special efficacy element information.Wherein, current number
It is the data file stored with plain text format according to file.In the present embodiment, the format of current data file is XML lattice
Formula.
Since xml data are stored with plain text format, to provide one kind independently of software and hardware for user
Date storage method, therefore make different application programs can with shared data become be more easier, further, since xml data
It can read data by various incompatible application programs, therefore exchange data with xml, reduce data transmission and hand over
Complexity when changing improves the accuracy in data exchange and transmission process.
In order to facilitate the understanding of those skilled in the art, current data file is being generated by preset rules according to special effects data collection
When, xml data file is described in detail below:
(1) particle effect
The data file of particle effect extends entitled " ptb ", it mainly includes the location information and colouring information of particle.Its
Binary format is described as follows:
Wherein, TotalNum indicates the total number of particles amount of current file description, is indicated using a unsigned integer value.
Particle_n (Pos) indicates the position of n-th of particle, using the x of 3 floating point values representation space positions, y and z coordinate.
Particle_n (Color) indicates the color of n-th of particle, red using 4 components of 4 floating point values apparent colors, green
Color, blue and transparency.
The XML tag of particle effect is described as follows:
(2) volume effect
The data file of volume effect extends entitled " vlb ", it mainly includes density information and temperature letter in spatial field
Breath.Its binary format is described as follows:
Wherein, Resolution indicates the resolution ratio of current volume, respectively indicates length using 3 integer values, wide, Gao Geyou
How many sampled point.Matrix indicates the transformation matrix of current volume, indicates the rotation of this volume using 16 floating point values, it is mobile and
Scaling.Point_n (Density) indicates the density of n-th of sampled point, is indicated using 1 floating point values.Point_n (Color) table
The temperature for showing n-th of sampled point is indicated using 1 floating point values.
The XML tag of volume effect is described as follows:
(3) rigid body crushing effect
Rigid body data file extends entitled " rgb ", and binary format is described as follows:
Wherein, Group indicates the grouping in rigid body, and all objects in each group are in the same material, for example, broken
The material of outer surface and interior surface is not identical in broken effect.Triangle indicates each group by a large amount of gore groups
At gore is the basic element for constituting a mesh.Point indicates the position on each vertex of triangle, each
Gore has 3 vertex, indicates x, y, the spatial position z using 3 floating point values.Normal indicates each vertex of triangle
There is a normal on normal, each vertex.This space vector is indicated using 3 floating point values.Light is according to the normal on this vertex
Direction calculates the bright-dark degree on vertex.UV indicates the UV texture coordinate on each vertex of triangle, using 2 floating point values come table
Show this coordinate, for obtaining specific pixel color in planar grains image, is used for final rendering.
The XML tag of rigid body crushing effect is described as follows:
(4) fluid effect
Fluid data file extent is entitled " flb ", and binary format is described as follows:
Wherein, VertexNum indicates vertex quantity all in current fluid, is indicated using an integer value.FaceNum
It indicates all gore quantity in current fluid, is indicated using an integer value.Position_n is indicated in current fluid
The position on all vertex, each position use 3 floating point values representation space positions, x, y and z.Normal_n indicates current stream
Normal in body on each vertex, each normal are indicated using 3 floating point values.UV_n indicates each top in current fluid
Texture coordinate on point, each coordinate are indicated using 2 floating point values.Index_n indicates to constitute current fluid grid all three
The index data of angled face, each gore are made of 3 indexes.
The XML tag of fluid effect is described as follows:
Step S103 successively combines the sequence of picture frame each in current data file temporally axis and obtains data file
Collection.
It successively combines the sequence of each picture frame in the current data file generated according to the above method temporally axis and obtains
Final data file collection includes special effects data collection in data file collection.
To the special effects data in video source, temporally axis sequence carries out processing life to scheme disclosed by the embodiments of the present invention frame by frame
It include various special effects datas in current data file, then by current data file, temporally axis is suitable at current data file
Sequence is combined to obtain final data file collection, describes each details in video source using data, then will be after description
It may include various video display in current data file on the one hand when describing details that details, which combines and constitutes an entirety,
Special efficacy, such as the temperature data of pyrotechnics explosion, the reflection of water surface, replace intensity, displacement direction of body surface etc. is another
Aspect describes details frame by frame, is also convenient for team collaboration and the division of labor.
Optionally embodiment can also include: after step s 103 parsing data file collection to obtain in the time
The current data file of each picture frame on axis;According to the special efficacy number on current data file recovery time axis in each picture frame
According to collection, to carry out data render to each picture frame.
The present embodiment also discloses a kind of special effects data processing unit, referring to FIG. 2, being the special effects data processing unit knot
Structure schematic diagram, the special effects data processing unit include:
Data acquisition module 201, the data information of each picture frame on acquisition time axis, data information includes each
Used special effects data collection in picture frame;Data extraction module 202 will be counted for extracting the data information of current image frame
It is believed that breath generates current data file by preset rules, current data file is the data text stored with plain text format
Part;File combination module 203 is counted for successively combining the sequence of picture frame each in current data file temporally axis
According to file set.
As optional embodiment, data extraction module includes: special effects data unit, for analyzing the number of current image frame
It is believed that breath is to obtain the special effects data collection in current image frame;Special efficacy element units, for parsing special effects data collection to obtain spy
Element information is imitated, special efficacy element information is the element information for each element that special effects data is concentrated;File generating unit is used for root
Current data file is generated by preset rules according to special efficacy element information.
Optionally embodiment, further includes: data resolution module, for parsing data file collection to obtain in time shaft
The current data file of upper each picture frame;Rendering module is restored, for according to each on current data file recovery time axis
Special effects data collection in picture frame, to carry out data render to each picture frame.
Optionally embodiment, special effects data collection include particle effect data, volume effect data, rigid body crushing effect
One of data and fluid grid effect data or any combination.
In addition, also providing a kind of computer installation in the embodiment of the present invention, processor, which passes through, executes the computer instruction,
To realize following methods:
The data information of each picture frame on acquisition time axis, data information include used special efficacy in each picture frame
Data set;Data information is generated current data file, current data by preset rules by the data information for extracting current image frame
File is the data file stored with plain text format;By the sequence of picture frame each in current data file temporally axis
Successively combination obtains data file collection.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (ROM) or random access memory (RAM) etc..Computer processor is situated between for executing storage
The computer program stored in matter realizes following methods:
The data information of each picture frame on acquisition time axis, data information include used special efficacy in each picture frame
Data set;Data information is generated current data file, current data by preset rules by the data information for extracting current image frame
File is the data file stored with plain text format;By the sequence of picture frame each in current data file temporally axis
Successively combination obtains data file collection.
What has been described above is only an embodiment of the present invention, and the common sense such as well known specific structure and characteristic are not made herein in scheme
Excessive description.It, without departing from the structure of the invention, can be with it should be pointed out that for those skilled in the art
Make several modifications and improvements.These also should be considered as protection scope of the present invention, these all will not influence what the present invention was implemented
Effect and patent practicability.The scope of protection required by this application should be based on the content of the claims, in specification
The records such as specific embodiment can be used for explaining the content of claim.
Claims (10)
1. a kind of special effects data processing method characterized by comprising
The data information of each picture frame on acquisition time axis, the data information include used special efficacy in each picture frame
Data set;
The data information is generated current data file by preset rules by the data information for extracting current image frame, described to work as
Preceding data file is the data file stored with plain text format;
It successively combines the current data file by the sequence of each picture frame on the time shaft and obtains data file collection.
2. special effects data processing method as described in claim 1, which is characterized in that the data letter for extracting current image frame
Breath, the data information, which is generated current data file by preset rules, includes:
The data information of the current image frame is analyzed to obtain the special effects data collection in the current image frame;
The special effects data collection is parsed to obtain special efficacy element information, the special efficacy element information is each of special effects data concentration
The element information of element;
Current data file is generated by preset rules according to the special efficacy element information.
3. special effects data processing method as claimed in claim 2, which is characterized in that press the current data file described
The sequence of each picture frame successively combines on the time shaft obtain data file collection after, further includes:
The data file collection is parsed to obtain the current data file of each picture frame on a timeline;
The special effects data collection on the time shaft in each picture frame is restored according to the current data file, to each image
Frame carries out data render.
4. special effects data processing method as claimed in any one of claims 1-3, which is characterized in that the special effects data Ji Bao
Include one of particle effect data, volume effect data, rigid body crushing effect data and fluid grid effect data or any
Combination.
5. a kind of special effects data processing unit characterized by comprising
Data acquisition module, the data information of each picture frame on acquisition time axis, the data information include each figure
As used special effects data collection in frame;
Data extraction module is worked as the data information by preset rules generation for extracting the data information of current image frame
Preceding data file, the current data file are the data file stored with plain text format;
File combination module, for successively combining the current data file by the sequence of each picture frame on the time shaft
Obtain data file collection.
6. special effects data processing unit as claimed in claim 5, which is characterized in that the data extraction module includes:
Special effects data unit, for analyzing the data information of the current image frame to obtain the special efficacy in the current image frame
Data set;
Special efficacy element units, for parsing the special effects data collection to obtain special efficacy element information, the special efficacy element information is
The element information for each element that special effects data is concentrated;
File generating unit, for generating current data file by preset rules according to the special efficacy element information.
7. special effects data processing unit as claimed in claim 6, which is characterized in that further include:
Data resolution module obtains the current data text of each picture frame on a timeline for parsing the data file collection
Part;
Rendering module is restored, for restoring the special efficacy number on the time shaft in each picture frame according to the current data file
According to collection, to carry out data render to each picture frame.
8. the special effects data processing unit as described in claim 5-7 any one, which is characterized in that the special effects data Ji Bao
Include one of particle effect data, volume effect data, rigid body crushing effect data and fluid grid effect data or any
Combination.
9. a kind of computer installation, which is characterized in that including processor, the processor is based on executing and storing in memory
Calculation machine program realizes the special effects data processing method such as claim 1-4 any one.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that processor is for executing
The computer program stored in storage medium realizes the special effects data processing method as described in claim 1-4 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811450372.9A CN109660784A (en) | 2018-11-30 | 2018-11-30 | Special effects data treating method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811450372.9A CN109660784A (en) | 2018-11-30 | 2018-11-30 | Special effects data treating method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109660784A true CN109660784A (en) | 2019-04-19 |
Family
ID=66111163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811450372.9A Pending CN109660784A (en) | 2018-11-30 | 2018-11-30 | Special effects data treating method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109660784A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030110450A1 (en) * | 2001-12-12 | 2003-06-12 | Ryutaro Sakai | Method for expressing emotion in a text message |
CN102065234A (en) * | 2009-11-12 | 2011-05-18 | 新奥特(北京)视频技术有限公司 | Caption producing and broadcasting method and system based on distributive type caption processing system |
CN104394324A (en) * | 2014-12-09 | 2015-03-04 | 成都理想境界科技有限公司 | Special-effect video generation method and device |
CN104394313A (en) * | 2014-10-27 | 2015-03-04 | 成都理想境界科技有限公司 | Special effect video generating method and device |
CN106385591A (en) * | 2016-10-17 | 2017-02-08 | 腾讯科技(上海)有限公司 | Video processing method and video processing device |
-
2018
- 2018-11-30 CN CN201811450372.9A patent/CN109660784A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030110450A1 (en) * | 2001-12-12 | 2003-06-12 | Ryutaro Sakai | Method for expressing emotion in a text message |
CN102065234A (en) * | 2009-11-12 | 2011-05-18 | 新奥特(北京)视频技术有限公司 | Caption producing and broadcasting method and system based on distributive type caption processing system |
CN104394313A (en) * | 2014-10-27 | 2015-03-04 | 成都理想境界科技有限公司 | Special effect video generating method and device |
CN104394324A (en) * | 2014-12-09 | 2015-03-04 | 成都理想境界科技有限公司 | Special-effect video generation method and device |
CN106385591A (en) * | 2016-10-17 | 2017-02-08 | 腾讯科技(上海)有限公司 | Video processing method and video processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101777175A (en) | Seam-based reduction and expansion of images with color-weighted priority | |
Hollowood et al. | S-matrices and quantum group symmetry of k-deformed sigma models | |
CN105488776B (en) | Super-resolution image reconstruction method and device | |
CN104751507B (en) | Graphical content rendering intent and device | |
Argudo et al. | Single-picture reconstruction and rendering of trees for plausible vegetation synthesis | |
Bao et al. | Visual framework for big data in d3. js | |
CN110266970A (en) | A kind of short video creating method and system | |
WO2018226349A1 (en) | Vector graphics handling processes for user applications | |
CN108604389A (en) | continuous depth ordering image synthesis | |
Yamaoka et al. | Visualization of high-resolution image collections on large tiled display walls | |
US9704290B2 (en) | Deep image identifiers | |
CN110389981A (en) | Data display method, device, electronic equipment and computer readable storage medium | |
CN109660784A (en) | Special effects data treating method and apparatus | |
Feng et al. | On the local and global minimizers of gradient regularized model with box constraints for image restoration | |
CN101551914B (en) | Method for realizing two-dimensional pattern special effect and corresponding device | |
Liu et al. | The configuration and failed eruption of a complex magnetic flux rope above a δ sunspot region | |
CN114782460B (en) | Image segmentation model generation method, image segmentation method and computer equipment | |
CN109598774B (en) | Special effect data rendering method and device | |
Müller et al. | Visual appearance of wireframe objects in special relativity | |
US9547937B2 (en) | Three-dimensional annotation system and method | |
Poncelet | Schramm’s formula for multiple loop-erased random walks | |
CN114791986A (en) | Three-dimensional information model processing method and device | |
CN113658064A (en) | Texture image generation method and device and electronic equipment | |
Zhao et al. | Stripe sensitive convolution for omnidirectional image dehazing | |
Müller | Image-based general-relativistic visualization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190419 |