Dynamic fluid display method, device, electronic device and readable medium

By detecting and analyzing the target object attribute information in the user display interface and dynamically adjusting the fluid parameters, the novelty and fun of the mobile terminal interaction method are achieved, solving the problem of the single interaction method in the existing technology.

CN114757814BActive Publication Date: 2025-09-16BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011562654.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2025-09-16
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

In the existing technology, the interactive mode of the mobile terminal is single and not very interesting.

Method used

By detecting a target object in a user display interface, obtaining its attribute information, and determining the fluid parameter change at the target texture pixel position according to the attribute information, a dynamic fluid is displayed in the user display interface.

Benefits of technology

It makes the interaction method novel and interesting, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114757814B_ABST
    Figure CN114757814B_ABST
Patent Text Reader

Abstract

The present disclosure provides a dynamic fluid display method, device, electronic device and readable medium, which relate to the field of computer technology. The method includes: detecting a target object in a user display interface; obtaining attribute information of the target object; determining changes in parameters of the fluid at each target texture pixel position related to the target object in the user display interface based on the attribute information of the target object; and displaying the dynamic fluid in the user display interface based on the changes in the parameters of the fluid. The technical solution disclosed in the present disclosure controls the changes in the parameters of the fluid in the user display interface based on the attribute information of the target object detected in the user display interface, thereby displaying the dynamic fluid. The interactive method is novel and interesting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a dynamic fluid display method, device, electronic device, and readable medium. Background Art

[0002] With the rapid development of computer and communication technologies, various applications based on terminal devices have become widely used, greatly enriching people's daily lives. Users can use these applications for entertainment, sharing their daily lives with other users, and more. To enhance the fun, interactive features are often added to gaming or video capture applications to improve the user experience.

[0003] However, in the existing technology, the interactive mode applied on the mobile terminal has a single gameplay and is not very interesting. Summary of the Invention

[0004] The present disclosure provides a dynamic fluid display method, device, electronic device and readable medium, which are used to solve the problems existing in the prior art.

[0005] In a first aspect, a dynamic fluid display method is provided, the method comprising:

[0006] Detecting a target object in a user display interface;

[0007] Get the attribute information of the target object;

[0008] Determining, in a user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object according to the attribute information of the target object;

[0009] According to the changes in the parameters of the fluid, the dynamic fluid is displayed in the user display interface.

[0010] In a second aspect, a dynamic fluid display device is provided, the device comprising:

[0011] A detection module, used to detect target objects in the user display interface;

[0012] Acquisition module, used to obtain attribute information of the target object;

[0013] a determination module, configured to determine, in a user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object based on the attribute information of the target object;

[0014] The display module is used to display the dynamic fluid in the user display interface according to the changes in the parameters of the fluid.

[0015] In a third aspect, the present disclosure provides an electronic device, the electronic device comprising:

[0016] one or more processors;

[0017] A memory stores one or more applications, wherein when the one or more applications are executed by one or more processors, the electronic device performs operations corresponding to the dynamic fluid display method shown in the first aspect of the present disclosure.

[0018] In a fourth aspect, the present disclosure provides a computer-readable medium for storing computer instructions. When the computer instructions are executed by a computer, the computer can execute the dynamic fluid display method as shown in the first aspect of the present disclosure.

[0019] In a fifth aspect, the present disclosure provides a computer program product, comprising computer instructions, which, when executed by a computer, implement the dynamic fluid display method as shown in the first aspect of the present disclosure.

[0020] The beneficial effects of the technical solutions provided by this disclosure may include:

[0021] The dynamic fluid display method, device, electronic device, and readable medium provided in the embodiments of the present disclosure detect a target object in a user display interface; obtain attribute information of the target object; determine, based on the attribute information of the target object, changes in fluid parameters at each target texture pixel position associated with the target object in the user display interface; and display the dynamic fluid in the user display interface based on the changes in the fluid parameters. The technical solution disclosed herein controls the changes in fluid parameters in the user display interface based on the attribute information of the target object detected in the user display interface, thereby displaying the dynamic fluid, providing a novel and engaging interactive method. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for describing the embodiments of the present disclosure.

[0023] Figure 1 A schematic flow chart of a dynamic fluid display method provided in an embodiment of the present disclosure;

[0024] Figure 2 A schematic diagram of the execution process of the dynamic fluid display method provided in an embodiment of the present disclosure;

[0025] Figure 3 A schematic structural diagram of a dynamic fluid display device provided in an embodiment of the present disclosure;

