Motion effect display method and system, and vehicle-mounted terminal

By acquiring the set of motion effect resources in the vehicle's driving speed and display mode, matching the target resource map suite, and looping the frame images, the problem of high resource consumption in motion effect display is solved, thereby reducing the complexity of motion effect display and improving visual effects.

CN120045101BActive Publication Date: 2025-11-04CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510533930.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-11-04
Estimated Expiration
2045-04-27

AI Technical Summary

Technical Problem

In existing technologies, the display of motion effects consumes a lot of resources, and the number of model source files and texture images increases, which leads to a significant increase in development difficulty and the amount of data processed by the GPU.

Method used

By acquiring the set of motion effect resources under the vehicle's driving speed and display mode, matching the target resource map suite, and determining the motion effect playback parameters based on the driving speed, the frame images are played in a loop to achieve motion effect display, thereby reducing resource consumption.

Benefits of technology

It reduces the complexity and resource consumption of animation display while improving visual effects, allowing users to experience visual feedback in different speed scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045101B_ABST
    Figure CN120045101B_ABST
Patent Text Reader

Abstract

The application provides a dynamic effect display method, system and vehicle-mounted terminal, wherein the method comprises: if an interface is switched to a preset display mode, obtaining a driving speed of a vehicle and a dynamic effect resource set in the display mode, each set of resource graphs in the dynamic effect resource set being associated with speed information, and each set of resource graphs comprising all frame pictures of a preset dynamic effect corresponding to the speed information; matching a target resource graph set from the dynamic effect resource set according to the driving speed; determining a dynamic effect playing parameter of the target resource graph set according to the driving speed, wherein the dynamic effect playing parameter comprises a frame rate and an interframe interval time; and cyclically playing all frame pictures in the target resource graph set according to the dynamic effect playing parameter to perform dynamic effect display. The dynamic effect display is realized by playing sequence frame pictures, and resource consumption in the dynamic effect display process is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and in particular to a motion display method, system and vehicle terminal. Background Technology

[0002] With the development of the automotive industry and the increasing demands of consumers for driving experience, the functions of in-vehicle infotainment systems are becoming increasingly rich, and the content displayed on the central control screen and instrument panel is also becoming more abundant. The central control screen and instrument panel can not only display basic driving information, such as speed, mileage, and battery level, but also begin to introduce multiple display modes adapted to vehicle operation. Each display mode is equipped with a series of different dynamic effects to present a rich visual experience, bringing drivers and passengers an ultimate driving experience.

[0003] In related technologies, animation effects are typically displayed by using 3D models with textures as the specific dynamic objects, and then adding dynamic motion trajectories to these objects. However, this approach still faces certain problems. Each animation effect in various display modes requires corresponding model source files and texture images. If the animation effect is complex, the number of model source files and texture images increases. Furthermore, post-processing of the corresponding model objects is required during the animation effect implementation process to improve the effect's quality. This significantly increases the development difficulty of the animation effect, the amount of data processed by the GPU (Graphics Processing Unit), and the memory space occupied by the animation effect, resulting in high resource consumption. Summary of the Invention

[0004] In view of the above shortcomings, this application discloses a motion effect display method, system and vehicle terminal to solve the technical problem of high resource consumption in motion effect display.

[0005] In a first aspect, this application provides a motion effect display method, the method comprising: if the interface is switched to a preset display mode, obtaining the vehicle's driving speed and a set of motion effect resources in the display mode, wherein each set of resource images in the motion effect resource set is associated with speed information, and each set of resource images includes all frame images of a preset motion effect under the corresponding speed information; matching a target resource image suite from the motion effect resource set according to the driving speed; determining the motion effect playback parameters of the target resource image suite according to the driving speed, wherein the motion effect playback parameters include frame rate and frame interval time; and looping all frame images in the target resource image suite according to the motion effect playback parameters to display the motion effect.

[0006] In one embodiment of this application, the configuration method of the motion effect resource set includes: acquiring preset motion effects under different speed information, the display frame rate of the interface, and the display resolution of the interface, wherein the motion effect elements and element change speeds corresponding to the preset motion effects under different speed information are different; playing each preset motion effect, and capturing multiple static images according to the display frame rate and the display resolution; integrating the multiple static images corresponding to each preset motion effect into a resource image suite according to the capture order; associating each resource image suite with the corresponding speed information to obtain the motion effect resource set.

[0007] In one embodiment of this application, determining the motion effect playback parameters of the target resource map suite based on the driving speed includes: matching a target frame rate calculation strategy from a set of preset frame rate calculation strategies based on the driving speed, wherein each of the preset frame rate calculation strategies is associated with speed information; calculating the frame rate based on the driving speed and the target frame rate calculation strategy, wherein the frame rate is proportional to the driving speed, and calculating the reciprocal of the frame rate to obtain the frame interval time, thereby obtaining the motion effect playback parameters.

[0008] In one embodiment of this application, determining the motion effect playback parameters of the target resource map suite based on the driving speed further includes: matching a target transparency calculation strategy from a set of preset transparency calculation strategies based on the driving speed, wherein each of the multiple transparency calculation strategies is associated with speed information; calculating a first transparency of the target resource map suite based on the driving speed and the target transparency calculation strategy, wherein the motion effect playback parameters further include the first transparency, and the first transparency is proportional to the driving speed.

[0009] In one embodiment of this application, the step of looping through all frame images in the target resource map suite according to the motion effect playback parameters includes: integrating all frame images into a single resource image according to the frame sequence; performing a modulo operation on the real-time cumulative playback duration of the target resource map suite, the frame rate, and the total number of frames in the target resource map suite to determine the current frame index; extracting the texture data of the current frame from the resource image according to the current frame index, and processing the texture data according to the first transparency to obtain the target texture data of the current frame; rendering the target texture data of the current frame onto the interface, and continuously updating the target texture data of the current frame using the target texture data of the next frame based on the frame interval time, thereby completing the looping through all frame images.

