CN104077090A - Particle system based on gravity sensing and sound-based control of injection rate and method - Google Patents
Particle system based on gravity sensing and sound-based control of injection rate and method Download PDFInfo
- Publication number
- CN104077090A CN104077090A CN201310097190.9A CN201310097190A CN104077090A CN 104077090 A CN104077090 A CN 104077090A CN 201310097190 A CN201310097190 A CN 201310097190A CN 104077090 A CN104077090 A CN 104077090A
- Authority
- CN
- China
- Prior art keywords
- particle
- gravity
- sound
- module
- control module
- 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
- Toys (AREA)
Abstract
The invention discloses a particle system based on gravity sensing and sound-based control of injection rate and a method. The system comprises a gravity collecting module, a sound pickup module, a particle control module and a screen rendering module, wherein the gravity collecting module is used for obtaining the gravity offset of current equipment and transmitting the obtained gravity offset to the particle control module; the sound pickup module is used for obtaining a decibel value of the sound received by the current equipment and transmitting the decibel value to the particle control module; the particle control module is used for controlling the quantity, the moving direction and the moving speed of particles according to the gravity offset uploaded by the gravity collecting module and the decibel value uploaded by the sound pickup module combined with a refreshing frequency value; and the screen rendering module is used for dynamically rendering the particle state obtained through control by the particle control module onto a screen of the current equipment in real time, and enabling the display of the particle state. The sound and gravity influence is reflected through the quantity and the moving direction of the particles, and a strong sense of reality is realized. More realistic use experience is brought to users.
Description
Technical field
The particle picture the present invention relates on intelligent movable equipment generates and Rendering field, relates in particular to a kind of particIe system and method based on gravity sensing harmony controlled jetting speed.
Background technology
Execution efficiency problem and simple longitudinally gravity that particIe system of the prior art and particle disposal route all can only solve on mobile device accelerate, and can not have influence on the particle harmony controlled jetting speed of having sprayed.Thereby the sense of reality is very poor, cannot give the experience of user with real scene.
Summary of the invention
The object of the present invention is to provide one, can real-time response Gravity changer change particIe system and the method for particle acceleration and response sound variation change injection rate, thereby solve the foregoing problems existing in prior art.
To achieve these goals, the technical solution used in the present invention is as follows:
Based on a particIe system for gravity sensing harmony controlled jetting speed, comprising:
Gravity acquisition module, for obtaining the gravity side-play amount of current device, and is transferred to particle control module;
Sound pickup model, for obtaining the decibel value of the sound that current device receives, and is transferred to particle control module;
Particle control module, the described decibel value of uploading for the described gravity side-play amount uploaded according to described gravity acquisition module and described sound pickup model in conjunction with refreshing frequency value, quantity, direction of motion and movement velocity to particle are controlled;
Screen rendering module, for particle state that the control of described particle control module is obtained real-time play up dynamically the screen in current device, and it is shown.
Preferably, also comprise: for building the particle model of primary.
The method that the described particIe system based on gravity sensing harmony controlled jetting speed of application is controlled particle, comprises the following steps:
S1, specifies the refreshing frequency of described system, builds the particle of predetermined number, and gives each particle random direction of motion, movement rate and acceleration by the particle model of described system;
S2, when described system reaches while refreshing in limited time, the information of the each particle of described systematic collection, according to the acceleration of the X axis amount change particle of the real-time gravity acquiring from described gravity acquisition module, changes movement velocity and the coordinate of particle according to the acceleration of particle;
S3, according to the injection rate of the real-time sound decibel number value change particle acquiring from described sound pickup model;
S4, described system according to the coordinate of particle by real-time particle playing up dynamically and be plotted in screen.
What preferably, described method was concrete comprises the following steps:
1), according to the refreshing frequency of described system, build the particle heap of predetermined number, initialization internal memory;
2) when refresh the time limit arrive time, according to the sound decibel value obtaining from described sound pickup model calculate need spray number of particles, and spray;
3) from the gravity off-set value of described gravity acquisition module collection directions X, from described particle heap, take out the particle of respective numbers, if got less than the particle with regard to initialization respective numbers, the acceleration using described gravity off-set value as the directions X of particle;
4) the each particle of poll, calculates the current movement velocity of particle and direction according to the speed of particle self and accelerometer, and gives described particle by the data that calculate;
5) according to the speed of particle self and current coordinate, calculate the object coordinate of particle, give particle by data, and be rendered into screen, the data of particle are put back into simultaneously and in described particle heap, wait for that the next cycle calls.
The invention has the beneficial effects as follows:
ParticIe system and method based on gravity sensing harmony controlled jetting speed of the present invention, is used gravity sensing to realize the gravity of particle real-time response directions X, and voice activated control has been realized the injection rate of controlling in real time particIe system according to sound size.Quantity by particle and direction of motion are reacted the impact of sound and gravity, have the very strong sense of reality.Give user with more real experience.
Brief description of the drawings
Fig. 1 is the method flow schematic diagram that the particIe system of application of the present invention based on gravity sensing harmony controlled jetting speed controlled particle;
Fig. 2 is the structural representation of the particIe system based on gravity sensing harmony controlled jetting speed of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing, the present invention is further elaborated.Should be appreciated that embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 2, the invention discloses a kind of particIe system based on gravity sensing harmony controlled jetting speed, comprising:
Gravity acquisition module, for obtaining the gravity side-play amount of current device, and is transferred to particle control module, can use 3D gyroscope or other gravity sensors or acceleration transducer as gravity acquisition module;
Sound pickup model, for obtaining the decibel value of the sound that current device receives, and is transferred to particle control module, can use microphone as sound pickup model;
Particle control module, the described decibel value of uploading for the described gravity side-play amount uploaded according to described gravity acquisition module and described sound pickup model in conjunction with refreshing frequency value, quantity, direction of motion and movement velocity to particle are controlled;
Screen rendering module, for particle state that the control of described particle control module is obtained real-time play up dynamically the screen in current device, and it is shown.
Also comprise: for building the particle model of primary.
As shown in Figure 1, the method that the described particIe system based on gravity sensing harmony controlled jetting speed of application is controlled particle, comprises the following steps:
S1, specifies the refreshing frequency of described system, builds the particle of predetermined number, and gives each particle random direction of motion, movement rate and acceleration by the particle model of described system;
S2, when described system reaches while refreshing in limited time, the information of the each particle of described systematic collection, change the acceleration of particle according to the X axis amount of the real-time gravity acquiring from described gravity acquisition module (being the gravity side-play amount of transverse direction), change movement velocity and the coordinate of particle according to the acceleration of particle;
S3, according to the injection rate of the real-time sound decibel number value change particle acquiring from described sound pickup model;
S4, described system according to the coordinate of particle by real-time particle playing up dynamically and be plotted in screen.
What described method was concrete in actual applications comprises the following steps:
1), according to the refreshing frequency of described system, build the particle heap of predetermined number, initialization internal memory;
2) when refresh the time limit arrive time, according to the sound decibel value obtaining from described sound pickup model calculate need spray number of particles, and spray;
3) from the gravity off-set value of described gravity acquisition module collection directions X, from described particle heap, take out the particle of respective numbers, if got less than the particle with regard to initialization respective numbers, the acceleration using described gravity off-set value as the directions X of particle;
4) the each particle of poll, draws according to the speed of particle self and acceleration calculation movement velocity and the direction that particle is current, and gives described particle by the data that calculate;
5) according to the speed of particle self and current coordinate, calculate the object coordinate of particle, give particle by data, and be rendered into screen, the data of particle are put back into simultaneously and in described particle heap, wait for that the next cycle calls.
By adopting technique scheme disclosed by the invention, obtain following useful effect:
ParticIe system and method based on gravity sensing harmony controlled jetting speed of the present invention, is used gravity sensing to realize the gravity of particle real-time response directions X, and voice activated control has been realized the injection rate of controlling in real time particIe system according to sound size.Quantity by particle and direction of motion are reacted the impact of sound and gravity, have the very strong sense of reality.Give user with more real experience.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.
Claims (4)
1. the particIe system based on gravity sensing harmony controlled jetting speed, is characterized in that, comprising:
Gravity acquisition module, for obtaining the gravity side-play amount of current device, and is transferred to particle control module;
Sound pickup model, for obtaining the decibel value of the sound that current device receives, and is transferred to particle control module;
Particle control module, the described decibel value of uploading for the described gravity side-play amount uploaded according to described gravity acquisition module and described sound pickup model in conjunction with refreshing frequency value, quantity, direction of motion and movement velocity to particle are controlled;
Screen rendering module, for particle state that the control of described particle control module is obtained real-time play up dynamically the screen in current device, and it is shown.
2. the particIe system based on gravity sensing harmony controlled jetting speed according to claim 1, is characterized in that, also comprises: for building the particle model of primary.
3. application rights requires the method that the particIe system based on gravity sensing harmony controlled jetting speed described in 1 is controlled particle, it is characterized in that, comprises the following steps:
S1, specifies the refreshing frequency of described system, builds the particle of predetermined number, and gives each particle random direction of motion, movement rate and acceleration by the particle model of described system;
S2, when described system reaches while refreshing in limited time, the information of the each particle of described systematic collection, according to the acceleration of the X axis amount change particle of the real-time gravity acquiring from described gravity acquisition module, changes movement velocity and the coordinate of particle according to the acceleration of particle;
S3, according to the injection rate of the real-time sound decibel number value change particle acquiring from described sound pickup model;
S4, described system according to the coordinate of particle by real-time particle playing up dynamically and be plotted in screen.
4. method according to claim 3, is characterized in that, what described method was concrete comprises the following steps:
1), according to the refreshing frequency of described system, build the particle heap of predetermined number, initialization internal memory;
2) when refresh the time limit arrive time, according to the sound decibel value obtaining from described sound pickup model calculate need spray number of particles, and spray;
3) from the gravity off-set value of described gravity acquisition module collection directions X, from described particle heap, take out the particle of respective numbers, if got less than the particle with regard to initialization respective numbers, the acceleration using described gravity off-set value as the directions X of particle;
4) the each particle of poll, calculates the current movement velocity of particle and direction according to the speed of particle self and accelerometer, and gives described particle by the data that calculate;
5) according to the speed of particle self and current coordinate, calculate the object coordinate of particle, give particle by data, and be rendered into screen, the data of particle are put back into simultaneously and in described particle heap, wait for that the next cycle calls.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310097190.9A CN104077090B (en) | 2013-03-25 | 2013-03-25 | A kind of particIe system and method based on gravity sensing and acoustic control injection rate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310097190.9A CN104077090B (en) | 2013-03-25 | 2013-03-25 | A kind of particIe system and method based on gravity sensing and acoustic control injection rate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104077090A true CN104077090A (en) | 2014-10-01 |
CN104077090B CN104077090B (en) | 2018-02-02 |
Family
ID=51598375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310097190.9A Active CN104077090B (en) | 2013-03-25 | 2013-03-25 | A kind of particIe system and method based on gravity sensing and acoustic control injection rate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104077090B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107195310A (en) * | 2017-03-05 | 2017-09-22 | 杭州趣维科技有限公司 | A kind of method for processing video frequency of sound driver particle effect |
CN114332397A (en) * | 2021-12-30 | 2022-04-12 | 北京发现角科技有限公司 | Method and device for realizing excessive effect of adjacent terrains at same level |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5920492A (en) * | 1996-04-26 | 1999-07-06 | Southwest Research Institute | Display list generator for fire simulation system |
CN102147928A (en) * | 2011-03-16 | 2011-08-10 | 美通日用品(杭州)有限公司 | Improved flame-simulation acceleration algorithm based on particle system |
CN102426691A (en) * | 2011-10-24 | 2012-04-25 | 克拉玛依红有软件有限责任公司 | Real-time fire effect simulation method based on GPU |
CN102750662A (en) * | 2011-08-26 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method and device for grain control based on multithreading |
-
2013
- 2013-03-25 CN CN201310097190.9A patent/CN104077090B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5920492A (en) * | 1996-04-26 | 1999-07-06 | Southwest Research Institute | Display list generator for fire simulation system |
CN102147928A (en) * | 2011-03-16 | 2011-08-10 | 美通日用品(杭州)有限公司 | Improved flame-simulation acceleration algorithm based on particle system |
CN102750662A (en) * | 2011-08-26 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method and device for grain control based on multithreading |
CN102426691A (en) * | 2011-10-24 | 2012-04-25 | 克拉玛依红有软件有限责任公司 | Real-time fire effect simulation method based on GPU |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107195310A (en) * | 2017-03-05 | 2017-09-22 | 杭州趣维科技有限公司 | A kind of method for processing video frequency of sound driver particle effect |
CN114332397A (en) * | 2021-12-30 | 2022-04-12 | 北京发现角科技有限公司 | Method and device for realizing excessive effect of adjacent terrains at same level |
CN114332397B (en) * | 2021-12-30 | 2022-10-28 | 北京发现角科技有限公司 | Method and device for realizing same-level adjacent terrain transition effect |
Also Published As
Publication number | Publication date |
---|---|
CN104077090B (en) | 2018-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107168532B (en) | Virtual synchronous display method and system based on augmented reality | |
CN102314179B (en) | Cradle head control method based on mobile phone and built-in gravity sensor | |
CN103458184A (en) | Method for carrying out long-range control on pan-tilt with cell phone | |
CN102446025A (en) | Physical model based gesture recognition | |
CN106251396A (en) | The real-time control method of threedimensional model and system | |
CN103064532B (en) | A kind of air mouse remote controller | |
CN103744600A (en) | Method and system for interaction between 3D (three-dimensional) dynamic wallpaper and desktop icon | |
CN104866101A (en) | Real-time interactive control method and real-time interactive control device of virtual object | |
CN106814851B (en) | Augmented reality interaction method and system | |
CN101536041B (en) | Image processor, control method of image processor | |
CN102221885B (en) | Television, and control method and device thereof | |
CN106933385B (en) | A kind of implementation method of the low-power consumption sky mouse pen based on three-dimensional ultrasonic positioning | |
Li et al. | Real-time immersive table tennis game for two players with motion tracking | |
CN107346174B (en) | Interaction method and system for real environment and virtual environment | |
CN102945088A (en) | Method, device and mobile equipment for realizing terminal-simulated mouse to operate equipment | |
CN106178504A (en) | Virtual objects motion control method and device | |
CN103049102B (en) | Mouse data treating apparatus and mouse data disposal route | |
CN110162258A (en) | The processing method and processing device of individual scene image | |
CN107272889A (en) | A kind of AR interface alternation method and system based on three-dimensional coordinate | |
CN203550112U (en) | Remote controller for controlling air guidance of air conditioner according to user gesture features | |
CN104077090A (en) | Particle system based on gravity sensing and sound-based control of injection rate and method | |
CN104281114A (en) | Intelligent device motion control system | |
CN112169338B (en) | Sphere motion control method and device, storage medium and computer equipment | |
CN103425272A (en) | Method for controlling movement of computer three-dimensional dummy object by smartphone | |
CN102573193B (en) | The interactive three-dimensional editing device of LED lamplight scene and method |
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 |