[0026] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0028] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0029] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0030] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish devices, modules or units, and are not used to limit these devices, modules or units to be different devices, modules or units, nor are they used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0031] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0032] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0033] The following detailed description of the technical solution of the present disclosure and how the technical solution of the present disclosure solves the above-mentioned technical problems is provided with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0034] The technical solution disclosed herein can be applied to applications involving the production, application, and use of dynamic fluid effects. The technical solution disclosed herein can be applied to terminal devices, which may include mobile terminals or computer devices. Mobile terminals may include, for example, smartphones, PDAs, tablet computers, and wearable devices with displays; computer devices may include, for example, desktop computers, laptops, all-in-one computers, and smart home devices.

[0035] The technical solution disclosed herein can be implemented by a graphics processing unit (GPU) in a terminal device. The user display interface is pre-divided into multiple grids, which are divided horizontally and vertically, with the horizontal direction corresponding to the width direction of the user display interface and the vertical direction corresponding to the height direction of the user display interface. The position of each grid corresponds one-to-one to the position of each texture pixel of the GPU. In a two-dimensional plane, the position of the texture pixel corresponds one-to-one to the position of the screen display pixel of the terminal device. Fluid is displayed in the user display interface, and texture pixels are used to save the parameters of the fluid corresponding to each grid, including initial velocity parameters, etc. The color of the fluid displayed in the user display interface can be at least one pre-configured color, or at least one color determined according to the user's selection instruction.

[0036] Figure 1 A flow chart of a dynamic fluid display method provided by an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the method may include:

[0037] Step S101: Detect a target object in a user display interface.

[0038] Among them, the user display interface can be a display interface in an application. The solution provided by the embodiment of the present disclosure can be implemented as an application or a functional plug-in of the application. When the terminal device detects the user's startup instruction for the application, the application is started and the user display interface is displayed; or, when the terminal device detects the user's trigger instruction for the functional plug-in of the application, the user display interface is displayed.

[0039] Optionally, if a video capture command is detected, a video capture interface is displayed. In this case, the user interface displayed is the video capture interface. The target object can be a specific object in the video capture interface, including but not limited to: the face, head, gesture, finger, etc. of a person or other living thing. The target object can be moving or stationary.

[0040] Among them, gestures may include but are not limited to: pointing up, making a fist, making a heart shape, giving a thumbs up, etc.

[0041] The terminal device may activate a video capture device (e.g., a camera) of the terminal device to capture video. The duration of the video capture may be a preset time length, or may be determined based on a video capture start instruction and a video capture end instruction, and this disclosure is not limited thereto. During the video capture process, the terminal device detects the target object in the user display interface, i.e., the video screen.

[0042] Optionally, the target object may also include a touch operation object. For example, the user touches the display screen of the terminal device with a finger and slides on the display screen. The terminal device detects the touch operation instruction, and the object that inputs the touch operation instruction is the touch operation object (in this case, the finger is the touch operation object, that is, the target object).

[0043] Step S102: Acquire attribute information of the target object.

[0044] The attribute information of the target object is information indicating a specific attribute of the target object, which may include information related to the speed and position of the target object, or information related to the color of the target object.

[0045] Optionally, the position of the target object may be the position of at least one grid corresponding to the target object in the user display interface.

[0046] The specific implementation method of obtaining attribute information varies depending on the type of the target object.

[0047] If the target object is a target object in the video, the terminal device determines the target object's location, speed and other attribute information based on each video frame image.

[0048] If the target object is a touch operation object, the terminal device determines the target object's location, speed and other attribute information based on the detected location and time of the touch operation.

[0049] The color corresponding to the target object may be a pre-configured color or a color determined according to a selection instruction input by the user.

[0050] Step S103 : determining, in the user display interface, changes in parameters of the fluid at each target texture pixel position related to the target object according to the attribute information of the target object.

[0051] Based on changes in the target object's position, speed, corresponding color, and other factors, changes in fluid parameters at target texel locations associated with the target object can be determined in the user display interface, thereby enabling interaction between the user and the terminal device. The target texels are texels associated with the target object in the user display interface, that is, texels corresponding to the target object's range of action. Fluid parameters can include speed parameters, color parameters, and other factors.

[0052] In one possible implementation, the fluid parameter includes a velocity parameter, and the attribute information of the target object includes a velocity change of the target object; determining, based on the attribute information of the target object, a change in the fluid parameter at each target texture pixel position related to the target object in a user display interface includes:

[0053] According to the velocity change of the target object, the change of the velocity parameter of the fluid at each target texture pixel position is determined.