[0010] In one embodiment of this application, the step of extracting texture data of the current frame from the resource image based on the current frame index includes: calculating a texture scaling ratio by combining a preset single-frame size with the total size of the resource image; calculating a horizontal frame number of the resource image by combining a preset single-frame width with the total width of the resource image; determining a vertical texture offset of the current frame in the resource image based on the current frame index, the horizontal frame number, the total height of the resource image, and the preset single-frame height; determining a horizontal texture offset of the current frame in the resource image based on the current frame index, the horizontal frame number, the total width, and the single-frame width; determining the position coordinates of the texture data of the current frame in the resource image based on the texture scaling ratio, the vertical texture offset, and the horizontal texture offset; and extracting the texture data of the current frame from the resource image based on the position coordinates.

[0011] In one embodiment of this application, after the animation display, the method further includes: if the change in driving speed causes a change in the target resource map suite, then matching a new target resource map suite from the animation resource set according to the changed driving speed, and determining the second transparency of the new target resource map suite and the third transparency of the previous target resource map suite according to the changed driving speed; looping all frame images in the new target resource map suite according to the second transparency, and fading the previous target resource map suite according to the third transparency, thereby completing the switching between the new target resource map suite and the previous target resource map suite.

[0012] In one embodiment of this application, the configuration method of the motion effect resource set further includes: extracting the same elements from preset motion effects under different speed information, wherein the same elements are static elements; integrating the same elements into a shared resource graph suite, and integrating the different elements from preset motion effects under different speed information into dedicated resource graph suites respectively; associating the shared resource graph suite with global speed information, and associating the dedicated resource graph suite with the corresponding speed information to obtain the motion effect resource set, so as to always maintain the display of the shared resource graph suite on the interface when displaying motion effects.

[0013] Secondly, this application provides a motion effect display system, the system comprising: an acquisition module, configured to acquire the vehicle's driving speed and a set of motion effect resources in the display mode if the interface is switched to a preset display mode, wherein each set of resource images in the motion effect resource set is associated with speed information, and each set of resource images includes all frame images of a preset motion effect under the corresponding speed information; a matching module, configured to match a target resource image suite from the motion effect resource set according to the driving speed; a calculation module, configured to determine the motion effect playback parameters of the target resource image suite according to the driving speed, wherein the motion effect playback parameters include frame rate and frame interval time; and a display module, configured to loop all frame images in the target resource image suite according to the motion effect playback parameters for motion effect display.

[0014] Thirdly, this application provides an in-vehicle terminal, the in-vehicle terminal comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the in-vehicle terminal enables the motion display method as described in the first aspect.

[0015] As described above, the motion effect display method, system, and vehicle terminal provided in this application have the following beneficial effects:

[0016] First, when the interface is switched to the preset display mode, the vehicle's speed and the motion effect resource set for that display mode are obtained. The motion effect resource set contains multiple sets of resource images, each associated with speed information and containing all frame images of the preset motion effect at the corresponding speed. Then, a target resource image suite is matched from the motion effect resource set based on the driving speed. Next, the motion effect playback parameters of the target resource image suite are determined based on the driving speed. These motion effect playback parameters include frame rate and frame interval time. Finally, based on the motion effect playback parameters, all frame images in the target resource image suite are played in a loop to display the motion effect. By playing the sequence of frame images of the preset motion effect, an animation effect is generated, thus reducing the complexity of the motion effect display. Furthermore, by determining different motion effect styles and corresponding motion effect playback parameters based on dynamic vehicle speed parameters, users can experience visual feedback under different speed scenarios. This improves the visual effect while effectively reducing resource consumption during the motion effect display process.

[0017] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:

[0019] Figure 1 This is a schematic diagram illustrating the implementation environment of a motion effect display system, as shown in an exemplary embodiment of this application;

[0020] Figure 2 This is a flowchart illustrating an exemplary embodiment of the present application of a motion effect display method;

[0021] Figure 3 This is a low-speed visual image of a track mode background motion effect shown in an exemplary embodiment of this application;

[0022] Figure 4 This is a mid-speed visual image of a track mode background animation, as illustrated in an exemplary embodiment of this application.

[0023] Figure 5 This is a high-speed visual image of a racetrack mode background animation, as illustrated in an exemplary embodiment of this application.

[0024] Figure 6 This is a flowchart illustrating the processing of a vertex shader, as shown in an exemplary embodiment of this application.

[0025] Figure 7 This is a flowchart illustrating the processing of a fragment shader, as shown in an exemplary embodiment of this application.

[0026] Figure 8 This is a block diagram illustrating an exemplary embodiment of the present application of a motion effect display system;

[0027] Figure 9 This is a schematic diagram of a vehicle-mounted terminal provided in one embodiment of this application. Detailed Implementation

[0028] The embodiments of this application will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be understood that the preferred embodiments are only for illustrating this application and are not intended to limit the scope of protection of this application.

[0029] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the illustrations only show the components related to this application and are not drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0030] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the present application. However, it will be apparent to those skilled in the art that embodiments of the present application may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the present application.

[0031] Animation effects are various animated effects presented in the interface, providing a rich visual experience. The display of animation effects typically uses 3D models with textures as specific dynamic objects, and then adds dynamic motion trajectories to these objects. However, the inventors of this application have discovered that a series of animation effects in various display modes require the configuration of corresponding model source files and texture images. If the animation effect is complex, the number of model source files and texture images will also increase. Furthermore, the animation effect implementation process requires post-processing of the corresponding model objects to improve the animation effect effect, significantly increasing the development difficulty of animation effects, the amount of data processed by the GPU, and the memory space occupied by the animation effects, resulting in a problem of high resource consumption.

[0032] Therefore, please see Figure 1 , Figure 1 This is a schematic diagram illustrating an implementation environment of a motion effect display system, as shown in an exemplary embodiment of this application. Figure 1 As shown, the implementation environment includes a vehicle 110 and a motion effect display system 120. The motion effect display system 120 is embedded in the vehicle 110 and is used to realize motion effect display in the vehicle 110. The motion effect display system 120 includes, but is not limited to, the vehicle system, the vehicle computer, etc. It generates animation effects by playing a sequence of frames of preset motion effects, thereby reducing the complexity of motion effect display. Furthermore, it determines specific motion effect styles and corresponding motion effect playback parameters based on dynamic vehicle speed parameters, which improves the visual effect while effectively reducing resource consumption in the motion effect display process.

[0033] Please see Figure 2 , Figure 2 This is a flowchart illustrating an exemplary embodiment of the present application of a method for implementing motion effects. This method can be applied to... Figure 1 The implementation environment shown is intended to illustrate a method that can also be applied to other exemplary implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.

