Display Method, Device, Equipment and Storage Medium of Multimedia Particles
By dynamically updating the multimedia particles on the map display interface, the problem of map application lag during snow scene simulation in the existing technology is solved, and the rendering effect and performance are improved.
Patent Information
- Application Number
- CN202111447673.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2041-11-30
AI Technical Summary
In the prior art, when simulating snow scenes in real environments, the terminal needs to frequently obtain maps, resulting in lag in the map application and lack of authenticity in rendering results.
By obtaining the initial position information of dynamic multimedia particles in the particle space area, mapping them to the map display interface, dynamically update the particle's movement trajectory and display size, and recycling the dynamic multimedia particles in the same particle space area in response to the map adjustment operation.
It improves the accuracy of the movement trajectory and size of multimedia particles in a real environment, enhances the interaction between electronic maps and multimedia particles, improves visual effects, reduces the calculation amount of dynamic multimedia particles, and improves the running performance of map applications.
Smart Images

Figure CN114119800B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of map technologies, and in particular, to a method, apparatus, device, and storage medium for displaying multimedia particles. Background Art
[0002] Three-dimensional rendering refers to simulating some natural phenomena in a real environment in an application program of a three-dimensional virtual environment. For example, simulating the weather in a real environment in a map application program, so that users have a more real experience when using an electronic map.
[0003] Taking the snow scene as an example of the weather scene, when simulating the snow scene, it is necessary to add a texture map including snow elements to the electronic map, and simulate the snow scene in the real environment by adding multiple texture maps to the electronic map in a certain order. In the above technical solution, when the terminal simulates the snow scene in the real environment, the terminal needs to frequently obtain texture maps to render the snow scene in the electronic map, which easily causes the map application program to freeze.
[0004] Invention content
[0005] The technical problem to be solved by the embodiments of the present application is to provide a method, apparatus, device, and storage medium for displaying multimedia particles, which can improve the running performance of the map application program.
[0006] On the one hand, an embodiment of the present application provides a method for displaying multimedia particles, including:
[0007] Obtain the initial position information of the dynamic multimedia particle P i in the particle space region; the particle space region is a finite space region independent of the map space corresponding to the original electronic map, i is a positive integer less than N, and N is the number of multimedia particles in the particle space region;
[0008] Map the dynamic multimedia particle P i to the map display interface for displaying the original electronic map according to the initial position information;
[0009] If it is detected that there is an adjustment operation for the original electronic map, update the original electronic map on the map display interface to an updated electronic map based on the adjustment operation, and update the initial position information of the dynamic multimedia particle P i in the particle space region according to the adjustment operation, to obtain the updated position information of the dynamic multimedia particle P i in the particle space region;
[0010] Adjust the dynamic multimedia particle P iThe movement track and display size in the map display interface including the updated electronic map.
[0011] An embodiment of the present application provides a method for displaying multimedia particles, including:
[0012] On a map display interface for displaying an original electronic map, dynamically display dynamic multimedia particles in a set of multimedia particles;
[0013] In response to an adjustment operation on the original electronic map, display an updated electronic map obtained based on the adjustment operation on the map display interface;
[0014] On the map display interface including the updated electronic map, dynamically update the movement track and display size of the dynamic multimedia particles in the set of multimedia particles according to the adjustment operation.
[0015] An embodiment of the present application provides a device for displaying multimedia particles, including:
[0016] An acquisition module for acquiring the initial position information of a dynamic multimedia particle Pi in a particle space region; the particle space region is a finite space region independent of the map space corresponding to the original electronic map, i is a positive integer less than N, and N is the number of multimedia particles in the particle space region; i In the particle space region, i is a positive integer less than N, and N is the number of multimedia particles in the particle space region;
[0017] A mapping module for mapping the dynamic multimedia particle Pi to the map display interface for displaying the original electronic map according to the initial position information; i To the map display interface for displaying the original electronic map;
[0018] A display module for, if detecting an adjustment operation on the original electronic map, updating and displaying the original electronic map on the map display interface as an updated electronic map based on the adjustment operation, and updating the initial position information of the dynamic multimedia particle Pi in the particle space region according to the adjustment operation to obtain the updated position information of the dynamic multimedia particle Pi in the particle space region; i In the particle space region, to obtain the updated position information of the dynamic multimedia particle Pi in the particle space region; i In the particle space region;
[0019] An adjustment module for adjusting the movement track and display size of the dynamic multimedia particle Pi in the map display interface including the updated electronic map according to the updated position information; i The movement track and display size in the map display interface including the updated electronic map.
[0020] An embodiment of the present application provides a device for displaying multimedia particles, including:
[0021] A display module, configured to dynamically display dynamic multimedia particles in a multimedia particle set on a map display interface for displaying an original electronic map;
[0022] An update module, configured to, in response to an adjustment operation on the original electronic map, display an updated electronic map obtained based on the adjustment operation on the map display interface; on the map display interface including the updated electronic map, dynamically update the movement trajectories and display sizes of the dynamic multimedia particles in the multimedia particle set according to the adjustment operation.
[0023] On the one hand, the present application provides a computer device, including: a processor and a memory;
[0024] Wherein, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program to execute the steps in the method of the present application.
[0025] On the one hand, an embodiment of the present application provides a computer-readable storage medium, the above-mentioned computer-readable storage medium stores a computer program, the above-mentioned computer program includes program instructions, and when the above-mentioned program instructions are executed by a processor, the steps in the method of the present application are executed.
[0026] On the one hand, an embodiment of the present application provides a computer program product, including computer programs / instructions, and when the computer programs / instructions are executed by a processor, the steps of the above-mentioned method are implemented.
[0027] In the present application, as the electronic map changes, the display effect of the dynamic multimedia particles is dynamically adjusted, which is beneficial to improving the accuracy of the movement trajectories and sizes of the dynamic multimedia particles in the simulated real environment, enhancing the interactivity between the electronic map and the dynamic multimedia particles, and improving the visual effect. At the same time, before and after the adjustment of the original electronic map, the dynamic multimedia particles in the same particle space region are used to simulate the dynamic multimedia particles in the real environment, that is, by recycling the dynamic multimedia particles in the same particle space region, it is possible to use a small number of dynamic multimedia particles to simulate the state (such as weather state) in the area displayed by the electronic map, which can reduce the computational amount of the dynamic multimedia particles, improve the rendering efficiency, and improve the operating performance of the map application program. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0029] Figure 1 It is a schematic diagram of the architecture of a multimedia particle display system provided by this application;
[0030] Figure 2a It is a schematic diagram of the interaction scenario among various devices in a multimedia particle display system provided by this application;
[0031] Figure 2b It is a schematic diagram of the interaction scenario among various devices in a multimedia particle display system provided by this application;
[0032] Figure 3 It is a schematic flowchart of the first multimedia particle display method provided by this application;
[0033] Figure 4 It is a schematic flowchart of the first multimedia particle display method provided by this application;
[0034] Figure 5 It is a schematic interface diagram of the field of view angle of the particle space area provided by this application;
[0035] Figure 6 It is a schematic diagram of the scenario of the movement state of the virtual camera when the original electronic map is enlarged provided by this application;
[0036] Figure 7 It is a schematic diagram of the scenario of the movement state of the virtual camera when the original electronic map is enlarged provided by this application;
[0037] Figure 8 It is a schematic diagram of the relationship between the scaling ratio and the scaling distance provided by this application;
[0038] Figure 9 It is a schematic flowchart of the first multimedia particle display method provided by this application;
[0039] Figure 10a It is an effect diagram obtained by rendering dynamic multimedia particles when the original electronic map is translated provided by this application;
[0040] Figure 10b It is an effect diagram obtained by rendering dynamic multimedia particles when the original electronic map is translated provided by this application;
[0041] Figure 11 It is an effect diagram obtained by rendering dynamic multimedia particles when the original electronic map is enlarged provided by this application;
[0042] Figure 12 It is an effect diagram obtained by rendering dynamic multimedia particles when the original electronic map is translated provided by this application;
[0043] Figure 13 It is an effect diagram obtained by rendering dynamic multimedia particles when performing translation operations, rotation operations, and zoom operations on the original electronic map provided by this application;
[0044] Figure 14 It is a schematic structural diagram of a display device for multimedia particles provided by an embodiment of this application;
[0045] Figure 15 It is a schematic structural diagram of a display device for multimedia particles provided by an embodiment of this application;
[0046] Figure 16 It is a schematic structural diagram of a computer device provided by an embodiment of this application. Detailed implementation manners
[0047] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0048] First, the nouns involved in the embodiments of this application are introduced:
[0049] The display method of multimedia particles refers to: rendering (simulating) dynamic multimedia particles in the real environment in the map space (i.e., virtual space) corresponding to the original electronic map; the real environment can refer to an actually existing environment, such as the real environment can refer to an environment including at least one of the ground, the ground and the sky, etc.
[0050] Dynamic multimedia particles: refer to elements that are used to simulate elements that actually exist in a real environment and have the attribute of movement. For example, dynamic multimedia particles can refer to dynamic weather particles, which are used to simulate the weather conditions of the area shown in an electronic map. When the weather condition is snowing, the dynamic weather particles can be snow elements with the attribute characteristics of snow; when the weather condition is raining, the dynamic weather particles can be rain elements with the attribute characteristics of raindrops; when the weather condition is cloudy, the dynamic weather particles can be cloud elements with the attribute characteristics of clouds. Dynamic weather particles can also refer to dust in the sky, and so on. Dynamic multimedia particles can refer to vehicle particles, which are used to simulate vehicles moving in the area shown in an electronic map; of course, the dynamic multimedia particles can refer to other particles, such as animals used to simulate the area shown in an electronic map, and so on. Optionally, dynamic multimedia particles can refer to elements that are used to simulate elements that actually exist in a real environment and do not have the attribute of movement. For example, the dynamic multimedia particles can refer to text, etc. This application does not make any limitations in this regard.
[0051] Particle space region: refers to the three-dimensional space in which dynamic multimedia particles are distributed. This particle space can specifically refer to a three-dimensional space that is independent of the map space corresponding to the electronic map, and has a limited and controllable size. The size and shape of this particle space region can be dynamically set according to the application scenario, or the size and shape of this particle space region can be set according to the user's needs. It can be understood that the map space corresponding to the electronic map can be called a virtual space (i.e., a virtual environment), and the particle space region refers to a space region between the virtual space and the real space (i.e., the real environment).
[0052] Electronic Map: It refers to a high-precision map or a navigation map. A high-precision map can refer to a map serving an autonomous driving system. A high-precision map is also called an autonomous driving map or a high-resolution map, which is a new map data paradigm for autonomous vehicles. The absolute position accuracy of a high-precision map is close to 1m, and the relative position accuracy is at the centimeter level, capable of reaching 10 - 20cm. Accurately and comprehensively representing road features (such as road elements in a road section) and requiring higher real-time performance are the most prominent features of a high-precision map. In addition, a high-precision map records the specific details of driving behaviors, including typical driving behaviors, the best acceleration and braking points, the complexity of road conditions, and the annotation of signal reception conditions for different road sections, etc. A navigation map is provided for drivers. Its information accuracy is not as high, but the information richness is much greater than that of a high-precision map. A navigation map not only has basic road information but also includes information on various points of interest (POIs) in the map, such as the size and quantity of buildings, the uses of buildings (hospital or shopping mall), etc. Just these POI information are much more complex than the data of lanes and common features in a high-precision map, and the data volume is also not small.
[0053] When the electronic map is displayed on a display terminal, the user can obtain the information shown in the electronic map by performing adjustment operations such as zooming, panning, and rotating on the electronic map. Therefore, for the sake of distinction, the original electronic map in this application can refer to the electronic map before adjustment, and the updated electronic map can refer to the electronic map obtained through the adjustment operation. In particular, when the electronic map is adjusted multiple times, the original electronic map can refer to the electronic map obtained from the previous adjustment, and the updated electronic map can refer to the electronic map obtained from the current adjustment. For example, if the user first performs a zoom operation on the electronic map and then pans the electronic map obtained from the zoom operation, then the electronic map obtained from the zoom operation can be called the original electronic map, and the electronic map obtained from the pan operation can be called the updated electronic map.
[0054] Currently, to facilitate users to view the status of a certain area in real time, such as the weather status of the area, it is necessary to simulate the weather status of the area in the display interface of the electronic map including the area. Currently, the method of simulating the weather in the real environment (i.e., a certain area) by pasting pictures in the electronic map is adopted. The terminal needs to frequently obtain pictures to render the snowing scene in the electronic map, which is likely to cause the map application to freeze. At the same time, since the display position and size of the picture in the terminal interface are both fixed, the rendering result lacks authenticity. Based on this, the present application provides a method for displaying multimedia particles, which includes: the terminal can dynamically display dynamic multimedia particles in the multimedia set on the map display interface for displaying the original electronic map; when the terminal detects adjustment operations such as rotation, translation, and zooming of the user on the original electronic map, it can display the updated electronic map obtained based on the adjustment operation on the map display interface. Further, on the map display interface including the updated electronic map, the moving trajectories and display sizes of the dynamic multimedia particles in the multimedia particle set can be adjusted according to the adjustment operation. That is to say, as the electronic map changes, the display effect of the multimedia particles is dynamically adjusted, which is beneficial to improving the accuracy of the moving trajectories and sizes of the multimedia particles in the simulated real environment, enhancing the interactivity between the electronic map and the multimedia particles, and improving the visual effect. At the same time, before and after the adjustment of the original electronic map, the dynamic multimedia particles in the same multimedia particle set are used to simulate the dynamic multimedia particles in the real environment, that is, by recycling the dynamic multimedia particles in the same multimedia particle set, it is possible to use a small number of dynamic multimedia particles to simulate the status in the area displayed by the electronic map, which can reduce the computational amount of the terminal for the dynamic multimedia particles, improve the rendering efficiency, and improve the running performance of the map application.
[0055] To facilitate a clearer understanding of the present application, first, a multimedia particle display system for implementing the method for displaying multimedia particles of the present application is introduced, as Figure 1 shown. The multimedia particle display system includes, as Figure 1 shown, the multimedia particle display system includes a server 10 and a terminal cluster. The terminal cluster can include one or more terminals, and the number of terminals will not be limited here. As Figure 1 shown, the terminal cluster can specifically include terminal 1, terminal 2,..., terminal n; it can be understood that terminal 1, terminal 2, terminal 3,..., terminal n can all be network-connected to the server 10, so that each terminal can perform data interaction with the server 10 through the network connection.
[0056] Among them, the server 10 may refer to a map management device. For example, the server may refer to a device that provides backend services for a map application platform, and the map application platform may refer to a map application, a map mini-program, a web page including a map, and so on. Specifically, the server 10 may be used to determine the movement trajectory and display size of the dynamic multimedia particles in the multimedia set according to the adjustment operation of the user on the original electronic map. The terminal may be used to dynamically display the dynamic multimedia particles in the multimedia particle set in a map display interface including the updated electronic map according to the movement trajectory and display size.
[0057] Among them, the server may be an independent physical server, or a server cluster or distributed system composed of at least two physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. The terminal may specifically refer to an in-vehicle terminal, a smart phone, a smart speaker, a screen speaker, a smart watch, etc. with map processing functions, but is not limited thereto. Each terminal and server may be directly or indirectly connected through wired or wireless communication methods. At the same time, the number of terminals and servers may be one or at least two, and this application does not make any restrictions here.
[0058] Based on Figure 1 The multimedia particle display system shown can be used to implement the multimedia particle display method in this application. For example, Figure 2a and Figure 2b As shown, the multimedia particle display method refers to rendering and displaying the dynamic multimedia particles in the real environment in the electronic map in the virtual environment, that is, realizing the process of simulating the dynamic multimedia particles in the real environment in the virtual environment. The main principle implemented by the multimedia particle display method is: separating the particle space area from the map space, and distributing the dynamic multimedia particles in the multimedia particle set in the particle space area.
[0059] Such as Figure 2aAs shown in the figure, take the cube with a side length of 2 in this particle space region as an example for illustration. Assume that the center of the cube is at the origin of the three-dimensional coordinate system. Then, the dynamic multimedia particles in the multimedia particle set are evenly distributed in the three-dimensional space region of [-1, 1]. Looking at the scene of the dynamic multimedia particles in the real environment is equivalent to using a camera on the surface of the inscribed sphere of this cube, looking at the dynamic multimedia particles in the cube in the direction of the center of the sphere. When performing adjustment operations such as translation, zoom, and rotation on the electronic map, it is equivalent to transforming the positions of the dynamic multimedia particles in the cube and the position of the camera. If the coordinates of the dynamic multimedia particles exceed the cube after transformation, adjust the coordinates of the dynamic multimedia particles and move the dynamic multimedia particles outside the cube back into the cube; this is beneficial for recycling the dynamic multimedia particles in the cube, without the need to regenerate the dynamic multimedia particles after adjusting the original electronic map, improving the rendering effect and rendering efficiency of the multimedia particles.
[0060] In Figure 2a and 2b take this dynamic multimedia particle as the first dynamic weather particle as an example for illustration. The display method of this multimedia particle may include the following steps:
[0061] S1. The terminal dynamically displays the first dynamic weather particle in the multimedia particle set in the map display interface including the original electronic map. The first dynamic weather particle is used to simulate the weather state of the target area shown in the original electronic map. For example, at time T, the terminal detects a startup operation for the electronic map, and the terminal displays the electronic map in the map display interface. This electronic map can be called the original electronic map. Assume that the first dynamic weather particles are all generated on the plane of z = 2. After the first dynamic weather particles are generated, they will move downward along the negative z-axis in the particle space region. The server can obtain the initial position information of the first dynamic weather particle in the multimedia particle set in the cube, send the initial position information to the terminal, and the terminal performs an MVP (Model View Projection) transformation on the initial position information to obtain the initial perspective position information of the first dynamic weather particle in the multimedia particle set in the perspective space. The initial perspective position information includes the initial screen coordinates and depth coordinates. Render the first dynamic weather particle in the multimedia particle set according to the depth coordinates to obtain the rendered first dynamic weather particle, and display the rendered first dynamic weather particle at the position corresponding to the initial screen coordinates in the map display interface including the original electronic map. As Figure 2a in the first dynamic weather particles increase slowly over time, so Figure 2a in the map display interface including the original electronic map only includes a small number of first dynamic weather particles ( Figure 2aThe white dots in [it] are the first dynamic weather particles. Since the depth coordinates of different first dynamic weather particles are inconsistent, the display sizes of the first weather particles at different positions on the map display interface are inconsistent.
[0062] S2. At the moment of T + t, the terminal responds to the adjustment operation for the original electronic map and displays the updated electronic map obtained by this adjustment operation in the map display interface. The area shown in the updated electronic map includes the target area.
[0063] S3. The server can obtain the updated position information of the first dynamic weather particles in the multimedia particle set in the cube according to this adjustment operation.
[0064] For example, when the adjustment operation is a zoom operation and the zoom operation carries a zoom ratio, the terminal can send the zoom ratio and the zoom direction to the server. The server can determine the zoom offset of the first dynamic weather particle in the cube according to the zoom ratio and the zoom direction. Further, obtain the downward movement distance of the first dynamic weather particle in the cube under the action of gravity. According to the zoom offset and the downward movement distance, adjust the initial position information of the first dynamic weather particle in the cube to obtain the updated position information of the first dynamic weather particle in the cube.
[0065] For another example, as Figure 2b shown, when the adjustment operation is a pan operation, the terminal can send the pan direction to the server. The server can obtain the actual geographical distance corresponding to the geographical unit distance in the updated electronic map. According to the position information of the center position point of the original electronic map and the position information of the center position point of the updated electronic map, determine the pan amount of the original electronic map, and determine the ratio between the pan amount and the actual geographical distance as the pan offset of the first dynamic weather particle. Further, obtain the downward movement distance of the first dynamic weather particle in the cube under the action of gravity. According to the pan offset and the downward movement distance, adjust the initial position information of the first dynamic weather particle in the cube to obtain the updated position information of the first dynamic weather particle in the cube.
[0066] For yet another example, when the adjustment operation is a rotation operation, since the rotation operation is equivalent to the first dynamic weather particles in the cube remaining unchanged (only having a downward movement distance affected by the gravity factor) and the virtual camera rotates with the original electronic map, at this time, the server can obtain the downward movement distance of the first dynamic weather particle in the cube under the action of gravity. According to the downward movement distance, adjust the initial position information of the first dynamic weather particle in the cube to obtain the updated position information of the first dynamic weather particle in the cube.
[0067] S4. The terminal can adjust the movement trajectory and display size of the first dynamic weather particle on the map display interface including the updated electronic map according to the updated position information of the first dynamic weather particle. Specifically, perform an MVP transformation on the updated position information to obtain the updated perspective position information of the first dynamic weather particle in the multimedia particle set in the perspective space. The updated perspective position information includes the updated screen coordinates and depth coordinates. Adjust the display size of the first dynamic weather particle in the multimedia particle set according to the depth coordinate to obtain the adjusted first dynamic weather particle, and display the adjusted first dynamic weather particle at the position corresponding to the updated screen coordinates in the map display interface including the updated electronic map. As shown in 2b, the number of the first weather particles on the map display interface including the updated electronic map is also increasing. When the first dynamic weather particle is a snow particle, it can simulate the phenomenon that the snow is getting heavier over time. At the same time, the first dynamic weather particle also moves with the movement of the original electronic map, creating a visual effect that the snow moves faster near and slower far away.
[0068] In summary, with the change of the electronic map, dynamically adjusting the display effect of the dynamic weather particles is beneficial to improving the accuracy of simulating the movement trajectory and size of the dynamic weather particles in the real environment, enhancing the interactivity between the electronic map and the dynamic weather particles, and improving the visual effect. At the same time, before and after the adjustment of the original electronic map, the dynamic weather particles in the same multimedia particle set are used to simulate the weather state in the real environment, that is, by recycling the dynamic weather particles in the same multimedia particle set, it is possible to simulate the weather state in the area shown by the electronic map with a small number of dynamic weather particles, which can reduce the computational amount of the terminal for the dynamic weather particles, improve the rendering efficiency, and improve the running performance of the map application program.
[0069] Further, please refer to Figure 3 , which is a schematic flowchart of a method for displaying multimedia particles provided by an embodiment of the present application. As shown in Figure 3 , this method can be executed by the terminal in Figure 1 , or can be executed by the server in Figure 1 , or can be jointly executed by the terminal and the server in Figure 1 . The devices used to execute this method in the present application can be collectively referred to as computer devices. Among them, the method for displaying multimedia particles can include the following steps S101 to S104:
[0070] S101. Obtain the dynamic multimedia particle P iInitial position information in the particle space region; the particle space region is a finite space region independent of the map space corresponding to the original electronic map, i is a positive integer less than N, and N is the number of multimedia particles in the particle space region; the dynamic multimedia particle P i Is associated with the original electronic map.
[0071] In this application, when the computer device starts the map application platform, each dynamic multimedia particle can be evenly distributed in the particle space region, and the computer device can obtain the initial position information of the dynamic multimedia particle P i In the particle space region.
[0072] It should be noted that when the dynamic multimedia particle refers to an element that exists in the real environment and has a moving attribute, before the original electronic map is adjusted, the dynamic multimedia particle P i Can move in the particle space region according to the original movement parameters, and the original movement parameters can be determined according to the movement parameters of the dynamic multimedia particle in the real environment. For example, when the dynamic multimedia particle is a dynamic weather particle, the original movement parameter can refer to the downward movement speed of the dynamic weather particle in the particle space region; when the dynamic multimedia particle is a dynamic vehicle particle, the original movement parameter can refer to the movement speed of the dynamic vehicle particle in the target direction in the particle space region; the target direction can refer to the driving direction of the vehicle on the road. That is to say, before the original electronic map is adjusted, the initial position information of the dynamic multimedia particle in the particle space region changes with time. Therefore, the computer device can obtain the initial position information of the dynamic multimedia particle P i In the particle space region at time intervals, and the time intervals can be determined according to the movement speed of the dynamic multimedia particle in the real environment; this is conducive to improving the accuracy and authenticity of simulating the dynamic multimedia particle in the real environment. When the dynamic multimedia particle refers to an element that exists in the real environment and does not have a moving attribute, before the original electronic map is adjusted, the dynamic multimedia particle P i Can remain stationary in the particle space region. Then, before the original electronic map is adjusted, only one step of obtaining the initial position information of the dynamic multimedia particle P i In the particle space region needs to be performed.
[0073] It should be noted that the dynamic multimedia particles can be distributed in the particle space area in the form of position points. In this way, when the dynamic multimedia particles are in the particle space area, they do not need to occupy too many resources of the computer device, saving the resources of the computer device. At the same time, the more the number of dynamic multimedia particles, the better the rendering effect in the map display interface, but it requires more resources (such as computing resources) of the computer device; on the contrary, the fewer the number of dynamic multimedia particles, the worse the rendering effect in the map display interface, but only requires fewer resources (such as computing resources) of the computer device. Therefore, the number of dynamic multimedia particles can be determined according to the size of the map display interface and the rendering processing ability of the computer device.
[0074] S102. Map the dynamic multimedia particle P according to the initial position information to the map display interface for displaying the original electronic map. i
[0075] In this application, the computer device can render the dynamic multimedia particle P according to the initial position information, and display the rendered dynamic multimedia particle P on the map display interface for displaying the original electronic map according to the initial position information. i i
[0076] It should be noted that before the electronic map is adjusted, when the dynamic multimedia particle is an element used to simulate a real existence with a moving attribute in the real environment, the rendered dynamic multimedia particle can move on the map display interface according to the original moving trajectory, and the original moving trajectory can be determined according to the moving parameters of the dynamic multimedia particle in the real environment. When the dynamic multimedia particle is an element used to simulate a real existence without a moving attribute in the real environment, the rendered dynamic multimedia particle can remain stationary on the map display interface.
[0077] S103. If an adjustment operation for the original electronic map is detected, update and display the original electronic map on the map display interface as an updated electronic map based on the adjustment operation, and update the initial position information of the dynamic multimedia particle P in the particle space area according to the adjustment operation to obtain the updated position information of the dynamic multimedia particle P in the particle space area. i i
[0078] S104. Adjust the moving trajectory and display size of the dynamic multimedia particle P in the map display interface including the updated electronic map according to the updated position information. i
[0079] In steps S103 and S104, if one or more adjustment operations such as rotation, translation, and zooming of the user on the original electronic map are detected, the original electronic map on the map display interface is updated and displayed as an updated electronic map based on the adjustment operation, and the dynamic multimedia particle P is updated according to the adjustment operation. i The initial position information in the particle space region is obtained to get the dynamic multimedia particle P. i The updated position information in the particle space region. Further, according to the updated position information, the dynamic multimedia particle P can be adjusted. i The movement trajectory and display size in the map display interface including the updated electronic map. That is to say, as the electronic map changes, the display effect of the multimedia particle is dynamically adjusted, which is beneficial to improving the accuracy of the movement trajectory and size of the multimedia particle in the simulated real environment, enhancing the interactivity between the electronic map and the multimedia particle, and improving the visual effect.
[0080] In this application, the computer device can map dynamic multimedia particles to the map display interface for displaying the original electronic map according to the initial position information of the dynamic multimedia particles in the particle space region. When the terminal detects adjustment operations such as rotation, translation, and zooming of the user on the original electronic map, the original electronic map on the map display interface is updated and displayed as an updated electronic map based on the adjustment operation, and the initial position information of the dynamic multimedia particles in the particle space region is adjusted according to the adjustment operation to obtain the updated position information of the dynamic multimedia particles in the particle space region. Further, on the map display interface including the updated electronic map, the movement trajectory and display size of the dynamic multimedia particles are adjusted according to the updated position information. That is to say, as the electronic map changes, the display effect of the multimedia particles is dynamically adjusted, which is beneficial to improving the accuracy of the movement trajectory and size of the multimedia particles in the simulated real environment, enhancing the interactivity between the electronic map and the multimedia particles, and improving the visual effect. For example, the dynamic multimedia particles can be dynamic weather particles, and the visual effect reflecting the weather state can be rendered through the dynamic weather particles. For example, when performing vehicle navigation, if the current weather is snowing, the dynamic weather particles can be snow particles, and such a weather effect can be rendered on the navigation interface (i.e., the map display interface), making the navigation more immersive, and the sense of movement of the snow particles can bring a good sense of reality. At the same time, before and after the adjustment of the original electronic map, the dynamic multimedia particles in the same particle space region are used to simulate the dynamic multimedia particles in the real environment. That is, by recycling the dynamic multimedia particles in the same particle space region, it is possible to simulate the state (such as the weather state) in the area displayed by the electronic map with a small number of dynamic multimedia particles, which can reduce the computational amount of the dynamic multimedia particles, improve the rendering efficiency, and improve the running performance of the map application program.
[0081] Further, please refer to Figure 4 , which is a schematic flowchart of a method for displaying multimedia particles provided by an embodiment of this application. As Figure 4 shown, this method can be executed by the Figure 1 terminal in Figure 1 , or can be executed by the Figure 1 server in
[0082] S201. Obtain dynamic multimedia particle P iInitial position information in the particle space region; the particle space region is a finite space region independent of the map space corresponding to the original electronic map, i is a positive integer less than N, and N is the number of multimedia particles in the particle space region; the dynamic multimedia particle P i is associated with the original electronic map.
[0083] S202. Map the dynamic multimedia particle P i to the map display interface for displaying the original electronic map according to the initial position information.
[0084] S203. If an adjustment operation for the original electronic map is detected, update and display the original electronic map on the map display interface as an updated electronic map based on the adjustment operation.
[0085] S204. Adjust the initial position information of the dynamic multimedia particle P i in the particle space region according to the adjustment operation to obtain candidate position information of the dynamic multimedia particle P i .
[0086] In this application, the adjustment operation may include any one or a combination of at least two of a zoom operation, a pan operation, and a rotation operation. When the adjustment operation is a zoom operation, step S204 above includes: obtaining the perspective information of the updated electronic map; determining the zoom offset of the dynamic multimedia particle P i in the particle space region according to the zoom ratio of the original electronic map carried by the zoom operation and the perspective information of the updated electronic map; obtaining the moving distance of the dynamic multimedia particle P i in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane; adjusting the initial position information of the dynamic multimedia particle P i in the particle space region according to the zoom offset and the moving distance to obtain candidate position information of the dynamic multimedia particle P i .
[0087] In acquisition method one, if the adjustment operation is a zoom operation for the original electronic map, since the perspective information of the original electronic map does not change when a zoom operation or a pan operation is performed on the original electronic map, and the perspective information of the electronic map is used to reflect the pitch angle and rotation angle of the electronic map. Therefore, the computer device can determine the perspective information of the original electronic map as the perspective information of the updated electronic map. Further, the candidate position information of the dynamic multimedia particle P iThe scaling offset in the particle space region, which is the offset of the dynamic multimedia particle P caused by the scaling operation i and obtain the moving distance of the dynamic multimedia particle P in the target direction in the particle space region due to the action of gravity i Then, according to the scaling offset and the moving distance, adjust the initial position information of the dynamic multimedia particle P i in the particle space region to obtain the candidate position information of the dynamic multimedia particle P i That is to say, the candidate position information of the dynamic multimedia particle P i is obtained by comprehensively considering the gravity factor and the scaling operation, which is beneficial to improving the authenticity and accuracy of simulating the moving state of the dynamic multimedia particle in the real environment
[0088] For example, if the adjustment operation is a magnification operation, add the scaling offset to the coordinates in each direction of the initial position information of the dynamic multimedia particle P i in the particle space region, and then add the moving distance to the z coordinate to obtain the candidate position information of the dynamic multimedia particle P i That is to say, when the original electronic map is magnified along a certain point (the magnification position point), the dynamic multimedia particle also undergoes a transformation with a sense of downward shuttle at the magnification position point, as if the virtual camera falls faster than the dynamic multimedia particle. Therefore, a perspective effect in which the dynamic multimedia particle retreats backward along the magnification position point is generated on the map display interface
[0089] For another example, if the adjustment operation is a reduction operation, subtract the scaling offset from the coordinates in each direction of the initial position information of the dynamic multimedia particle P i in the particle space region, and then add the moving distance to the z coordinate to obtain the candidate position information of the dynamic multimedia particle P i That is to say, when the original electronic map is reduced along a certain point (the reduction position point), the dynamic multimedia particle also undergoes a transformation with a sense of downward shuttle at the reduction position point, and the virtual camera moves in the opposite direction to the fall of the dynamic multimedia particle. Therefore, a perspective effect in which the dynamic multimedia particle advances along the reduction position point is generated on the map display interface
[0090] Specifically, the implementation method of determining the scaling offset of the dynamic multimedia particle P i in the particle space region according to the scaling ratio of the original electronic map carried by the scaling operation and the perspective information of the updated electronic map includes: determining the scaling direction vector of the original electronic map according to the perspective information of the updated electronic map; generating the dynamic multimedia particle P according to the scaling ratio iThe scaling distance; the product between the scaling direction vector and this scaling distance is determined as the dynamic multimedia particle P i The scaling offset in the particle space region.
[0091] The perspective matrix corresponding to the perspective information for updating the electronic map, that is, the ViewMatrix. According to this perspective matrix, the scaling direction vector of the original electronic map is determined, and then, according to this scaling ratio, the dynamic multimedia particle P is generated i The scaling distance of, the product between the scaling direction vector and this scaling distance is determined as this dynamic multimedia particle P i The scaling offset in this particle space region. The dynamic multimedia particle P is determined by the scaling ratio and the scaling direction i The scaling offset in this particle space region is beneficial to improving the acquisition of this dynamic multimedia particle P i The accuracy of the scaling offset in this particle space region is beneficial to making this dynamic multimedia particle P i The display effect in the map display interface changes with the scaling operation of the original electronic map, which is beneficial to improving the accuracy and authenticity of rendering the dynamic multimedia particle.
[0092] It should be noted that as Figure 5 shown, assuming that the particle space region is a 2X2 cube, the scene of viewing the dynamic multimedia particle in the real environment is equivalent to using a virtual camera on the surface of the inscribed sphere of this cube, looking at the dynamic multimedia particle inside the cube in the direction of the sphere center. When performing translation, scaling, rotation and other adjustment operations on the electronic map, it is equivalent to transforming the position of the dynamic multimedia particle in the cube and the position of the camera. Assuming that the dynamic multimedia particle is born on the surface of the cube where z = 1, since in the real scene, the virtual camera cannot capture the birth process of the dynamic multimedia particle. For example, if this dynamic multimedia particle is a snow particle, that is, the virtual camera cannot capture the process of the snow particle changing from liquid to solid. Therefore, it is necessary to ensure that the virtual camera cannot capture the birth process of the dynamic multimedia particle. That is to say, when the field of view angle of the virtual camera is less than or equal to the field of view angle as Figure 5 shown, this virtual camera cannot capture the birth process of the dynamic multimedia particle; at the same time, the virtual camera can produce a depth of field effect with this field of view angle, that is, the perspective effect of near is large and far is small.
[0093] Optionally, the computer device can generate the dynamic multimedia particle P by using any one of the following two generation methods or a combination of the two generation methods i The scaling distance of:
[0094] Generation method one: This dynamic multimedia particle P iThere is a positive correlation between the scaling distance and the scaling ratio, that is, the larger the scaling ratio, the farther the scaling distance of the dynamic multimedia particle P i ; on the contrary, the smaller the scaling ratio, the shorter the scaling distance of the dynamic multimedia particle P i . Specifically, performing a zoom-in operation on the original electronic map is equivalent to the virtual camera moving towards the center of the particle space region; performing a zoom-out operation on the original electronic map is equivalent to the virtual camera moving away from the center of the particle space region. Using similar triangles, it can be calculated that when the original electronic map is magnified by a factor of two, the virtual camera just moves from a point on the spherical shell to the center of the sphere. As Figure 6 shown, when the original electronic map is magnified by a factor of 2, the virtual camera moves 1 / 2 unit length towards the center of the inscribed sphere of the particle space (according to the side length of the square described above being 2, but here let 1 unit length represent the side length of the square). As Figure 7 shown, if the virtual camera moves 1 / 2 unit length with the spherical shell, and the distribution area of the dynamic multimedia particles is still within the cube area, so using the cyclic particle coordinates, the dynamic multimedia particles that the virtual camera cannot capture are adjusted to the area that the virtual camera can capture (such as Figure 6 the triangular pyramid area corresponding to the triangle in is the area that the virtual camera can capture). The movement of the virtual camera is equivalent to the same movement of the dynamic multimedia particle P i . Therefore, magnifying the original electronic map by a factor of 2 is equivalent to the scaling distance of all dynamic multimedia particles being 1 / 2 unit length. If the original electronic map is magnified by a factor of 4, it is equivalent to the scaling distance of all dynamic multimedia particles being 3 / 4 unit length, and if the original electronic map is magnified by a factor of 10, it is equivalent to the scaling distance of all dynamic multimedia particles being 9 / 10 unit length. Generation method one can be expressed by the following formula (1):
[0095]
[0096] Among them, in formula (1), L1 represents the scaling distance, and k represents the scaling ratio. It can be seen from formula (1) that in generation method one, different scaling ratios correspond to different scaling distances, that is, for different scaling ratios of the original electronic map, the dynamic multimedia particles can have different display effects on the map display interface. However, as the scaling multiple of the original electronic map increases, the increment of the scaling distance of the dynamic multimedia particles becomes smaller and smaller. For example, there is almost no difference between the dynamic multimedia particles adjusted after magnifying the original electronic map by a factor of 10 and by a factor of 1000.
[0097] Generation method two: Obtain the unit scaling amount and the cyclic scaling amount for the original electronic map; the cyclic scaling amount is used to reflect the dynamic multimedia particle P corresponding to at least two scaling operations respectivelyi The equivalent scaling distances are the same, and the scaling ratios corresponding to the at least two scaling operations are all integer powers of the cyclic scaling amount; obtain the ratio between the scaling ratio and the t-th power of the cyclic scaling amount; t is a positive integer; if the ratio is less than the unit scaling amount, generate a first scaling distance based on the first distance function and the ratio, and determine the first scaling distance as the scaling distance of the dynamic multimedia particle P i ; if the ratio is greater than or equal to the unit scaling amount, generate a second scaling distance based on the second distance function and the ratio, and determine the second scaling distance as the scaling distance of the dynamic multimedia particle P i .
[0098] Generation method two is obtained by improving the generation method. The unit scaling amount means that the scaling ratio corresponding to each scaling operation is an integer multiple of the unit scaling amount. When the unit scaling amount is 2, the scaling ratio can be 2, 4, 6, 8, ……, 2n. When the original electronic map is magnified by two times, the scaling distance of the dynamic multimedia particle is 1 / 2 unit length. When the original electronic map is magnified by 4 times, the scaling distance of the dynamic multimedia particle is 1 unit length. When the scaling distance of the dynamic multimedia particle is 1 unit length, the dynamic multimedia particle will exceed the particle space region. Therefore, modulo processing is performed on the position information of the dynamic multimedia particle, that is, the dynamic multimedia particle is moved back to its initial position. That is to say, when the scaling ratio of the original electronic map is 4 or the t-th power of 4, the position of the dynamic multimedia particle is equivalent to remaining unchanged. For example, when the scaling ratio is 4, 16, the position of the dynamic multimedia particle is equivalent to remaining unchanged, and it can also be said that the corresponding equivalent scaling distances are the same. When the unit scaling amount is 2, the cyclic scaling amount is 4. Assuming that the ratio between the scaling ratio and the t-th power of this cyclic scaling amount is r, the relationship between k and r can be expressed by the following formula (2):
[0099] k = 4 t *r (2)
[0100] Among them, in formula (2), r satisfies r ∈ [1, 4). In implementation, after the computer device obtains the scaling ratio of the original electronic map, it can substitute the scaling ratio into formula (2) for calculation to obtain the ratio r between the scaling ratio and the t-th power of the cyclic scaling amount. If this r is less than the unit scaling amount, the first distance function and this ratio are used to determine the first scaling distance, and the first scaling distance is determined as the scaling distance of the dynamic multimedia particle P i . For example, the first distance function can be expressed by the following formula (3):
[0101]
[0102] In formula (3), L2 represents the first scaling distance. When if the r is greater than or equal to the unit scaling amount, the computer device may use the second distance function and this ratio to determine the second scaling distance, and determine the second scaling distance as the scaling distance of the dynamic multimedia particle P i For example, the second distance function may be represented by the following formula (4):
[0103]
[0104] In generation method 2, since r satisfies r ∈ [1, 4), that is, r belongs to a numerical range composed of cyclic scaling amounts, which is equivalent to the scaling distances of dynamic multimedia particles all varying within a certain range. That is, for different scaling ratios, there are obvious differences between the scaling distances of the corresponding dynamic multimedia particles. For example, as Figure 8 shown, the abscissa is the scaling ratio, and the ordinate is the scaling distance of the dynamic multimedia particle. Curve 1 is used to reflect the relationship between the scaling ratio and the scaling distance of the dynamic multimedia particle in generation method 2, and curve 2 is used to reflect the relationship between the scaling ratio and the scaling distance of the dynamic multimedia particle in generation method 1. By comparing curve 1 and curve 2, it can be seen that the scaling distance of the dynamic multimedia particle in generation method 1 converges to 1, while the scaling distance of the dynamic multimedia particle in generation method 2 is more variable and finally converges to a log4 curve.
[0105] Optionally, the adjustment operation is a translation operation. The above step S204 includes: obtaining the position information of the original center position point in the original electronic map and the position information of the updated center position point of the updated electronic map according to the translation operation, obtaining the actual geographical distance corresponding to the geographical unit distance in the updated electronic map, and determining the dynamic multimedia particle P i 's translation offset. Obtaining the moving distance of the dynamic multimedia particle P i in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane; according to the translation offset and the moving distance, adjusting the initial position information of the dynamic multimedia particle P i in the particle space region to obtain the candidate position information of the dynamic multimedia particle P i .
[0106] When performing a pan operation on the original electronic map, the multimedia particles in the particle space area will also pan accordingly. Therefore, the computer device can obtain the position information of the original center position point of the original electronic map and the position information of the updated center position point of the updated electronic map. The position information of the original center position point and the updated center position point can both be Mercator coordinates or position information in other coordinate systems. The Mercator coordinates are used to reflect the longitude and latitude coordinates of the updated center position point and the original center in the real environment. Further, the actual geographical distance corresponding to the geographical unit distance in the updated electronic map can be obtained, and based on this actual geographical distance, the position information of the original center position point, and the position information of the updated center position point, the dynamic multimedia particle P i 's pan offset is determined. This pan offset is the pan offset caused to the dynamic multimedia particle due to the pan operation on the original electronic map. Then, the moving distance of the dynamic multimedia particle P i in the target direction in the particle space area under the influence of the gravity factor is obtained. The target direction refers to the direction perpendicular to the map horizontal plane, which is the negative direction of the z coordinate. Since the pan operation on the original electronic map includes left - right panning, generally, the dynamic multimedia particle only has a pan offset in the x and y coordinates, and the pan offset in the z coordinate is 0. The x and y coordinates in the initial position information of the dynamic multimedia particle P i can be added with the pan offset, and the moving distance can be added to the z coordinate to obtain the candidate position information of the dynamic multimedia particle P i . The candidate position information of the dynamic multimedia particle P i is obtained by comprehensively considering the gravity factor and the pan operation, which is beneficial to improving the authenticity and accuracy of simulating the moving state of the dynamic multimedia particle in the real environment.
[0107] For example, if the dynamic multimedia particle is a snow particle and the original electronic map is in 3D perspective, when the original electronic map is moved forward, the snow particles displayed on the map display interface including the updated electronic map are like the perspective effect of snow particles moving backward when a person is driving a car on the road. If the original electronic map is in 2D perspective and the user moves the original electronic map, the snow particles change with the virtual camera perspective and there is also a perspective relationship. Therefore, on the map display interface including the updated electronic map, the snow particles closer to the virtual camera move faster and the snow particles farther from the virtual camera move slower are rendered.
[0108] Specifically, based on the actual geographical distance, the position information of the original center position point, and the position information of the updated center position point, the dynamic multimedia particle P iThe translation offset includes: determining the difference between the position information of the original center position point and the position information of the updated center position point as the translation amount of the original electronic map; determining the ratio between the translation amount of the original electronic map and the actual geographical distance as the translation offset of the dynamic multimedia particle P i of the translation offset.
[0109] Due to considering the influence of the electronic map display level, for example, moving the same screen distance on the original electronic map under a large magnification view and moving the same screen distance on the original electronic map under a small magnification view, the Mercator coordinate differences corresponding to the two translation operations are different and are proportional to the actual geographical distance. Therefore, assuming that the position information of the original center position point is A, the position information of the updated center position point is B, and the actual geographical distance corresponding to the geographical unit distance of the updated electronic map is ratio, (B - A) / ratio can be used as the translation offset of the dynamic multimedia particle P i of the translation offset, which can improve the accuracy of obtaining the translation offset.
[0110] Optionally, the adjustment operation is a rotation operation, and the above step S204 includes: obtaining the moving distance of the dynamic multimedia particle P i in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane; adjusting the initial position information of the dynamic multimedia particle P i in the particle space region according to the moving distance to obtain the candidate position information of the dynamic multimedia particle P i of the translation offset.
[0111] When the adjustment operation is a rotation operation, the dynamic multimedia particle P i only has a downward moving distance and there is no offset in the particle space region. Therefore, the computer device can adjust the initial position information of the dynamic multimedia particle P i in the particle space region according to the moving distance to obtain the candidate position information of the dynamic multimedia particle P i of the translation offset.
[0112] Optionally, the above obtaining the moving distance of the dynamic multimedia particle P i in the target direction in the particle space region includes: obtaining the acceleration of the dynamic multimedia particle P i in the target direction in the particle space region and the initial moving speed of the dynamic multimedia particle P i ; the initial moving speed is the dynamic multimedia particle P iWhen being displayed in the original electronic map, the moving speed in the target direction within the particle space region; determine the sum of the acceleration and the initial moving speed as the updated moving speed of the dynamic multimedia particle P i ; the updated moving speed is the moving speed of the dynamic multimedia particle P i when being displayed in the updated electronic map, in the target direction within the particle space region; obtain the duration corresponding to the time period from when the original electronic map is displayed on the map display interface to when the updated electronic map is displayed in the map display interface; determine the moving distance of the dynamic multimedia particle P i in the target direction within the particle space region according to the updated moving speed and the duration.
[0113] Due to the influence of the gravity factor, the dynamic multimedia particle will move a certain distance in a certain direction in each frame of the electronic map. For example, assume that the initial speed of the dynamic multimedia particle when being displayed in the original electronic map is V1, the gravitational acceleration is a, and the updated speed of the dynamic multimedia particle when being displayed in the updated electronic map is V2 = V1 + a. Further, obtain the duration t corresponding to the time period from when the original electronic map is displayed on the map display interface to when the updated electronic map is displayed in the map display interface, then the moving distance of the dynamic multimedia particle P i in the target direction within the particle space region is: S = (V1 + a) * t. By obtaining the moving distance of the dynamic multimedia particle affected by the gravity factor, the gravity effect that the dynamic multimedia particle (such as the dynamic snow particle) falls faster and faster can be simulated.
[0114] S205. If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space region, then according to the candidate position information of the dynamic multimedia particle P i , move the dynamic multimedia particle P i back to within the particle space region to obtain the updated position information of the dynamic multimedia particle P i in the particle space region.
[0115] In this application, if the candidate position information indicates that the dynamic multimedia particle P i exceeds the particle space region, the dynamic multimedia particle P i can be moved back to within the particle space region in a random manner to obtain the updated position information of the dynamic multimedia particle P i in the particle space region; or, the initial position information can be processed by taking the modulus to move the dynamic multimedia particle P iMove it back into the particle space area to obtain the dynamic multimedia particle P i The updated position information in the particle space area. That is, when the candidate position information indicates that the dynamic multimedia particle P i exceeds this particle space area, the dynamic multimedia particle P i can be moved back into this particle space area, which is conducive to recycling the dynamic multimedia particles in this particle space area. That is, by using a limited number of dynamic multimedia particles, a continuous dynamic multimedia particle effect can be rendered, improving the authenticity and accuracy of rendering.
[0116] Optionally, when the computer device moves the dynamic multimedia particle P i back into the particle space area by performing a modulo operation on the initial position information to obtain the dynamic multimedia particle P i in the updated position information in the particle space area. Specifically, if the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space area, the size information of the particle space area is obtained; according to the size information of the particle space area, a modulo operation is performed on the candidate position information of the dynamic multimedia particle P i to obtain the updated position information of the dynamic multimedia particle P i in the particle space area. By performing a modulo operation on the candidate position information of the dynamic multimedia particle P i , the dynamic multimedia particle P i is always kept within the particle space, which is conducive to recycling the dynamic multimedia particles in this particle space area and improving the utilization rate of the dynamic multimedia particles.
[0117] For example, when the particle space area is a 2x2 cube, the candidate position information of the dynamic multimedia particle Pi is modulo-divided by 2, so that the coordinates of the dynamic multimedia particle Pi in each direction are less than 2, that is, the dynamic multimedia particle Pi is moved back into this particle space area, and the candidate position information after the modulo operation is determined as the updated position information of the dynamic multimedia particle Pi in this particle space area.
[0118] S206. If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i does not exceed the particle space area, the candidate position information of the dynamic multimedia particle P i is determined as the updated position information of the dynamic multimedia particle P i in this particle space area.
[0119] In this application, if the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i does not exceed the particle space region, then the candidate position information of the dynamic multimedia particle P i is determined as the updated position information of the dynamic multimedia particle P i in the particle space region.
[0120] S207. According to the updated position information, adjust the moving trajectory and display size of the dynamic multimedia particle P i in the map display interface including the updated electronic map.
[0121] Optionally, the above step S207 includes: transforming the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i ; transforming the perspective position information of the dynamic multimedia particle P i into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i ; the perspective position information includes screen coordinates and depth coordinates; according to the screen coordinates, adjust the moving trajectory of the dynamic multimedia particle P i in the map display interface including the updated electronic map; according to the depth coordinates, adjust the display size of the dynamic multimedia particle P i in the map display interface including the updated electronic map.
[0122] The computer device can perform an MVP transformation on the updated position information to obtain the perspective position information of the dynamic multimedia particle P i . Here, M in MVP refers to the Model matrix, which is the identity matrix; V in MVP refers to the View matrix, which is the orthogonal component in the view matrix ViewMatrix of the updated electronic map; P in MVP refers to the Projection matrix, which is the perspective matrix corresponding to the field of view FOV of the particle space region. The perspective position information of the dynamic multimedia particle P i includes screen coordinates and depth coordinates. The screen coordinates are x and y coordinates, and the depth coordinates are z coordinates. The screen coordinates are used to reflect the position of the dynamic multimedia particle in the map display interface, and the depth coordinates are used to reflect the distance between the dynamic multimedia particle and the virtual camera. Therefore, the computer device can adjust the moving trajectory of the dynamic multimedia particle P i in the map display interface including the updated electronic map according to the screen coordinates; and adjust the display size of the dynamic multimedia particle P iIn the display size in the map display interface including the updated electronic map, that is, the larger the z coordinate, the farther the distance between the dynamic multimedia particle and the virtual camera, and the smaller the display size of the dynamic multimedia particle P i is, that is, fewer pixel values are rendered for the dynamic multimedia particle P i ; on the contrary, that is, the smaller the z coordinate, the closer the distance between the dynamic multimedia particle and the virtual camera, and the larger the display size of the dynamic multimedia particle P i is, that is, more pixel values are rendered for the dynamic multimedia particle P i . By adjusting the display size of the dynamic multimedia particle according to the depth coordinate, it is beneficial to make the dynamic multimedia particle achieve a depth-of-field effect (i.e., the effect of objects appearing larger when closer and smaller when farther away) in the display interface.
[0123] Optionally, the above adjustment operation is a translation operation or a scaling operation. The above transformation of the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i includes: determining the perspective information of the original electronic map as the perspective information of the updated electronic map; determining the product between the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i .
[0124] Since the translation operation and the scaling operation do not change the perspective information of the electronic map, therefore, the computer device can determine the perspective information of the original electronic map as the perspective information of the updated electronic map, and determine the product between the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i .
[0125] Optionally, the adjustment operation is a rotation operation. The above transformation of the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i includes: determining the perspective information of the updated electronic map according to the rotation direction and rotation angle carried by the rotation operation; determining the product between the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i .
[0126] If the adjustment operation is a rotation operation, it will change the perspective information of the electronic map. Therefore, the computer device can determine the perspective information of the updated electronic map according to the rotation direction and rotation angle carried by the rotation operation, and determine the product between the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P iThe perspective position information; by determining the perspective information of the updated electronic map according to the rotation direction and rotation angle, it is beneficial to render dynamic multimedia particles and display them rotating along with the rotation of the original electronic map.
[0127] Optionally, transforming the perspective position information of the dynamic multimedia particle P i into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i includes: determining the field of view angle corresponding to the particle space region according to the shape parameters of the particle space region; generating a perspective matrix corresponding to the field of view angle, and according to the perspective matrix, transforming the perspective position information of the dynamic multimedia particle P i into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i The corresponding field of view angle of the particle space region is the field of view angle of the virtual camera aiming at the dynamic multimedia particle in the particle space region. For example, as Figure 5 shown, when the particle space region is a 2X2 cube, the corresponding field of view angle of the particle space region is the angle of the apex of the triangular pyramid, that is, the field of view angle of the virtual camera.
[0128] In this application, if the candidate position information indicates that the dynamic multimedia particle P i exceeds the particle space region, move the dynamic multimedia particle P i back into the particle space region to obtain the updated position information of the dynamic multimedia particle P i in the particle space region. That is to say, when the candidate position information indicates that the dynamic multimedia particle P i exceeds the particle space region, the dynamic multimedia particle P i can be moved back into the particle space region, which is beneficial to recycling the dynamic multimedia particles in the particle space region. That is, by using a limited number of dynamic multimedia particles, a continuous dynamic multimedia particle effect can be rendered, improving the authenticity and accuracy of rendering.
[0129] Further, please refer to Figure 9 , which is a schematic flowchart of a method for displaying multimedia particles provided by an embodiment of this application. As Figure 9 shown, this method can be executed by the Figure 1 terminal, or can be executed by the Figure 1 server, or can be jointly executed by the Figure 1 terminal and the server. In this application, the devices used to execute this method can be collectively referred to as computer devices. Among them, the method for displaying multimedia particles can include the following steps S301 to S303:
[0130] S301. Dynamically display the dynamic multimedia particles in the multimedia particle set on the map display interface for displaying the original electronic map.
[0131] In this application, the computer device can dynamically display the dynamic multimedia particles in the multimedia particle set on the display interface for displaying the original electronic map according to the initial position information of the dynamic multimedia particles in the particle space region. The dynamic multimedia particles in the multimedia particle set are distributed in the particle space region, and the number of the dynamic multimedia particles in the multimedia particle set can be determined according to factors such as the size of the map display interface and the rendering ability of the computer device.
[0132] S302. In response to an adjustment operation on the original electronic map, display an updated electronic map obtained based on the adjustment operation on the map display interface.
[0133] In this application, if an adjustment operation such as translation, zooming, or rotation on the original electronic map is detected, the computer device can display an updated electronic map obtained based on the adjustment operation on the map display interface.
[0134] S303. On the map display interface including the updated electronic map, dynamically update the movement trajectories and display sizes of the dynamic multimedia particles in the multimedia particle set according to the adjustment operation.
[0135] In this application, the computer device can, according to the adjustment operation and the initial position information of the dynamic multimedia particles in the particle space region, obtain the updated position information of the dynamic multimedia particles in the particle space region, and dynamically update the movement trajectories and display sizes of the dynamic multimedia particles in the multimedia particle set according to the updated position information.
[0136] Optionally, the adjustment operation carries an adjustment direction, and the above S303 includes: on the map display interface including the updated electronic map, move the dynamic multimedia particles in the multimedia particle set according to the adjustment direction for the original electronic map, and adjust the display sizes of the dynamic multimedia particles in the multimedia particle set according to the adjustment direction for the original electronic map.
[0137] When the adjustment operation is a translation operation, on the map display interface including the updated electronic map, move the dynamic multimedia particles in the multimedia particle set according to the translation direction for the original electronic map, and adjust the display sizes of the dynamic multimedia particles in the multimedia particle set according to the translation direction for the original electronic map.
[0138] For example, the adjustment operation is a translation operation, and the dynamic multimedia particle is a snow particle.Figure 10a As shown Figure 10a in the figure, when the head-up (3D perspective) mobile electronic map is moved, the adjacent 5-frame rendering effect diagrams intercepted from the display interface including the updated electronic map are shown. According to these 5-frame effect diagrams, the perspective of the updated electronic map is the 3D perspective. When the user moves the original electronic map forward, it is equivalent to the effect that when the user drives a vehicle on the road and sees the snow particles moving backward, that is, the display size of the snow particles increases successively along the translation direction, creating an immersive effect for the user. As Figure 10b shown Figure 10b in the figure, when the top-down (2D perspective) mobile electronic map is moved, the adjacent 5-frame rendering effect diagrams intercepted from the display interface including the updated electronic map are shown. According to these 5-frame effect diagrams, when the perspective of the updated electronic map is the 2D perspective, when the user moves the original electronic map forward, the snow particles change with the perspective of the virtual camera and there is also a perspective relationship, so the snow particles near move faster and those far away move slower.
[0139] For example, as Figure 11 shown Figure 11 in the figure, when the original electronic map is enlarged, the adjacent 5-frame rendering effect diagrams intercepted from the map display interface including the updated electronic map are shown. According to these 5-frame effect diagrams, the adjustment operation is the enlargement operation, the dynamic multimedia particle is the snow particle, the perspective of the updated electronic map is the 2D perspective. When a certain point (i.e., the enlargement position point) in the original electronic map is enlarged, the snow particles also perform a transformation with a sense of shuttling downward at this point (i.e., moving downward and approaching the enlargement position point), as if the virtual camera falls faster than the snow particles. Therefore, a visual effect that the snow particles are retreating along the direction away from the enlargement position point is rendered on the map display interface.
[0140] Optionally, the adjustment operation is a rotation operation, and the rotation operation carries the rotation direction for the original electronic map; the above S303 includes: on the map display interface including the updated electronic map, rotate the dynamic multimedia particles in the multimedia particle set according to the rotation direction for the original electronic map, and adjust the display size of the dynamic multimedia particles in the multimedia particle set according to the rotation direction for the original electronic map. The dynamic multimedia particles rotate with the rotation of the original electronic map and adjust the display size according to the rotation direction.
[0141] For example, if the adjustment operation is a rotation operation and the perspective of the updated electronic map is the 2D perspective, on the map display interface including the updated electronic map, a perspective effect that the particles follow the rotation of the original electronic map is rendered. Figure 12The figure shows five adjacent rendered effect diagrams intercepted from a display interface including an updated electronic map when the original electronic map is rotated in a head-up (3D perspective). According to these five effect diagrams, it can be seen that if the perspective of the updated electronic map is a 3D perspective, a perspective effect in which snow particles rotate in space is rendered on the display interface including the updated electronic map.
[0142] For example, as Figure 13 shown, the adjustment operation can refer to various combined operations. For example, the adjustment operation can include a translation operation, a zoom operation, and a rotation operation. The movement trajectory and display size of the dynamic multimedia particles can be rendered on the map display interface including the updated electronic map in the order of zoom - rotation - translation.
[0143] Optionally, the dynamic multimedia particle is a first dynamic weather particle. The first dynamic weather particle in the multimedia particle set is used to simulate the weather state of a first target area; both the area shown in the original electronic map and the updated electronic map include the first target area; the first dynamic weather particle in the multimedia particle set is distributed in a non-visualizable and limited-size particle space area, and the particle space area is independent of the map space corresponding to the original electronic map.
[0144] For example, if the weather state of the first target area is snowing, the dynamic multimedia particle can refer to snow particles; if the weather state of the first target area is raining, the dynamic multimedia particle can refer to rain particles; if the weather state of the first target area is cloudy, the dynamic multimedia particle can refer to cloud particles; if the weather state of the first target area is foggy, the dynamic multimedia particle can refer to fog particles, and so on.
[0145] Optionally, the multimedia particle set further includes a second dynamic weather particle. If the area shown in the updated electronic map does not include the first target area but includes a second target area, the second dynamic weather particle in the multimedia particle set is dynamically displayed in the map display interface including the updated electronic map; the second dynamic weather particle in the multimedia particle set is used to simulate the weather state in the second target area, and the weather state of the second target area is different from that of the first target area.
[0146] In this application, when a modification operation on the original electronic map is detected, an updated electronic map obtained based on the modification operation can be displayed on the map display interface. On the map display interface including the updated electronic map, the movement trajectories and display sizes of the dynamic multimedia particles in the multimedia particle set are dynamically updated according to the modification operation. That is to say, as the electronic map changes, the display effect of the multimedia particles is dynamically adjusted, which is beneficial to improving the accuracy of the movement trajectories and sizes of the multimedia particles in the simulated real environment, enhancing the interactivity between the electronic map and the multimedia particles, and improving the visual effect. At the same time, before and after the original electronic map is adjusted, the dynamic multimedia particles in the same multimedia particle set are used to simulate the dynamic multimedia particles in the real environment. That is, by recycling the dynamic multimedia particles in the same particle space area, it is possible to use a small number of dynamic multimedia particles to simulate the state (such as weather state) in the area displayed by the electronic map, which can reduce the computational amount of the dynamic multimedia particles, improve the rendering efficiency, and improve the running performance of the map application program.
[0147] Please refer to Figure 14 , which is a schematic structural diagram of a display device for multimedia particles provided by an embodiment of this application. The above display device for multimedia particles can be a computer program (including program code) running on a computer device. For example, the display device for multimedia particles is an application software; this device can be used to execute the corresponding steps in the method provided by the embodiment of this application. As Figure 14 shown, the display device for multimedia particles can include: an acquisition module 141, a mapping module 142, a display module 143, and an adjustment module 144.
[0148] The acquisition module is used to acquire the initial position information of the dynamic multimedia particle P i in the particle space area; the particle space area is a finite space area independent of the map space corresponding to the original electronic map. i is a positive integer less than N, and N is the number of multimedia particles in the particle space area;
[0149] The mapping module is used to map the dynamic multimedia particle P i to the map display interface for displaying the original electronic map according to the initial position information;
[0150] The display module is used to, if a modification operation on the original electronic map is detected, update and display the original electronic map on the map display interface as an updated electronic map based on the modification operation, and update the initial position information of the dynamic multimedia particle P i in the particle space area according to the modification operation to obtain the dynamic multimedia particle P iThe updated position information in the particle space region;
[0151] An adjustment module, configured to adjust the dynamic multimedia particle P according to the updated position information i The movement trajectory and display size in the map display interface including the updated electronic map.
[0152] Optionally, a display module, specifically configured to adjust the dynamic multimedia particle P according to the adjustment operation i The initial position information in the particle space region to obtain the candidate position information of the dynamic multimedia particle P i If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space region, then according to the candidate position information of the dynamic multimedia particle P i move the dynamic multimedia particle P i back into the particle space region to obtain the updated position information of the dynamic multimedia particle P in the particle space region; if the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i does not exceed the particle space region, then determine the candidate position information of the dynamic multimedia particle P i as the updated position information of the dynamic multimedia particle P i in the particle space region. i The updated position information in the particle space region.
[0153] Optionally, the display module, specifically configured to if the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space region, then obtain the size information of the particle space region; according to the size information of the particle space region, perform a modulo operation on the candidate position information of the dynamic multimedia particle P i to obtain the updated position information of the dynamic multimedia particle P i in the particle space region.
[0154] Optionally, the adjustment operation is a zoom operation, and the display module adjusts the initial position information of the dynamic multimedia particle P i in the particle space region to obtain the candidate position information of the dynamic multimedia particle P, including: i Obtain the perspective information of the updated electronic map;
[0155] Obtain the perspective information of the updated electronic map;
[0156] Determine the dynamic multimedia particle P according to the zoom ratio for the original electronic map carried by the zoom operation and the perspective information of the updated electronic map i The zoom offset in the particle space region;
[0157] Obtain the moving distance of the dynamic multimedia particle P i in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane;
[0158] Adjust the initial position information of the dynamic multimedia particle P i in the particle space region according to the zoom offset and the moving distance, to obtain the candidate position information of the dynamic multimedia particle P i
[0159] Optionally, the display module determines the dynamic multimedia particle P i The zoom offset in the particle space region according to the zoom ratio for the original electronic map carried by the zoom operation and the perspective information of the updated electronic map, including:
[0160] Determine the zoom direction vector of the original electronic map according to the perspective information of the updated electronic map;
[0161] Generate the zoom distance of the dynamic multimedia particle P i according to the zoom ratio;
[0162] Determine the product of the zoom direction vector and the zoom distance as the zoom offset of the dynamic multimedia particle P i in the particle space region.
[0163] Optionally, the display module generates the zoom distance of the dynamic multimedia particle P i according to the zoom ratio, including:
[0164] Obtain the unit zoom amount and the cyclic zoom amount for the original electronic map; the cyclic zoom amount is used to reflect that the equivalent zoom distances corresponding to at least two zoom operations are the same, and the zoom ratios corresponding to the at least two zoom operations are all integer powers of the cyclic zoom amount; i
[0165] Obtain the ratio of the zoom ratio to the t-th power of the cyclic zoom amount; t is a positive integer;
[0166] If the ratio is less than the unit zoom amount, generate a first zoom distance based on the first distance function and the ratio, and determine the first zoom distance as the zoom distance of the dynamic multimedia particle Pi Scaling distance;
[0167] If the ratio is greater than or equal to the unit scaling amount, a second scaling distance is generated based on the second distance function and the ratio, and the second scaling distance is determined as the scaling distance of the dynamic multimedia particle P i Scaling distance.
[0168] Optionally, the adjustment operation is a translation operation, and the display module adjusts the initial position information of the dynamic multimedia particle P i in the particle space region to obtain the candidate position information of the dynamic multimedia particle P i , including:
[0169] Obtain the position information of the original center position point in the original electronic map and the position information of the updated center position point of the updated electronic map according to the translation operation;
[0170] Obtain the actual geographical distance corresponding to the geographical unit distance in the updated electronic map;
[0171] Determine the translation offset of the dynamic multimedia particle P i according to the actual geographical distance, the position information of the original center position point, and the position information of the updated center position point;
[0172] Obtain the moving distance of the dynamic multimedia particle P i in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane;
[0173] Adjust the initial position information of the dynamic multimedia particle P i in the particle space region according to the translation offset and the moving distance to obtain the candidate position information of the dynamic multimedia particle P i .
[0174] Optionally, the display module determines the translation offset of the dynamic multimedia particle P i , including:
[0175] Determine the translation amount of the original electronic map as the difference between the position information of the original center position point and the position information of the updated center position point;
[0176] Determine the translation offset of the dynamic multimedia particle P i as the ratio between the translation amount of the original electronic map and the actual geographical distance.
[0177] Optionally, the display module obtains the dynamic multimedia particle P i The moving distance in the target direction in the particle space region, including:
[0178] Obtain the dynamic multimedia particle P i The acceleration in the target direction in the particle space region, and the initial moving speed of the dynamic multimedia particle P i The initial moving speed is the moving speed of the dynamic multimedia particle P i When being displayed in the original electronic map, the moving speed in the target direction in the particle space region;
[0179] Determine the sum of the acceleration and the initial moving speed as the updated moving speed of the dynamic multimedia particle P i The updated moving speed is the moving speed of the dynamic multimedia particle P i When being displayed in the updated electronic map, the moving speed in the target direction in the particle space region;
[0180] Obtain the duration corresponding to the time period from displaying the original electronic map on the map display interface to displaying the updated electronic map in the map display interface;
[0181] According to the updated moving speed and the duration, determine the moving distance of the dynamic multimedia particle P i In the target direction in the particle space region.
[0182] Optionally, the adjustment module adjusts the moving trajectory and display size of the dynamic multimedia particle P i In the map display interface including the updated electronic map, including:
[0183] Transform the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i ;
[0184] Transform the perspective position information of the dynamic multimedia particle P i Into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i The perspective position information includes screen coordinates and depth coordinates;
[0185] According to the screen coordinates, adjust the moving trajectory of the dynamic multimedia particle P i In the map display interface including the updated electronic map;
[0186] Adjust the dynamic multimedia particle P according to the depth coordinate i in the display size in the map display interface including the updated electronic map
[0187] Optionally, the adjustment operation is a translation operation or a zoom operation. The adjustment module transforms the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P, including: i including:
[0188] Determine the perspective information of the original electronic map as the perspective information of the updated electronic map;
[0189] Determine the product between the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i of the perspective position information.
[0190] Optionally, the adjustment operation is a rotation operation. The adjustment module transforms the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P, including: i including:
[0191] Determine the perspective information of the updated electronic map according to the rotation direction and rotation angle carried by the rotation operation;
[0192] Determine the product between the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i of the perspective position information.
[0193] Optionally, the adjustment module transforms the perspective position information of the dynamic multimedia particle P i into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i including:
[0194] Determine the field of view angle corresponding to the particle space region according to the shape parameter of the particle space region;
[0195] Generate a perspective matrix corresponding to the field of view angle. According to the perspective matrix, transform the perspective position information of the dynamic multimedia particle P i into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i of the perspective position information.
[0196] According to an embodiment of the present application Figure 14Each module in the multimedia particle display device shown can be separately or all combined into one or several units to form, or a certain one (or some) of the units can be further split into at least two smaller sub-units in terms of function, and the same operations can be achieved without affecting the realization of the technical effects of the embodiments of this application. The above modules are divided based on logical functions. In practical applications, the function of one module can also be realized by at least two units, or the functions of at least two modules can be realized by one unit. In other embodiments of this application, the multimedia particle display device can also include other units. In practical applications, these functions can also be assisted by other units and can be realized by the cooperation of at least two units.
[0197] According to an embodiment of this application, it can be achieved by running a computer program (including program code) that can execute each step involved in the corresponding method shown in Figure 3 on a general computer device such as a computer including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM), to construct the multimedia particle display device shown in Figure 14 and to implement the multimedia particle display method of the embodiments of this application. The above computer program can be recorded on a computer-readable recording medium, for example, and loaded into the above computing device through the computer-readable recording medium and run therein.
[0198] In this application, as the electronic map changes, the display effect of the multimedia particles is dynamically adjusted, which is beneficial to improving the accuracy of the movement trajectory and size of the multimedia particles in the simulated real environment, enhancing the interactivity between the electronic map and the multimedia particles, and improving the visual effect. For example, the dynamic multimedia particles can be dynamic weather particles, and through the dynamic weather particles, a visual effect reflecting the weather state can be rendered. For example, when performing vehicle navigation, if the current weather is snowing, the dynamic weather particles can refer to snow particles, and such a weather effect can be rendered on the navigation interface (i.e., the map display interface), making the navigation more immersive. The sense of movement of the snow particles can bring a good sense of reality. At the same time, before and after the adjustment of the original electronic map, the dynamic multimedia particles in the same particle space area are used to simulate the dynamic multimedia particles in the real environment, that is, by recycling the dynamic multimedia particles in the same particle space area, it is possible to use a small number of dynamic multimedia particles to simulate the state (such as the weather state) in the area shown by the electronic map, which can reduce the computational amount of the dynamic multimedia particles, improve the rendering efficiency, and improve the running performance of the map application program.
[0199] Please refer to Figure 15, which is a schematic structural diagram of a display device for multimedia particles provided by an embodiment of the present application. The above display device for multimedia particles may be a computer program (including program code) running on a computer device. For example, the display device for multimedia particles is an application software; the device can be used to execute the corresponding steps in the method provided by the embodiment of the present application. As Figure 15 shown, the display device for multimedia particles may include: a display module 151 and an update module 152.
[0200] The display module is used to dynamically display dynamic multimedia particles in a multimedia particle set on a map display interface for displaying an original electronic map;
[0201] The update module is used to, in response to an adjustment operation on the original electronic map, display an updated electronic map obtained based on the adjustment operation on the map display interface; on the map display interface including the updated electronic map, dynamically update the movement trajectories and display sizes of the dynamic multimedia particles in the multimedia particle set according to the adjustment operation.
[0202] Optionally, the adjustment operation carries an adjustment direction. The update module dynamically updates the movement trajectories and display sizes of the dynamic multimedia particles in the multimedia particle set according to the adjustment operation on the map display interface including the updated electronic map, including:
[0203] On the map display interface including the updated electronic map, move the dynamic multimedia particles in the multimedia particle set according to the adjustment direction for the original electronic map, and adjust the display sizes of the dynamic multimedia particles in the multimedia particle set according to the adjustment direction for the original electronic map.
[0204] Optionally, the adjustment operation is a rotation operation, and the rotation operation carries a rotation direction for the original electronic map;
[0205] The update module dynamically updates the movement trajectories and display sizes of the dynamic multimedia particles in the multimedia particle set according to the adjustment operation on the map display interface including the updated electronic map, including:
[0206] On the map display interface including the updated electronic map, rotate the dynamic multimedia particles in the multimedia particle set according to the rotation direction for the original electronic map, and adjust the display sizes of the dynamic multimedia particles in the multimedia particle set according to the rotation direction for the original electronic map.
[0207] Optionally, the dynamic multimedia particle is a first dynamic weather particle, and the first dynamic weather particle in the multimedia particle set is used to simulate the weather state of the first target area; the first target area is included in the areas shown in both the original electronic map and the updated electronic map;
[0208] The first dynamic weather particles in the multimedia particle set are distributed in a non-visualizable and limited-size particle space area, and the particle space area is independent of the map space corresponding to the original electronic map.
[0209] Optionally, the multimedia particle set further includes second dynamic weather particles. If the area shown in the updated electronic map does not include the first target area but includes a second target area, then in the map display interface including the updated electronic map, the second dynamic weather particles in the multimedia particle set are dynamically displayed; the second dynamic weather particles in the multimedia particle set are used to simulate the weather state in the second target area.
[0210] In this application, if the candidate location information indicates that the dynamic multimedia particle P i exceeds the particle space area, move the dynamic multimedia particle P i back into the particle space area to obtain the updated location information of the dynamic multimedia particle P i in the particle space area. That is to say, when the candidate location information indicates that the dynamic multimedia particle P i exceeds the particle space area, the dynamic multimedia particle P i can be moved back into the particle space area, which is conducive to recycling the dynamic multimedia particles in the particle space area. That is, by using a limited number of dynamic multimedia particles, a continuous dynamic multimedia particle effect can be rendered, improving the authenticity and accuracy of rendering.
[0211] Please refer to Figure 16 , which is a schematic structural diagram of a computer device provided by an embodiment of this application. As Figure 16 shown, the above computer device 1000 may include: a processor 1001, a network interface 1004, and a memory 1005. In addition, the above computer device 1000 may further include: a media content interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the media content interface 1003 may include a display screen (Display), a keyboard (Keyboard). Optionally, the media content interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as W I -F Iinterface). The memory 1005 can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1005 can also be at least one storage device far from the aforementioned processor 1001. As Figure 16 shown, the memory 1005, as a computer-readable storage medium, can include an operating system, a network communication module, a media content interface module, and a device control application program.
[0212] In Figure 16 the computer device 1000 shown, the network interface 1004 can provide network communication functions; the media content interface 1003 is mainly used to provide an input interface for the media content; and the processor 1001 can be used to call the device control application program stored in the memory 1005 to achieve:
[0213] Obtain the initial position information of the dynamic multimedia particle P i in the particle space region; the particle space region is a finite space region independent of the map space corresponding to the original electronic map. i is a positive integer less than N, and N is the number of multimedia particles in the particle space region;
[0214] Map the dynamic multimedia particle P according to the initial position information i to the map display interface for displaying the original electronic map;
[0215] If an adjustment operation for the original electronic map is detected, then update the display of the original electronic map on the map display interface to an updated electronic map based on the adjustment operation, and update the initial position information of the dynamic multimedia particle P i in the particle space region according to the adjustment operation to obtain the updated position information of the dynamic multimedia particle P i in the particle space region;
[0216] Adjust the movement trajectory and display size of the dynamic multimedia particle P i in the map display interface including the updated electronic map according to the updated position information.
[0217] Optionally, the processor 1001 can be used to call the device control application program stored in the memory 1005 to achieve:
[0218] Adjust the initial position information of the dynamic multimedia particle P i in the particle space region according to the adjustment operation to obtain the candidate position information of the dynamic multimedia particle P i ;
[0219] If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space region, then according to the candidate position information of the dynamic multimedia particle P i , move the dynamic multimedia particle P i back into the particle space region to obtain the updated position information of the dynamic multimedia particle P i in the particle space region;
[0220] If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i does not exceed the particle space region, then determine the candidate position information of the dynamic multimedia particle P i as the updated position information of the dynamic multimedia particle P i in the particle space region.
[0221] Optionally, the processor 1001 may be used to call the device control application program stored in the memory 1005 to implement:
[0222] If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space region, then obtain the size information of the particle space region;
[0223] According to the size information of the particle space region, perform a modulo operation on the candidate position information of the dynamic multimedia particle P i to obtain the updated position information of the dynamic multimedia particle P i in the particle space region.
[0224] Optionally, the adjustment operation is a scaling operation, and the processor 1001 may be used to call the device control application program stored in the memory 1005 to implement adjusting the initial position information of the dynamic multimedia particle P i in the particle space region according to the adjustment operation to obtain the candidate position information of the dynamic multimedia particle P i , including:
[0225] Obtain the perspective information of the updated electronic map;
[0226] According to the scaling ratio of the original electronic map carried by the scaling operation and the perspective information of the updated electronic map, determine the scaling offset of the dynamic multimedia particle P i in the particle space region;
[0227] Obtain the dynamic multimedia particle P i The moving distance in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane;
[0228] Adjust the dynamic multimedia particle P according to the scaling offset and the moving distance i The initial position information in the particle space region to obtain the candidate position information of the dynamic multimedia particle P i
[0229] Optionally, the processor 1001 may be used to call the device control application program stored in the memory 1005 to determine the dynamic multimedia particle P according to the scaling ratio of the original electronic map carried by the scaling operation and the perspective information of the updated electronic map i The scaling offset of the dynamic multimedia particle P in the particle space region includes:
[0230] Determine the scaling direction vector of the original electronic map according to the perspective information of the updated electronic map;
[0231] Generate the scaling distance of the dynamic multimedia particle P according to the scaling ratio i
[0232] Determine the product between the scaling direction vector and the scaling distance as the scaling offset of the dynamic multimedia particle P in the particle space region i
[0233] Optionally, the processor 1001 may be used to call the device control application program stored in the memory 1005 to generate the scaling distance of the dynamic multimedia particle P according to the scaling ratio, including: i
[0234] Obtain the unit scaling amount and the cyclic scaling amount for the original electronic map; the cyclic scaling amount is used to reflect that the equivalent scaling distances of the dynamic multimedia particle P corresponding to at least two scaling operations are the same, and the scaling ratios corresponding to the at least two scaling operations are both integer powers of the cyclic scaling amount; i
[0235] Obtain the ratio between the scaling ratio and the t-th power of the cyclic scaling amount; t is a positive integer;
[0236] If the ratio is less than the unit scaling amount, generate a first scaling distance based on the first distance function and the ratio, and determine the first scaling distance as the scaling distance of the dynamic multimedia particle P i
[0237] If the ratio is greater than or equal to the unit scaling amount, a second scaled distance is generated based on the second distance function and the ratio, and the second scaled distance is determined as the scaled distance of the dynamic multimedia particle P i .
[0238] Optionally, the adjustment operation is a translation operation, and the processor 1001 can be used to call the device control application program stored in the memory 1005 to adjust the initial position information of the dynamic multimedia particle P in the particle space region according to the adjustment operation, so as to obtain the candidate position information of the dynamic multimedia particle P i , including: i Obtain the position information of the original center position point in the original electronic map and the position information of the updated center position point in the updated electronic map according to the translation operation;
[0239] Obtain the actual geographical distance corresponding to the geographical unit distance in the updated electronic map;
[0240] Determine the translation offset of the dynamic multimedia particle P according to the actual geographical distance, the position information of the original center position point, and the position information of the updated center position point;
[0241] Obtain the moving distance of the dynamic multimedia particle P in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane; i Adjust the initial position information of the dynamic multimedia particle P in the particle space region according to the translation offset and the moving distance, so as to obtain the candidate position information of the dynamic multimedia particle P
[0242] Optionally, the processor 1001 can be used to call the device control application program stored in the memory 1005 to determine the translation offset of the dynamic multimedia particle P according to the actual geographical distance, the position information of the original center position point, and the position information of the updated center position point, including: i Determine the difference between the position information of the original center position point and the position information of the updated center position point as the translation amount of the original electronic map;
[0243] Determine the ratio between the translation amount of the original electronic map and the actual geographical distance as the dynamic multimedia particle P i i i .
[0244] Optionally, the processor 1001 can be used to call the device control application program stored in the memory 1005 to determine the translation offset of the dynamic multimedia particle P according to the actual geographical distance, the position information of the original center position point, and the position information of the updated center position point, including: i Determine the difference between the position information of the original center position point and the position information of the updated center position point as the translation amount of the original electronic map;
[0245] Determine the ratio between the translation amount of the original electronic map and the actual geographical distance as the dynamic multimedia particle P
[0246] Determine the ratio between the translation amount of the original electronic map and the actual geographical distance as the dynamic multimedia particle Pi Translation offset.
[0247] Optionally, the processor 1001 may be used to call the device control application stored in the memory 1005 to obtain the dynamic multimedia particle P i The moving distance in the target direction in the particle space region, including:
[0248] Obtain the dynamic multimedia particle P i The acceleration in the target direction in the particle space region, and the dynamic multimedia particle P i The initial moving speed; the initial moving speed is the dynamic multimedia particle P i When being displayed in the original electronic map, the moving speed in the target direction in the particle space region;
[0249] Determine the sum of the acceleration and the initial moving speed as the updated moving speed of the dynamic multimedia particle P i The updated moving speed; the updated moving speed is the dynamic multimedia particle P i When being displayed in the updated electronic map, the moving speed in the target direction in the particle space region;
[0250] Obtain the duration corresponding to the time period from displaying the original electronic map on the map display interface to displaying the updated electronic map in the map display interface;
[0251] According to the updated moving speed and the duration, determine the moving distance of the dynamic multimedia particle P i In the target direction in the particle space region.
[0252] Optionally, the processor 1001 may be used to call the device control application stored in the memory 1005 to adjust the moving trajectory and display size of the dynamic multimedia particle P i In the map display interface including the updated electronic map, including:
[0253] Transform the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i ;
[0254] Transform the perspective position information of the dynamic multimedia particle P i Into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i The perspective position information; the perspective position information includes screen coordinates and depth coordinates;
[0255] Adjust the dynamic multimedia particle P according to the screen coordinates i the movement trajectory in the map display interface including the updated electronic map;
[0256] Adjust the dynamic multimedia particle P according to the depth coordinates i the display size in the map display interface including the updated electronic map.
[0257] Optionally, the adjustment operation is a translation operation or a scaling operation, and the processor 1001 can be used to call the device control application program stored in the memory 1005 to transform the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i including:
[0258] Determine the perspective information of the original electronic map as the perspective information of the updated electronic map;
[0259] Determine the product between the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i including:
[0260] Optionally, the adjustment operation is a rotation operation, and the processor 1001 can be used to call the device control application program stored in the memory 1005 to transform the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i including:
[0261] Determine the perspective information of the updated electronic map according to the rotation direction and rotation angle carried by the rotation operation;
[0262] Determine the product between the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i including:
[0263] Optionally, the processor 1001 can be used to call the device control application program stored in the memory 1005 to transform the perspective position information of the dynamic multimedia particle P i into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i including:
[0264] Determine the field of view angle corresponding to the particle space region according to the shape parameters of the particle space region;
[0265] Generate a perspective matrix corresponding to the field of view angle, and according to the perspective matrix, transform the perspective position information of the dynamic multimedia particle P i to the perspective space corresponding to the map display interface, so as to obtain the perspective position information of the dynamic multimedia particle P i .
[0266] Optionally, the processor 1001 may be used to call the device control application program stored in the memory 1005 to dynamically display the dynamic multimedia particles in the multimedia particle set on the map display interface for displaying the original electronic map;
[0267] In response to an adjustment operation on the original electronic map, display an updated electronic map obtained based on the adjustment operation on the map display interface;
[0268] On the map display interface including the updated electronic map, dynamically update the movement trajectory and display size of the dynamic multimedia particles in the multimedia particle set according to the adjustment operation.
[0269] Optionally, the adjustment operation carries an adjustment direction, and the processor 1001 may be used to call the device control application program stored in the memory 1005 to dynamically update the movement trajectory and display size of the dynamic multimedia particles in the multimedia particle set according to the adjustment operation on the map display interface including the updated electronic map, including:
[0270] On the map display interface including the updated electronic map, move the dynamic multimedia particles in the multimedia particle set according to the adjustment direction for the original electronic map, and adjust the display size of the dynamic multimedia particles in the multimedia particle set according to the adjustment direction for the original electronic map.
[0271] Optionally, the adjustment operation is a rotation operation, and the rotation operation carries a rotation direction for the original electronic map; the processor 1001 may be used to call the device control application program stored in the memory 1005 to dynamically update the movement trajectory and display size of the dynamic multimedia particles in the multimedia particle set according to the adjustment operation on the map display interface including the updated electronic map, including:
[0272] On the map display interface including the updated electronic map, rotate the dynamic multimedia particles in the multimedia particle set according to the rotation direction for the original electronic map, and adjust the display size of the dynamic multimedia particles in the multimedia particle set according to the rotation direction for the original electronic map.
[0273] Optionally, the dynamic multimedia particles are first dynamic weather particles, and the first dynamic weather particles in the multimedia particle set are used to simulate the weather state of a first target area; the first target area is included in the areas shown in both the original electronic map and the updated electronic map; the first dynamic weather particles in the multimedia particle set are distributed in a non-visualizable and limited-size particle space area, and the particle space area is independent of the map space corresponding to the original electronic map.
[0274] Optionally, the multimedia particle set further includes second dynamic weather particles. If the area shown in the updated electronic map does not include the first target area but includes a second target area, then in the map display interface including the updated electronic map, the second dynamic weather particles in the multimedia particle set are dynamically displayed; the second dynamic weather particles in the multimedia particle set are used to simulate the weather state in the second target area.
[0275] In this application, as the electronic map changes, the display effect of the multimedia particles is dynamically adjusted, which is beneficial to improving the accuracy of simulating the movement trajectory and size of the multimedia particles in the real environment, enhancing the interactivity between the electronic map and the multimedia particles, and improving the visual effect. At the same time, before and after the adjustment of the original electronic map, the dynamic multimedia particles in the same particle space area are used to simulate the dynamic multimedia particles in the real environment. That is, by recycling the dynamic multimedia particles in the same particle space area, it is possible to use a small number of dynamic multimedia particles to simulate the state (such as the weather state) in the area shown in the electronic map, which can reduce the computational amount of the dynamic multimedia particles, improve the rendering efficiency, and improve the operating performance of the map application program.
[0276] It should be understood that the computer device 1000 described in the embodiments of this application can execute the description of the display method of the above multimedia particles in the corresponding embodiments mentioned above Figure 3 and Figure 4 and can also execute the description of the display device of the above multimedia particles in the corresponding embodiments mentioned above Figure 14 、 Figure 15 which will not be elaborated here. In addition, the description of the beneficial effects of using the same method will not be elaborated either.
[0277] In addition, it should be pointed out here that: the embodiments of this application also provide a computer-readable storage medium, and the above computer-readable storage medium stores the computer program executed by the display device of the multimedia particles mentioned above, and the above computer program includes program instructions. When the above processor executes the above program instructions, it can execute the above Figure 3 and Figure 4Corresponding to the description of the method for displaying the above multimedia particles in the embodiments, therefore, the description will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For the technical details not disclosed in the embodiments of the computer-readable storage medium involved in the present application, please refer to the description of the method embodiments of the present application.
[0278] As an example, the above program instructions can be deployed to be executed on a computer device, or deployed to be executed on at least two computer devices at one location. Or, they can be executed on at least two computer devices distributed at at least two locations and interconnected through a communication network. The at least two computer devices distributed at at least two locations and interconnected through a communication network can form a blockchain network.
[0279] The above computer-readable storage medium can be the display device of the multimedia particles provided in any of the foregoing embodiments or the middle storage unit of the above computer device, such as the hard disk or the middle memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the computer-readable storage medium can also include both the middle storage unit and the external storage device of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store the data that has been output or will be output.
[0280] The terms "first", "second", etc. in the description, claims and drawings of the embodiments of the present application are used to distinguish the content in different media, rather than to describe a specific order. In addition, the term "including" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or modules, but may optionally further include steps or modules not listed, or may optionally further include other step units inherent to these processes, methods, devices, products or equipment.
[0281] The embodiments of the present application also provide a computer program product, including a computer program / instructions, which when executed by a processor implement the foregoing Figure 4 and Figure 7Corresponding to the description of the method for displaying the above multimedia particles in the embodiments, therefore, it will not be elaborated here. In addition, the description of the beneficial effects of using the same method will not be elaborated either. For the technical details not disclosed in the embodiments of the computer program product involved in this application, please refer to the description of the method embodiments of this application.
[0282] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0283] The method and related device provided in the embodiments of this application are described with reference to the method flowcharts and / or structural schematic diagrams provided in the embodiments of this application. Specifically, each process and / or block of the method flowchart and / or structural schematic diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable display devices for multimedia particles to generate a machine, so that the instructions executed by the processor of the computer or other programmable display devices for multimedia particles generate a device for implementing the functions specified in Figure 1 one process or multiple processes and / or structural schematic Figure 1 one block or multiple blocks. These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable display devices for multimedia particles to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured product including an instruction device, and the instruction device implements the functions specified in Figure 1 one process or multiple processes and / or structural schematic Figure 1 one block or multiple blocks. These computer program instructions can also be loaded onto a computer or other programmable display devices for multimedia particles, so that a series of operation steps are executed on the computer or other programmable devices to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable devices provide steps for implementing the functions specified in Figure 1 one process or multiple processes and / or structural schematic one block or multiple blocks.
[0284] The above disclosure is only for the preferred embodiments of the present application. Of course, it cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.
Claims
1. A display method for multimedia particles, characterized in that, Including: Obtain dynamic multimedia particle P i Initial position information in the particle space region; The particle space region is a finite space region independent of the map space corresponding to the original electronic map. i is a positive integer less than N, and N is the number of multimedia particles in the particle space region; Map the dynamic multimedia particle P according to the initial position information i to a map display interface for displaying the original electronic map; If an adjustment operation for the original electronic map is detected, the original electronic map on the map display interface is updated and displayed as an updated electronic map based on the adjustment operation, and the dynamic multimedia particle P is updated according to the adjustment operation i The initial position information in the particle space region to obtain the dynamic multimedia particle P i The updated position information in the particle space region; Transform the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i ; Determine the field of view angle corresponding to the particle space region according to the shape parameter of the particle space region; Generate a perspective matrix corresponding to the field of view angle, and according to the perspective matrix, transform the viewing position information of the dynamic multimedia particle P i to the perspective space corresponding to the map display interface, and obtain the perspective position information of the dynamic multimedia particle P i ; the perspective position information includes screen coordinates and depth coordinates; Adjust the dynamic multimedia particle P according to the screen coordinates i The movement trajectory in the map display interface including the updated electronic map; Adjust the dynamic multimedia particle P according to the depth coordinate i The display size in the map display interface including the updated electronic map.
2. The method according to claim 1, characterized in that Updating the dynamic multimedia particle P according to the adjustment operation i Using the initial position information in the particle space region to obtain the dynamic multimedia particle P i The updated position information in the particle space region includes: Adjust the dynamic multimedia particle P according to the adjustment operation i and the initial position information in the particle space region to obtain the candidate position information of the dynamic multimedia particle P i ; If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space region, then according to the candidate position information of the dynamic multimedia particle P i the dynamic multimedia particle P i is moved back into the particle space region to obtain the updated position information of the dynamic multimedia particle P i in the particle space region; If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i does not exceed the particle space region, then the candidate position information of the dynamic multimedia particle P i is determined as the updated position information of the dynamic multimedia particle P i in the particle space region.
3. The method according to claim 2, characterized in that, If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space region, then according to the candidate position information of the dynamic multimedia particle P i , the dynamic multimedia particle P i is moved back to the particle space region to obtain the updated position information of the dynamic multimedia particle P i in the particle space region, including: If the candidate position information of the dynamic multimedia particle P i indicates that the dynamic multimedia particle P i exceeds the particle space region, obtain the size information of the particle space region; Based on the size information of the particle spatial region, perform a modulo operation on the candidate position information of the dynamic multimedia particle P i to obtain the updated position information of the dynamic multimedia particle P i in the particle spatial region.
4. The method according to claim 2, wherein The adjustment operation is a scaling operation, and according to the adjustment operation, the initial position information of the dynamic multimedia particle P i in the particle space region is adjusted to obtain the candidate position information of the dynamic multimedia particle P i which includes: Obtain the perspective information of the updated electronic map; Determine the dynamic multimedia particle P according to the zoom ratio for the original electronic map carried by the zoom operation and the perspective information of the updated electronic map i The zoom offset in the particle spatial region; Obtain the dynamic multimedia particle P i The moving distance in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane; Adjust the dynamic multimedia particle P according to the scaling offset and the moving distance i and the initial position information in the particle space region to obtain the candidate position information of the dynamic multimedia particle P i .
5. The method according to claim 4, wherein Determine the dynamic multimedia particle P according to the zoom ratio of the original electronic map carried by the zoom operation and the perspective information of the updated electronic map i The zoom offset in the particle space region includes: Determine the scaling direction vector of the original electronic map according to the perspective information of the updated electronic map; Generate the dynamic multimedia particle P according to the scaling ratio i of the scaling distance; Determine the product of the scaling direction vector and the scaling distance as the dynamic multimedia particle P i Scaling offset in the particle space region 6. The method according to claim 5, wherein generating the dynamic multimedia particle P according to the scaling ratio i The scaling distance includes: Obtain the unit zoom factor and the cyclic zoom factor for the original electronic map; the cyclic zoom factor is used to reflect the equivalent zoom distances corresponding to at least two zoom operations for the dynamic multimedia particle P i being the same, and the zoom ratios corresponding to the at least two zoom operations are all integer powers of the cyclic zoom factor; Obtain the ratio between the scaling ratio and the t-th power of the cyclic scaling amount; t is a positive integer; If the ratio is less than the unit scaling amount, a first scaled distance is generated based on the first distance function and the ratio, and the first scaled distance is determined as the scaled distance of the dynamic multimedia particle P i ; If the ratio is greater than or equal to the unit scaling amount, a second scaled distance is generated based on the second distance function and the ratio, and the second scaled distance is determined as the scaled distance of the dynamic multimedia particle P i .
7. The method according to claim 2, wherein The adjustment operation is a translation operation, and according to the adjustment operation, the initial position information of the dynamic multimedia particle P i in the particle space region is adjusted to obtain the candidate position information of the dynamic multimedia particle P i including: Obtain the position information of the original center position point in the original electronic map and the position information of the updated center position point in the updated electronic map according to the translation operation; Obtain the actual geographical distance corresponding to the geographical unit distance in the updated electronic map; Determine the translation offset of the dynamic multimedia particle P according to the actual geographical distance, the position information of the original central position point, and the position information of the updated central position point i ; Obtain the dynamic multimedia particle P i The moving distance in the target direction in the particle space region; the target direction refers to the direction perpendicular to the map horizontal plane; Adjust the dynamic multimedia particle P according to the translation offset and the moving distance i and the initial position information in the particle space region to obtain the candidate position information i of the dynamic multimedia particle P 8. The method according to claim 7, wherein Determining the translation offset of the dynamic multimedia particle P according to the actual geographical distance, the position information of the original center position point, and the position information of the updated center position point, includes: i Determine the translation amount of the original electronic map as the difference between the position information of the original center position point and the position information of the updated center position point; Determine the ratio between the translation amount of the original electronic map and the actual geographical distance as the translation offset of the dynamic multimedia particle P i of the translation offset.
9. The method according to any one of claims 4-8, characterized in that The obtaining of the dynamic multimedia particle P i The moving distance in the target direction in the particle spatial region, including: Obtain the dynamic multimedia particle P i The acceleration in the target direction in the particle space region, and the dynamic multimedia particle P i The initial moving speed; the initial moving speed is the dynamic multimedia particle P i When being displayed in the original electronic map, the moving speed in the target direction in the particle space region Determine the sum of the acceleration and the initial moving speed as the updated moving speed of the dynamic multimedia particle P i ; the updated moving speed is the moving speed of the dynamic multimedia particle P i in the target direction within the particle space region when being displayed in the updated electronic map; Obtain the duration corresponding to the time period from displaying the original electronic map on the map display interface to displaying the updated electronic map in the map display interface; Determine the dynamic multimedia particle P according to the updated moving speed and the duration. i The moving distance in the target direction in the particle spatial region.
10. The method according to claim 1, wherein The adjustment operation is a translation operation or a scaling operation, and the updated position information is transformed into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i including: Determine the perspective information of the original electronic map as the perspective information of the updated electronic map; Determine the product of the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i .
11. The method according to claim 1, characterized in that, The adjustment operation is a rotation operation, and the updated position information is transformed into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i including: Determine the perspective information of the updated electronic map according to the rotation direction and rotation angle carried by the rotation operation; Determine the product of the perspective information of the updated electronic map and the updated position information as the perspective position information of the dynamic multimedia particle P i 12. A method for displaying multimedia particles, characterized in that, Including: Dynamically display the dynamic multimedia particles in the multimedia particle set on the map display interface for displaying the original electronic map; In response to an adjustment operation on the original electronic map, display the updated electronic map obtained based on the adjustment operation on the map display interface; Update the dynamic multimedia particle P according to the adjustment operation i Obtain the dynamic multimedia particle P based on the initial position information in the particle space region i The updated position information in the particle space region; Transform the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i ; Determine the field of view angle corresponding to the particle space region according to the shape parameter of the particle space region; Generate a perspective matrix corresponding to the field of view angle, and according to the perspective matrix, transform the viewing position information of the dynamic multimedia particle P i into the perspective space corresponding to the map display interface to obtain the perspective position information of the dynamic multimedia particle P i ; the perspective position information includes screen coordinates and depth coordinates; Adjust the dynamic multimedia particle P according to the screen coordinates i The movement trajectory in the map display interface including the updated electronic map; Adjust the dynamic multimedia particle P according to the depth coordinate i The display size in the map display interface including the updated electronic map.
13. The method according to claim 12, wherein The method further includes: On the map display interface including the updated electronic map, move the dynamic multimedia particles in the multimedia particle set in the adjustment direction for the original electronic map, and adjust the display size of the dynamic multimedia particles in the multimedia particle set in the adjustment direction for the original electronic map.
14. The method according to claim 12, wherein The adjustment operation is a rotation operation, and the rotation operation carries the rotation direction for the original electronic map; The method further includes: On the map display interface including the updated electronic map, rotate the dynamic multimedia particles in the multimedia particle set in the rotation direction for the original electronic map, and adjust the display size of the dynamic multimedia particles in the multimedia particle set in the rotation direction for the original electronic map.
15. The method according to any one of claims 12 - 14, characterized in that, The dynamic multimedia particle is a first dynamic weather particle, and the first dynamic weather particles in the multimedia particle set are used to simulate the weather state of the first target area; both the areas shown in the original electronic map and the updated electronic map include the first target area; The first dynamic weather particles in the multimedia particle set are distributed in a non-visualizable and finite particle space region, and the particle space region is independent of the map space corresponding to the original electronic map.
16. The method according to claim 15, wherein The multimedia particle set further includes second dynamic weather particles, and the method further includes: If the area shown in the updated electronic map does not include the first target area but includes a second target area, then in the map display interface including the updated electronic map, dynamically display the second dynamic weather particles in the multimedia particle set; the second dynamic weather particles in the multimedia particle set are used to simulate the weather state in the second target area.
17. A display device for multimedia particles, characterized in that, Including: An acquisition module for acquiring dynamic multimedia particle P i Initial position information in the particle space region; The particle space area is a finite space area independent of the map space corresponding to the original electronic map. i is a positive integer less than N, and N is the number of multimedia particles in the particle space area; A mapping module, configured to map the dynamic multimedia particle P according to the initial position information i to a map display interface for displaying the original electronic map; A display module, configured to, if it detects an adjustment operation on the original electronic map, update and display the original electronic map on the map display interface as an updated electronic map based on the adjustment operation, and update the dynamic multimedia particle P according to the adjustment operation i in the initial position information in the particle space region to obtain the dynamic multimedia particle P i in the updated position information in the particle space region; An adjustment module is configured to transform the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P; and determine a field of view angle corresponding to the particle space region according to a shape parameter of the particle space region. i Generate a perspective matrix corresponding to the field of view angle, and according to the perspective matrix, transform the viewing position information of the dynamic multimedia particle P i into the perspective space corresponding to the map display interface, and obtain the perspective position information of the dynamic multimedia particle P i ; the perspective position information includes screen coordinates and depth coordinates; according to the screen coordinates, adjust the movement trajectory of the dynamic multimedia particle P i in the map display interface including the updated electronic map; according to the depth coordinates, adjust the display size of the dynamic multimedia particle P i in the map display interface including the updated electronic map.
18. A display device for multimedia particles, characterized in that, Including: A display module, configured to dynamically display dynamic multimedia particles in a multimedia particle set on a map display interface for displaying the original electronic map; An update module, configured to, in response to an adjustment operation on the original electronic map, display an updated electronic map obtained based on the adjustment operation on the map display interface; Update the dynamic multimedia particle P according to the adjustment operation i Obtain the dynamic multimedia particle P based on the initial position information in the particle space region i Update position information in the particle space region; transform the updated position information into the perspective space of the updated electronic map to obtain the perspective position information of the dynamic multimedia particle P i Determine the field of view angle corresponding to the particle space region according to the shape parameters of the particle space region Generate a perspective matrix corresponding to the field of view angle, and according to the perspective matrix, transform the perspective position information of the dynamic multimedia particle P i to the perspective space corresponding to the map display interface, so as to obtain the perspective position information of the dynamic multimedia particle P i ; the perspective position information includes screen coordinates and depth coordinates; according to the screen coordinates, adjust the moving trajectory of the dynamic multimedia particle P i in the map display interface including the updated electronic map; according to the depth coordinates, adjust the display size of the dynamic multimedia particle P i in the map display interface including the updated electronic map.
Citation Information
Patent Citations
Method and system for efficient rendering of 3D particle systems for weather effects
CN110335336A