[0054] In actual applications, if the target object includes a target object in a video (e.g., a user's finger), then after detecting the target object in the video, the position of the target object in each frame of the video is obtained, the distance of the target object in adjacent frames is determined based on the position of the target object in each frame, the speed of the target object is determined based on the distance of the target object in adjacent frames, and the speed change of the target object is determined based on the speed of the target object at each moment. If the target object includes a touch operation object, the terminal device detects the start position and end position of the touch operation, determines the effective distance of the touch operation based on the start position and end position, determines the effective time of the touch operation based on the start time and end time of the touch operation, and determines the speed of the target object based on the effective time and effective distance, thereby further determining the speed change of the target object based on the speed of the target object at each moment.

[0055] The terminal device can adjust the velocity parameters of the fluid at each target texture pixel position according to the velocity change of the target object, so that the fluid produces a velocity change according to the velocity change of the target object, wherein the velocity change of the fluid can include at least one of a change in velocity magnitude or a change in velocity direction.

[0056] In a possible implementation, the attribute information of the target object may further include initial position information of the target object and an effective radius of the target object. Determining a change in velocity parameter of the fluid at each target texture pixel position according to a velocity change of the target object includes:

[0057] For each target texture pixel, obtaining position information corresponding to the target texture pixel;

[0058] For each target texture pixel, the velocity of the fluid at the target texture pixel position at the next moment is determined based on the velocity change of the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the velocity of the fluid at the target texture pixel position at the current moment.

[0059] In practical applications, the attribute information of the target object also includes the initial position information of the target object and the effective radius of the target object. The initial position information of the target object is the position of the target object when it first appears in the user display interface, and can be the position of at least one grid corresponding to the target object when it first appears in the user display interface. The effective radius of the target object represents the effective range of the target object in the user display interface. The effective radius can be pre-configured according to specific needs. The larger the effective radius, the larger the effective range of the target object in the user display interface. The position of the target object in the user display interface corresponds to the position of each target texture pixel. The position of each corresponding target texture pixel can be determined based on the position of the target object. The speed of the fluid at the target texture pixel position at the next moment is determined based on the speed change of the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the speed of the fluid at the target texture pixel position at the current moment.

[0060] In one example, the velocity of the fluid at the target texture pixel position can be updated according to formula (1):

[0061]

[0062] in, represents the velocity of the fluid at the target texture pixel position x at time t+1, represents the velocity of the fluid at the target texture pixel position x at time t, x represents the grid position corresponding to the target texture pixel, p represents the initial position of the target object, r represents the effective radius of the target object, and Δv represents the change in velocity of the target object from time t to time t+1.

[0063] In one possible implementation, the fluid parameter includes a color parameter, and the attribute information of the target object includes a color change corresponding to the target object; determining, based on the attribute information of the target object, a change in the fluid parameter at each target texture pixel position related to the target object in a user display interface includes:

[0064] According to the color change amount of the target object, the change of the color parameter of the fluid at each target texture pixel position is determined.

[0065] In practical applications, the fluid parameters include color parameters, and the target object's attribute information includes the target object's corresponding color change. The target object's corresponding color change can be the difference between the target object's current color value and the color value of the target object's previous color value. The color value can be a color value in any color space, such as the values ​​of the R, G, and B channels in the RGB color space.

[0066] The color parameters of the fluid at each target texture pixel position may be adjusted according to the amount of color change corresponding to the target object, so that the color of the fluid changes according to the change in the color corresponding to the target object.

[0067] In a possible implementation, the attribute information of the target object further includes initial position information of the target object and an effective radius of the target object. The change in the color parameter of the fluid at each target texture pixel position is determined based on the color change amount corresponding to the target object, including:

[0068] For each target texture pixel, obtaining position information corresponding to the target texture pixel;

[0069] For each target texture pixel, the color of the fluid at the target texture pixel position at the next moment is determined based on the color change corresponding to the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the color of the fluid at the target texture pixel position at the current moment.

[0070] In practical applications, the attribute information of the target object also includes the initial position information of the target object and the effective radius of the target object. The initial position information of the target object is the position of the target object when it first appears in the user display interface, and can be the position of at least one grid corresponding to the target object when it first appears in the user display interface. The effective radius of the target object represents the effective range of the target object in the user display interface. The effective radius can be pre-configured according to specific needs. The larger the effective radius, the larger the effective range of the target object in the user display interface. The position of the target object in the user display interface corresponds to the position of each target texture pixel. The position of each target texture pixel can be determined based on the position of the target object. The color of the fluid at the target texture pixel position at the next moment is determined based on the color change corresponding to the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the color of the fluid at the target texture pixel position at the current moment.

[0071] In one example, the color of the fluid at the target texture pixel position is updated according to formula (2):

[0072]

[0073] in, Represents the color of the fluid at the target texture pixel position x at time t+1, represents the color of the fluid at the target texture pixel position x at time t, x represents the grid position corresponding to the target texture pixel, p represents the initial position of the target object, r represents the effective radius, and Δq represents the color change corresponding to the target object from time t to time t+1.

[0074] Optionally, when the target object performs a single continuous motion, the color change amount corresponding to the target object remains unchanged.

[0075] For example, when a finger slides on the screen of a terminal device, the color corresponding to the finger remains unchanged during the sliding process. For example, the finger corresponds to a preset color, and the color is added to the color of the fluid at the finger sliding position. The color of the fluid at the finger sliding position changes according to the amount of color change before and after adding the color.

[0076] In one possible implementation, when the target object is stationary, the attribute information includes a display position of the target object; the fluid parameter includes a color parameter; and determining, in a user display interface, based on the attribute information of the target object, a change in the fluid parameter at each target texture pixel position related to the target object, includes:

[0077] According to the display position, the position of each target texture pixel related to the target object is determined in the user display interface, and the color of the fluid at the position of each target texture pixel is adjusted to a preset color.

[0078] In actual applications, when the target object is stationary, the attribute information of the target object includes the display position of the target object. The display position of the target object can be the position of at least one grid corresponding to the target object in the user display interface, that is, the position of the grid corresponding to at least one target texture pixel. The terminal device adjusts the color of the fluid at each target texture pixel position to the preset color corresponding to the target object.

[0079] In one example, the terminal device detects that the target object in the video is a stationary "heart" gesture, and the preset color corresponding to the gesture is red. The terminal device then displays a red "heart" gesture at the fluid position corresponding to the target object in the user display interface. At this time, since the target object is stationary, it has no effect on the velocity parameters of the fluid. Therefore, the fluid is displayed in the user display interface according to the initial velocity parameters.

[0080] In one possible implementation, when there are at least two target objects, the attribute information of the target objects includes attribute information of each target object; and determining, in a user display interface, based on the attribute information of the target objects, a change in a parameter of a fluid at each target texture pixel position related to the target object includes:

[0081] According to the attribute information of each target object, the parameter changes of the fluid at each target texture pixel position related to each target object are determined in the user display interface, so as to display the dynamic fluid corresponding to each target object in the user display interface.

[0082] In practical applications, multiple target objects can interact in a user display interface, and each target object adjusts the change of the fluid parameters at the corresponding target texture pixel position according to its corresponding attribute information.

[0083] When determining the attribute information of each of the multiple target objects, if the target objects are target objects in a video, then for each target object, if the position of the target object in adjacent image frames in the video remains unchanged, or the position change of the target object in adjacent image frames is within a preset range, then the target objects are determined to be the same target object, thereby determining the attribution of the target object attribute information. If the target objects are touch-operated objects, then for each target object, whether the target objects are the same target object is determined based on the touch operation position of the target object, thereby determining the attribution of the target object attribute information.

[0084] In one example, a video includes three gestures: "making a fist," "making a heart," and "clicking the like." The speed changes corresponding to "making a fist," "making a heart," and "clicking the like" are Δv1, Δv2, and Δv3, respectively, and the color changes corresponding to "making a fist," "making a heart," and "clicking the like" are Δq1, Δq2, and Δq3, respectively. In the user display interface, the change in the speed parameter of the fluid at the target texture pixel position associated with "making a fist" is determined based on Δv1, and the change in the color parameter of the fluid at the target texture pixel position associated with "making a fist" is determined based on Δq1; the change in the speed parameter of the fluid at the target texture pixel position associated with "making a heart" is determined based on Δv2, and the change in the color parameter of the fluid at the target texture pixel position associated with "making a heart" is determined based on Δq2; the change in the speed parameter of the fluid at the target texture pixel position associated with "clicking the like" is determined based on Δv3, and the change in the color parameter of the fluid at the target texture pixel position associated with "clicking the like" is determined based on Δq3.

[0085] Step S104: displaying the dynamic fluid in the user display interface according to the changes in the parameters of the fluid.

[0086] Specifically, according to the speed change or color change of the fluid, the effect image after the fluid simulation is displayed in the user display interface. When showing the dynamic effect of the fluid, it can be displayed in the form of video or dynamic graphics.

[0087] In one example, the first gesture creates a rightward velocity on the left side of the fluid, while the second gesture creates a leftward velocity on the right side. The two fluids will then converge toward the center, creating a collision effect. If no gestures are detected in the current image, the fluid will continue to flow due to inertia.

[0088] Among them, after the collision, and under the action of inertia, the velocity of the fluid at each target texture pixel position is updated by formula (3):

[0089]

[0090] Where x is the position of the grid corresponding to the target texture pixel; represents the velocity parameter of the fluid at position x at time t+1; dt represents the time step; is the velocity parameter of the fluid at position x at time t.

[0091] After the collision, and under the action of inertia, the color of the fluid at each target texture pixel position is updated by formula (4):

[0092]

[0093] Where x is the position of the grid corresponding to the target texture pixel; represents the color of the fluid at position x at time t+1; dt represents the time step; is the velocity parameter of the fluid at position x at time t.

[0094] Based on the technical solution provided by the present disclosure above, the technical solution is explained below with a specific embodiment. The specific embodiment and its content are only for illustrating a possible implementation method of the solution of the present disclosure, and do not represent all implementation methods of the solution of the present disclosure.

[0095] like Figure 2 As shown, step S201 is executed. When the terminal device detects a camera startup instruction on the user display interface, the camera is turned on to collect video (such as the camera capture screen shown in the figure);

[0096] Executing step S202, performing gesture detection in the video image;

[0097] Execute step S203, when the finger movement is detected, obtain the speed change of the finger and the corresponding color change, and determine the speed change and color change of the fluid at the target texture pixel position corresponding to the finger according to the speed change and color change (such as Figure 2 Determine fluid parameter changes as shown in );

[0098] Executing step S204, when other gestures are detected in the video, obtaining the speed change and corresponding color change of the other gestures, and determining the speed change and color change of the fluid at the target texture pixel position corresponding to the finger based on the speed change and color change;

[0099] Execute step S205. When no gesture is detected in the video image, the terminal device can simulate the state where the fluid continues to move under the action of inertia (e.g., Figure 2 "The fluid continues to flow under the action of inertia" as shown in );

[0100] In the above steps, the movement of fingers, other gestures, fluid movement and color changes are all displayed in the user display interface. As shown in step S206, the terminal device outputs the image to the screen of the terminal device.

[0101] The dynamic fluid display method provided in the embodiments of the present disclosure detects a target object in a user display interface; obtains attribute information of the target object; determines, based on the attribute information of the target object, changes in fluid parameters at each target texture pixel position associated with the target object in the user display interface; and displays the dynamic fluid in the user display interface based on the changes in the fluid parameters. The technical solution disclosed herein controls the changes in fluid parameters in the user display interface based on the attribute information of the target object detected in the user display interface, thereby displaying the dynamic fluid, providing a novel and engaging interactive experience.

[0102] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present disclosure further provides a dynamic fluid display device 30, such as Figure 3 As shown, the dynamic fluid display device 30 may include:

[0103] Detection module 31, used to detect the target object in the user display interface;

[0104] An acquisition module 32 is used to acquire attribute information of a target object;

[0105] a determination module 33 for determining, in a user display interface, changes in parameters of a fluid at each target texture pixel position related to the target object based on the attribute information of the target object;

[0106] The display module 34 is used to display the dynamic fluid in the user display interface according to the changes in the parameters of the fluid.

[0107] In a possible implementation, the fluid parameter includes a velocity parameter, and the attribute information of the target object includes a velocity change of the target object; the determination module 33 is configured to:

[0108] According to the velocity change of the target object, the change of the velocity parameter of the fluid at each target texture pixel position is determined.

[0109] In a possible implementation, the attribute information of the target object further includes initial position information of the target object and an effective radius of the target object. When determining the change in velocity parameter of the fluid at each target texture pixel position based on the velocity change of the target object, the determination module 33 is configured to:

[0110] For each target texture pixel, obtaining position information corresponding to the target texture pixel;

[0111] For each target texture pixel, the velocity of the fluid at the target texture pixel position at the next moment is determined based on the velocity change of the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the velocity of the fluid at the target texture pixel position at the current moment.

[0112] In a possible implementation, the fluid parameter includes a color parameter, and the attribute information of the target object includes a color change corresponding to the target object; the determination module 33 is configured to:

[0113] According to the color change amount corresponding to the target object, the change of the color parameter of the fluid at each target texture pixel position is determined.

[0114] In one possible implementation, the attribute information of the target object further includes initial position information of the target object and an effective radius of the target object. When determining the change in the color parameter of the fluid at each target texture pixel position based on the color change corresponding to the target object, the determination module 33 is configured to:

[0115] For each target texture pixel, obtaining position information corresponding to the target texture pixel;

[0116] For each target texture pixel, the color of the fluid at the target texture pixel position at the next moment is determined based on the color change corresponding to the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the color of the fluid at the target texture pixel position at the current moment.

[0117] In a possible implementation, when the target object is stationary, the attribute information includes the display position of the target object; the fluid parameters include color parameters; the determination module 33 is configured to:

[0118] According to the display position, the position of each target texture pixel related to the target object is determined in the user display interface, and the color of the fluid at the position of each target texture pixel is adjusted to a preset color.

[0119] In a possible implementation, when there are at least two target objects, the attribute information includes attribute information of each target object; and the determination module 33 is configured to:

[0120] According to the attribute information of each target object, the parameter changes of the fluid at each target texture pixel position related to each target object are determined in the user display interface, so as to display the dynamic fluid corresponding to each target object in the user display interface.

[0121] In a possible implementation, the target object includes a target object in a video or a touch operation object.

[0122] The dynamic fluid display device of the embodiment of the present disclosure can execute the dynamic fluid display method provided by the embodiment of the present disclosure, and its implementation principle is similar. The actions performed by each module in the dynamic fluid display device in each embodiment of the present disclosure correspond to the steps in the dynamic fluid display method in each embodiment of the present disclosure. For the detailed functional description of each module of the dynamic fluid display device, please refer to the description of the corresponding dynamic fluid display method shown in the previous text, and will not be repeated here.

[0123] The dynamic fluid display device provided by the disclosed embodiment detects a target object in a user display interface; obtains attribute information of the target object; determines, based on the attribute information of the target object, changes in fluid parameters at each target texture pixel position associated with the target object in the user display interface; and displays the dynamic fluid in the user display interface based on the changes in the fluid parameters. The disclosed technical solution controls the changes in fluid parameters in the user display interface based on the attribute information of the detected target object in the user display interface, thereby displaying the dynamic fluid, providing a novel and engaging interactive method.

[0124] Reference below Figure 4 , which shows a schematic structural diagram of an electronic device 400 suitable for implementing the embodiments of the present disclosure. The execution subject of the technical solution of the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable electronic devices, etc., as well as fixed terminals such as digital TVs, desktop computers, smart home devices, etc. Figure 4 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0125] The electronic device includes: a memory and a processor, wherein the processor here may be referred to as the processing device 401 described below, and the memory may include at least one of the read-only memory (ROM) 402, the random access memory (RAM) 403, and the storage device 408 described below, as shown below:

[0126] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can execute the program code of the method shown in the flowchart according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage device 408 into the random access memory (RAM) 403 to implement the above-mentioned functions defined in the method of the embodiment of the present disclosure. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0127] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0128] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0129] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0130] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0131] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0132] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device implements the above-mentioned functions defined in the method of the embodiment of the present disclosure. For example, when the above-mentioned one or more programs are executed by the electronic device, the electronic device: detects the target object in the user display interface; obtains the attribute information of the target object; determines the change of the parameters of the fluid at each target texture pixel position related to the target object in the user display interface according to the attribute information of the target object; and displays the dynamic fluid in the user display interface according to the change of the parameters of the fluid.

[0133] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0134] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0135] The modules or units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a module or unit does not, in some cases, limit the unit itself.

[0136] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0137] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0138] According to one or more embodiments of the present disclosure, the present disclosure provides a dynamic fluid display method, the method comprising:

[0139] Detecting a target object in a user display interface;

[0140] Obtaining attribute information of the target object;

[0141] determining, in the user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object according to the attribute information of the target object;

[0142] According to the change of the parameters of the fluid, the dynamic fluid is displayed in the user display interface.

[0143] In a possible implementation, the fluid parameter includes a velocity parameter, and the attribute information of the target object includes a velocity change of the target object; and determining, in the user display interface, a change in the fluid parameter at each target texture pixel position related to the target object based on the attribute information of the target object, includes:

[0144] According to the velocity change of the target object, the change of the velocity parameter of the fluid at each target texture pixel position is determined.

[0145] In a possible implementation, the attribute information of the target object further includes initial position information of the target object and an effective radius of the target object, and determining the change in the velocity parameter of the fluid at each target texture pixel position according to the velocity change of the target object includes:

[0146] For each target texture pixel, obtaining position information corresponding to the target texture pixel;

[0147] For each target texture pixel, the velocity of the fluid at the target texture pixel position at the next moment is determined based on the velocity change of the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the velocity of the fluid at the target texture pixel position at the current moment.

[0148] In one possible implementation, the fluid parameter includes a color parameter, and the target object attribute information includes a color change corresponding to the target object; and determining, in the user display interface, based on the target object attribute information, a change in the fluid parameter at each target texture pixel position related to the target object, includes:

[0149] The change of the color parameter of the fluid at each target texture pixel position is determined according to the color change amount corresponding to the target object.

[0150] In a possible implementation, the attribute information of the target object further includes initial position information of the target object and an effective radius of the target object, and determining the change in the color parameter of the fluid at each target texture pixel position according to the color change amount corresponding to the target object includes:

[0151] For each target texture pixel, obtaining position information corresponding to the target texture pixel;

[0152] For each target texture pixel, the color of the fluid at the target texture pixel position at the next moment is determined based on the color change corresponding to the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the color of the fluid at the target texture pixel position at the current moment.