[0034] like Figure 2 As shown, in an exemplary embodiment, the animation display method includes at least steps S210 to S240, which are described in detail below:

[0035] Step S210: If the interface is switched to the preset display mode, the vehicle's driving speed and the set of motion effect resources in the display mode are obtained. Each set of resource images in the set of motion effect resources is associated with speed information. Each set of resource images includes all frame images of the preset motion effect under the corresponding speed information.

[0036] Step S220: Match the target resource map kit from the motion effect resource set according to the driving speed.

[0037] Step S230: Determine the motion effect playback parameters of the target resource map suite based on the driving speed. The motion effect playback parameters include frame rate and frame interval time.

[0038] Step S240: Based on the animation playback parameters, loop through all frame images in the target resource map suite to display the animation.

[0039] The interface can be the vehicle's central control interface, instrument panel interface, or other display interfaces; the preset display modes can be different modes such as sport mode and track mode, each display mode has a corresponding preset animation effect; at the same time, based on the vehicle's different speed information, each display mode has a variety of preset animation effects under different speed information, and different animation effects are associated with different speed information; the preset animation effects can be animation effects applied to different layers of the interface, such as background animation effects applied to the bottom layer and foreground animation effects applied to the surface layer.

[0040] In addition, each preset animation effect under various display modes is pre-configured as a resource graph suite, forming a set of animation resources for various display modes. All resource graph suites in each animation resource set are associated with speed information, and each set of resource graphs includes all frame images of the preset animation effect under the corresponding speed information. All frame images together form the dynamic effect of the preset animation effect, and the complete animation effect can be presented by playing all frame images.

[0041] In step S210, if the interface is switched to a preset display mode, the current driving speed of the vehicle and the set of motion effect resources in the display mode are obtained, so as to display the motion effect in the display mode and at the driving speed.

[0042] For example, each set of resource maps in the motion effect resource set is associated with speed information. This speed information can be a speed point value, i.e., one speed value corresponds to one set of resource maps, or a speed range value, i.e., one speed range corresponds to one set of resource maps. For example, in the track mode, the speed information is divided into low-speed range, medium-speed range, and high-speed range. The corresponding motion effect resource maps include three sets of resource maps, which are associated with the low-speed range, medium-speed range, and high-speed range, respectively.

[0043] In step S220, the driving speed is matched with the speed information associated with each set of resource maps in the motion effect resource set to determine the target resource map set.

[0044] For example, if the driving speed falls into the medium speed range, the target resource map suite is the resource map suite corresponding to the medium speed range.

[0045] In step S230, the motion effect playback parameters of the target resource map suite are determined based on the driving speed. If the speed information associated with each resource map is a speed point value, the motion effect playback parameters will be different for different resource map suites. If the speed information associated with each resource map is a speed range value, the motion effect playback parameters will be different for different driving speeds, even for the same resource map suite.

[0046] In step S240, all frame images in the target resource map suite are played in a loop according to the frame rate and frame interval time. That is, after all frame images have completed one round of playback, if the resource map suite has not been switched, the next round of playback continues, thereby continuously presenting a visual dynamic effect.

[0047] In this embodiment, animation effects are generated by playing a sequence of frames with preset motion effects, thereby reducing the complexity of the motion effect display. Furthermore, by determining different motion effect styles and corresponding motion effect playback parameters based on dynamic vehicle speed parameters, users can experience visual feedback in different speed scenarios. This not only improves the visual effect but also effectively reduces resource consumption during the motion effect display process.

[0048] In one embodiment, the configuration method of the motion effect resource set includes: acquiring preset motion effects under different speed information, the display frame rate of the interface, and the display resolution of the interface, wherein the motion effect elements and the element change speeds corresponding to the preset motion effects under different speed information are different; playing each preset motion effect and capturing multiple static images according to the display frame rate and display resolution; integrating the multiple static images corresponding to each preset motion effect into a resource image suite according to the capture order; associating each resource image suite with the corresponding speed information to obtain the motion effect resource set.

[0049] Please see Figures 3-5 ,in, Figure 3This is an exemplary embodiment of the present application illustrating a low-speed visual image of a racetrack mode background motion effect. Figure 4 This is a mid-speed visual image of a track mode background animation, as illustrated in an exemplary embodiment of this application. Figure 5 This is a high-speed visual image illustrating a racetrack mode background animation, as shown in an exemplary embodiment of this application. Figures 3-5 As shown, the visuals of preset animation effects at a specific point in time are presented under different speed information. The preset animation effects under different speed information correspond to different animation elements, and the speed of element change is also different. The speed of element change is proportional to the vehicle's driving speed and changes accordingly to the vehicle's speed.

[0050] by Figures 3-5 Taking a dynamic visual effect as an example, if we use a 3D model with textures as the specific dynamic object, and then add dynamic motion trajectories to the specific dynamic object, then the implementation... Figure 3 The animation effects require two model source files and two texture images for the left and right semicircles, and six semicircles need to be generated for display. The left and right rays require one ray model source file and a corresponding texture image, and a total of twelve rays need to be generated for display. The lane line effects on both sides of the road also require one model source file and one texture image to generate two lane line effects. Ultimately, four model source files and four texture maps are needed, resulting in twenty model objects. Similarly, the implementation... Figure 4 , Figure 5 The animation effects also require a large number of model source files and texture maps, generating a large number of model objects. From a display perspective, high-resolution models are necessary to make the corresponding models appear clearer; otherwise, jagged edges will appear. To achieve the desired display effect, a series of post-processing steps are required on the model data before it can be displayed on the screen, which undoubtedly increases the animation development cycle, GPU computing power, and memory usage.

[0051] Therefore, in this embodiment, in order to achieve motion effect display by playing sequence frame images, for preset motion effects under different speed information, the sequence frame images of the entire animation are extracted and integrated into a resource map kit. In this way, regardless of the complexity of the motion effect, the entire motion effect corresponds to only one resource map kit containing multiple static images, without the need to store the model source files of various motion effect elements and the corresponding texture images, reducing the number of files and reducing memory usage.

[0052] In this embodiment, during the playback of each preset animation effect, multiple static images are captured based on the display frame rate and display resolution. The display frame rate determines the number of static images (i.e., the number of static images equals the display frame rate), and the display resolution determines the size of the static images (i.e., the size of the static images equals the display resolution). For example, if the interface's display frame rate is 60 frames per second, 60 static images are captured at the same time intervals to match the interface's frame rate. If the display resolution is 1920×720, the static image size is 1920×720, and the images can be directly displayed on the interface.

[0053] In one possible embodiment, in the configuration of the motion effect resource set, the motion effect resource is used as the parent node, and the nodes of the sub-project are dynamically loaded through the URL (Uniform Resource Locator) address, that is, the resource graph suite under different speed information, and the driving speed of the data layer is bound at the parent node to receive the driving speed from the data layer for motion effect rendering.

[0054] For example, if the speed information has three types: high, medium, and low speed, then high, medium, and low speed rendering nodes are created under the parent node respectively, and each rendering node corresponds to a set of resource graphs.

[0055] In one embodiment, determining the motion effect playback parameters of the target resource map suite based on the driving speed includes: matching a target frame rate calculation strategy from a set of preset frame rate calculation strategies based on the driving speed, wherein each of the multiple frame rate calculation strategies is associated with speed information; calculating the frame rate based on the driving speed and the target frame rate calculation strategy, wherein the frame rate is proportional to the driving speed, and calculating the reciprocal of the frame rate to obtain the frame interval time, thereby obtaining the motion effect playback parameters.

[0056] In this embodiment, the driving speed is matched with the speed information associated with each of the multiple frame rate calculation strategies to determine the target frame rate calculation strategy. Then, the driving speed is substituted into the target frame rate calculation strategy to calculate the frame rate, and the frame interval time is determined based on the frame rate.

[0057] In this embodiment, in order to improve the visual effect of the motion effects, different calculation strategies are set for the frame rate under different speed information, so that the frame rate and frame interval parameters are adapted to the dynamic changes of driving speed. The higher the speed, the higher the frame rate and the shorter the frame interval time, which enhances the visual experience brought by the motion effects.

[0058] In one possible embodiment, the frame rate is calculated according to the driving speed and target frame rate calculation strategy, including: calculating the difference between a preset first speed parameter and the driving speed, denoted as the first speed difference; and calculating the ratio of a preset first proportional coefficient to the first speed difference to obtain the frame rate.

[0059] The first proportional coefficient is a value calibrated through experiments or experience to ensure that the calculated frame rate is within a reasonable range; the first speed parameter is a speed reference value set based on speed information.

[0060] As one possible implementation, the first proportionality coefficient is a fixed constant, such as 600, meaning the proportionality coefficient is the same across various frame rate calculation strategies; while the first speed parameter is a dynamic parameter, meaning the first speed parameter differs across various frame rate calculation strategies. Furthermore, if the speed information is a speed point value, meaning one speed value corresponds to one frame rate calculation strategy, then when switching from a smaller speed to a larger speed, the first speed difference between the first speed parameter and the driving speed shows a decreasing trend, meaning the frame rate increases with increasing driving speed. If the speed information is a speed range value, meaning one speed range corresponds to one frame rate calculation strategy, then if the driving speed fluctuation is within a speed range, then as the driving speed increases, the first speed difference between the first speed parameter and the driving speed shows a decreasing trend, meaning the frame rate increases.

[0061] For example, if the speed information is a speed point value, the frame rate calculation strategy is as follows:

[0062] Formula (1)

[0063] in, Indicates frame rate. This represents the preset first proportional coefficient. This represents the preset first speed parameter. Indicates travel speed.

[0064] For example, If we take 600, and the speed point value is 90 km / h, If we set it to 110, the frame rate is 30 frames per second. If the speed point value is 100 km / h, If we set it to 115, the frame rate is 40 frames per second.

[0065] For example, if the speed information is a speed range value, and the speed information is divided into a low-speed range, a medium-speed range, and a high-speed range, the frame rate calculation strategy associated with the low-speed range is as follows:

[0066] Formula (2)

[0067] in, This indicates the frame rate at low speeds. This represents the preset first proportional coefficient. This indicates the preset first speed parameter at low speed. This indicates the driving speed within the low-speed range.

[0068] The frame rate calculation strategy associated with the medium speed range is as follows:

[0069] Formula (3)

[0070] in, This indicates the frame rate at medium speed. This represents the preset first proportional coefficient. This indicates the preset first speed parameter at medium speed. This indicates the driving speed within the medium speed range.

[0071] The frame rate calculation strategy associated with the high-speed range is as follows:

[0072] Formula (4)

[0073] in, Indicates the frame rate at high speed. This represents the preset first proportional coefficient. This indicates the preset first speed parameter at low speed. This indicates the driving speed when in the high-speed range.

[0074] In this exemplary embodiment, , , These are set based on the upper limits of the low-speed, medium-speed, and high-speed ranges, respectively. If the low-speed range is (0, 80] km / h, the medium-speed range is (80, 120] km / h, and the high-speed range is (120, maximum speed] km / h, then... >80, >120, > Maximum speed, for example, The value is 136. Within each speed range, the frame rate increases with increasing driving speed.

[0075] In one possible embodiment, the frame rate increases continuously with the increase of driving speed in different speed ranges. That is, the minimum frame rate in the medium speed range is greater than the maximum frame rate in the low speed range, and the minimum frame rate in the high speed range is greater than the maximum frame rate in the medium speed range, so as to enhance the visual experience brought by the motion effects.

[0076] For example, the formula for calculating the frame interval time is:

[0077] Formula (5)

[0078] in, Indicates the frame interval time. Indicates frame rate.

[0079] In one possible embodiment, after determining the target frame rate calculation strategy, the method further includes: performing a strategy verification between the speed information corresponding to the target frame rate calculation strategy and the driving speed to ensure the reliability of the frame rate calculation.

[0080] In one possible embodiment, the motion effect resource serves as the parent node, and the nodes of its sub-projects include nodes of multiple sets of resource graph suites, with corresponding frame rate calculation strategies added to each sub-project node.

[0081] In one embodiment, determining the motion effect playback parameters of the target resource map suite based on the driving speed further includes: matching a target transparency calculation strategy from a set of preset transparency calculation strategies based on the driving speed, wherein each of the multiple transparency calculation strategies is associated with speed information; calculating a first transparency of the target resource map suite based on the driving speed and the target transparency calculation strategy, wherein the motion effect playback parameters further include the first transparency, and the first transparency is proportional to the driving speed.

[0082] In this embodiment, the transparency is between 0 and 1, where 0 represents complete transparency (i.e., the motion effect is completely invisible) and 1 represents complete opacity (i.e., the motion effect is completely visible).

[0083] In this embodiment, in order to further enhance the visual effect of the motion effect, the transparency change effect in the motion effect display is considered, and different calculation strategies are set for the transparency under different speed information, so that the transparency of the motion effect is adapted to the dynamic change of driving speed. The greater the speed, the greater the transparency, and the more obvious the motion effect, thus enhancing the visual experience brought by the motion effect.

[0084] In one possible embodiment, if the speed information is a speed point value, the first transparency of the target resource map suite is calculated according to the driving speed and target transparency calculation strategy, including: calculating the ratio of the driving speed to a preset second scaling factor to obtain an initial transparency value; and selecting the smaller transparency value from the initial transparency value and the maximum transparency value as the first transparency.

[0085] As one possible implementation, if the speed information is a speed point value, then one speed value corresponds to one transparency calculation strategy. In various transparency calculation strategies, the second proportional coefficient can be different. However, when switching from a lower speed to a higher speed, it is necessary to ensure that the calculated transparency is proportional to the driving speed. At the same time, the maximum value of the first transparency is 1. When the first transparency reaches 1, the first transparency no longer changes with the driving speed.

[0086] For example, when the speed information is a speed point value, the transparency calculation strategy is as follows:

[0087] Formula (6)

[0088] in, Indicates the first level of transparency. Indicates driving speed. This represents the preset second proportional coefficient.

[0089] For example, if the speed point value is 80 km / h, If we set it to 160, the first transparency is 0.5. If the speed point value is 120 km / h, If we set it to 150, then the first transparency is 0.8.

[0090] In one possible embodiment, if the speed information is a speed range value, the first transparency of the target resource map suite is calculated according to the driving speed and target transparency calculation strategy, including: calculating the difference between the driving speed and a preset second speed parameter, denoted as the second speed difference; calculating the product of the second speed difference and a preset transparency gradient to obtain an initial transparency value; and selecting the smaller transparency value from the initial transparency value and the maximum transparency value as the first transparency.

[0091] The second speed parameter is a speed reference value set based on the speed information.

[0092] For example, if the speed information is a speed range value, and the speed information is divided into a low-speed range, a medium-speed range, and a high-speed range, the transparency calculation strategy associated with the low-speed range is as follows:

[0093] Formula (7)

[0094] in, This indicates the initial transparency at low speed. This indicates the preset second speed parameter at low speed. This indicates the driving speed within the low-speed range.

[0095] The transparency calculation strategy associated with the medium speed range is as follows:

[0096] Formula (8)

[0097] in, Indicates the first level of transparency at medium speed. This indicates the preset second speed parameter at medium speed. This indicates the driving speed within the medium speed range.

[0098] The transparency calculation strategy associated with high-speed sections is as follows:

[0099] Formula (9)

[0100] in, Indicates the first level of transparency at high speed. This indicates the preset second speed parameter calculation parameter at medium speed. This indicates the speed at which the vehicle is traveling in the high-speed range.

[0101] In this exemplary embodiment, , , These are set based on the lower limits of the low-speed, medium-speed, and high-speed ranges, respectively. If the low-speed range is (0, 80] km / h, the medium-speed range is (80, 120] km / h, and the high-speed range is (120, maximum speed] km / h, then... =0, =80, =120. In each speed range, the transparency increases with the increase of driving speed, but the maximum value of the first transparency is 1. When the first transparency reaches 1, the first transparency no longer changes with the driving speed. In addition, 0.05 in formulas (7), (8), and (9) is the preset transparency gradient. This value can be set according to the requirements, such as 0.1, 0.2, etc.

[0102] In one possible embodiment, after determining the target transparency calculation strategy, the method further includes: performing a strategy verification between the speed information corresponding to the target transparency calculation strategy and the driving speed to ensure the reliability of the transparency calculation.

[0103] In one possible embodiment, the motion effect resource serves as the parent node, and the nodes of its sub-projects include nodes of multiple sets of resource graph suites, with corresponding transparency calculation strategies added to each sub-project node.

[0104] In one embodiment, according to the motion effect playback parameters, the process of looping through all frame images in the target resource map suite includes: integrating all frame images into a single resource image based on the frame sequence; performing a modulo operation on the real-time cumulative playback duration, frame rate, and total number of frames of the target resource map suite to determine the current frame index; extracting the texture data of the current frame from the resource image based on the current frame index, and processing the texture data according to a first transparency to obtain the target texture data of the current frame; rendering the target texture data of the current frame onto the interface, and continuously updating the target texture data of the current frame using the target texture data of the next frame based on the frame interval time, thereby completing the looping through all frame images.

[0105] In this embodiment, considering that when playing all frame images in a loop, it is necessary to continuously load frame images and perform texture conversions, which not only increases GPU computing power and memory usage, but may also affect the animation display effect, all frame images are integrated into a single resource image to facilitate the management of animation resources. Furthermore, when displaying the animation, only one image is loaded and one texture conversion is performed. Subsequently, texture data from different positions is directly extracted to display all frames, reducing the complexity and resource consumption of the animation display.

[0106] For example, the formula for calculating the current frame index (i.e., the current frame sequence number) is:

[0107] Formula (10)

[0108] in Indicates the current frame index. Indicates frame rate Indicates the total playback time. This indicates the total number of frames.

[0109] In one embodiment, extracting texture data of the current frame from a resource image based on the current frame index includes: calculating a texture scaling ratio by combining a preset single-frame size with the total size of the resource image; calculating the horizontal frame number of the resource image by combining a preset single-frame width with the total width of the resource image; determining the vertical texture offset of the current frame in the resource image based on the current frame index, the horizontal frame number, the total height of the resource image, and the preset single-frame height; determining the horizontal texture offset of the current frame in the resource image based on the current frame index, the horizontal frame number, the total width, and the single-frame width; determining the position coordinates of the texture data of the current frame in the resource image based on the texture scaling ratio, the vertical texture offset, and the horizontal texture offset; and extracting the texture data of the current frame from the resource image based on the position coordinates.

[0110] In this embodiment, the horizontal and vertical texture offsets of the texture data of the current frame in the resource image are first determined based on the current frame index, the horizontal frame number, and the width and height relationship between the single frame image and the resource image. Then, the position coordinates of the texture data of the current frame in the resource image are determined by combining the texture scaling ratio of the current frame relative to the resource image. This achieves precise positioning of the texture data of the current frame in the resource image and ensures the display effect of the animation.

[0111] For example, the formula for calculating the texture scaling ratio of the current frame relative to the resource image is:

[0112] Formula (11)

[0113] in, Indicates the texture scaling ratio. Indicates the size of a single frame. This indicates the total size of the resource image.

[0114] For example, the formula for calculating the horizontal frame count of a resource image is:

[0115] Formula (12)

[0116] in, Indicates the horizontal frame count. This indicates the total width of the resource image. Indicates the width of a single frame.

[0117] For example, the formula for calculating the vertical texture offset of the current frame in the resource image is:

[0118] Formula (13)

[0119] in, This indicates the vertical texture offset. Indicates the current frame index. Indicates the horizontal frame count. Indicates the height of a single frame. This indicates the total height of the resource image.

[0120] For example, the formula for calculating the horizontal texture offset of the current frame in the resource image is:

[0121] Formula (14)

[0122] in, Indicates the horizontal texture offset. Indicates the current frame index. Indicates the horizontal frame count. Indicates the width of a single frame. This indicates the total width of the resource image.

[0123] For example, the formula for calculating the position coordinates of the texture data of the current frame in the resource image is:

[0124] Formula (15)

[0125] in, Indicates the position coordinates of the current frame. Represents the global coordinates of the resource image. Indicates the texture scaling ratio. This represents the texture offset, including the horizontal texture offset and the vertical texture offset.

[0126] In one possible embodiment, after determining the position coordinates of the texture data of the current frame in the resource image, the method further includes: converting the position coordinates of the texture data of the current frame in the resource image into coordinates in the interface coordinate system according to a preset coordinate transformation matrix, so as to achieve accurate mapping and display of the current frame on the interface.

[0127] In one possible embodiment, considering that the playback speed of all frame images is dynamically adjusted according to the driving speed, and that the timer in the C++ code cannot meet this requirement because the timer cannot dynamically switch the interval time, and if the effective value range of the driving speed is 0~270km / h, to achieve this effect, 270 timers need to be created and run simultaneously, which seriously wastes the CPU (Central Processing Unit) computing power, therefore, OpenGL (Open Graphics Library) shaders are used to implement the animation display.

[0128] Please see Figure 6 , Figure 6 This is a flowchart illustrating the processing of a vertex shader, as shown in an exemplary embodiment of this application. Figure 6 As shown, the inputs to the vertex shader include image parameters (single frame size, total size of resource images, global coordinates of resource images, total number of frames of resource images), time parameters (cumulative playback duration), motion effect playback parameters (frame rate), and coordinate transformation parameters (coordinate transformation matrix). The processing flow of the vertex shader is as follows:

[0129] Step S610: Calculate the single frame size and the total size of the resource images to obtain the texture scaling ratio;

[0130] Step S620: Calculate the width of a single frame and the total width of the resource image to obtain the horizontal frame number of the resource image;

[0131] Step S630: Perform modulo operation on the cumulative playback duration, frame rate, and total number of frames to determine the current frame index;

[0132] Step S640: Determine the vertical texture offset of the current frame in the resource image based on the current frame index, horizontal frame number, total height of the resource image, and single frame height; and determine the horizontal texture offset of the current frame in the resource image based on the current frame index, horizontal frame number, total width of the resource image, and single frame width.

[0133] Step S650: Calculate the position coordinates of the texture data of the current frame in the resource image based on the global coordinates, texture scaling ratio, vertical texture offset, and horizontal texture offset of the resource image.

[0134] Step S660: Based on the coordinate transformation matrix, convert the position coordinates of the texture data of the current frame in the resource image into coordinates in the interface coordinate system and output them.

[0135] Please see Figure 7 , Figure 7 This is a flowchart illustrating the processing of a fragment shader, as shown in an exemplary embodiment of this application. Figure 7 As shown, the input to the fragment shader includes the position coordinates of the texture data of the current frame in the resource image and the transparency of the current frame. The processing flow of the fragment shader is as follows:

[0136] Step S710: Sample the texture color based on the position coordinates of the texture data of the current frame in the resource image;

[0137] Step S720: Process the texture color according to the transparency to obtain the target texture color of the current frame and output it.

[0138] In one embodiment, after displaying the motion effect, the method further includes: if a change in driving speed causes a change in the target resource map suite, then matching a new target resource map suite from the motion effect resource set according to the changed driving speed, and determining the second transparency of the new target resource map suite and the third transparency of the previous target resource map suite according to the changed driving speed; looping all frame images in the new target resource map suite according to the second transparency, and fading the previous target resource map suite according to the third transparency, thereby completing the switching between the new target resource map suite and the previous target resource map suite.

[0139] The new target resource map suite corresponds to a continuous speed range or adjacent speed values ​​with the previous target resource map suite, including switching from a resource map suite with a higher speed to a resource map suite with a lower speed, and switching from a resource map suite with a lower speed to a resource map suite with a higher speed.

[0140] In this embodiment, in order to further enhance the visual effect of the animation, when switching between different resource map kits, the transparency is set, that is, the switching between resource map kits is done by fading in and out, which avoids sudden visual jumps and provides a smoother visual experience.

[0141] In addition, in this embodiment, the second transparency of the new target resource map suite can be calculated based on the changed driving speed using one of the formulas (6), (7), (8), and (9).

[0142] In one possible embodiment, the formula for calculating the third transparency of the previous target resource map suite includes: calculating the difference between the driving speed and a preset third speed parameter, denoted as the third speed difference; calculating the product of the third speed difference and a preset transparency gradient to obtain the transparency reduction amount; and calculating the difference between the maximum transparency value and the transparency reduction amount to obtain the third transparency.

[0143] The third speed parameter is a speed reference value set based on the speed information.

[0144] For example, the formula for calculating the third transparency of the previous target resource map suite is:

[0145] Formula (16)

[0146] in, This indicates the third transparency of the previous target resource map suite. Indicates the current driving speed. This represents the third velocity parameter.

[0147] In this exemplary embodiment, if the speed information is divided into a low-speed range, a medium-speed range, and a high-speed range, The speed limits are set based on the lower limits of the low-speed, medium-speed, and high-speed ranges, respectively. If the low-speed range is (0.80] km / h, the medium-speed range is (80, 120] km / h, and the high-speed range is (120, maximum speed] km / h, then... The values ​​are 0, 80, and 120 respectively. In addition, 0.05 in formula (16) is the preset transparency gradient, which can be set according to requirements, such as 0.1, 0.2, etc.

[0148] In one possible embodiment, the motion effect resource serves as the parent node, and the nodes of its sub-projects include nodes of multiple sets of resource graph suites. Sequence frame brushes are added to each sub-project node, and parameters such as the total size of the resource images, frame index, frame interval time, total number of resource images, and single frame size are configured as input parameters for the shader.

[0149] In one possible embodiment, the motion effect resource serves as the parent node, and the nodes of its sub-projects include nodes of multiple sets of resource graph suites. Corresponding transparency calculation strategies are added to each sub-project node when it is cut in and when it is cut out.

[0150] In one embodiment, the configuration method of the motion effect resource set further includes: extracting the same elements from the preset motion effects under different speed information, wherein the same elements are static elements; integrating the same elements into a shared resource graph suite, and integrating the different elements from the preset motion effects under different speed information into dedicated resource graph suites respectively; associating the shared resource graph suite with the global speed information, and associating the dedicated resource graph suite with the corresponding speed information to obtain the motion effect resource set, so as to always keep the shared resource graph suite displayed on the interface when the motion effect is displayed.

[0151] In this embodiment, considering that loading the integrated resource images and converting textures can take a long time when the animation is complex, the same static elements in the preset animations under different speed information are extracted and integrated into a shared resource map suite, which is then associated with global speed information so that the shared resource map suite can be matched and obtained at any driving speed. The different elements in each preset animation are integrated into a dedicated resource map suite and associated with the corresponding speed information so that the corresponding dedicated resource map suite can be matched at a specific driving speed. In this way, the shared resource map suite only needs to be loaded once and can be used in all speed states. The shared resource map suite can always be displayed on the interface. During animation display or animation switching, only the dedicated resource map suite with fewer elements needs to be loaded, which reduces GPU computing power and improves the efficiency of animation display.

[0152] In one possible embodiment, the motion graphics resource serves as the parent node, and the nodes of its sub-projects include nodes of a shared resource graph suite and nodes of multiple sets of dedicated resource graph suites.

[0153] The aforementioned motion effect display method first obtains the vehicle's speed and the motion effect resource set for that display mode when the interface is switched to a preset display mode. This set contains multiple resource images, each associated with speed information and containing all frame images of the preset motion effect at that speed. Then, a target resource image suite is matched from the motion effect resource set based on the vehicle speed. Next, the motion effect playback parameters for the target resource image suite are determined based on the vehicle speed. These parameters include frame rate and frame interval. Finally, based on the playback parameters, all frame images in the target resource image suite are played in a loop to display the motion effect. This animation effect is generated by playing a sequence of frame images of the preset motion effect, thus reducing the complexity of the motion effect display. Furthermore, determining different motion effect styles and corresponding playback parameters based on dynamic vehicle speed parameters allows users to experience visual feedback at different speeds, improving the visual effect while effectively reducing resource consumption during the motion effect display process.

[0154] Please see Figure 8 , Figure 8This is a block diagram illustrating an exemplary embodiment of a motion effect display system according to this application. The system can be applied to... Figure 1 The implementation environment shown is intended to illustrate the system, but it should be understood that the system can also be applied to other exemplary implementation environments. This embodiment does not limit the implementation environment to which the system is applicable.

[0155] like Figure 8 As shown, in an exemplary embodiment, the motion effect display system 800 includes at least an acquisition module 810, a matching module 820, a calculation module 830, and a display module 840, which are described in detail below:

[0156] The acquisition module 810 is used to acquire the vehicle's driving speed and the set of motion effect resources in the display mode if the interface is switched to the preset display mode. Each set of resource images in the motion effect resource set is associated with speed information, and each set of resource images includes all frame images of the preset motion effect under the corresponding speed information.

[0157] Matching module 820 is used to match a target resource map kit from the motion effect resource set based on the driving speed;

[0158] The calculation module 830 is used to determine the motion effect playback parameters of the target resource map suite based on the driving speed. The motion effect playback parameters include frame rate and frame interval time.

[0159] Display module 840 is used to loop all frame images in the target resource map suite according to the animation playback parameters to display the animation.

[0160] It should be noted that the motion effect display system provided in the above embodiments and the motion effect display method provided in the above embodiments belong to the same concept. The content of the operation performed by each module has been described in detail in the method embodiments, and will not be repeated here.

[0161] Please see Figure 9 , Figure 9 This is a schematic diagram of a vehicle-mounted terminal provided in one embodiment of this application. Figure 9 A schematic diagram of a computer system suitable for implementing the vehicle-mounted terminal of this application is shown. It should be noted that... Figure 9 The computer system 900 of the vehicle terminal shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0162] like Figure 9As shown, the computer system 900 includes a Central Processing Unit (CPU) 901, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in Read-Only Memory (ROM) 902 or programs loaded from storage portion 908 into Random Access Memory (RAM) 903. The RAM 903 also stores various programs and data required for system operation. The CPU 901, ROM 902, and RAM 903 are interconnected via a bus 904. An Input / Output (I / O) interface 905 is also connected to the bus 904.

[0163] The following components are connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. Removable media 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 910 as needed so that computer programs read from them can be installed into storage section 908 as needed.

[0164] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 909, and / or installed from removable medium 911. When the computer program is executed by CPU 901, it performs various functions defined in the system of this application.

[0165] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0166] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0167] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.

Claims

