CN106293565B - A kind of simulative display method and device based on particle motioning models - Google Patents
A kind of simulative display method and device based on particle motioning models Download PDFInfo
- Publication number
- CN106293565B CN106293565B CN201510303928.1A CN201510303928A CN106293565B CN 106293565 B CN106293565 B CN 106293565B CN 201510303928 A CN201510303928 A CN 201510303928A CN 106293565 B CN106293565 B CN 106293565B
- Authority
- CN
- China
- Prior art keywords
- particle
- feature
- data
- module
- configuration
- 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)
Abstract
The present invention relates to simulative display field more particularly to a kind of simulative display method and devices based on particle motioning models.File made of being combined by the texture information of motion model and the data of Particles Moving feature by configuring one, and corresponding configuration template is obtained by operational order and obtains Particles Moving feature, the data of the particle display feature shown on display unit are calculated further according to the data of the Particles Moving feature, it realizes the flexible configuration motion process in a manner of configuration file, realizes movement special efficacy.It, can quick obtaining configuration template by configuring queue when obtaining configuration template by creation one for storing the configuration queue of texture information.By judging whether the particle exceeds the indication range of display unit, and by the particle transfer more than indication range to storage unit, realizes particle recycling, avoid system resource waste, in addition, recycling to particle can be convenient for recycling.
Description
Technical field
The present invention relates to simulative display field more particularly to a kind of simulative display methods and dress based on particle motioning models
It sets.
Background technique
It is a Gravity process that rainwater drop and snowflake in weather environment, which descend slowly and lightly, and it is all in the earth that rainwater drop and snowflake, which descend slowly and lightly,
The movement carried out under gravitation, the complexity of the characteristics of motion of particle depends on answering for the physical model of simulation during modeling
Miscellaneous degree.For each particle of constructed entity, it should have with properties: first is grid bearing, because of particle
It is constantly to convert in the displaying process of scene space, coordinate and orientation change over time, and are obtained according to the equation of motion
To its grid bearing;Second is speed, and the particle of movement has speed, particle can be arranged and have difference according to system requirements
Speed, speed mainly influences the coordinate at particle lower a moment;Third is acceleration, and particle sometimes needs to do during the motion
About the movement of acceleration, such as the bullet of a transmitting, true situation could more realistically be reflected by needing to be arranged acceleration;
4th attribute is particle in the drawing process of scene, and there is life to maintain deposit always if snowflake is during descending slowly and lightly
It will eliminated by system when subaerial when.
The effect that rainwater drop descends slowly and lightly with snowflake is constructed using particIe system, in addition to the above-mentioned association attributes about particle
Outside, the attribute for further comprising some static state is the shape of rainwater drop respectively, can choose rectangle and circle;And the shape of snowflake
It is selected as circle.More true manifestation mode can certainly be used, rectangle, ball are replaced using three-dimensional three-dimensional tetrahedron
Body replaces round;The size of rainwater drop is the same, and the size of snowflake is divided into large, medium and small three kinds;Rainwater drop and snowflake are on the scene
Color in scape also needs to be arranged with transparency.
Rainwater drop and snowflake particle have corresponding attributive character in drawing process, comprising movement properties and draw category
Property.Wherein movement properties are mainly movement velocity, acceleration, lifetime of particle etc., and rendering attribute includes the size of particle, line
Manage feature, transparency etc..In addition to this also include a large amount of population movement effects, mainly group how to move, group it is close
Degree distribution.Rainwater and snowflake particle are changed according to the kinetics equation of setting, and a random process can be used in generation
Control, realize the motion feature of group, be arranged in some period enter scene rendering number of particles directly reaches simulate pair
The population density of elephant is distributed.
Particle descends slowly and lightly the mathematical model of movement under existing multiple analog natural environment at present, their emphasis is partial to simulate
The effect that the true movement of falling object and air generate particle active force.Above-mentioned mathematical model needs to carry out particle
Modeling and provide emulation data, while design model computation complexity it is very big, model it is too small to the scope of application of particle, and
And it is not easy to extend.
Summary of the invention
The technical problems to be solved by the present invention are: providing a kind of simulative display method and dress based on particle motioning models
It sets, the flexible configuration motion process in a manner of configuration file, realizes movement special efficacy.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows:
A kind of simulative display method based on particle motioning models, comprising:
A default configuration file, the configuration file include more than one configuration template, and the configuration template includes fortune
The texture information of movable model and the data of Particles Moving feature;A default storage unit and display unit;The storage unit is used
In the not shown particle of storage;The display unit is for showing particle;
One configuration queue of creation, is loaded onto the configuration queue for the texture information in all configuration templates;
Operational order is received and parsed through, texture information is extracted from configuration queue according to the operational order;
Corresponding configuration template is obtained from configuration file according to the texture information, and particle is obtained by the configuration template
The data of motion feature;
Preset quantity particle is extracted from the storage unit, particle is calculated according to the data of the Particles Moving feature
Show the data of feature;
Show that the data of feature are shown on the display unit according to the particle.
A kind of analog display unit based on particle motioning models, including the first presetting module, creation module, parsing mould
Block obtains module, computing module and display module;
First presetting module, for presetting a configuration file, the configuration file includes more than one configuration mould
Plate, the configuration template include the texture information of motion model and the data of Particles Moving feature;It presets a storage unit and shows
Show unit;The storage unit is for storing not shown particle;The display unit is for showing particle;
Texture information in all configuration templates is loaded onto described by the creation module for creating a configuration queue
Configure queue;
The parsing module extracts line from configuration queue according to the operational order for receiving and parsing through operational order
Manage information;
The acquisition module, for obtaining corresponding configuration template from configuration file according to the texture information, by institute
It states configuration template and obtains the data of Particles Moving feature;
The computing module, for extracting preset quantity particle from the storage unit, according to the Particles Moving feature
Data be calculated particle show feature data;
The display module, for showing that the data of feature are shown on the display unit according to the particle.
The beneficial effects of the present invention are: by configuring a texture information and Particles Moving feature by motion model
File made of data combination, and corresponding configuration template is obtained by operational order and obtains Particles Moving feature, further according to institute
The data that the particle shown for display unit shows feature are calculated in the data for stating Particles Moving feature, realize to configure text
The mode flexible configuration motion process of part realizes movement special efficacy.
It, can be fast by configuring queue when obtaining configuration template by creation one for storing the configuration queue of texture information
Speed obtains configuration template.It subsequently through judging whether the particle exceeds the indication range of display unit, and will be more than display model
The particle transfer enclosed realizes particle recycling, system resource waste is avoided, in addition, recycling to particle can be just to storage unit
In recycling.
Detailed description of the invention
Fig. 1 is a kind of step process of simulative display method based on particle motioning models of the specific embodiment of the invention
Figure;
Fig. 2 is a kind of structural representation of analog display unit based on particle motioning models of the specific embodiment of the invention
Figure;
Label declaration:
10, the first presetting module;20, creation module;30, parsing module;40, module is obtained;50, computing module;60, it shows
Show module.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached
Figure is explained.
The most critical design of the present invention is: by configuring a texture information and Particles Moving feature by motion model
Data combination made of file, the flexible configuration motion process in a manner of configuration file, realize movement special efficacy.
Please refer to Fig. 1, a kind of simulative display method based on particle motioning models provided by the invention, comprising:
A default configuration file, the configuration file include more than one configuration template, and the configuration template includes fortune
The texture information of movable model and the data of Particles Moving feature;A default storage unit and display unit;The storage unit is used
In the not shown particle of storage;The display unit is for showing particle;
One configuration queue of creation, is loaded onto the configuration queue for the texture information in all configuration templates;
Operational order is received and parsed through, texture information is extracted from configuration queue according to the operational order;
Corresponding configuration template is obtained from configuration file according to the texture information, and particle is obtained by the configuration template
The data of motion feature;
Preset quantity particle is extracted from the storage unit, particle is calculated according to the data of the Particles Moving feature
Show the data of feature;
Show that the data of feature are shown on the display unit according to the particle.
As can be seen from the above description, the beneficial effects of the present invention are: by configuring a texture information by motion model
File made of data combination with Particles Moving feature, and corresponding configuration template is obtained by operational order and obtains particle fortune
The number of the particle display feature shown for display unit is calculated further according to the data of the Particles Moving feature for dynamic feature
According to realization flexible configuration motion process in a manner of configuration file realizes movement special efficacy.
It, can be fast by configuring queue when obtaining configuration template by creation one for storing the configuration queue of texture information
Speed obtains configuration template.It subsequently through judging whether the particle exceeds the indication range of display unit, and will be more than display model
The particle transfer enclosed realizes particle recycling, system resource waste is avoided, in addition, recycling to particle can be just to storage unit
In recycling.
Wherein, it should be understood that particIe system be generally in order to realize certain special efficacy, will be very multipair as rendering together
The effect of formation, (general 3D engine has included) independent object (can be texture) wherein to be rendered is exactly grain
Son.
Further, the motion feature include the rotation center being made of a threshold values and float value, initial rotation angle,
Angular velocity of rotation, initial position, initial velocity, acceleration, arc length and periodic coefficient.
Further, it is also wrapped after described " showing that the data of feature are shown on the display unit according to the particle "
It includes: judging whether the particle exceeds the indication range of display unit;If so, by the particle transfer to storage unit.
It seen from the above description, by judging whether the particle exceeds the indication range of display unit, and will be more than aobvious
The particle transfer enclosed demonstrate to storage unit, realizes particle recycling, system resource waste is avoided, in addition, recycling to particle
It can be convenient for recycling.
Further, described " judging whether the particle exceeds the indication range of display unit " specifically:
Two dimension or three-dimensional system of coordinate are established, the corresponding coordinate range of indication range of display unit is preset;
Judge whether the coordinate of the particle exceeds the coordinate range.
Seen from the above description, by judging whether the particle coordinate exceeds the corresponding coordinate model of the indication range
It encloses, can learn whether particle has moved to outside indication range, when particle is in outside indication range, the motion feature of particle
It will not be shown, the unnecessary consume of system resource can be made.
Further, " judging whether the particle exceeds the indication range of display unit;If so, the particle is turned
Move to storage unit " after step further include:
Preset quantity particle is extracted from the storage unit, the particle for deleting the particle shows the data of feature.
Seen from the above description, this is from the particle of second or second or more extraction of storage unit, these particles
In have plenty of and used, the particle after being as rendered, therefore these particles carry the preceding primary added data carried, when
It is extracted again in use, the particle for needing to delete the particle shows the data of feature, convenient for the secondary use of particle.
Further, the storage unit includes unused elements and has used unit;The unused elements, for depositing
Put original particle;It is described to have used unit, for storing used particle;
" extracting preset quantity particle from the storage unit " specifically:
Judge whether the unused elements have particle, if so, then extracting preset quantity particle from the unused elements.
Seen from the above description, by carrying out storage unit to be divided into unused elements and having used unit, will not make
Used particle is stored in unused elements, and used particle is stored in and has been used in unit, when needing to carry out two
When secondary extraction particle, particle in advantage distillation unused elements, because the particle being stored in unused elements is not load
The particle of any data, as empty particle, when use, are loaded directly into data, do not need to carry out deletion step, can be improved at system
Manage rate.Only when in unused elements without particle in the case where, particle is just extracted in unit from having used, but deleted
Except just can be used after step.If unused elements and having used in unit without particle, illustrate at this time all particles all in
In use, at this point, repeating to judge, until there is particle proposition after default refresh duration.
Further, " preset quantity particle is being extracted from the storage unit, according to the data of the Particles Moving feature
The data that particle shows feature are calculated " after step further include:
A default triggered time and environment variation;
Whether judgement currently reaches the triggered time, if reaching the triggered time, shows the data investigation of feature in the particle
Environment variation obtains the data that new particle shows feature.
Seen from the above description, by presetting a triggered time, when reaching the triggered time, feature is shown in the particle
Data investigation environment variation, obtain the data that new particle shows feature, enable to particle to show more life-like.
Further, the float value includes that random parameter is composed with measurement of floating, the value of the random parameter
Range is 0 to 1.
Seen from the above description, float value is by random parameter value and to float obtained by measurement product, by taking for random parameter
Value range is set as 0 to 1, it can be achieved that movement contractive effect, in addition the also multi-motion form of expansible particle.
Referring to Fig. 2, a kind of analog display unit based on particle motioning models provided by the invention, including first default
Module 10, parsing module 30, obtains module 40, computing module 50 and display module 60 at creation module 20;
First presetting module 10, for presetting a configuration file, the configuration file includes more than one configuration
Template, the configuration template include the texture information of motion model and the data of Particles Moving feature;A default storage unit and
Display unit;The storage unit is for storing not shown particle;The display unit is for showing particle;
Texture information in all configuration templates is loaded onto institute for creating a configuration queue by the creation module 20
State configuration queue;
The parsing module 30 is extracted according to the operational order from configuration queue for receiving and parsing through operational order
Texture information;
The acquisition module 40, for obtaining corresponding configuration template from configuration file according to the texture information, by
The configuration template obtains the data of Particles Moving feature;
The computing module 50, it is special according to the Particles Moving for extracting preset quantity particle from the storage unit
The data that particle shows feature are calculated in the data of sign;
The display module 60, for showing that the data of feature are shown on the display unit according to the particle.
As can be seen from the above description, the beneficial effects of the present invention are: by configuring a texture information by motion model
File made of data combination with Particles Moving feature, and corresponding configuration template is obtained by operational order and obtains particle fortune
The number of the particle display feature shown for display unit is calculated further according to the data of the Particles Moving feature for dynamic feature
According to realization flexible configuration motion process in a manner of configuration file realizes movement special efficacy.
It, can be fast by configuring queue when obtaining configuration template by creation one for storing the configuration queue of texture information
Speed obtains configuration template.It subsequently through judging whether the particle exceeds the indication range of display unit, and will be more than display model
The particle transfer enclosed realizes particle recycling, system resource waste is avoided, in addition, recycling to particle can be just to storage unit
In recycling.
Further, which further includes removing module, for extracting preset quantity particle from the storage unit, is deleted
The particle of the particle shows the data of feature.
Seen from the above description, this is from the particle of second or second or more extraction of storage unit, these particles
In have plenty of and used, the particle after being as rendered, therefore these particles carry the preceding primary added data carried, when
It is extracted again in use, the particle for needing to delete the particle shows the data of feature, convenient for the secondary use of particle.
Further, which further includes first judgment module and shift module;
The first judgment module, for judging whether the particle exceeds the indication range of display unit;
The shift module, when for exceeding the indication range of display unit when the particle, extremely by the particle transfer
Storage unit.
It seen from the above description, by judging whether the particle exceeds the indication range of display unit, and will be more than aobvious
The particle transfer enclosed demonstrate to storage unit, realizes particle recycling, system resource waste is avoided, in addition, recycling to particle
It can be convenient for recycling.
Further, which further includes the second presetting module, the second judgment module and laminating module;
Second presetting module, for presetting a triggered time and environment variation;
Second judgment module, for judging currently whether reach the triggered time;
The laminating module, if showing the data investigation environment of feature in the particle for currently reaching the triggered time
Variation obtains the data that new particle shows feature.
Seen from the above description, by presetting a triggered time, when reaching the triggered time, feature is shown in the particle
Data investigation environment variation, obtain the data that new particle shows feature, enable to particle to show more life-like.
The embodiment of the present invention one: colored special efficacy of floaing
Initialize hardware environment and OPENGL display environment;Every 30ms updates a frame;
A default configuration file, the configuration file include more than one configuration template, and the configuration template includes fortune
The texture information of movable model and the data of Particles Moving feature;One configuration template corresponds to a kind of motion model, and embodiment one mentions
What is supplied is the colored motion model that floats, the texture informations such as texture information is title (float flower), shape or color, Particles Moving feature
Data are the kinematic feature factors corresponding to colored motion model that floats.
The kinematic feature factor corresponding to colored motion model that floats includes the rotation being made of a threshold values and float value
Center, initial rotation angle, angular velocity of rotation, initial position, initial velocity, acceleration, arc length and periodic coefficient;Wherein, described floating
Dynamic value includes that random parameter is composed with measurement of floating, and the value range of the random parameter is 0 to 1.For example, embodiment 1
In angular velocity of rotation, the value of -20+40*a, a is (0~1), and threshold values is -20, and float value is (0~40), the public affairs of float value
Formula are as follows: 40*a, random parameter a value are (0~1), and measurement of floating is 40, and a value is 0.5 at this time.
By taking rotation center as an example, rotation center value is threshold values (Base)+rotation center random parameter of rotation center
(rand) (width) is measured in the floating of * rotation center.
Described colored kinematic feature factor such as the following table 1 of floaing:
Table 1
A default storage unit and display unit;The storage unit is for storing not shown particle;The display is single
Member is for showing particle;Storage unit can be arranged by hard disk, and display unit can pass through buffer setting.Establish two dimension or three-dimensional seat
Mark system, presets the corresponding coordinate range of indication range of display unit.Such as: display rectangular area left=0, top=0,
Right=1280, bottom=720 }.
The storage unit includes unused elements and has used unit;The unused elements, it is unused for storing
The particle crossed;It is described to have used unit, for storing used particle.
A default triggered time and environment variation.
One configuration queue of creation, is loaded onto the configuration queue for the texture information in all configuration templates;Here will match
It sets the texture information in file in all configuration templates and is loaded onto configuration queue, be by way of data pointer, when data refer to
Needle points to the texture information of some configuration template in configuration queue, is loaded with signified configuration template.Such as configuration queue are as follows:
Bubble, the flower that floats, fallen leaves etc., embodiment is first is that data pointer points to the flower that floats, and computer is it can be seen that be to show the flower that floats, transmission is extracted
It floats and spends corresponding operational order.
Operational order is received and parsed through, texture information is extracted from configuration queue according to the operational order;Here texture
Information is the flower that floats.
The corresponding colored configuration template that floats is obtained from configuration file according to the colored texture information that floats, by the configuration mould
Plate obtains the data for the Particles Moving feature for floaing colored;
First judge whether the unused elements have particle, if so, then extracting preset quantity grain from the unused elements
Son;If the particle for deleting the particle shows the data of feature no, from having used unit to extract preset quantity particle.
The data that corresponding particle shows feature are calculated according to the data for the Particles Moving feature for floaing colored;
Whether judgement currently reaches the triggered time, if reaching the triggered time, shows the data investigation of feature in the particle
Environment variation obtains the data that new particle shows feature.
Wherein, it should be understood that environment variation refers to that the variable of simulated environment influence factor, environmental impact factor can
For wind, in the embodiment 1, the value of the variable can be (3~6);Specific stacking method are as follows: assuming that original rotation center is
5, if the value of environmental impact factor is 3, the value of new rotation center are as follows: 5+3.
Show that the data of feature are shown on the display unit according to the particle;
Judge whether the coordinate of the particle exceeds the coordinate range of the display unit;
If so, the particle transfer to storage unit has been used unit.If necessary to secondary and multiple extraction grain
Son, and first judge whether the unused elements have particle.
Specific example are as follows: the simple motion process feature for colored special efficacy of floaing on two-dimensional surface: float colored particle with texture itself with
Machine region is rotation center, is uniform speed rotation respectively in three directions of x, y, z, meanwhile, (x) is done even respectively in the horizontal direction
Speed moves and along SIN function image motion, does the uniformly accelrated rectilinear motion that initial velocity is 0 in vertical direction (y).
Such as according to the display in display rectangular area { left=0, top=0, right=1280, bottom=720 }
Region;
The optinal plan of texture information has 6 kinds, is respectively as follows: red0.png;red1.png;red2.png...
By way of data pointer, any one chosen in above-mentioned optinal plan is shown.
The embodiment of the present invention two: bubble rises
It is identical as the embodiment of embodiment one, the wherein kinematic feature factor of bubble such as table 2.
Table 2
In conclusion a kind of simulative display method and device based on particle motioning models provided by the invention, by matching
Set one combined by the texture information of motion model and the data of Particles Moving feature made of file, and pass through operational order
It obtains corresponding configuration template and obtains Particles Moving feature, be calculated further according to the data of the Particles Moving feature for showing
The particle that unit is shown shows the data of feature, realizes the flexible configuration motion process in a manner of configuration file, realizes that movement is special
Effect.
It, can be fast by configuring queue when obtaining configuration template by creation one for storing the configuration queue of texture information
Speed obtains configuration template.It subsequently through judging whether the particle exceeds the indication range of display unit, and will be more than display model
The particle transfer enclosed realizes particle recycling, system resource waste is avoided, in addition, recycling to particle can be just to storage unit
In recycling.
By judging whether the particle coordinate exceeds the corresponding coordinate range of the indication range, it can learn that particle is
No to have moved to outside indication range, when particle is in outside indication range, the motion feature of particle will not be shown, can be made
Obtain the unnecessary consume of system resource.By carrying out storage unit to be divided into unused elements and having used unit, will not make
Used particle is stored in unused elements, and used particle is stored in and has been used in unit, when needing to carry out two
When secondary extraction particle, particle in advantage distillation unused elements, because the particle being stored in unused elements is not load
The particle of any data, as empty particle, when use, are loaded directly into data, do not need to carry out deletion step, can be improved at system
Manage rate.Only when in unused elements without particle in the case where, particle is just extracted in unit from having used, but deleted
Except just can be used after step.
By presetting a triggered time, when reaching the triggered time, the data investigation environment of feature is shown in the particle
Variation obtains the data that new particle shows feature, enables to particle to show more life-like.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, similarly include
In scope of patent protection of the invention.
Claims (13)
1. a kind of simulative display method based on particle motioning models characterized by comprising
A default configuration file, the configuration file include more than one configuration template, and the configuration template includes movement mould
The texture information of type and the data of Particles Moving feature;A default storage unit and display unit;The storage unit is for depositing
Put not shown particle;The display unit is for showing particle;
One configuration queue of creation, is loaded onto the configuration queue for the texture information in all configuration templates;
Operational order is received and parsed through, texture information is extracted from configuration queue according to the operational order;
Corresponding configuration template is obtained from configuration file according to the texture information, and Particles Moving is obtained by the configuration template
The data of feature;
Preset quantity particle is extracted from the storage unit, particle is calculated according to the data of the Particles Moving feature and shows
The data of feature;
Show that the data of feature are shown on the display unit according to the particle.
2. the simulative display method according to claim 1 based on particle motioning models, which is characterized in that the movement is special
Sign include the rotation center being made of a threshold values and float value, initial rotation angle, angular velocity of rotation, initial position, initial velocity,
Acceleration, arc length and periodic coefficient.
3. the simulative display method according to claim 1 based on particle motioning models, which is characterized in that in " the root
Show that the data of feature are shown on the display unit according to the particle " after further include: judge whether the particle exceeds display
The indication range of unit;If so, by the particle transfer to storage unit.
4. the simulative display method according to claim 3 based on particle motioning models, which is characterized in that " the judgement
Whether the particle exceeds the indication range of display unit " specifically:
Two dimension or three-dimensional system of coordinate are established, the corresponding coordinate range of indication range of display unit is preset;
Judge whether the coordinate of the particle exceeds the coordinate range.
5. the simulative display method according to claim 1 based on particle motioning models, which is characterized in that " if so, will
The particle transfer is to storage unit " after step further include:
Preset quantity particle is extracted from the storage unit, the particle for deleting the particle shows the data of feature.
6. the simulative display method according to claim 1 based on particle motioning models, which is characterized in that the storage is single
Member is including unused elements and has used unit;The unused elements, for storing original particle;It is described to have used
Unit, for storing used particle.
7. the simulative display method according to claim 6 based on particle motioning models, which is characterized in that " from described
Storage unit extracts preset quantity particle " specifically:
Judge whether the unused elements have particle, if so, then extracting preset quantity particle from the unused elements.
8. the simulative display method according to claim 1 based on particle motioning models, which is characterized in that " from described
Storage unit extracts preset quantity particle, and the number that particle shows feature is calculated according to the data of the Particles Moving feature
According to " after step further include:
A default triggered time and environment variation;
Whether judgement currently reaches the triggered time, if reaching the triggered time, shows the data investigation environment of feature in the particle
Variation obtains the data that new particle shows feature.
9. the simulative display method according to claim 2 based on particle motioning models, which is characterized in that the float value
It is composed including random parameter and measurement of floating, the value range of the random parameter is 0 to 1.
10. a kind of analog display unit based on particle motioning models, which is characterized in that including the first presetting module, creation mould
Block, obtains module, computing module and display module at parsing module;
First presetting module, for presetting a configuration file, the configuration file includes more than one configuration template, institute
State the data of the texture information that configuration template includes motion model and Particles Moving feature;A default storage unit and display are single
Member;The storage unit is for storing not shown particle;The display unit is for showing particle;
Texture information in all configuration templates is loaded onto the configuration for creating a configuration queue by the creation module
Queue;
The parsing module extracts texture letter from configuration queue according to the operational order for receiving and parsing through operational order
Breath;
The acquisition module is matched for obtaining corresponding configuration template from configuration file according to the texture information by described
It sets template and obtains the data of Particles Moving feature;
The computing module, for extracting preset quantity particle from the storage unit, according to the number of the Particles Moving feature
According to the data that particle display feature is calculated;
The display module, for showing that the data of feature are shown on the display unit according to the particle.
11. a kind of analog display unit based on particle motioning models according to claim 10, which is characterized in that also wrap
Removing module is included, for extracting preset quantity particle from the storage unit, the particle for deleting the particle shows the number of feature
According to.
12. a kind of analog display unit based on particle motioning models according to claim 10, which is characterized in that also wrap
Include first judgment module and shift module;
The first judgment module, for judging whether the particle exceeds the indication range of display unit;
The shift module, when for exceeding the indication range of display unit when the particle, by the particle transfer to storage
Unit.
13. a kind of analog display unit based on particle motioning models according to claim 10, which is characterized in that also wrap
Include the second presetting module, the second judgment module and laminating module;
Second presetting module, for presetting a triggered time and creation environment variation;
Second judgment module, for judging currently whether reach the triggered time;
The laminating module, if showing that the data investigation environment of feature influences in the particle for currently reaching the triggered time
Variable obtains the data that new particle shows 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 CN106293565A (en) | 2017-01-04 |
CN106293565B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112233214B (en) * | 2020-10-15 | 2023-11-28 | 洛阳众智软件科技股份有限公司 | Snow scene rendering method, device and equipment for large scene and storage medium |
CN112270732B (en) * | 2020-11-17 | 2024-06-25 | Oppo广东移动通信有限公司 | Particle animation generation method, processing device, electronic device and storage medium |
Citations (4)
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 |
CN104571993A (en) * | 2014-12-30 | 2015-04-29 | 北京像素软件科技股份有限公司 | Processing method of particle system, display card and mobile application platform |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2961313A4 (en) * | 2013-02-28 | 2016-11-09 | Lawrence A Lynn | System for analysis and imaging using perturbation feature quanta |
-
2015
- 2015-06-05 CN CN201510303928.1A patent/CN106293565B/en active Active
Patent Citations (4)
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 |
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 |
---|
基于粒子系统和雾化的实时降雪模拟;刘芳,刘贤梅;《微计算机应用》;20110731;第32卷(第7期);1-5 |
Also Published As
Publication number | Publication date |
---|---|
CN106293565A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Clark | Hierarchical geometric models for visible surface algorithms | |
CN101706967B (en) | Comprehensive simulation method for realistic cloud layer | |
CN109063279B (en) | Three-dimensional space wind field dynamic simulation method based on particle flow track tracking algorithm | |
CN102402792B (en) | Real-time shallow water simulation method | |
CN102663808A (en) | Method for establishing rigid body model based on three-dimensional model in digital home entertainment | |
CN108427499A (en) | A kind of AR systems and AR equipment | |
CN102323996A (en) | Three-dimensional GIS (Geographic Information System) technology based visual state monitoring system for power transmission lines | |
Zhang et al. | Game special effect simulation based on particle system of Unity3D | |
CN106293565B (en) | A kind of simulative display method and device based on particle motioning models | |
CN105913475B (en) | A kind of change in time and space process dynamics method for visualizing | |
CN110400366B (en) | Real-time flood disaster visualization simulation method based on OpenGL | |
CN105184843A (en) | OpenSceneGraph-based three dimensional animation manufacturing method | |
Chen et al. | A heuristic approach to the simulation of water drops and flows on glass panes | |
CN104299262B (en) | A kind of three-dimensional cloud analogy method based on velocity field streamline | |
CN104463934B (en) | A kind of point-based surface Automatic Generation of Computer Animation method of " mass spring " system drive | |
CN103678888B (en) | The flowing of a kind of heart blood based on Euler's fluid simulation algorithm schematically shows method | |
Yang et al. | Study on the virtual natural landscape walkthrough by using Unity 3D | |
CN104834552B (en) | A kind of driving simulator obtains the quick interception engine of traffic environment information | |
CN110232846A (en) | A kind of assault boat drive simulating method, system and relevant apparatus | |
CN110414018A (en) | A kind of virtual reality simulation method and system of Flight Vehicle Stage Separation | |
CN104102792B (en) | A kind of Simulation Methods of filling mining | |
Luo et al. | GPU-based real-time virtual reality modeling and simulation of seashore | |
Li et al. | Real-time rendering and animating of grass | |
Ye et al. | Design of a ship safety training software based on leap motion and unity3D | |
Li et al. | An object-oriented system for dynamics-based 3D cloth simulation |
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 |