[0153] In a possible implementation, when the target object is stationary, the attribute information includes a display position of the target object; the parameters of the fluid include color parameters;

[0154] The determining, in the user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object according to the attribute information of the target object comprises:

[0155] According to the display position, the position of each target texture pixel related to the target object is determined in the user display interface, and the color of the fluid at the position of each target texture pixel is adjusted to a preset color.

[0156] In a possible implementation, when there are at least two target objects, the attribute information includes attribute information of each target object; and determining, in the user display interface, based on the attribute information of the target objects, a change in a parameter of a fluid at each target texture pixel position related to the target object includes:

[0157] According to the respective attribute information of the target objects, the changes in the parameters of the fluid at the target texture pixel positions related to the target objects are determined in the user display interface, so as to display the dynamic fluid corresponding to the target objects in the user display interface.

[0158] In a possible implementation, the target object includes a target object in a video or a touch operation object.

[0159] According to one or more embodiments of the present disclosure, the present disclosure provides a dynamic fluid display device, the device comprising:

[0160] A detection module, used to detect target objects in the user display interface;

[0161] An acquisition module, configured to acquire attribute information of the target object;

[0162] a determination module, configured to determine, in the user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object based on the attribute information of the target object;

[0163] The display module is configured to display the dynamic fluid in the user display interface according to changes in parameters of the fluid.

