2D water simulation method

The present invention relates to the field of computer virtual realization technologies, and provides a 2D water simulation method. The method comprises: creating a 2D particle, and granting an attribute value to the 2D particle, wherein the attribute value comprises shape, size, density and a frict...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: CAI ZEYONG, FANG CHENCHEN
Format: Patent
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The present invention relates to the field of computer virtual realization technologies, and provides a 2D water simulation method. The method comprises: creating a 2D particle, and granting an attribute value to the 2D particle, wherein the attribute value comprises shape, size, density and a friction factor, and the 2D particle is a constituent element of water; duplicating the 2D particle, and filling a target container in a virtual environment with duplicated 2D particles; acquiring an input of a user, and transforming the input of the user into a biasing direction of the virtual environment in which the 2D particle is located; calculating, by the processor, a position of the 2D particle in every frame picture according to the biasing direction, the target container, and an attribute of the 2D particle; and performing gaussian blur processing on the 2D particle in every frame, so that each particle can generate the effect of blending with each other. According to the embodiment of the present invention, by combining force input by the user and based on an interaction form, a movement process of water fluid can be simulated more vividly.