Method and device for displaying blowing effect, electronic equipment and storage medium
By receiving instructions to display the blowing motion effect, obtaining the target motion effect simulation configuration file, and controlling the wind model to simulate and display the blowing motion effect, the problem of the air conditioner blowing effect not being intuitive is solved, and a more fluid and dynamic 3D wind effect is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- AVATR CO LTD
- Filing Date
- 2023-05-08
- Publication Date
- 2026-07-03
AI Technical Summary
Existing technologies for illustrating or displaying dynamic effects of air conditioning blowing are difficult to intuitively show the direction of planar adjustable airflow, require a large amount of computing power, and result in overly regular airflow shaping with poor fluidity and flexibility, leading to a rigid presentation effect.
By receiving instructions to display wind effects, obtaining the target motion simulation configuration file, controlling the wind model to simulate and display wind effects, and using the motion rules of 3D vibrating sheets and floating units to simulate wind effects in different dimensions, including wind direction, wind speed, and angle.
It enhances the fluidity and dynamism of 3D wind, achieving a realistic 3D wind effect and enabling a more fluid and flexible wind display.
Smart Images

Figure CN116399006B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for displaying a blowing motion effect. Background Technology
[0002] With technological advancements, smart cars have added dedicated air conditioning operation and display interfaces to their central or lower control screens. These interfaces can display the air conditioning's airflow effects. The airflow effects are typically shown using icons or dynamic effects. Currently, existing methods of displaying airflow effects graphically are insufficient for intuitively demonstrating the direction of airflow adjustment on a flat surface. Existing methods using dynamic effects to simulate airflow effects generally rely on ionization, which requires excessive computing power, making it unsuitable for in-vehicle systems. The resulting airflow resembles water mist rather than wind, and the wind patterns are too rigid, lacking fluidity and agility, resulting in a rather static effect. Summary of the Invention
[0003] In view of this, the embodiments of this application provide a method, device, electronic device and storage medium for displaying wind blowing effects, which improves the fluidity and dynamism of 3D wind, achieves a realistic 3D wind effect, and solves the technical problems in the prior art such as overly regular wind shaping, poor fluidity and dynamism, and rigid wind output effect.
[0004] A first aspect of this application provides a method for displaying a blowing motion effect, comprising: receiving a blowing motion effect display instruction, the blowing motion effect display instruction including a target motion effect mode; obtaining a target motion effect simulation configuration file according to the target motion effect mode; and controlling a wind model to simulate and display the blowing motion effect according to the target motion effect simulation configuration file.
[0005] In some possible implementations, the step of obtaining the target motion effect simulation configuration file according to the target motion effect mode includes: querying the correspondence between the motion effect mode and the motion effect simulation configuration file recorded in the preset database according to the target motion effect mode; and obtaining the motion effect simulation configuration file corresponding to the target motion effect mode from the preset database as the target motion effect simulation configuration file based on the correspondence between the motion effect mode and the motion effect simulation configuration file.
[0006] In some possible implementations, the method further includes: constructing a wind model, the wind model comprising several 3D vibrating sheets, the 3D vibrating sheets being a point array containing several floating units that can float up and down.
[0007] In some possible implementations, the method further includes: creating motion effect patterns according to the dimensions of wind direction, wind speed, and / or wind angle, wherein the target motion effect pattern includes motion effect patterns created in one or more dimensions.
[0008] In some possible implementations, the step of creating the motion effect pattern according to the wind direction dimension includes:
[0009] Create a motion effect mode for upward wind flow, and in the motion effect simulation configuration file corresponding to the upward wind flow motion effect mode, set the motion rule of the 3D vibrating sheet to vibrate up and down from the center to the edge of the point array; and / or create a motion effect mode for downward wind flow, and in the motion effect simulation configuration file corresponding to the upward wind flow motion effect mode, set the motion rule of the 3D vibrating sheet to vibrate up and down from the edge to the center.
[0010] In some possible implementations, the step of creating motion effect modes according to the wind speed dimension includes: creating several motion effect modes of different wind speed levels according to different vibration frequencies of the 3D vibrating sheet, wherein a motion effect mode of one wind speed level corresponds to a vibration frequency value, and the motion effect simulation configuration file corresponding to each wind speed level motion effect mode is set with a corresponding vibration frequency value, and the vibration frequency value is used to control the 3D vibrating sheet to vibrate up and down.
[0011] In some possible implementations, the step of creating a motion effect mode according to the blowing angle dimension includes: creating a motion effect mode for a first blowing angle, and in the motion effect simulation configuration file corresponding to the motion effect mode for the first blowing angle, setting the motion rule of the 3D vibrating sheet to vibrate in an S-curve; and / or creating a motion effect mode for a second blowing angle, and in the motion effect simulation configuration file corresponding to the motion effect mode for the second blowing angle, setting the motion rule of the 3D vibrating sheet to vibrate in an inverse S-curve.
[0012] A second aspect of this application provides a device for displaying a blowing motion effect, comprising: a receiving module for receiving a blowing motion effect display instruction, the blowing motion effect display instruction including a target motion effect mode; an acquiring module for acquiring a target motion effect simulation configuration file according to the target motion effect mode; and a control module for controlling a wind model to simulate and display the blowing motion effect according to the target motion effect simulation configuration file.
[0013] A third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the electronic device, wherein the processor executes the computer program to implement the steps of the method for displaying a blowing motion effect provided in the first aspect.
[0014] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method for displaying a blowing motion effect provided in the first aspect.
[0015] The fifth aspect of this application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the steps of the method for displaying the blowing motion effect provided in the first aspect.
[0016] The present application provides a method, apparatus, electronic device, and storage medium for displaying a blowing motion effect, which has the following beneficial effects:
[0017] This application achieves the following: receiving a wind effect display instruction, which includes a target motion effect mode; obtaining a target motion effect simulation configuration file according to the target motion effect mode; and controlling a wind model to simulate and display the wind effect based on the target motion effect simulation configuration file. Based on this method, after determining the target motion effect mode corresponding to the user's desired wind effect display, a target motion effect simulation configuration file is obtained according to the target motion effect mode to implement the corresponding wind effect. By using a computer program to execute the motion effect simulation configuration file, a pre-built virtual wind model for displaying the wind effect is controlled, thereby achieving the display of the wind effect. This enhances the fluidity and dynamism of 3D wind, achieving a realistic 3D wind effect. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A flowchart illustrating the implementation of a method for displaying a blowing motion effect, as provided in an embodiment of this application;
[0020] Figure 2 A schematic diagram of a wind model in the method for demonstrating wind-blowing animation provided in the embodiments of this application;
[0021] Figure 3 A schematic diagram showing the shape of the wind model vibrating in an S-curve and an inverse S-curve in the method for demonstrating the wind effect provided in the embodiments of this application;
[0022] Figure 4 A basic structural block diagram of a wind-blowing motion effect display device provided in an embodiment of this application;
[0023] Figure 5 This is a basic structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0025] It should be understood that, when used in this specification and claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0026] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0027] Furthermore, in the description of this application and the claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0028] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0029] For some specific embodiments, please refer to Figure 1 , Figure 1 The flowchart of a method for displaying a blowing motion effect provided in this application embodiment specifically includes steps S11 to S13.
[0030] S11: Receive a wind blowing animation display instruction, which includes a target animation mode.
[0031] In this embodiment, the display process of the blowing animation effect can be simulated by a computer program in the blowing animation effect display device. Multiple animation modes can be created in the blowing animation effect display device, and different animation modes achieve different blowing animation effects. In this embodiment, a blowing animation effect display command can be sent from a mobile terminal to the blowing animation effect display device, and the blowing animation effect display command carries the target animation mode. It can be understood that the target animation mode represents the animation mode corresponding to the blowing animation effect that the user wants to display. For example, a communication connection can be established between the mobile terminal and the blowing animation effect display device using Bluetooth, WIFI (Wireless FIdelity), or other communication protocols. After the mobile terminal and the blowing animation effect display device are connected, the user can use the mobile terminal to log in to an APP (Application) to send blowing animation effect display commands to the blowing animation effect display device. For example, various buttons with different animation modes can be displayed in the APP interface, and the user can select a button in the APP interface and click it, thereby triggering the mobile terminal to send a blowing animation effect display command to the blowing animation effect display device.
[0032] S12: Obtain the target motion effect simulation configuration file according to the target motion effect mode.
[0033] In this embodiment, for the various motion effect modes created in the wind-blowing motion effect display device, each motion effect mode has a corresponding motion effect simulation configuration file. The motion effect simulation configuration file is stored in a preset database of the wind-blowing motion effect display device for the device to call. Specifically, the wind-blowing motion effect display device can retrieve the target motion effect simulation configuration file corresponding to the target motion effect mode from the database according to the target motion effect mode.
[0034] In some specific embodiments, after setting a corresponding motion effect simulation configuration file for each motion effect mode, the motion effect simulation configuration file mapped to the target motion effect mode can be obtained from the preset database based on the mapping relationship between motion effect modes and motion effect simulation configuration files in the preset database. Specifically, the motion effect simulation configuration files corresponding to all motion effect modes can be stored in the preset database of the blowing motion effect display device, and a mapping relationship can be established between each motion effect mode and its corresponding motion effect simulation configuration file in the preset database of the blowing motion effect display device. For example, when obtaining the target motion effect simulation configuration file, after receiving the blowing motion effect display command, the blowing motion effect display device can parse the blowing motion effect display command to obtain the target motion effect mode carried in the command. Then, based on the target motion effect mode, the mapping relationship between motion effect modes and motion effect simulation configuration files in the preset database is queried, and the motion effect simulation configuration file with the mapping relationship with the target motion effect mode is obtained from the database, and the motion effect simulation configuration file with the mapping relationship is determined as the target motion effect simulation configuration file.
[0035] S13: Based on the target motion effect simulation configuration file, control the wind model to simulate and display the wind blowing motion effect.
[0036] In this embodiment, the motion simulation configuration file records the floating displacement sequence corresponding to each floating unit in the wind model, set according to time sequence. After obtaining the target motion simulation configuration file, the wind effect display device executes the target motion simulation configuration file to control the wind model in the wind effect display device to simulate and display the wind effect corresponding to the target motion effect mode.
[0037] As can be seen from the above embodiments, the wind effect display method provided in this application determines the wind effect mode corresponding to the wind effect that the user wants to display by receiving the wind effect display instruction, obtains the wind effect simulation configuration file for displaying the wind effect according to the wind effect mode, pre-builds a virtual wind model for displaying the wind effect, and controls the wind model by executing the wind effect simulation configuration file with a computer program, so that the wind model can display the wind effect. This realizes the use of program to simulate the wind effect, which can improve the fluidity and flexibility of 3D wind and achieve a realistic 3D wind effect.
[0038] In some specific embodiments, the wind effect demonstration device includes a wind model, which is used to simulate and demonstrate wind effects of different animation modes. Please refer to the following: Figure 2 , Figure 2 This is a schematic diagram of a wind model in the method for demonstrating wind-blown animation effects provided in this application embodiment. For example, as shown... Figure 2As shown, the wind model constructed in this embodiment may specifically include 5 to 7 3D vibrating sheets, each fixed at one end and arranged radially. Each 3D vibrating sheet can be represented as a point array, which contains several floating units that can float up and down, for example... Figure 3 The intersections of the crosshairs represent floating units that can move up and down. It can be understood that the wind model is a virtual model built through mathematical modeling.
[0039] In some specific embodiments, when creating motion effect patterns in a wind-blowing animation display device, they can be created according to different dimensions to obtain multiple motion effect patterns. These dimensions include, but are not limited to, wind direction, wind speed, and wind angle. In this embodiment, the target motion effect pattern can include motion effect patterns created using one or more dimensions. That is, it can be understood that when displaying wind-blowing animations, multiple motion effect patterns with different dimensions can be displayed simultaneously. For example, a motion effect pattern created according to the wind direction dimension can be displayed simultaneously with a motion effect pattern created according to the wind speed dimension.
[0040] In some specific embodiments, when creating motion effect patterns according to the wind direction dimension, motion effect patterns including but not limited to upward wind flow and downward wind flow can be created. In this embodiment, when creating an upward wind flow motion effect pattern, the motion rules of each 3D vibrating sheet in the wind model can be set to a point array vibrating vertically from the center to the edge in the motion effect simulation configuration file corresponding to the upward wind flow motion effect pattern. When creating an upward wind flow motion effect pattern, the motion rules of each 3D vibrating sheet in the wind model can be set to vibrate vertically from the edge to the center in the motion effect simulation configuration file corresponding to the upward wind flow motion effect pattern.
[0041] For example, when creating a motion effect pattern for windward flow, a motion effect simulation configuration file corresponding to the windward flow motion effect pattern is first created. Then, in this motion effect simulation configuration file, the motion rule used to control the vibration of the 3D vibrating sheet is set to vibrate vertically from the center to the edge. When setting the motion rule for controlling the operation of the 3D vibrating sheet to vibrate vertically from the center to the edge, the floating displacement corresponding to each floating unit in each 3D vibrating sheet can be set according to the time sequence, so that each floating unit has a corresponding floating displacement sequence. It can be understood that the floating displacement sequence represents a combination of floating displacement data ordered by time. Moreover, for all floating displacement sequences corresponding to all floating units, the time change pattern of each floating displacement sequence is the same. For example, assuming that the floating displacement sequence corresponding to floating unit A contains 10 floating displacement data with a fixed order, and the time interval between two adjacent floating displacement data is 1 second, then the floating displacement sequences corresponding to all other floating units also contain 10 floating displacement data with a fixed order, and the time interval between two adjacent floating displacement data is also 1 second. The difference between the floating displacement sequences corresponding to each floating-point unit lies in the different time-series variation patterns of the floating displacement data and the different magnitudes of the floating displacement data. Specifically, when the 3D vibrating sheet vibrates up and down from the center to the edge, the floating-point units closer to the center of the point array change first, while those farther away change later. In some specific implementations, at the same time point, the floating displacement data of the floating-point units closer to the center of the point array is larger than that of the floating-point units farther away from the center of the point array.
[0042] For example, when creating a motion effect mode for downward wind flow, a motion simulation configuration file corresponding to the downward wind flow motion effect mode is first created. Then, in this motion simulation configuration file, the motion rule used to control the vibration of the 3D vibrating sheet is set to vibrate vertically from the edge to the center. Similar to setting the motion rule for controlling the vibration of the 3D vibrating sheet to vibrate vertically from the edge to the center, the floating displacement of each floating unit in each 3D vibrating sheet can be set according to the time sequence, so that each floating unit has a corresponding floating displacement sequence. The floating displacement sequence is represented as a combination of floating displacement data sorted by time. The difference between vertical vibration from the edge to the center and vertical vibration from the center to the edge lies in the different time-series changes in the floating displacement data and the different sizes of the floating displacement data. Specifically, when the 3D vibrating sheet of the wind model vibrates vertically from the edge to the center, the floating units farther from the center of the point array change first, while the floating units closer to the center of the point array change later. In some specific implementations, in the floating displacement sequence corresponding to each floating point unit, at the same time point, the floating displacement data of the floating point unit closer to the center point of the point array is larger than the floating displacement data of the floating point unit farther away from the center point of the point array.
[0043] Understandably, for both the upward and downward wind flow motion effect modes, different time variation patterns and floating displacement data sizes can be further configured. For example, when setting different time variation patterns, in the motion effect simulation configuration file corresponding to the upward wind flow motion effect mode, the time interval between two adjacent floating displacement data points in the floating displacement sequence corresponding to each floating unit can be set to 1 second, while in the motion effect simulation configuration file corresponding to the downward wind flow motion effect mode, the time interval between two adjacent floating displacement data points in the floating displacement sequence corresponding to each floating unit can be set to 0.5 seconds.
[0044] In some specific embodiments, when creating motion effect patterns according to the wind speed dimension, several motion effect patterns of different wind speed levels can be created based on the different vibration frequencies of the 3D vibrating sheet. Each wind speed level motion effect pattern corresponds to a vibration frequency value, and the motion effect simulation configuration file for each wind speed level motion effect pattern contains a corresponding vibration frequency value. This vibration frequency value is used to control the 3D vibrating sheet to vibrate up and down. For example, several different wind speed levels can be pre-set, and for each wind speed level, a motion effect pattern corresponding to each wind speed level can be created, resulting in several motion effect patterns for different wind speed levels. When creating a motion effect pattern for each wind speed level, a vibration frequency value can be configured for each wind speed level, and then the motion effect pattern for that wind speed level can be created according to the configured vibration frequency value. Specifically, a motion simulation configuration file corresponding to the motion effect mode for that wind speed level can be created first. Then, in this configuration file, the floating displacement of each floating unit in each 3D vibrating sheet at different time points is set according to the vibration frequency value, so that each floating unit has a corresponding time-sequential floating displacement sequence. In the floating displacement sequence, the magnitude of the floating displacement data changes with the vibration frequency value. It can be understood that the wind speed level is directly proportional to the vibration frequency value; the higher the wind speed level, the higher the vibration frequency value, and the stronger the sense of speed of the wind speed displayed in the corresponding motion effect mode.
[0045] Furthermore, when setting the floating displacement of each floating unit in each 3D vibrating sheet of the wind model at different time points according to the vibration frequency value, the vibration amplitude can be further determined according to the wind speed level, and the floating displacement of each floating unit in each 3D vibrating sheet can be set according to the vibration amplitude. Specifically, the larger the vibration amplitude, the stronger the sense of speed of the wind effect displayed in the corresponding animation mode; the smaller the vibration amplitude, the weaker the sense of speed of the wind effect displayed in the corresponding animation mode.
[0046] In some specific embodiments, when creating motion effect patterns according to the blowing angle dimension, motion effect patterns including but not limited to a first blowing angle and a second blowing angle can be created. In this embodiment, when creating a motion effect pattern for the first blowing angle, the motion rule used to control the vibration of the 3D vibrating sheet can be set to S-curve vibration in the motion effect simulation configuration file corresponding to the first blowing angle motion effect pattern. It is understood that, in some specific embodiments, the first blowing angle can be any angle from 0 to 90 degrees. When creating a motion effect pattern for the second blowing angle, the motion rule used to control the vibration of the 3D vibrating sheet can be set to reverse S-curve vibration in the motion effect simulation configuration file corresponding to the second blowing angle motion effect pattern. It is understood that, in some specific embodiments, the second blowing angle can be any angle from 0 to -90 degrees. Specifically, please refer to... Figure 3 , Figure 3 The diagram shows the shape of the wind model vibrating in an S-curve and an inverse S-curve in the wind-blowing dynamic effect demonstration method provided in the embodiments of this application.
[0047] For example, when creating the motion effect mode for the first blowing angle, a motion effect simulation configuration file corresponding to the motion effect mode for the first blowing angle can be created first. Then, in this motion effect simulation configuration file, the motion rule used to control the vibration of the 3D vibrating sheet can be set to vibrate in an S-curve. In this embodiment, when setting the motion rule used to control the vibration of the 3D vibrating sheet to vibrate in an S-curve, the floating displacement corresponding to each floating unit in each 3D vibrating sheet can be set according to a time sequence, so that each floating unit has a corresponding floating displacement sequence. It can be understood that the floating displacement sequence represents a combination of floating displacement data sorted according to time changes. For example... Figure 3 As shown, when vibrating with an S-curve, the floating displacement data value of the floating unit near the head in the 3D vibrating sheet is smaller than that of the floating unit near the tail, meaning that the floating displacement data value of the floating unit increases from the head to the tail. Furthermore, the 3D vibrating sheet can be roughly divided into three parts: the head, the middle part, and the tail. For the floating units in the head and tail, the line segment formed by connecting two adjacent floating units in the same longitudinal direction is gentle, with a slope approaching 0, meaning that the floating displacement data values of two adjacent floating units in the same longitudinal direction tend to be equal. For the floating units in the middle part, the line segment formed by connecting two adjacent floating units in the same longitudinal direction is steep, with a slope greater than 0, meaning that the floating displacement data values of two adjacent floating units in the same longitudinal direction are not equal, and among adjacent floating units, the floating displacement data value of the floating unit near the head is smaller than that of the floating unit near the tail.
[0048] For example, when creating the motion effect mode for the second blowing angle, a motion effect simulation configuration file corresponding to the motion effect mode for the second blowing angle can be created first. Then, in this motion effect simulation configuration file, the motion rule used to control the vibration of the 3D vibrating sheet can be set to vibrate in an inverse S-curve. In this embodiment, when setting the motion rule used to control the vibration of the 3D vibrating sheet to vibrate in an inverse S-curve, the floating displacement corresponding to each floating unit in each 3D vibrating sheet can be set according to the time sequence, so that each floating unit has a corresponding floating displacement sequence. It can be understood that the floating displacement sequence represents a combination of floating displacement data sorted according to time changes. For example... Figure 3 As shown, when vibrating with an inverse S-curve, the floating displacement data value of the floating unit near the head in the 3D vibrating sheet is greater than that of the floating unit near the tail; that is, the floating displacement data value of the floating unit decreases from the head to the tail. Furthermore, the 3D vibrating sheet can be roughly divided into three parts: the head, the middle part, and the tail. For the floating units in the head and tail, the line segment formed by connecting two adjacent floating units in the same longitudinal direction is gentle, with a slope approaching 0, meaning that the floating displacement data values of two adjacent floating units in the same longitudinal direction tend to be equal. For the floating units in the middle part, the line segment formed by connecting two adjacent floating units in the same longitudinal direction is steep, with a slope less than 0, meaning that the floating displacement data values of two adjacent floating units in the same longitudinal direction are not equal, and among adjacent floating units, the floating displacement data value of the floating unit near the head is greater than that of the floating unit near the tail.
[0049] It is understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0050] For some specific embodiments, please refer to Figure 4 , Figure 4 This is a basic structural block diagram of a wind-blowing animation display device provided in an embodiment of this application. In this embodiment, the device includes units used to perform the steps in the above-described method embodiments. Please refer to the relevant descriptions in the above-described method embodiments for details. For ease of explanation, only the parts relevant to this embodiment are shown. Figure 4 As shown, the device for displaying wind effects includes a receiving module 41, an acquiring module 42, and a control module 43. The receiving module 41 receives a wind effect display instruction, which includes a target effect mode. The acquiring module 42 acquires a target effect simulation configuration file according to the target effect mode. The control module 43 controls a wind model to simulate and display the wind effects based on the target effect simulation configuration file.
[0051] It should be understood that the display device for the blowing motion effect corresponds one-to-one with the above-mentioned display method for the blowing motion effect, and will not be repeated here.
[0052] In some embodiments of this application, please refer to Figure 5 , Figure 5 This is a basic structural block diagram of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device 5 in this embodiment includes: a processor 51, a memory 52, and a computer program 53 stored in the memory 52 and executable on the processor 51, such as a program for displaying a blowing effect. When the processor 51 executes the computer program 53, it implements the steps in each embodiment of the blowing effect display method described above. Alternatively, when the processor 51 executes the computer program 53, it implements the functions of each module in the embodiment corresponding to the blowing effect display device described above. Please refer to the relevant descriptions in the embodiments for details, which will not be repeated here.
[0053] For example, the computer program 53 can be divided into one or more modules (units), which are stored in the memory 52 and executed by the processor 51 to complete this application. The one or more modules can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 53 in the electronic device 5. For example, the computer program 53 can be divided into:
[0054] The receiving module is used to receive a blowing motion effect display instruction, wherein the blowing motion effect display instruction contains a target motion effect mode;
[0055] The acquisition module is used to acquire the target motion effect simulation configuration file according to the target motion effect mode;
[0056] The control module is used to control the wind model to simulate and display the wind effect according to the target motion effect simulation configuration file.
[0057] The electronic device may include, but is not limited to, a processor 51 and a memory 52. Those skilled in the art will understand that... Figure 5 This is merely an example of electronic device 5 and does not constitute a limitation on electronic device 5. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.
[0058] The processor 51 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0059] The memory 52 can be an internal storage unit of the electronic device 5, such as a hard disk or memory. The memory 52 can also be an external storage device of the electronic device 5, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 52 can include both internal and external storage units of the electronic device 5. The memory 52 is used to store the computer program and other programs and data required by the electronic device. The memory 52 can also be used to temporarily store data that has been output or will be output.
[0060] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0061] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above. In this embodiment, the computer-readable storage medium can be either non-volatile or volatile.
[0062] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps described in the above-described method embodiments.
[0063] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0064] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0065] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0066] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method of displaying a blow-drying effect, characterized in that include: Receive a command to display a wind-blowing animation effect, wherein the command contains a target animation effect mode; According to the target motion effect mode, obtain the target motion effect simulation configuration file; Based on the target motion effect simulation configuration file, control the wind model to simulate and display the wind blowing motion effect; The method further includes: building a wind model, the wind model comprising several 3D vibrating sheets, the 3D vibrating sheets being a point array containing several floating units that can float up and down.
2. The method of claim 1, wherein, The step of obtaining the target motion effect simulation configuration file according to the target motion effect mode includes: Based on the mapping relationship between motion effect modes and motion effect simulation configuration files in the preset database, the motion effect simulation configuration file that is mapped and associated with the target motion effect mode is obtained from the preset database as the target motion effect simulation configuration file.
3. The method of claim 1 or 2, wherein, The method further includes: Animation patterns are created according to the dimensions of wind direction, wind speed, and / or wind angle, wherein the target animation pattern includes animation patterns created according to one or more dimensions.
4. The method of claim 3, wherein, The steps for creating motion effect patterns according to the wind direction dimension include: Create a motion effect pattern for upward wind flow. In the motion simulation configuration file corresponding to the upward wind flow motion effect pattern, set the motion rule of the 3D vibrating sheet to be a point array vibrating vertically from the center to the edge; and / or Create a motion effect mode for downward wind flow. In the motion effect simulation configuration file corresponding to the downward wind flow motion effect mode, set the motion rules of the 3D vibrating sheet to vibrate up and down from the edge to the center.
5. The method of claim 3, wherein, The steps for creating motion effect patterns according to the wind speed dimension include: Several motion effect modes with different wind speed levels are created according to the different vibration frequencies of the 3D vibrating sheet. Each motion effect mode with a wind speed level corresponds to a vibration frequency value. The motion effect simulation configuration file corresponding to each motion effect mode with a wind speed level is set with a corresponding vibration frequency value. The vibration frequency value is used to control the 3D vibrating sheet to vibrate up and down.
6. The method of claim 3, wherein, The steps for creating motion effect patterns according to the wind angle dimension include: Create a motion effect mode for the first blowing angle. In the motion effect simulation configuration file corresponding to the motion effect mode for the first blowing angle, set the motion rule of the 3D vibrating sheet to vibrate in an S-curve; and / or Create a motion effect mode for the second blowing angle. In the motion effect simulation configuration file corresponding to the motion effect mode for the second blowing angle, set the motion rule of the 3D vibrating sheet to vibrate in an inverse S-curve.
7. A display device for blowing dynamic effects, characterized by The device for displaying the blowing motion effect includes: The receiving module is used to receive a blowing motion effect display instruction, wherein the blowing motion effect display instruction contains a target motion effect mode; The acquisition module is used to acquire the target motion effect simulation configuration file according to the target motion effect mode; The control module is used to control the wind model to simulate and display the wind effect according to the target motion effect simulation configuration file; The display device is also used to: build a wind model, the wind model including several 3D vibrating sheets, the 3D vibrating sheets being a dot array containing several floating units that can float up and down.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The computer program is executed by the processor to implement the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 8. The computer program is executed by the processor to implement the steps of the method according to any one of claims 1 to 6.