[0164] In a possible implementation, the fluid parameter includes a velocity parameter, and the attribute information of the target object includes a velocity change of the target object; and the determining module is configured to:

[0165] According to the velocity change of the target object, the change of the velocity parameter of the fluid at each target texture pixel position is determined.

[0166] In a possible implementation, the attribute information of the target object further includes initial position information of the target object and an effective radius of the target object, and determining the change in the velocity parameter of the fluid at each target texture pixel position according to the velocity change of the target object includes:

[0167] For each target texture pixel, obtaining position information corresponding to the target texture pixel;

[0168] For each target texture pixel, the velocity of the fluid at the target texture pixel position at the next moment is determined based on the velocity change of the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the velocity of the fluid at the target texture pixel position at the current moment.

[0169] In a possible implementation, the fluid parameter includes a color parameter, and the attribute information of the target object includes a color change corresponding to the target object; and the determining module is configured to:

[0170] The change of the color parameter of the fluid at each target texture pixel position is determined according to the color change amount corresponding to the target object.

[0171] In a possible implementation, the attribute information of the target object further includes initial position information of the target object and an effective radius of the target object. When determining the change in the color parameter of the fluid at each target texture pixel position based on the color change corresponding to the target object, the determination module is configured to:

[0172] For each target texture pixel, obtaining position information corresponding to the target texture pixel;

[0173] For each target texture pixel, the color of the fluid at the target texture pixel position at the next moment is determined based on the color change corresponding to the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the color of the fluid at the target texture pixel position at the current moment.

[0174] In a possible implementation, when the target object is stationary, the attribute information includes a display position of the target object; the parameters of the fluid include color parameters;

[0175] The determining module is configured to:

[0176] According to the display position, the position of each target texture pixel related to the target object is determined in the user display interface, and the color of the fluid at the position of each target texture pixel is adjusted to a preset color.

[0177] In a possible implementation, when the number of the target objects is at least two, the attribute information includes attribute information of each target object; and the determining module is configured to:

[0178] According to the respective attribute information of the target objects, the changes in the parameters of the fluid at the target texture pixel positions related to the target objects are determined in the user display interface, so as to display the dynamic fluid corresponding to the target objects in the user display interface.

[0179] In a possible implementation, the target object includes a target object in a video or a touch operation object.

[0180] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:

[0181] one or more processors;

[0182] A memory stores one or more applications, wherein when the one or more applications are executed by the one or more processors, the electronic device executes the dynamic fluid display method.

