CN113569157B - Radar scanning effect simulation method, system, terminal equipment and storage medium - Google Patents

Radar scanning effect simulation method, system, terminal equipment and storage medium Download PDF

Info

Publication number
CN113569157B
CN113569157B CN202110712942.2A CN202110712942A CN113569157B CN 113569157 B CN113569157 B CN 113569157B CN 202110712942 A CN202110712942 A CN 202110712942A CN 113569157 B CN113569157 B CN 113569157B
Authority
CN
China
Prior art keywords
scanning effect
particle
particles
radar scanning
effect
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
Application number
CN202110712942.2A
Other languages
Chinese (zh)
Other versions
CN113569157A (en
Inventor
郭博阳
吴闽华
姜坤
卫宣安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202110712942.2A priority Critical patent/CN113569157B/en
Publication of CN113569157A publication Critical patent/CN113569157A/en
Application granted granted Critical
Publication of CN113569157B publication Critical patent/CN113569157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Radar Systems Or Details Thereof (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a radar scanning effect simulation method, a radar scanning effect simulation system, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring parameter attributes corresponding to a target scanning effect, and determining the number of particles for simulating the scanning effect according to the parameter attributes; according to the particle quantity, acquiring the coordinate position of each particle; and controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle. The method is beneficial to realizing the visualization of the radar scanning effect, and can vividly display the reminding state of a dynamic visual query in the regional query service of the smart city.

Description

Radar scanning effect simulation method, system, terminal equipment and storage medium
Technical Field
The present invention relates to the field of symbol display technologies, and in particular, to a radar scanning effect simulation method, a system, a terminal device, and a storage medium.
Background
In webgis systems for smart city services, it is necessary to simulate the effects of some commonly used military symbols, such as the visualization of radar scanning effects, based on geographic coordinates. However, in the prior art, a dynamic visual query reminding state cannot be vividly displayed in the regional query service, and the user cannot be fed back obviously and intuitively.
Accordingly, there is a need for improvement and advancement in the art.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a radar scanning effect simulation method, a system, a terminal device and a storage medium aiming at the defects in the prior art, and aims to solve the problems that a dynamic visual query reminding state cannot be vividly displayed in a regional query service and cannot be fed back to a user obviously and intuitively enough in the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a radar scanning effect simulation method, where the method includes:
acquiring parameter attributes corresponding to a target scanning effect, and determining the number of particles for simulating the scanning effect according to the parameter attributes;
according to the particle quantity, acquiring the coordinate position of each particle;
and controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle.
In one implementation manner, the obtaining the parameter attribute corresponding to the target scanning effect, and determining the number of particles for simulating the scanning effect according to the parameter attribute, includes:
acquiring parameter attributes corresponding to the target scanning, wherein the parameter attributes comprise: the method comprises the steps of (1) a center position of a radar scanning effect, a color of the radar scanning effect, a scanning radius of the radar scanning effect, a sector included angle of the radar scanning effect, a heavy sense of the radar scanning effect and a movement speed of the radar scanning effect;
based on the parameter properties, a circle of particles and the number of particles are determined.
In one implementation, the determining the circle formed by the particles and the number of particles according to the parameter attribute includes:
the total number of particles making up the circle is determined by classical mathematical circle algorithms and the position of each particle is calculated in a particle-by-particle manner in a shader program.
In one implementation, the acquiring the coordinate position of each particle according to the particle number includes:
the coordinates of the entire circle formed by the particles are calculated from the center position (center) of the radar scanning effect and the scanning radius of the radar scanning effect.
In one implementation, the controlling the particles to present the radar scanning effect by the shader program according to the coordinate position of each particle includes:
inputting a time parameter into the shader;
and controlling the particles to present radar scanning effect according to the time parameter.
In one implementation, the controlling the particle to present the radar scanning effect according to the time parameter includes:
acquiring a particle sequence number, and comparing the particle sequence number with the time parameter and a fan-shaped included angle corresponding to a target scanning effect;
and if the particle serial number is smaller than the sum of the fan-shaped included angles corresponding to the time parameter and the target scanning effect and the particle serial number is larger than the time parameter, controlling the particles corresponding to the particle serial number to be visible so that the particles show the radar scanning effect.
In one implementation, the controlling the particle to present the radar scanning effect according to the time parameter includes:
dividing the particles into n sections from the center of a circle to the maximum radius according to a preset quantity, wherein the distance of each section is the radius of a new circle;
generating n circles according to the same circle center to move together, and forming the effect that a sector-shaped area moves forwards.
In a second aspect, an embodiment of the present invention further provides a radar scanning effect simulation system, where the system includes:
the particle quantity acquisition module is used for acquiring parameter attributes corresponding to the target scanning effect and determining the particle quantity for simulating the scanning effect according to the parameter attributes;
the coordinate position acquisition module is used for acquiring the coordinate position of each particle according to the particle number;
and the scanning effect simulation module is used for controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a radar scanning effect simulation program stored in the memory and capable of running on the processor, and when the processor executes the radar scanning effect simulation program, the steps of the radar scanning effect simulation method in any one of the above schemes are implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a radar scanning effect simulation program is stored, where the radar scanning effect simulation program, when executed by a processor, implements the steps of the radar scanning effect simulation method according to any one of the above schemes.
The beneficial effects are that: compared with the prior art, the invention provides a radar scanning effect simulation method, which comprises the steps of firstly obtaining parameter attributes corresponding to a target scanning effect, and determining the number of particles for simulating the scanning effect according to the parameter attributes; according to the particle quantity, acquiring the coordinate position of each particle; and controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle. The method is beneficial to realizing the visualization of the radar scanning effect, and the reminding state of dynamic visual inquiry can be vividly displayed in the regional inquiry service of the smart city, so that the user is more intuitively fed back.
Drawings
Fig. 1 is a flowchart of a specific implementation of a radar scanning effect simulation method according to an embodiment of the present invention.
Fig. 2 is a diagram of the dynamic and tail flame effects of the radar scan simulation in the radar scan effect simulation method according to the embodiment of the present invention.
Fig. 3 is a sector effect diagram of radar scanning simulation in the radar scanning effect simulation method according to the embodiment of the present invention.
Fig. 4 is a schematic block diagram of a radar scanning effect simulation system provided by an embodiment of the present invention.
Fig. 5 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and more specific, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In webgis systems for smart city services, it is necessary to simulate the effects of some commonly used military symbols, such as the visualization of radar scanning effects, based on geographic coordinates. However, in the prior art, a dynamic visual query reminding state cannot be vividly displayed in the regional query service, and the user cannot be fed back obviously and intuitively.
In order to solve the problems in the prior art, the embodiment provides a radar scanning effect simulation method, which includes the steps of firstly obtaining parameter attributes corresponding to a target scanning effect, and determining the number of particles for simulating the scanning effect according to the parameter attributes. And then acquiring the coordinate position of each particle according to the particle number. And finally, controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle. The embodiment is beneficial to realizing the visualization of the radar scanning effect, and the reminding state of dynamic visual inquiry can be vividly displayed in the regional inquiry service of the smart city, so that the user is more intuitively fed back.
In particular implementation, as shown in fig. 1, the method comprises the steps of:
step S100, acquiring parameter attributes corresponding to the target scanning effect, and determining the particle number for simulating the scanning effect according to the parameter attributes.
Specifically, the present embodiment first selects mapbox gl. Js and three. Js as development tools.
Both mapbox gl. Js and three. Js are world-level open source graphics engines. mapbox gl. Js is a map open source engine in the webgis domain, used as a geographic communications system. the thread. Js is a web-end general engine, has rich community development components and accumulation, and is highly abstract and graphical drawing and rich interface expansion. The embodiment can build the webgis system in the shortest time by adopting the open source technology, and has quite maturity and expansibility. The mapbox gl. Js can be used as a layer to be independently rendered in a map, the rich interfaces of the three. Js support the development of a graphics bottom layer interface webgl, the parallel rendering strength calculation of the GPU (graphics accelerator) can be called by utilizing the pipeline programming of the webgl to simulate a vivid water body simulation special effect, so that a webgis system built by the mapbox gl. Js has the capability of being directly connected with the bottom layer, and the GPU (graphics accelerator) is utilized to render the high-efficiency stable special effect.
Since the following features need to be satisfied when simulating the radar scanning effect: 1. the dynamics, i.e. the final effect, is to be scannable for rotation as shown in military radar monitoring equipment. 2. The effect of regularity, i.e. movement, is to assume a sector like that shown in military radar monitoring equipment. 3. The tail flame effect, namely the effect that the front density of the movement direction is high and the tail density is low is presented while the dynamic performance and the regularity are provided, and the physical law of operation of the military radar monitoring equipment is simulated. 4. The periodicity, i.e. the scanning effect, is repeated. Thus, several requirements for achieving an analog radar scanning effect are well defined, as well as a substantially complete reference effect.
Having clarified three requirements and general effects of achieving the analog radar scanning effect, the present embodiment also needs to clarify how these features and effects are achieved with a program, and the present embodiment considers how the following characteristics are achieved with a program.
Characteristic 1 is to realize a scanning area with dynamics. There are two conceivable solutions, the first being to directly draw a polygon and rotate it around the center of the circle. However, the practice proves that the tail flame effect is difficult to achieve, the effect cannot be expected, and the tail flame effect is abandoned. The second approach is to use particles of some kind of motion to make up the whole dynamic scanning area, controlling the movement by controlling the motion and transparency of the particles.
Property 2 is a requirement for realizing a polygon with property 1, requiring that it must assume a fan-shaped pose. Algorithms may be used to fan the moving particles.
Characteristic 3 is a requirement for the effect of the movement, i.e. it must be high density directly in front of the direction of movement, high brightness and low density behind the direction of movement, with a slightly dull color. It is necessary to calculate the transparency of the particles and set them up according to the relation between the moving parts and time during the process of controlling the movement of the particles.
Characteristic 4 is the result of requiring the movement to be repeated without stopping, the whole movement process must be recorded using an algorithm and reset at the right moment so that it can be run cyclically.
The present embodiment selects a particle system as a tool to simulate the radar scanning effect. The particle system is a high-performance simulation method commonly used in computer graphics, and the principle is that the described object is abstracted into point particles in the computer graphics, and then the particles are subjected to operations such as movement, color change, size change and the like according to a certain rule by adopting a space mathematical method, so that the movement characteristics of the object are simulated. The design method converts the simulation radar scanning effect into control of a particle system by using the thought of programming, and simulates the radar scanning effect by controlling the spatial distribution, the motion rule and the size of the particle system, so that the basis is made for the realization of an actual program very clearly.
In order to simulate the radar scanning effect, the embodiment quantifies the object characteristics of the radar scanning effect for program call to develop a particle system. Specifically, the embodiment obtains a parameter attribute corresponding to the target scan, where the parameter attribute includes: the center position (center) of the radar scanning effect, the color (color) of the radar scanning effect, the radius (radius) of the radar scanning effect, the fan angle (length) of the radar scanning effect, the sense of thickness (width) of the radar scanning effect, and the speed of movement (speed) of the radar scanning effect.
The steps are as follows: s200, according to the particle number, acquiring the coordinate position of each particle.
The scheme of the embodiment is to simulate the radar scanning effect by adopting a plurality of circles with small to large radiuses and formed by particles. The circle has radius and center attributes, the color and thickness of the particles can be adjusted, the fan-shaped included angle (length) parameter of the input analog radar effect is increased, the circle is just a plane circle, the circle formed by the particles is in a coloring device program, and the effect of the particles moving along the circle can be realized by adopting a method of controlling the sequence of the particles. The specific implementation is as follows:
based on the center position (center) of the radar scan and the radius (radius) of the radar scan, we can calculate the coordinates of the whole circle by classical mathematical circle algorithm (knowing the coordinates of the center and the coordinates of any point on the radius calculation circle), and setting the particles according to these coordinates will present a circle (it is necessary to increase the calculation density in the algorithm, and it appears that the arrangement of a plurality of particles forms a circle). The total number of particles constituting the loop is then known by classical mathematical round algorithm, the position of each particle is calculated in a particle-by-particle manner in the shader program, and the same serial number (1, 2, 3..total number of particles) as the total number of particles is input into the shader program, so that the shader program can know which serial number of particles the program is handling by reading this serial number when calculating the position particle-by-particle.
And step 300, controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle.
In specific implementation, the embodiment inputs a time parameter into the shader; and then controlling the particles to present radar scanning effect according to the time parameter. Specifically, in this embodiment, a particle serial number is obtained, and the particle serial number is compared with the time parameter and a fan-shaped included angle corresponding to the target scanning effect; and if the particle serial number is smaller than the sum of the fan-shaped included angles corresponding to the time parameter and the target scanning effect and the particle serial number is larger than the time parameter, controlling the particles corresponding to the particle serial number to be visible so that the particles show the radar scanning effect. In addition, only a small part of the control length of the whole circular ring (namely the sector included angle length of the radar effect) can be pushed forward along with the increase of time, so that the circular ring has the dynamic property and the tail flame effect, and the circular ring has the characteristic 1 dynamic property and the characteristic 3 tail flame effect. As particularly shown in fig. 2.
If the distance from the center of the circle to the maximum radius (radius) is divided into n segments, each segment being a radius of a new circle, then generating n circles according to the same center of the circle (the circles differ only in different radii) moving together will create an effect that approximates a sector of a field moving forward, i.e. a sector effect, meeting the sector requirement of feature 2, as shown in particular in fig. 3. And different sector patterns can be obtained along with setting different sector angles length. Finally, based on the animation effect principle in the shader program, the radar scanning animation is controlled by controlling the relation between the time, the fixed point coordinate sequence number and the fan-shaped included angle length of the radar effect, when the time is increased to be the same as the total number of particles, the completion of one-round animation is proved, at the moment, the time program is required to be set to be 0, and a section of new scanning animation is restarted to finish the periodicity of the characteristic 4 if the new addition is continued. The embodiment uses a plurality of circles formed by particles, realizes the simulation radar scanning effect in a mode of setting different attributes and rules by an actual program, and meets the four characteristics.
To sum up, in this embodiment, first, a parameter attribute corresponding to a target scanning effect is obtained, and the number of particles for simulating the scanning effect is determined according to the parameter attribute; according to the particle quantity, acquiring the coordinate position of each particle; and controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle. The embodiment is beneficial to realizing the visualization of the radar scanning effect, and the reminding state of dynamic visual inquiry can be vividly displayed in the regional inquiry service of the smart city, so that the user is more intuitively fed back.
Based on the above embodiment, the present invention further provides a radar scanning effect simulation system, specifically as shown in fig. 4, where the system includes: particle number acquisition module 10, coordinate position acquisition module 20, and scan effect simulation module 30. Specifically, the particle number obtaining module 10 is configured to obtain a parameter attribute corresponding to the target scanning effect, and determine the particle number for simulating the scanning effect according to the parameter attribute. The coordinate position acquisition module 20 is configured to acquire a coordinate position of each particle according to the number of particles. The scanning effect simulation module 30 is configured to control the particles to display a radar scanning effect according to the coordinate position of each particle through a shader program.
Based on the above embodiment, the present invention also provides a terminal device, and a functional block diagram thereof may be shown in fig. 5. The terminal equipment comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the terminal device is adapted to provide computing and control capabilities. The memory of the terminal device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the terminal device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a radar scanning effect simulation method. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal equipment is preset in the terminal equipment and is used for detecting the running temperature of the internal equipment.
It will be appreciated by persons skilled in the art that the functional block diagram shown in fig. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the terminal device to which the present inventive arrangements are applied, and that a particular terminal device may include more or fewer components than shown, or may combine some of the components, or may have a different arrangement of components.
In one embodiment, a terminal device is provided, the terminal device including a memory, a processor, and a radar scan effect simulation program stored in the memory and executable on the processor, the processor implementing the following operation instructions when executing the radar scan effect simulation program:
acquiring parameter attributes corresponding to a target scanning effect, and determining the number of particles for simulating the scanning effect according to the parameter attributes;
according to the particle quantity, acquiring the coordinate position of each particle;
and controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In summary, the invention discloses a radar scanning effect simulation method, a system, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring parameter attributes corresponding to a target scanning effect, and determining the number of particles for simulating the scanning effect according to the parameter attributes; according to the particle quantity, acquiring the coordinate position of each particle; and controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle. The method is beneficial to realizing the visualization of the radar scanning effect, and can vividly display the reminding state of a dynamic visual query in the regional query service of the smart city.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A radar scanning effect simulation method, characterized in that the method comprises:
acquiring parameter attributes corresponding to a target scanning effect, and determining the number of particles for simulating the scanning effect according to the parameter attributes;
according to the particle quantity, acquiring the coordinate position of each particle;
controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle;
the obtaining the parameter attribute corresponding to the target scanning effect, and determining the particle number for simulating the scanning effect according to the parameter attribute includes:
acquiring parameter attributes corresponding to the target scanning, wherein the parameter attributes comprise: the method comprises the steps of (1) a center position of a radar scanning effect, a color of the radar scanning effect, a scanning radius of the radar scanning effect, a sector included angle of the radar scanning effect, a heavy sense of the radar scanning effect and a movement speed of the radar scanning effect;
determining a circle formed by particles and the number of the particles according to the parameter attribute;
the controlling the particles to present the radar scanning effect by the shader program according to the coordinate position of each particle comprises the following steps:
inputting a time parameter into the shader;
controlling particles to present radar scanning effect according to the time parameter;
according to the time parameter, controlling the particles to present radar scanning effect, including:
acquiring a particle sequence number, and comparing the particle sequence number with the time parameter and a fan-shaped included angle corresponding to a target scanning effect;
if the particle serial number is smaller than the sum of the fan-shaped included angles corresponding to the time parameter and the target scanning effect and the particle serial number is larger than the time parameter, controlling the particles corresponding to the particle serial number to be visible so that the particles show the radar scanning effect;
according to the time parameter, controlling the particles to present radar scanning effect, including:
dividing the particles into n sections from the center of a circle to the maximum radius according to a preset quantity, wherein the distance of each section is the radius of a new circle;
generating n circles according to the same circle center to move together, and forming the effect that a sector-shaped area moves forwards.
2. The radar scan effect simulation method according to claim 1, wherein said determining a circle of particles and a number of particles based on said parameter attribute comprises:
the total number of particles making up the circle is determined by classical mathematical circle algorithms and the position of each particle is calculated in a particle-by-particle manner in a shader program.
3. The radar scanning effect simulation method according to claim 1, wherein the acquiring the coordinate position of each particle according to the number of particles includes:
and calculating the coordinates of the whole circle formed by the particles according to the central position of the radar scanning effect and the scanning radius of the radar scanning effect.
4. A radar scanning effect simulation system, the system comprising:
the particle quantity acquisition module is used for acquiring parameter attributes corresponding to the target scanning effect and determining the particle quantity for simulating the scanning effect according to the parameter attributes;
the coordinate position acquisition module is used for acquiring the coordinate position of each particle according to the particle number;
the scanning effect simulation module is used for controlling the particles to present radar scanning effect through a shader program according to the coordinate position of each particle;
the particle number acquisition module includes:
acquiring parameter attributes corresponding to the target scanning, wherein the parameter attributes comprise: the method comprises the steps of (1) a center position of a radar scanning effect, a color of the radar scanning effect, a scanning radius of the radar scanning effect, a sector included angle of the radar scanning effect, a heavy sense of the radar scanning effect and a movement speed of the radar scanning effect;
determining a circle formed by particles and the number of the particles according to the parameter attribute;
the description effect simulation module comprises:
inputting a time parameter into the shader;
controlling particles to present radar scanning effect according to the time parameter;
according to the time parameter, controlling the particles to present radar scanning effect, including:
acquiring a particle sequence number, and comparing the particle sequence number with the time parameter and a fan-shaped included angle corresponding to a target scanning effect;
if the particle serial number is smaller than the sum of the fan-shaped included angles corresponding to the time parameter and the target scanning effect and the particle serial number is larger than the time parameter, controlling the particles corresponding to the particle serial number to be visible so that the particles show the radar scanning effect;
according to the time parameter, controlling the particles to present radar scanning effect, including:
dividing the particles into n sections from the center of a circle to the maximum radius according to a preset quantity, wherein the distance of each section is the radius of a new circle;
generating n circles according to the same circle center to move together, and forming the effect that a sector-shaped area moves forwards.
5. A terminal device comprising a memory, a processor and a radar scanning effect simulation program stored in the memory and operable on the processor, the processor implementing the steps of the radar scanning effect simulation method according to any one of claims 1-3 when the processor executes the radar scanning effect simulation program.
6. A computer-readable storage medium, wherein a radar scanning effect simulation program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the radar scanning effect simulation method according to any one of claims 1-3.
CN202110712942.2A 2021-06-25 2021-06-25 Radar scanning effect simulation method, system, terminal equipment and storage medium Active CN113569157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110712942.2A CN113569157B (en) 2021-06-25 2021-06-25 Radar scanning effect simulation method, system, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110712942.2A CN113569157B (en) 2021-06-25 2021-06-25 Radar scanning effect simulation method, system, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113569157A CN113569157A (en) 2021-10-29
CN113569157B true CN113569157B (en) 2023-08-29

Family

ID=78162791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110712942.2A Active CN113569157B (en) 2021-06-25 2021-06-25 Radar scanning effect simulation method, system, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113569157B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110361707B (en) * 2019-08-09 2023-03-14 成都玖锦科技有限公司 Dynamic simulation method for motion state of radiation source
CN114387382A (en) * 2021-12-31 2022-04-22 桂林长海发展有限责任公司 Method, system, storage medium, and electronic device for rendering radar scan animation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106125087A (en) * 2016-06-15 2016-11-16 清研华宇智能机器人(天津)有限责任公司 Dancing Robot indoor based on laser radar pedestrian tracting method
CN110261860A (en) * 2019-06-18 2019-09-20 长沙泊序智能技术有限公司 Passive controllable frequency spectrum light quantum radar suitable for forest and grassland fire source probing
CN111563963A (en) * 2020-04-22 2020-08-21 深圳震有科技股份有限公司 Tornado weather simulation method, intelligent terminal and storage medium
EP3739356A1 (en) * 2019-05-12 2020-11-18 Origin Wireless, Inc. Method, apparatus, and system for wireless tracking, scanning and monitoring
CN112347696A (en) * 2020-11-06 2021-02-09 中国电子科技集团公司第三十八研究所 Discretization area scanning subarray-level sparse optimization method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106125087A (en) * 2016-06-15 2016-11-16 清研华宇智能机器人(天津)有限责任公司 Dancing Robot indoor based on laser radar pedestrian tracting method
EP3739356A1 (en) * 2019-05-12 2020-11-18 Origin Wireless, Inc. Method, apparatus, and system for wireless tracking, scanning and monitoring
CN110261860A (en) * 2019-06-18 2019-09-20 长沙泊序智能技术有限公司 Passive controllable frequency spectrum light quantum radar suitable for forest and grassland fire source probing
CN111563963A (en) * 2020-04-22 2020-08-21 深圳震有科技股份有限公司 Tornado weather simulation method, intelligent terminal and storage medium
CN112347696A (en) * 2020-11-06 2021-02-09 中国电子科技集团公司第三十八研究所 Discretization area scanning subarray-level sparse optimization method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
an efficient modular volume-scanning radar forward operator for NWP models:description and coupling to the COSMO model;yuefei zeng等;quarterly journal of the royal meteorological society;3234-3256 *

Also Published As

Publication number Publication date
CN113569157A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN113569157B (en) Radar scanning effect simulation method, system, terminal equipment and storage medium
US11127198B2 (en) Graphics processing using directional representations of lighting at probe positions within a scene
CN110738722B (en) Thermodynamic diagram texture generation method, device and equipment
US9672656B1 (en) Variable level-of-detail map rendering
CN102722885B (en) Method for accelerating three-dimensional graphic display
CN106251377A (en) Use the divided method of displacement factor
US20150332481A1 (en) Indexed uniform styles for stroke rendering
CN104933749B (en) Clipping of graphics primitives
CN103559374A (en) Method for subdividing surface split type curved surfaces on multi-submesh model
CN103439743A (en) Method for drawing seismic data profile graph
CN105913475B (en) A kind of change in time and space process dynamics method for visualizing
US8525843B2 (en) Graphic system comprising a fragment graphic module and relative rendering method
JP2018169875A (en) Intersection determination program, intersection determination method, and intersection determination device
CN111563963B (en) Tornado weather simulation method, intelligent terminal and storage medium
JP2011039828A (en) System and method for processing image
US20080100615A1 (en) Sweep with guide surface
US10475227B1 (en) Systems and methods for three dimensional computation and visualization using a parallel processing architecture
Kumar et al. Development of CAD algorithms for bezier curves/surfaces independent of operating system
JP2021033375A (en) Apparatus for editing three-dimensional shape data and program for editing three-dimensional shape data
Zhang et al. Research on the three-dimensional displaying of STL ASCII and binary file
US11900542B2 (en) Computer-aided techniques for designing 3D surfaces based on gradient specifications
CN112417061B (en) Three-dimensional dynamic plotting display method based on time drive
CN111709113B (en) Graphics-based ceiling lamp simulation method, device, terminal and storage medium
US20240242437A1 (en) Computer-aided techniques for designing 3d surfaces based on gradient specifications
CN113569529A (en) Three-dimensional Chinese character construction method, system, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant