CN106293565A - A kind of analog information method and device based on particle motioning models - Google Patents
A kind of analog information method and device based on particle motioning models Download PDFInfo
- Publication number
- CN106293565A CN106293565A CN201510303928.1A CN201510303928A CN106293565A CN 106293565 A CN106293565 A CN 106293565A CN 201510303928 A CN201510303928 A CN 201510303928A CN 106293565 A CN106293565 A CN 106293565A
- Authority
- CN
- China
- Prior art keywords
- particle
- data
- feature
- module
- display
- 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.)
- Granted
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to analog information field, particularly relate to a kind of analog information method and device based on particle motioning models.By configuring a file combined by the texture information of motion model and the data of Particles Moving feature, and obtain Particles Moving feature by the corresponding configuration template of operational order acquisition, data further according to described Particles Moving feature are calculated on display unit the data of the particle display feature shown, realize flexible configuration motor process in the way of configuration file, it is achieved motion specially good effect.By creating one for depositing the configuration queue of texture information, when obtaining configuration template by configure queue can quick obtaining configuration template.By judging whether described particle exceeds the indication range of display unit, and the particle transfer of indication range will be exceeded to memory element, it is achieved particle reclaims, it is to avoid system resource waste, it addition, particle is carried out recovery can be easy to recycling.
Description
Technical field
The present invention relates to analog information field, particularly relate to a kind of analog information side based on particle motioning models
Method and device.
Background technology
Rainwater in weather environment drips and descends slowly and lightly with snowflake is a Gravity process, and rainwater drips to descend slowly and lightly with snowflake and is all
The motion carried out under terrestrial gravitation, during modeling, the complexity of the characteristics of motion of particle depends on mould
The complexity of the physical model intended.For each particle of constructed entity, it should have with subordinate
Property: first is grid bearing, because particle is constantly conversion in the displaying process of scene space, its coordinate
Change over time with orientation, and obtain its grid bearing according to the equation of motion;Second is speed, motion
Particle there is speed, particle can be set possess different speed according to system requirements, the main shadow of speed
Ring the coordinate at particle lower a moment;3rd is acceleration, and particle sometimes needs to do about adding in motor process
The motion of speed, such as one bullet launched, needing, acceleration is set and could reflect more realistically really
Situation;4th attribute be particle in the drawing process of scene, there is life, if snowflake is in the mistake descended slowly and lightly
Cheng Zhong, maintains existence always, will be eliminated by system when subaerial time.
Use particIe system to build rainwater and drip the effect descended slowly and lightly with snowflake, except above-mentioned being correlated with about particle
Outside attribute, further comprises the attribute of some static state, be the shape dripped of rainwater respectively, rectangle and circle can be selected
Shape;And the shape of snowflake is chosen as circle.The most real manifestation mode can certainly be used, use three
The three-dimensional tetrahedron of dimension replaces rectangle, and spheroid replaces circle;The size that rainwater drips is the same, and snowflake
Size be divided into large, medium and small three kinds;Rainwater drips also to be needed to arrange with transparency with snowflake color in the scene.
Rainwater drips and has corresponding attribute character in drawing process with snowflake particle, comprises movement properties and paints
Attribute processed.Wherein movement properties is mainly the movement velocity of particle, acceleration, vital stage etc., rendering attribute
Comprise the size of particle, textural characteristics, transparency etc..The most also comprise a large amount of population movement effects,
Mainly colony how to move, the Density Distribution of colony.Rainwater and snowflake particle are according to the kinetics side set
Journey is changed, and it produces and a stochastic process can be used to control, it is achieved the motion feature of colony, arranges
Number of particles in certain time period entrance scene rendering directly arrives the population density distribution of simulated object.
Have at present particle under multiple analog natural environment to descend slowly and lightly the mathematical model of motion, their emphasis deflection
In simulating the real movement of falling object, and the effect that particle active force is produced by air.Above-mentioned mathematical modulo
Type needs particle is modeled and provides emulation data, and the model computation complexity simultaneously designed is very big, mould
The scope of application to particle of type is too small, and is not easy extension.
Summary of the invention
The technical problem to be solved is: provide a kind of analog information side based on particle motioning models
Method and device, flexible configuration motor process in the way of configuration file, it is achieved motion specially good effect.
In order to solve above-mentioned technical problem, the technical solution used in the present invention is:
A kind of analog information method based on particle motioning models, including:
Presetting a configuration file, described configuration file includes more than one configuration template, described configuration template
Texture information and the data of Particles Moving feature including motion model;Preset a memory element and display unit;
Described memory element is used for depositing not shown particle;Described display unit is used for showing particle;
Create a configuration queue, the texture information in all configuration templates is loaded onto described configuration queue;
Receive and parse through operational order, extract texture information according to described operational order from configuration queue;
From configuration file, obtain the configuration template of correspondence according to described texture information, described configuration template obtain
Data to Particles Moving feature;
Extract predetermined number particle from described memory element, calculate according to the data of described Particles Moving feature
Data to particle display feature;
Data according to described particle display feature show on the display unit.
A kind of analog display unit based on particle motioning models, including the first presetting module, creation module,
Parsing module, acquisition module, computing module and display module;
Described first presetting module, is used for presetting a configuration file, and described configuration file includes more than one
Configuration template, described configuration template includes texture information and the data of Particles Moving feature of motion model;In advance
If a memory element and display unit;Described memory element is used for depositing not shown particle;Described display is single
Unit is used for showing particle;
Described creation module, for creating a configuration queue, loads the texture information in all configuration templates
To described configuration queue;
Described parsing module, is used for receiving and parsing through operational order, according to described operational order from configuration queue
Extract texture information;
Described acquisition module, for obtaining the configuration template of correspondence from configuration file according to described texture information,
The data of Particles Moving feature are obtained by described configuration template;
Described computing module, for extracting predetermined number particle from described memory element, transports according to described particle
The data of dynamic feature are calculated the data of particle display feature;
Described display module, for showing on the display unit according to the data of described particle display feature.
The beneficial effects of the present invention is: by configuring one by the texture information of motion model and Particles Moving
The file that the data of feature combine, and obtain particle fortune by the corresponding configuration template of operational order acquisition
Dynamic feature, is calculated, further according to the data of described Particles Moving feature, particle show for display unit aobvious
Show the data of feature, it is achieved flexible configuration motor process in the way of configuration file, it is achieved motion specially good effect.
By creating a configuration queue being used for depositing texture information, when obtaining configuration template by configuring team
Row can quick obtaining configuration template.Subsequently through judging whether described particle exceeds the indication range of display unit,
And the particle transfer of indication range will be exceeded to memory element, it is achieved particle reclaims, it is to avoid system resource waste,
It addition, particle is carried out recovery can be easy to recycling.
Accompanying drawing explanation
Fig. 1 is the step of a kind of based on particle motioning models the analog information method of the specific embodiment of the invention
Rapid flow chart;
Fig. 2 is the knot of a kind of based on particle motioning models the analog display unit of the specific embodiment of the invention
Structure schematic diagram;
Label declaration:
10, the first presetting module;20, creation module;30, parsing module;40, acquisition module;
50, computing module;60, display module.
Detailed description of the invention
By describing the technology contents of the present invention in detail, being realized purpose and effect, below in conjunction with embodiment also
Accompanying drawing is coordinated to be explained.
The design of most critical of the present invention is: transport by texture information and the particle of motion model by configuring one
The file that the data of dynamic feature combine, flexible configuration motor process in the way of configuration file, it is achieved fortune
Dynamic specially good effect.
Refer to Fig. 1, a kind of based on particle motioning models the analog information method that the present invention provides, including:
Presetting a configuration file, described configuration file includes more than one configuration template, described configuration template
Texture information and the data of Particles Moving feature including motion model;Preset a memory element and display unit;
Described memory element is used for depositing not shown particle;Described display unit is used for showing particle;
Create a configuration queue, the texture information in all configuration templates is loaded onto described configuration queue;
Receive and parse through operational order, extract texture information according to described operational order from configuration queue;
From configuration file, obtain the configuration template of correspondence according to described texture information, described configuration template obtain
Data to Particles Moving feature;
Extract predetermined number particle from described memory element, calculate according to the data of described Particles Moving feature
Data to particle display feature;
Data according to described particle display feature show on the display unit.
Knowable to foregoing description, the beneficial effects of the present invention is: by configuring one by the stricture of vagina of motion model
The file that the data of reason information and Particles Moving feature combine, and joined by operational order acquisition correspondence
Putting template and obtain Particles Moving feature, the data further according to described Particles Moving feature are calculated for showing
The data of the particle display feature that unit shows, it is achieved flexible configuration motor process in the way of configuration file,
Realize motion specially good effect.
By creating a configuration queue being used for depositing texture information, when obtaining configuration template by configuring team
Row can quick obtaining configuration template.Subsequently through judging whether described particle exceeds the indication range of display unit,
And the particle transfer of indication range will be exceeded to memory element, it is achieved particle reclaims, it is to avoid system resource waste,
It addition, particle is carried out recovery can be easy to recycling.
Wherein it is desired to explanation: particIe system is general in order to realize certain specially good effect, by the most objects
Render the effect of formation together, the independent object that (general 3D engine have carry) is to be rendered
(can be texture) be exactly particle.
Further, described motion feature includes forming by a threshold values and float value center of rotation, initial
The anglec of rotation, angular velocity of rotation, original position, initial velocity, acceleration, arc length and periodic coefficient.
Further, described " according to described particle display feature data show on the display unit " it
After also include: judge that described particle is whether beyond the indication range of display unit;If so, described particle is turned
Move to memory element.
Seen from the above description, by judging whether described particle exceeds the indication range of display unit, and will
Exceed the particle transfer of indication range to memory element, it is achieved particle reclaims, it is to avoid system resource waste, separately
Outward, particle is carried out recovery and can be easy to recycling.
Further, described " judging that described particle is whether beyond the indication range of display unit " particularly as follows:
Set up two dimension or three-dimensional system of coordinate, preset the coordinate range that the indication range of display unit is corresponding;
Judge that whether the coordinate of described particle is beyond described coordinate range.
Seen from the above description, by judging whether described particle coordinate exceeds the seat that described indication range is corresponding
Mark scope, is appreciated that whether particle has moved to outside indication range, when outside particle is in indication range,
The motion feature of particle will not be shown, can make the consume that system resource is unnecessary.
Further, " judging whether described particle exceeds the indication range of display unit;If so, by institute
State particle transfer to memory element " also include after step:
Extract predetermined number particle from described memory element, delete the data of the particle display feature of described particle.
Seen from the above description, this is the particle extracted more than memory element second time or second time, this
Having plenty of in a little particles and used, be the particle after being rendered, therefore these particles carry previous
Secondary loaded data, when again extracting use, need to delete the particle display feature of described particle
Data, it is simple to particle secondary use.
Further, described memory element includes unused elements and has used unit;Described unused elements,
For depositing original particle;Described use unit, be used for depositing the most used particle;
" from described memory element extract predetermined number particle " particularly as follows:
Judging whether described unused elements has particle, if having, then extracting present count from described unused elements
Amount particle.
Seen from the above description, it is divided into unused elements and has used unit by memory element is carried out,
Original particle is left in unused elements, the most used particle is left in and uses unit
In, when needs carry out second extraction particle, the particle in advantage distillation unused elements, because leaving in
Particle in unused elements is the particle not loading any data, is empty particle, is loaded directly into during use
Data, it is not necessary to carry out delete step, can improve system processing speed.Only when in unused elements without grain
In the case of son, just from using extraction particle unit, but just can use after needing to carry out delete step.
If unused elements and used all without particle in unit, then in illustrating that the most all particles are all in using,
Now, after default refresh duration, repeat to judge, until there being particle to propose.
Further, " extract predetermined number particle from described memory element, special according to described Particles Moving
The data levied are calculated the data of particle display feature " also include after step:
Preset a triggered time and environmental effect variable;
Judge currently whether arrive the triggered time, if reaching the triggered time, at the number of described particle display feature
According to superposition environment variation, obtain the data of new particle display feature.
Seen from the above description, by presetting a triggered time, when reaching the triggered time, at described particle
The data investigation environmental effect variable of display feature, obtains the data of new particle display feature, it is possible to make
Particle shows more life-like.
Further, described float value includes that random parameter is measured with floating and combines, described random parameter
Span be 0 to 1.
Seen from the above description, float value is to be measured product gained by random parameter value and floating, will join at random
The span of number is set to 0 to 1, can realize motion contractive effect, the multi-motion of the most expansible particle
Form.
Referring to Fig. 2, a kind of based on particle motioning models the analog display unit that the present invention provides, including the
One presetting module 10, creation module 20, parsing module 30, acquisition module 40, computing module 50 and display
Module 60;
Described first presetting module 10, is used for presetting a configuration file, and described configuration file includes more than one
Configuration template, described configuration template includes texture information and the data of Particles Moving feature of motion model;
Preset a memory element and display unit;Described memory element is used for depositing not shown particle;Described display
Unit is used for showing particle;
Described creation module 20, for creating a configuration queue, adds the texture information in all configuration templates
It is loaded onto described configuration queue;
Described parsing module 30, is used for receiving and parsing through operational order, according to described operational order from configuration team
Row extract texture information;
Described acquisition module 40, for obtaining the configuration mould of correspondence from configuration file according to described texture information
Plate, is obtained the data of Particles Moving feature by described configuration template;
Described computing module 50, for extracting predetermined number particle from described memory element, according to described particle
The data of motion feature are calculated the data of particle display feature;
Described display module 60, for showing on the display unit according to the data of described particle display feature.
Knowable to foregoing description, the beneficial effects of the present invention is: by configuring one by the stricture of vagina of motion model
The file that the data of reason information and Particles Moving feature combine, and joined by operational order acquisition correspondence
Putting template and obtain Particles Moving feature, the data further according to described Particles Moving feature are calculated for showing
The data of the particle display feature that unit shows, it is achieved flexible configuration motor process in the way of configuration file,
Realize motion specially good effect.
By creating a configuration queue being used for depositing texture information, when obtaining configuration template by configuring team
Row can quick obtaining configuration template.Subsequently through judging whether described particle exceeds the indication range of display unit,
And the particle transfer of indication range will be exceeded to memory element, it is achieved particle reclaims, it is to avoid system resource waste,
It addition, particle is carried out recovery can be easy to recycling.
Further, this device also includes removing module, for extracting predetermined number grain from described memory element
Son, deletes the data of the particle display feature of described particle.
Seen from the above description, this is the particle extracted more than memory element second time or second time, this
Having plenty of in a little particles and used, be the particle after being rendered, therefore these particles carry previous
Secondary loaded data, when again extracting use, need to delete the particle display feature of described particle
Data, it is simple to particle secondary use.
Further, this device also includes the first judge module and shift module;
Described first judge module, for judging whether described particle exceeds the indication range of display unit;
Described shift module, for when described particle is beyond the indication range of display unit, by described particle
It is transferred to memory element.
Seen from the above description, by judging whether described particle exceeds the indication range of display unit, and will
Exceed the particle transfer of indication range to memory element, it is achieved particle reclaims, it is to avoid system resource waste, separately
Outward, particle is carried out recovery and can be easy to recycling.
Further, this device also includes the second presetting module, the second judge module and laminating module;
Described second presetting module, is used for presetting a triggered time and environmental effect variable;
Described second judge module, is used for judging currently whether arrive the triggered time;
Described laminating module, if for currently arriving the triggered time, at the stacked data of described particle display feature
Add environmental effect variable, obtain the data of new particle display feature.
Seen from the above description, by presetting a triggered time, when reaching the triggered time, at described particle
The data investigation environmental effect variable of display feature, obtains the data of new particle display feature, it is possible to make
Particle shows more life-like.
The embodiment of the present invention one: colored specially good effect of wafing
Initiating hardware environment and OPENGL display environment;Every 30ms updates a frame;
Presetting a configuration file, described configuration file includes more than one configuration template, described configuration template
Texture information and the data of Particles Moving feature including motion model;One configuration template correspondence one motion
Model, embodiment one provides the colored motion model that wafts, and texture information is title (waft flower), shape or face
The texture informations such as color, the data of Particles Moving feature are the kinematic feature factors corresponding to colored motion model that wafts.
The described kinematic feature factor waftd corresponding to colored motion model includes being formed by a threshold values and float value
Center of rotation, initial rotation angle, angular velocity of rotation, original position, initial velocity, acceleration, arc length and week
Phase coefficient;Wherein, described float value includes that random parameter is measured with floating and combines, described random parameter
Span be 0 to 1.Such as, the angular velocity of rotation in embodiment 1, the value of-20+40*a, a is
(0~1), threshold values is-20, and float value is (0~40), and the formula of float value is: 40*a, random parameter a
Value is (0~1), and it is 40 that floating is measured, and now a value is 0.5.
As a example by center of rotation, center of rotation value is the random of threshold values (the Base)+center of rotation of center of rotation
(width) is measured in the floating of parameter (rand) * center of rotation.
Described colored kinematic feature factor such as table 1 below of wafing:
Table 1
Preset a memory element and display unit;Described memory element is used for depositing not shown particle;Described
Display unit is used for showing particle;Memory element can be arranged by hard disk, and display unit can pass through buffer setting.
Set up two dimension or three-dimensional system of coordinate, preset the coordinate range that the indication range of display unit is corresponding.Such as: aobvious
Show rectangular area { left=0, top=0, right=1280, bottom=720}.
Described memory element includes unused elements and has used unit;Described unused elements, is used for depositing
Original particle;Described use unit, be used for depositing the most used particle.
Preset a triggered time and environmental effect variable.
Create a configuration queue, the texture information in all configuration templates is loaded onto described configuration queue;This
In the texture information in configuration templates all in configuration file is loaded onto configuration queue, be to pass through data pointer
Mode, when data pointer points to configure the texture information of certain configuration template in queue, be loaded with indication
Configuration template.Such as configuration queue is: bubble, waft flower, fallen leaves etc., and embodiment one is data pointer
Pointing to the flower that wafts, computer can learn it is to show the flower that wafts, and transmission is extracted to waft and spent the operational order of correspondence.
Receive and parse through operational order, extract texture information according to described operational order from configuration queue;Here
Texture information be the flower that wafts.
From configuration file, the corresponding colored configuration template that wafts is obtained, by described according to the described colored texture information that wafts
Configuration template obtains the data of the Particles Moving feature wafing colored;
First judge whether described unused elements has particle, if having, then extract from described unused elements and preset
Quantity particle;If no, then from using unit to extract predetermined number particle, delete the particle of described particle
The data of display feature.
Data according to the Particles Moving feature wafing colored are calculated the data of the particle display feature of correspondence;
Judge currently whether arrive the triggered time, if reaching the triggered time, at the number of described particle display feature
According to superposition environment variation, obtain the data of new particle display feature.
Wherein it is desired to explanation: environmental effect variable refers to the variable of simulated environment influence factor, environment shadow
The factor of sound can be wind, and in this embodiment 1, the value of this variable can be (3~6);Concrete stacking method is:
Assuming that original center of rotation is 5, if the value of environmental impact factor is 3, the value of the newest center of rotation is:
5+3。
Data according to described particle display feature show on the display unit;
Judge whether the coordinate of described particle exceeds the coordinate range of described display unit;
If so, by the unit of use of described particle transfer to memory element.If needing secondary and repeatedly
Extract particle, be also first to judge whether described unused elements has particle.
Concrete example is: the simple motor process feature of colored specially good effect of wafing on two dimensional surface: the colored particle that wafts is with texture
Random areas own is center of rotation, is uniform speed rotation respectively in three directions of x, y, z, meanwhile,
(x) moves with uniform velocity respectively and along SIN function image motion, does in vertical direction (y) in the horizontal direction
Initial velocity is the uniformly accelrated rectilinear motion of 0.
Such as according in the display rectangular area { display of left=0, top=0, right=1280, bottom=720}
Region;
The alternative of texture information has 6 kinds, is respectively as follows: red0.png;red1.png;red2.png...
By the way of data pointer, any one chosen in above-mentioned alternative shows.
The embodiment of the present invention two: bubble rises
Identical with the embodiment of embodiment one, the wherein kinematic feature factor of bubble such as table 2.
Table 2
In sum, a kind of based on particle motioning models the analog information method and device that the present invention provides,
By configuring a file combined by the texture information of motion model and the data of Particles Moving feature,
And obtain Particles Moving feature, further according to described Particles Moving by the corresponding configuration template of operational order acquisition
The data of feature are calculated the data of the particle display feature shown for display unit, it is achieved to configure literary composition
The mode flexible configuration motor process of part, it is achieved motion specially good effect.
By creating a configuration queue being used for depositing texture information, when obtaining configuration template by configuring team
Row can quick obtaining configuration template.Subsequently through judging whether described particle exceeds the indication range of display unit,
And the particle transfer of indication range will be exceeded to memory element, it is achieved particle reclaims, it is to avoid system resource waste,
It addition, particle is carried out recovery can be easy to recycling.
By judging whether described particle coordinate exceeds the coordinate range that described indication range is corresponding, it is appreciated that
Whether particle has moved to outside indication range, when outside particle is in indication range, and the motion feature of particle
Will not be shown, the consume that system resource is unnecessary can be made.By carrying out being divided into not by memory element
Use unit and used unit, original particle being left in unused elements, will use
Particle leave in and use in unit, when needs carry out second extraction particle, advantage distillation does not uses list
Particle in unit, because the particle left in unused elements is the particle not loading any data, is
Empty particle, is loaded directly into data during use, it is not necessary to carry out delete step, can improve system processing speed.
Only when in unused elements without particle in the case of, just from using extraction particle unit, but need into
Just can use after row delete step.
By presetting a triggered time, when reaching the triggered time, at the stacked data of described particle display feature
Add environmental effect variable, obtain the data of new particle display feature, it is possible to particle is shown more life-like.
The foregoing is only embodiments of the invention, not thereby limit the scope of the claims of the present invention, every profit
The equivalents made by description of the invention and accompanying drawing content, or directly or indirectly it is used in relevant technology
Field, is the most in like manner included in the scope of patent protection of the present invention.
Claims (13)
1. an analog information method based on particle motioning models, it is characterised in that including:
Presetting a configuration file, described configuration file includes more than one configuration template, described configuration template
Texture information and the data of Particles Moving feature including motion model;Preset a memory element and display unit;
Described memory element is used for depositing not shown particle;Described display unit is used for showing particle;
Create a configuration queue, the texture information in all configuration templates is loaded onto described configuration queue;
Receive and parse through operational order, extract texture information according to described operational order from configuration queue;
From configuration file, obtain the configuration template of correspondence according to described texture information, described configuration template obtain
Data to Particles Moving feature;
Extract predetermined number particle from described memory element, calculate according to the data of described Particles Moving feature
Data to particle display feature;
Data according to described particle display feature show on the display unit.
Analog information method based on particle motioning models the most according to claim 1, it is characterised in that
Described motion feature includes by a threshold values and the center of rotation of float value composition, initial rotation angle, the anglec of rotation
Speed, original position, initial velocity, acceleration, arc length and periodic coefficient.
Analog information method based on particle motioning models the most according to claim 1, it is characterised in that
Also include after described " showing on the display unit according to the data of described particle display feature ": judge
Whether described particle exceeds the indication range of display unit;If so, by described particle transfer to memory element.
Analog information method based on particle motioning models the most according to claim 3, it is characterised in that
Described " judging that described particle is whether beyond the indication range of display unit " particularly as follows:
Set up two dimension or three-dimensional system of coordinate, preset the coordinate range that the indication range of display unit is corresponding;
Judge that whether the coordinate of described particle is beyond described coordinate range.
Analog information method based on particle motioning models the most according to claim 1, it is characterised in that
Also include after " if so, by described particle transfer to memory element " step:
Extract predetermined number particle from described memory element, delete the data of the particle display feature of described particle.
Analog information method based on particle motioning models the most according to claim 1, it is characterised in that
Described memory element includes unused elements and has used unit;Described unused elements, is used for depositing and does not makes
Used particle;Described use unit, be used for depositing the most used particle.
Analog information method based on particle motioning models the most according to claim 6, it is characterised in that
" from described memory element extract predetermined number particle " particularly as follows:
Judging whether described unused elements has particle, if having, then extracting present count from described unused elements
Amount particle.
Analog information method based on particle motioning models the most according to claim 1, it is characterised in that
" extracting predetermined number particle from described memory element, calculating according to the data of described Particles Moving feature
Data to particle display feature " also include after step:
Preset a triggered time and environmental effect variable;
Judge currently whether arrive the triggered time, if reaching the triggered time, at the number of described particle display feature
According to superposition environment variation, obtain the data of new particle display feature.
Analog information method based on particle motioning models the most according to claim 1, it is characterised in that
Described float value includes that random parameter is measured with floating and combines, and the span of described random parameter is 0
To 1.
10. an analog display unit based on particle motioning models, it is characterised in that include that first presets
Module, creation module, parsing module, acquisition module, computing module and display module;
Described first presetting module, is used for presetting a configuration file, and described configuration file includes more than one
Configuration template, described configuration template includes texture information and the data of Particles Moving feature of motion model;In advance
If a memory element and display unit;Described memory element is used for depositing not shown particle;Described display is single
Unit is used for showing particle;
Described creation module, for creating a configuration queue, loads the texture information in all configuration templates
To described configuration queue;
Described parsing module, is used for receiving and parsing through operational order, according to described operational order from configuration queue
Extract texture information;
Described acquisition module, for obtaining the configuration template of correspondence from configuration file according to described texture information,
The data of Particles Moving feature are obtained by described configuration template;
Described computing module, for extracting predetermined number particle from described memory element, transports according to described particle
The data of dynamic feature are calculated the data of particle display feature;
Described display module, for showing on the display unit according to the data of described particle display feature.
11. a kind of analog display units based on particle motioning models according to claim 10, it is special
Levy and be, also include removing module, for extracting predetermined number particle from described memory element, delete described
The data of the particle display feature of particle.
12. a kind of analog display units based on particle motioning models according to claim 10, it is special
Levy and be, also include the first judge module and shift module;
Described first judge module, for judging whether described particle exceeds the indication range of display unit;
Described shift module, for when described particle is beyond the indication range of display unit, by described particle
It is transferred to memory element.
13. a kind of analog display units based on particle motioning models according to claim 10, it is special
Levy and be, also include the second presetting module, the second judge module and laminating module;
Described second presetting module, is used for presetting a triggered time and creating environmental effect variable;
Described second judge module, is used for judging currently whether arrive the triggered time;
Described laminating module, if for currently arriving the triggered time, at the stacked data of described particle display feature
Add environmental effect variable, obtain the data of new particle display feature.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510303928.1A CN106293565B (en) | 2015-06-05 | 2015-06-05 | A kind of simulative display method and device based on particle motioning models |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510303928.1A CN106293565B (en) | 2015-06-05 | 2015-06-05 | A kind of simulative display method and device based on particle motioning models |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106293565A true CN106293565A (en) | 2017-01-04 |
CN106293565B CN106293565B (en) | 2019-02-12 |
Family
ID=57659097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510303928.1A Active CN106293565B (en) | 2015-06-05 | 2015-06-05 | A kind of simulative display method and device based on particle motioning models |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106293565B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112233214A (en) * | 2020-10-15 | 2021-01-15 | 洛阳众智软件科技股份有限公司 | Snow scene rendering method, device, equipment and storage medium for large scene |
CN112270732A (en) * | 2020-11-17 | 2021-01-26 | Oppo广东移动通信有限公司 | Particle animation generation method, processing device, electronic device, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011243229A (en) * | 2011-09-05 | 2011-12-01 | Nippon Telegr & Teleph Corp <Ntt> | Object tracking device and object tracking method |
CN103440163A (en) * | 2013-09-09 | 2013-12-11 | 中国科学院近代物理研究所 | PIC (Peripheral Interface Controller)-model-based accelerator simulation method implemented by using GPU (Graphic Processing Unit) in parallel |
CN103455323A (en) * | 2013-07-05 | 2013-12-18 | 新奥特(北京)视频技术有限公司 | Implementation method and device of particle effects |
US20140244304A1 (en) * | 2013-02-28 | 2014-08-28 | Lawrence A. Lynn | System and Method for Generating Quaternary Images of Biologic Force Propagation and Recovery |
CN104571993A (en) * | 2014-12-30 | 2015-04-29 | 北京像素软件科技股份有限公司 | Processing method of particle system, display card and mobile application platform |
-
2015
- 2015-06-05 CN CN201510303928.1A patent/CN106293565B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011243229A (en) * | 2011-09-05 | 2011-12-01 | Nippon Telegr & Teleph Corp <Ntt> | Object tracking device and object tracking method |
US20140244304A1 (en) * | 2013-02-28 | 2014-08-28 | Lawrence A. Lynn | System and Method for Generating Quaternary Images of Biologic Force Propagation and Recovery |
CN103455323A (en) * | 2013-07-05 | 2013-12-18 | 新奥特(北京)视频技术有限公司 | Implementation method and device of particle effects |
CN103440163A (en) * | 2013-09-09 | 2013-12-11 | 中国科学院近代物理研究所 | PIC (Peripheral Interface Controller)-model-based accelerator simulation method implemented by using GPU (Graphic Processing Unit) in parallel |
CN104571993A (en) * | 2014-12-30 | 2015-04-29 | 北京像素软件科技股份有限公司 | Processing method of particle system, display card and mobile application platform |
Non-Patent Citations (1)
Title |
---|
刘芳,刘贤梅: "基于粒子系统和雾化的实时降雪模拟", 《微计算机应用》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112233214A (en) * | 2020-10-15 | 2021-01-15 | 洛阳众智软件科技股份有限公司 | Snow scene rendering method, device, equipment and storage medium for large scene |
CN112233214B (en) * | 2020-10-15 | 2023-11-28 | 洛阳众智软件科技股份有限公司 | Snow scene rendering method, device and equipment for large scene and storage medium |
CN112270732A (en) * | 2020-11-17 | 2021-01-26 | Oppo广东移动通信有限公司 | Particle animation generation method, processing device, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106293565B (en) | 2019-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8970592B1 (en) | Simulating an arbitrary number of particles | |
CN101925892B (en) | Photo-based virtual world creation system for non-professional volunteers | |
CN101706967B (en) | Comprehensive simulation method for realistic cloud layer | |
MIYAZAKI et al. | An origami playing simulator in the virtual space | |
CN106780707B (en) | The method and apparatus of global illumination in simulated scenario | |
CN103413343A (en) | 3D (Three-Dimensional) graphic animation engine | |
CN102831275A (en) | Method and system for simulating 3D fluid | |
CN103942369A (en) | Intelligent target occurrence method oriented at near space | |
CN110400366B (en) | Real-time flood disaster visualization simulation method based on OpenGL | |
CN106293565A (en) | A kind of analog information method and device based on particle motioning models | |
Fan et al. | An octree-based proxy for collision detection in large-scale particle systems | |
CN107748502A (en) | The passive spatial perception exchange method of entity in operation emulation based on discrete event | |
CN104463934A (en) | Automatic generation method for point set model animation driven by mass point-spring system | |
CN104299262B (en) | A kind of three-dimensional cloud analogy method based on velocity field streamline | |
CN113112594A (en) | Power transmission and transformation project three-dimensional model lightweight method and device based on electric power GIM | |
Im et al. | Visual simulation of rapidly freezing water based on crystallization | |
CN106875480B (en) | Method for organizing urban three-dimensional data | |
Hongpan et al. | Application research of PhysX engine in virtual environment | |
Merrell et al. | Constraint-based model synthesis | |
CN104574490A (en) | Large-scale cloud scene drawing method | |
CN104036547A (en) | Method and device for three-dimensional brush to generate network module in real time based on Leap Motion control | |
CN110119458A (en) | A kind of grid search method and device | |
CN106919727A (en) | A kind of big earth data simulation platform of three-dimensional based on virtual reality technology | |
CN104778862B (en) | The method and terminal of threedimensional model expansion | |
Fenghua et al. | Virtual 3D Campus Design and Implementation |
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 |