IP Library Granted Patent US 12694597
Granted Patent B2
US 12694597 · App. 18/269,143 · Granted Jul 28, 2026

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

Inventors: Qi Li (Beijing, CN); Xiaoqi Li (Beijing, CN)
Assignee: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
G06T13/60G06T11/10G06T2210/24
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12694597
App. No.
18/269,143
Granted
Jul 28, 2026
Kind
B2
Abstract

Provided are a dynamic fluid display method and apparatus, an electronic device, and a readable medium. The method includes: displaying a fluid on a user display interface; obtaining a color corresponding to each texture pixel that corresponds to the fluid; in response to a processing instruction for the fluid, determining each target texture pixel corresponding to the processing instruction; and adjusting a color of the fluid at each target texture pixel based on the processing instruction.

Claims (63)

1 . A dynamic fluid display method, comprising:

displaying a fluid on a user display interface;

obtaining a color corresponding to each texture pixel that corresponds to the fluid;

determining, in response to a processing instruction for the fluid, each target texture pixel corresponding to the processing instruction; and

adjusting a color of the fluid at each target texture pixel based on the processing instruction,

wherein said adjusting the color of the fluid at each target texture pixel based on the processing instruction comprises:

determining a speed of the fluid at each target texture pixel based on the processing instruction; and

adjusting, based on the speed of the fluid at each target texture pixel, the color of the fluid at the target texture pixel,

wherein the method further comprises:

obtaining a time stepsize for updating the speed;

determining a first texture pixel position at a current time point based on the time stepsize, a speed corresponding to the fluid at the target texture pixel at the current time point, and a position of the target texture pixel at the current time point; and

determining a color at the first texture pixel position at the current time point as a color of the fluid at the target texture pixel at a next time point.

2 . The dynamic fluid display method according to claim 1 , further comprising:

determining the speed of the fluid at each target texture pixel in conjunction with an effect of gravity and based on the processing instruction.

3 . The dynamic fluid display method according to claim 2 , further comprising:

determining, based on the speed of the fluid at each target texture pixel, a curl of the speed of the fluid at the target texture pixel; and

updating, based on the curl of the speed of the fluid at each target texture pixel, the speed of the fluid at the target texture pixel to a first speed.

4 . The dynamic fluid display method according to claim 3 , further comprising:

determining, based on the speed of the fluid at each target texture pixel, a divergence of the speed of the fluid at the target texture pixel;

determining a pressure of the fluid at the target texture pixel based on the divergence of the speed of the fluid at the target texture pixel and a pressure of the fluid at each adjacent target texture pixel of the target texture pixel; and

updating the speed of the fluid at the target texture pixel based on the pressure of the fluid at the target texture pixel and the first speed.

5 . The dynamic fluid display method according to claim 4 , wherein said updating the speed of the fluid at the target texture pixel based on the pressure of the fluid at the target texture pixel and the first speed comprises:

obtaining a gradient of the pressure of the fluid at the target texture pixel;

obtaining a difference between the first speed and the gradient of the pressure, and determining the difference as a second speed of the fluid at the target texture pixel.

6 . The dynamic fluid display method according to claim 5 , wherein said determining the color at the first texture pixel position at the current time point as the color of the fluid at the target texture pixel at the next time point comprises:

determining the second speed at the first texture pixel position at the current time point as a speed of the fluid at the target texture pixel at the next time point; and

determining the color of the fluid at the target texture pixel at the next time point based on the speed of the fluid at the target texture pixel at the next time point.

7 . The dynamic fluid display method according to claim 3 , further comprising:

storing, via a Graphics Processing Unit (GPU), a speed and a pressure of the fluid at each texture pixel.

8 . The dynamic fluid display method according to claim 1 , wherein said determining each target texture pixel corresponding to the processing instruction comprises:

determining each target texture pixel corresponding to the processing instruction based on a position or a movement trajectory of a target object.

9 . The dynamic fluid display method according to claim 8 , wherein the target object comprises a touch operation object or a target object displayed in a video.

10 . An electronic device, comprising:

one or more processors; and

a memory having one or more applications stored thereon,

wherein the one or more applications, when executed by the one or more processors, cause the electronic device to perform a dynamic fluid display method comprising:

displaying a fluid on a user display interface;

obtaining a color corresponding to each texture pixel that corresponds to the fluid;

determining, in response to a processing instruction for the fluid, each target texture pixel corresponding to the processing instruction; and

adjusting a color of the fluid at each target texture pixel based on the processing instruction,

wherein said adjusting the color of the fluid at each target texture pixel based on the processing instruction comprises:

determining a speed of the fluid at each target texture pixel based on the processing instruction; and

adjusting, based on the speed of the fluid at each target texture pixel, the color of the fluid at the target texture pixel,

wherein the method further comprises:

obtaining a time stepsize for updating the speed;

determining a first texture pixel position at a current time point based on the time stepsize, a speed corresponding to the fluid at the target texture pixel at the current time point, and a position of the target texture pixel at the current time point; and

determining a color at the first texture pixel position at the current time point as a color of the fluid at the target texture pixel at a next time point.

11 . The electronic device according to claim 10 , where the method further comprises:

determining the speed of the fluid at each target texture pixel in conjunction with an effect of gravity and based on the processing instruction.

12 . The electronic device according to claim 11 , wherein the method further comprises:

determining, based on the speed of the fluid at each target texture pixel, a curl of the speed of the fluid at the target texture pixel; and

updating, based on the curl of the speed of the fluid at each target texture pixel, the speed of the fluid at the target texture pixel to a first speed.

13 . The electronic device according to claim 12 , wherein the method further comprises:

determining, based on the speed of the fluid at each target texture pixel, a divergence of the speed of the fluid at the target texture pixel;

determining a pressure of the fluid at the target texture pixel based on the divergence of the speed of the fluid at the target texture pixel and a pressure of the fluid at each adjacent target texture pixel of the target texture pixel; and

updating the speed of the fluid at the target texture pixel based on the pressure of the fluid at the target texture pixel and the first speed.

14 . The electronic device according to claim 13 , wherein said updating the speed of the fluid at the target texture pixel based on the pressure of the fluid at the target texture pixel and the first speed comprises:

obtaining a gradient of the pressure of the fluid at the target texture pixel;

obtaining a difference between the first speed and the gradient of the pressure, and determining the difference as a second speed of the fluid at the target texture pixel.

15 . The electronic device according to claim 14 , wherein said determining the color at the first texture pixel position at the current time point as the color of the fluid at the target texture pixel at the next time point comprises:

determining the second speed at the first texture pixel position at the current time point as a speed of the fluid at the target texture pixel at the next time point; and

determining the color of the fluid at the target texture pixel at the next time point based on the speed of the fluid at the target texture pixel at the next time point.

16 . A non-transitory computer-readable medium, having computer instructions stored thereon, wherein the computer instructions, when executed by a computer, cause the computer to perform the dynamic fluid display method according to claim 1 .