[0183] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable medium for storing computer instructions. When the computer instructions are executed by a computer, the computer is caused to perform the above-mentioned dynamic fluid display method.

[0184] According to one or more embodiments of the present disclosure, the present disclosure provides a computer program product, including computer instructions, which implement the above-mentioned dynamic fluid display method when executed by a computer.

[0185] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0186] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0187] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A dynamic fluid display method, characterized in that: The method comprises: Detecting a target object in a user display interface; Obtaining attribute information of the target object; determining, in the user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object according to the attribute information of the target object; displaying the dynamic fluid in the user display interface according to changes in the parameters of the fluid; The fluid parameter includes a velocity parameter, and the target object attribute information includes a velocity change of the target object; and determining, in the user display interface, a change in the fluid parameter at each target texture pixel position related to the target object based on the target object attribute information, comprises: According to the velocity change of the target object, the change of the velocity parameter of the fluid at each target texture pixel position is determined.

2. The dynamic fluid display method according to claim 1, characterized in that: The attribute information of the target object further includes initial position information of the target object and an effective radius of the target object. Determining a change in the velocity parameter of the fluid at each target texture pixel position according to a velocity change of the target object includes: For each target texture pixel, obtaining position information corresponding to the target texture pixel; For each target texture pixel, the velocity of the fluid at the target texture pixel position at the next moment is determined based on the velocity change of the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the velocity of the fluid at the target texture pixel position at the current moment.

3. The dynamic fluid display method according to claim 1, characterized in that: The parameters of the fluid include color parameters, and the attribute information of the target object includes a color change corresponding to the target object; and determining, in the user display interface, based on the attribute information of the target object, a change in the parameters of the fluid at each target texture pixel position related to the target object, comprises: The change of the color parameter of the fluid at each target texture pixel position is determined according to the color change amount corresponding to the target object.

4. The dynamic fluid display method according to claim 3, characterized in that: The attribute information of the target object further includes initial position information of the target object and an effective radius of the target object. Determining the change in the color parameter of the fluid at each target texture pixel position according to the color change amount corresponding to the target object includes: For each target texture pixel, obtaining position information corresponding to the target texture pixel; For each target texture pixel, the color of the fluid at the target texture pixel position at the next moment is determined based on the color change corresponding to the target object, the initial position information of the target object, the effective radius of the target object, the position information corresponding to the target texture pixel, and the color of the fluid at the target texture pixel position at the current moment.

5. The dynamic fluid display method according to claim 1, characterized in that: When the target object is stationary, the attribute information includes a display position of the target object; the parameters of the fluid include color parameters; The determining, in the user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object according to the attribute information of the target object comprises: According to the display position, the position of each target texture pixel related to the target object is determined in the user display interface, and the color of the fluid at the position of each target texture pixel is adjusted to a preset color.

6. The dynamic fluid display method according to claim 1, characterized in that: When there are at least two target objects, the attribute information includes attribute information of each target object; and determining, in the user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object based on the attribute information of the target object, includes: According to the respective attribute information of the target objects, the changes in the parameters of the fluid at the target texture pixel positions related to the target objects are determined in the user display interface, so as to display the dynamic fluid corresponding to the target objects in the user display interface.

7. The dynamic fluid display method according to claim 1, characterized in that: The target object includes a target object in a video or a touch operation object.

8. A dynamic fluid display device, characterized in that: The device comprises: A detection module, used to detect target objects in the user display interface; An acquisition module, configured to acquire attribute information of the target object; a determination module, configured to determine, in the user display interface, a change in a parameter of a fluid at each target texture pixel position related to the target object based on the attribute information of the target object; a display module, configured to display the dynamic fluid in the user display interface according to changes in parameters of the fluid; The fluid parameter includes a velocity parameter, and the target object attribute information includes a velocity change of the target object; and determining, in the user display interface, a change in the fluid parameter at each target texture pixel position related to the target object based on the target object attribute information, comprises: According to the velocity change of the target object, the change of the velocity parameter of the fluid at each target texture pixel position is determined.

9. An electronic device, characterized in that: include: one or more processors; A memory storing one or more applications, wherein when the one or more applications are executed by the one or more processors, the electronic device executes the dynamic fluid display method according to any one of claims 1-7.

10. A computer-readable medium, characterized in that The computer-readable medium is used to store computer instructions. When the computer instructions are executed by a computer, the computer is enabled to execute the dynamic fluid display method according to any one of claims 1 to 7.

11. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a computer, the dynamic fluid display method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method for producing three-dimensional water-and-ink animation

    CN102496177A

  • Animation realization method and device

    CN110930487A