1. A method for displaying animation effects, characterized in that, The method includes: If the interface is switched to the preset display mode, the vehicle's driving speed and the set of motion effect resources in the display mode are obtained. Each set of resource images in the set of motion effect resources is associated with speed information. Each set of resource images includes all frame images of the preset motion effect under the corresponding speed information. Match the target resource map kit from the motion effect resource set according to the driving speed; The motion effect playback parameters of the target resource map suite are determined based on the driving speed, and the motion effect playback parameters include frame rate and frame interval time; Based on the animation playback parameters, all frame images in the target resource map suite are played in a loop for animation display. The frame rate is calculated according to a frame rate calculation strategy, including: calculating the difference between a preset first speed parameter and the driving speed, denoted as the first speed difference, wherein the first speed parameter is a speed reference value set according to speed information; and calculating the ratio of a preset first proportional coefficient to the first speed difference to obtain the frame rate. If the driving speed changes between different speed information, the frame rate of the target resource map suite corresponding to the driving speed under the first speed information is greater than the frame rate of the target resource map suite corresponding to the driving speed under the second speed information. The speed represented by the first speed information is greater than the speed represented by the second speed information. The target resource map suite corresponding to the first speed information and the target resource map suite corresponding to the second speed information are different resource map suites.

2. The motion effect display method according to claim 1, characterized in that, The configuration methods for the motion effect resource set include: The preset animation effects, the display frame rate of the interface, and the display resolution of the interface are obtained under different speed information. The preset animation effects under different speed information correspond to different animation elements and different element change speeds. Play each preset animation effect, and capture multiple static images based on the display frame rate and the display resolution; Based on the extraction order, the multiple static images corresponding to each preset animation effect are integrated into a resource image suite; Each resource map suite is associated with its corresponding speed information to obtain the motion effect resource set.

3. The motion effect display method according to claim 1, characterized in that, The step of determining the motion effect playback parameters of the target resource map suite based on the driving speed includes: Based on the driving speed, a target frame rate calculation strategy is matched from a set of preset frame rate calculation strategies, each of which is associated with speed information. Based on the driving speed and the target frame rate calculation strategy, the frame rate is calculated, which is proportional to the driving speed. The reciprocal of the frame rate is then calculated to obtain the frame interval time, thereby obtaining the motion effect playback parameters.

4. The motion effect display method according to claim 1, characterized in that, The step of determining the motion effect playback parameters of the target resource map suite based on the driving speed also includes: Based on the driving speed, a target transparency calculation strategy is matched from a set of preset transparency calculation strategies, each of which is associated with speed information. The first transparency of the target resource map suite is calculated based on the driving speed and the target transparency calculation strategy. The motion effect playback parameters also include the first transparency, which is proportional to the driving speed.

5. The motion effect display method according to claim 4, characterized in that, The step of looping all frame images in the target resource map suite according to the motion effect playback parameters includes: All the frame images are integrated into a single resource image based on the frame sequence. The current frame index is determined by performing a modulo operation on the real-time cumulative playback duration of the target resource map suite, the frame rate, and the total number of frames of the target resource map suite. Extract the texture data of the current frame from the resource image according to the current frame index, and process the texture data according to the first transparency to obtain the target texture data of the current frame; The target texture data of the current frame is rendered onto the interface, and based on the frame interval, the target texture data of the current frame is continuously updated using the target texture data of the next frame, thus completing the loop playback of all frame images.

6. The motion effect display method according to claim 5, characterized in that, The step of extracting the texture data of the current frame from the resource image based on the current frame index includes: The preset single-frame size and the total size of the resource image are calculated to obtain the texture scaling ratio, and the preset single-frame width and the total width of the resource image are calculated to obtain the horizontal frame number of the resource image. Based on the current frame index, the horizontal frame number, the total height of the resource image, and the preset single frame height, the vertical texture offset of the current frame in the resource image is determined, and based on the current frame index, the horizontal frame number, the total width, and the single frame width, the horizontal texture offset of the current frame in the resource image is determined. The position coordinates of the texture data of the current frame in the resource image are determined based on the texture scaling ratio, the vertical texture offset, and the horizontal texture offset. Extract the texture data of the current frame from the resource image based on the location coordinates.

7. The motion effect display method according to any one of claims 1 to 6, characterized in that, After the animation display, the following is also included: If the change in driving speed causes the target resource map kit to change, then a new target resource map kit is matched from the motion effect resource set according to the changed driving speed, and the second transparency of the new target resource map kit and the third transparency of the previous target resource map kit are determined according to the changed driving speed. Based on the second transparency, all frame images in the new target resource map suite are played in a loop, and based on the third transparency, the previous target resource map suite is faded out, thus completing the switch between the new target resource map suite and the previous target resource map suite.

8. The motion effect display method according to claim 7, characterized in that, The configuration method of the motion effect resource set also includes: Extract the same elements from preset animations under different speed information, where the same elements are static elements; The same elements are integrated into a shared resource map kit, and the different elements in the preset animations under different speed information are integrated into a dedicated resource map kit. The shared resource map suite is associated with global speed information, and the exclusive resource map suite is associated with the corresponding speed information to obtain the animation resource set, so that the shared resource map suite is always displayed on the interface when the animation is displayed.

9. A motion effect display system, characterized in that, The system includes: The acquisition module is used to acquire the vehicle's driving speed and the set of motion effect resources in the display mode if the interface is switched to a preset display mode. Each set of resource images in the set of motion effect resources is associated with speed information, and each set of resource images includes all frame images of the preset motion effect under the corresponding speed information. The matching module is used to match a target resource map set from the motion effect resource set according to the driving speed; The calculation module is used to determine the motion effect playback parameters of the target resource map suite based on the driving speed. The motion effect playback parameters include frame rate and frame interval time. The display module is used to loop all frame images in the target resource map suite according to the animation playback parameters to display the animation effects; The calculation module is specifically used to calculate the difference between a preset first speed parameter and the driving speed, denoted as the first speed difference, wherein the first speed parameter is a speed reference value set according to speed information; and to calculate the ratio of a preset first proportional coefficient to the first speed difference to obtain the frame rate. If the driving speed changes between different speed information, the frame rate of the target resource map suite corresponding to the driving speed under the first speed information is greater than the frame rate of the target resource map suite corresponding to the driving speed under the second speed information. The speed represented by the first speed information is greater than the speed represented by the second speed information. The target resource map suite corresponding to the first speed information and the target resource map suite corresponding to the second speed information are different resource map suites.

10. A vehicle-mounted terminal, characterized in that, The vehicle-mounted terminal includes: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the vehicle terminal to implement the motion display method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Animation playing method and device

    CN118283328A