CN116824009A - Animation rendering method, system, equipment and storage medium - Google Patents

Animation rendering method, system, equipment and storage medium Download PDF

Info

Publication number
CN116824009A
CN116824009A CN202310780725.6A CN202310780725A CN116824009A CN 116824009 A CN116824009 A CN 116824009A CN 202310780725 A CN202310780725 A CN 202310780725A CN 116824009 A CN116824009 A CN 116824009A
Authority
CN
China
Prior art keywords
finite element
moving object
animation
rendering
particle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310780725.6A
Other languages
Chinese (zh)
Other versions
CN116824009B (en
Inventor
刘伟源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Dashen Culture Communication Co ltd
Original Assignee
Guangzhou Dashen Culture Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dashen Culture Communication Co ltd filed Critical Guangzhou Dashen Culture Communication Co ltd
Priority to CN202310780725.6A priority Critical patent/CN116824009B/en
Publication of CN116824009A publication Critical patent/CN116824009A/en
Application granted granted Critical
Publication of CN116824009B publication Critical patent/CN116824009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides an animation rendering method, a system, equipment and a storage medium, wherein a finite element set of a moving object is obtained by discretizing the moving object in an original animation image, then the free motion boundary condition of the moving object is determined, further the Stokes equation of each finite element particle in the finite element set is constructed, the moving object is subjected to finite element analysis according to the free motion boundary condition and the Stokes equation of the finite element particle, the field intensity vector of the moving object is determined, then a rendering animation image sequence is generated according to the inter-frame sampling interval and the preset animation duration, finally a transition special effect is added to the rendering animation image sequence to obtain a rendering animation, the moving object in the original animation image is discretized into the finite element particle, and the field intensity vector of the moving object is obtained, so that the animation rendering method of the image sequence of the rendering video is not required to be drawn independently is realized, and the authenticity of the generated rendering animation is increased.

Description

Animation rendering method, system, equipment and storage medium
Technical Field
The present application relates to the field of animation rendering technologies, and in particular, to an animation rendering method, system, device, and storage medium.
Background
Animation rendering technology refers to technology used for creating and presenting animation in computer graphics, and creates a color-rich animation work by combining a static image sequence into a continuous motion process of images; in modern animation techniques, animation rendering plays a vital role, which not only determines the visual effect of the animation, but also directly affects the rendering speed and rendering quality.
In the existing animation rendering technology, a plurality of frames of moving objects and background images are mainly created through digital drawing software such as AdobeP (advanced graphics processing) and the like, and then transition special effects are added to the plurality of frames of images to form a rendering animation.
Disclosure of Invention
The application provides an animation rendering method, an animation rendering system, animation rendering equipment and a storage medium, which are used for solving the technical problems that in the existing animation rendering technology, an image sequence forming a rendering animation needs to be drawn independently, the reality of a moving object in a moving process is difficult to accurately simulate, the reality of the finally obtained rendering animation is low, and the watching experience of animation audiences is influenced.
In order to solve the technical problems, the application adopts the following technical scheme:
in a first aspect, the present application provides an animation rendering method, including:
discretizing a moving object in an original animation image to obtain a finite element set of the moving object, wherein the finite element set contains finite element particles of the moving object;
acquiring the mass density of the moving object, and determining the free movement boundary condition of the moving object according to the mass density;
constructing a Stokes equation of each finite element particle in the finite element set, carrying out finite element analysis on the moving object according to the free motion boundary condition and the Stokes equation of the finite element particle, and determining a force field intensity vector of the moving object;
generating a key frame in the rendering animation, adjusting an inter-frame sampling interval in the rendering animation according to the force field intensity vector, generating an image sequence of a moving object according to the inter-frame sampling interval and a preset animation duration, merging the key frame of the rendering animation and the image sequence of the moving object according to a time sequence to obtain a rendering animation image sequence, and adding a transition special effect to the rendering animation image sequence to obtain the rendering animation.
In some embodiments, determining the free motion boundary condition of the moving object based on the mass density specifically comprises the steps of:
and determining the particle quality of single finite element particles in the finite element set according to the mass density of the moving object.
A free motion boundary condition of the moving object is determined based on the particle mass of the single finite element particle.
In some embodiments, the particle mass of the individual finite element particles is determined according to the following formula, namely:
m=(ρ·S)/k
wherein m is the particle mass of single finite element particles, ρ is the mass density of the moving object, s is the occupied area of the moving object in the original animation image, and k is the number of the finite element particles in the finite element set.
In some embodiments, determining the force field strength vector of the moving object specifically comprises:
determining acceleration vectors of each finite element particle in the finite element set according to the free motion boundary condition and a Stokes equation of the finite element particle;
determining a force field intensity vector of the moving object according to the acceleration vector of each finite element particle in the finite element set and a preset moving object coordinate function;
in some embodiments, determining the field strength vector of the force field of the moving object further comprises: and creating a force field layer for a moving object in the original animation image, wherein the field intensity and the direction of the force field layer are equal to the field intensity vector, and the force field layer controls the movement of finite element particles in the finite element set.
In some embodiments, the key frames in the rendering animation include a start frame and an end frame of the rendering animation.
In some embodiments, before discretizing the moving object in the original animated image, the method further comprises: creating a frame of original animation image containing moving objects, and taking the original animation image as a starting frame for rendering the animation.
In a second aspect, the present application provides an animation rendering system, comprising:
the motion object discretization module is used for discretizing a motion object in an original animation image to obtain a finite element set of the motion object, wherein the finite element set contains finite element particles of the motion object;
the free motion boundary condition determining module is used for obtaining the mass density of the moving object and determining the free motion boundary condition of the moving object according to the mass density;
the force field intensity vector determining module is used for constructing a Stokes equation of each finite element particle in the finite element set, carrying out finite element analysis on the moving object according to the free motion boundary condition and the Stokes equation of the finite element particle, and determining the force field intensity vector of the moving object;
the rendering animation generation module is used for generating key frames in rendering animation, adjusting an inter-frame sampling interval in the rendering animation according to the force field intensity vector, generating an image sequence of a moving object according to the inter-frame sampling interval and a preset animation duration, merging the key frames of the rendering animation and the image sequence of the moving object according to a time sequence to obtain a rendering animation image sequence, and further adding a transition special effect to the rendering animation image sequence to obtain the rendering animation.
In a third aspect, the present application provides a computer device comprising a memory storing code and a processor configured to obtain the code and to perform the above-described animation rendering method.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described animation rendering method.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
in the animation rendering method, the system, the equipment and the storage medium, the moving object in the original animation image is subjected to discretization to obtain a finite element set of the moving object, then the mass density of the moving object is obtained, the free motion boundary condition of the moving object is determined according to the mass density, further the Stokes equation of each finite element particle in the finite element set is constructed, the moving object is subjected to finite element analysis according to the free motion boundary condition and the Stokes equation of the finite element particles, the field intensity vector of the moving object is determined, the key frame in the rendering animation is regenerated, the inter-frame sampling interval in the rendering animation is regulated according to the field intensity vector, the image sequence of the moving object is generated according to the inter-frame sampling interval and the preset animation duration, the key frame of the rendering animation and the image sequence of the moving object are combined according to the time sequence to obtain the rendering animation image sequence, finally the rendering animation is obtained after the transition special effect is added to the rendering animation image sequence, the moving object in the original animation image is required to be the finite element particle, the field vector of the moving object is obtained, the field vector of the moving object is discrete, the single rendering animation is realized, the reality of the rendering animation is enhanced, and the rendering animation rendering reality is realized.
Drawings
FIG. 1 is an exemplary flow chart of an animation rendering method, according to some embodiments of the application;
FIG. 2 is a schematic diagram of exemplary hardware and/or software of an animation rendering system, shown according to some embodiments of the application;
fig. 3 is a schematic structural diagram of a computer device implementing an animation rendering method according to some embodiments of the present application.
Detailed Description
The method comprises the steps of performing discretization processing on a moving object in an original animation image to obtain a finite element set of the moving object, obtaining the mass density of the moving object, determining the free motion boundary condition of the moving object according to the mass density, further constructing a Stokes equation of each finite element particle in the finite element set, performing finite element analysis on the moving object according to the free motion boundary condition and the Stokes equation of the finite element particle, determining the field intensity vector of the moving object, regenerating a key frame in the rendering animation, adjusting the inter-frame sampling interval in the rendering animation according to the field intensity vector, generating an image sequence of the moving object according to the inter-frame sampling interval and the preset animation duration, merging the key frame of the rendering animation with the image sequence of the moving object according to time sequence to obtain a rendering animation image sequence, finally adding transitional special effects to the rendering animation image sequence, and obtaining the rendering animation by discretizing the moving object in the original animation image into the finite element particles and solving the field intensity vector of the moving object.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments. Referring to fig. 1, which is an exemplary flowchart of an animation rendering method according to some embodiments of the present application, the animation rendering method 100 mainly includes the steps of:
in step S101, discretizing a moving object in an original animated image to obtain a finite element set of the moving object, where the finite element set includes finite element particles of the moving object.
In some embodiments, before the discretizing the moving object in the original animated image, the method may further include: an original animation image containing a moving object is created, and it is required to be described that the original animation image is a single frame still image before the moving object starts to move and forms a rendering animation, and in specific implementation, professional image editing software such as adobe animation can be adopted to draw and generate the original animation image and the moving object.
When the moving object is an actual object such as an automobile, the moving object needs to be moved to form an animation during animation rendering, in some embodiments, the moving object in the original animation image can be more than one, in the application, a mode of discretizing the moving object is adopted, a larger moving object is discretized into a smaller finite element particle form, the optimal force field size (force field intensity vector) for controlling the movement of a plurality of finite element particles in the finite element set is found through finite element analysis, a force field layer is further arranged according to the force field size, and the movement of the finite element particles can be regulated through the force field layer, so that the movement of the moving object is macroscopically regulated, and the purpose of realizing a more real movement animation effect is realized.
In addition, since the pixel point is the smallest indivisible unit in the animation image rendering process, in some embodiments, the size of the pixel point in the original animation image may be used as the smallest finite element particle size, so that the motion of the larger moving object may be discretized into the motion of a plurality of finite element particles, and the motion condition of the moving object in the original animation image may be known after the motion of the finite element particles is analyzed.
In step S102, a mass density of the moving object is obtained, and a free motion boundary condition of the moving object is determined according to the mass density.
Reasonably, in some embodiments, the mass density of the moving object is preset to be a constant, and it should be noted that, because the finite element particle is the minimum differential unit of the moving object, and the size of the single finite element particle is often equal to the size of the pixel point in the original animation image, before the finite element analysis is performed on the moving object, the mass density of the moving object can be directly changed into the dimension and then used as the particle mass of the finite element particle in the moving object, and then the free motion boundary condition of the moving object is determined according to the particle mass.
Preferably, in some embodiments, determining the free motion boundary condition of the moving object according to the mass density may specifically further comprise the steps of:
determining the particle quality of single finite element particles in the finite element set according to the mass density of the moving object;
a free motion boundary condition of the moving object is determined based on the particle mass of the single finite element particle.
It should be noted that, the particle mass of the single finite element particle may be determined according to the product of the area occupied by the single pixel point in the moving object and the mass density of the moving object, for example, in a specific implementation, the particle mass of the finite element particle may be determined by the following formula:
m=(ρ·S)/k
wherein m is the particle mass of single finite element particles, ρ is the mass density of the moving object, S is the area occupied by the moving object in the original animation image, and k is the number of finite element particles in the finite element set.
It should be noted that, in order to avoid that the finite element particles in the finite element set are clustered during the motion process to cause the particles to overlap and affect the image quality of the final rendered animation, a free motion boundary condition needs to be added to the moving object, where the free motion boundary condition of the moving object is essentially that each finite element particle after discretizing the moving object is added with a traction force from surrounding finite element particles, so as to ensure that the moving object does not deform or collapse during the motion process, that is, the free motion boundary condition of the moving object is specifically expressed as: after the moving object is discretized into a finite element set for motion analysis, the finite element particles in the finite element set do not cluster in the motion process to cause the boundary condition of collapse of the moving object, and when the method is concretely implemented, the boundary condition of free motion of the moving object can be as follows:
wherein, the liquid crystal display device comprises a liquid crystal display device,a traction vector, m, applied to the c-th finite element particle in the finite element set of the moving object c For the particle mass, m, of the c-th finite element particle in the finite element set of the moving object k For the particle mass, r, of the kth finite element particle in the n closest to the Euclidean distance of the c-th finite element particle in the finite element set k The nearest Euclidean distance between the kth finite element particle and the c-th finite element particle in the finite element set is>The direction vector is a unit vector of the kth finite element particle closest to the Euclidean distance of the c finite element particle pointing to the c finite element particle in the finite element set, n is an influence particle number of each finite element particle in a free motion boundary condition, the influence particle number can be adjusted to be an integer of 1 to 100 according to the rigidity of a moving object in specific implementation, r is a preset Euclidean distance value, sgn is a sign function, and is used for returning the sign of an independent variable of the sign function.
In addition, the addition of the free movement boundary condition to the moving object is equivalent to the change of direction, and the surface tension is increased on the surface of the moving object, so that the shape can be maintained without larger deformation in the movement process of the moving object, namely the rigidity of the moving object is increased.
In step S103, a stokes equation of each finite element particle in the finite element set is constructed, and finite element analysis is performed on the moving object according to the free motion boundary condition and the stokes equation of the finite element particle, so as to determine the force field intensity vector of the moving object.
It should be noted that, the stokes equation is also called a nano-stokes equation, and is commonly used for describing the motion situation of a viscous incompressible fluid, although the moving object may be a rigid body or a fluid, in the present application, since after the moving object is discretized into finite element particles, the moving object follows the boundary condition of free motion of the moving object, and each finite element particle is likewise stressed by multiple aspects of a particle stream composed of the remaining finite element particles, so the stokes equation may also be used for reflecting the microscopic motion situation of each particle in the moving object, and the stokes equation of the finite element particles is constructed, so that the motion physical model of the finite element particles is substantially determined, and then a suitable force field layer may be added in an original animation image according to the stokes equation of each finite element particle, so that the motion situation of the moving object is controlled, and in some embodiments, the stokes equation of the finite element particle may be determined by the following formula:
wherein, the liquid crystal display device comprises a liquid crystal display device,differentiation of the velocity vector with respect to time for individual finite element particles, < >>For time differentiation, g is the gravitational acceleration, m is the particle mass of the individual finite element particles,/->For the pressure field gradient μ is the viscosity coefficient inside the moving object, the magnitude of which is related to the stiffness of the moving object,/o>Is a gradient operator of the velocity vector.
The finite element analysis is carried out on the moving object according to the free motion boundary condition and the Stokes equation of the finite element particles, and the process of determining the force field intensity vector of the moving object can concretely adopt the following modes that:
determining acceleration vectors of each finite element particle in the finite element set according to the free motion boundary condition and a Stokes equation of the finite element particle;
and determining the force field intensity vector of the moving object according to the acceleration vector of each finite element particle in the finite element set and a preset moving object coordinate function.
In specific implementation, the derivative of the velocity in the stokes equation with respect to time is replaced by the acceleration of the finite element particles, and after the free motion boundary condition of the moving object is added, a decision formula of the acceleration of each finite element particle in the finite element set changing with the external pressure field in the original animation image can be obtained, and in some embodiments, the acceleration vector of each finite element particle in the finite element set can be determined by the following formula, namely:
wherein, the liquid crystal display device comprises a liquid crystal display device,acceleration vector of single finite element particle, g is gravity acceleration, m is particle mass of single finite element particle,/and g is weight of single finite element particle>For the pressure field gradient μ is the viscosity coefficient inside the moving object, +.>As a gradient operator of the velocity vector, it can be seen that the main parameter affecting the motion of the finite element particles is the pressure field size, and the motion of the finite element particles can be controlled microscopically by adjusting the external force field size under the condition of considering the influence of the free motion boundary condition of the moving object.
The acceleration vector determination is also the pressure field gradientFor a certain segment of motion trail of finite element particles, the gradient of the finite element particles and the pressure field can be obtained according to the above formula>Therefore, the inverse transformation can be performed on the one-to-one correspondence of the pressure field gradient to obtain a display function of the pressure field gradient, namely:
wherein, the liquid crystal display device comprises a liquid crystal display device,acceleration vector of single finite element particle, g is gravity acceleration, m is particle mass of single finite element particle,/and g is weight of single finite element particle>For the pressure field gradient μ is the viscosity coefficient inside the moving object, +.>Is a gradient operator of the velocity vector.
The motion object trajectory function is a motion trajectory expected by a motion object preset in a computer, and is represented as G, an independent variable thereof is time, a dependent variable is a position coordinate of the motion object in the original animation image, the above-mentioned display function of the pressure field gradient reflects a mapping relation between the pressure field size and the motion acceleration of a single finite element particle, and the motion object is objectively composed of a plurality of finite element particles, so that a finite element analysis method can be adopted, the motion of the motion object actually composed of a plurality of infinite particles is macroscopically simulated by controlling the motion of the finite element particles, and when the motion object trajectory function preset in the computer is implemented, the field intensity of the motion of the selected finite element particle according to the motion object trajectory function can be found, and the field intensity of the motion field corresponding to each finite element particle in the finite element set is subjected to average weighted fusion, thereby obtaining a field intensity vector of the final motion object, and the field intensity vector of the motion object can be determined by the following formula:
wherein, the liquid crystal display device comprises a liquid crystal display device,for the force field intensity vector of the moving object, n is the number of finite element particles in the finite element set of the moving object, m k For the particle mass of the kth finite element particle in the finite element set of the moving object, g is gravity acceleration, μ is viscosity coefficient inside the moving object,/>Gradient operator for first derivative of the moving object track function, G (2) For the second derivative of the moving object trajectory function, -/->And (3) a traction vector which is applied to the kth finite element particle in the finite element set of the moving object.
Preferably, in some embodiments, determining the force field intensity vector of the moving object further comprises: and creating a force field layer for the moving object in the original animation image through computer graphic processing software Blender, wherein the field intensity and the direction of the force field layer are equal to those of the force field vector, and controlling the movement of finite element particles in the finite element set through the force field layer which is the same as the force field vector, so that the moving object moves in the original animation image, a more realistic animation effect is achieved, and when the moving object moves in a concrete implementation, a multi-frame rendering animation image can be obtained after the moving condition of the moving object is macroscopically sampled, and finally special effects and transitional effects are added between adjacent frames of the multi-frame rendering animation image by adopting computer animation processing software, so that a final rendering animation is obtained.
In step S104, a key frame in the rendering animation is generated, an inter-frame sampling interval in the rendering animation is adjusted according to the field intensity vector, an image sequence of a moving object is generated according to the inter-frame sampling interval and a preset animation duration, the key frame of the rendering animation and the image sequence of the moving object are combined according to a time sequence, a rendering animation image sequence is obtained, and then a transition special effect is added to the rendering animation image sequence, so that the rendering animation is obtained.
It should be noted that, the rendering animation is a video animation that is finally generated by an animation rendering technology, and in some embodiments, the key frames in the rendering animation include: rendering a start frame and an end frame of the animation; the initial frame is used for defining the initial state of the rendering animation, and the end frame represents the final state of the rendering animation.
In specific implementation, the original animation image is used as a starting frame of the rendering animation, and after a motion track end point of a motion object is determined through a preset motion object track function, an image editing software adobenanimate is adopted to generate an image of the motion object at the motion track end point as an ending frame of the rendering animation.
It should be noted that, the inter-frame sampling interval is the time interval between adjacent frames when generating the image sequence of the moving object, and the frame rate of the final rendering animation is the reciprocal, in some embodiments, the rapid change of the moving object is ignored due to the larger time interval, and the change of the moving object can be captured more finely by the smaller time interval, so the inter-frame sampling interval is related to the change speed of the field intensity vector controlling the track of the moving object, and in particular, the inter-frame sampling interval can be determined according to the following formula, namely:
wherein sigma is the interframe sampling interval, k is the correction coefficient, calibrated as a constant according to experience, T is the animation duration of rendering the animation,as gradient of force field intensity vector, dt is differential of time variable, sigma 0 Is a unit time interval, and in particular implementation, the unit time interval is 1/240 second, and floor is a rounding function.
After the interframe sampling interval in the rendering animation is adjusted according to the force field intensity vector, when the motion condition of the moving object is complex, more key actions can be captured through higher image frame rate, so that the situation that a great amount of fuzzy distortion occurs in the rendering animation which is finally generated is avoided.
Preferably, in some embodiments, after determining the inter-frame sampling interval and the animation duration of rendering the animation, the image sequence including the moving object may be generated by image processing software such as Blender. The images record the states and changes of moving objects on different key frames, further the key frames in the rendering animation and the image sequences of the moving objects are combined according to time sequences to obtain the rendering animation image sequences, transitional special effects such as gradual change, fade-in fade-out and blurring are added between adjacent frames of the rendering animation image sequences according to requirements, the special effects are added between the adjacent frames to enhance the visual effect and fluency of the animation, the conversion between scenes is more natural, and finally the combined rendering animation image sequences are exported to a common video format such as MP4 format or AVI format according to requirements.
Additionally, in another aspect of the present application, in some embodiments, the present application provides an animation rendering system, referring to FIG. 2, which is a schematic diagram of exemplary hardware and/or software of an animation rendering system according to some embodiments of the present application, the animation rendering system 200 comprising: the moving object discretization module 201, the free motion boundary condition determination module 202, the force field intensity vector determination module 203, and the rendering animation generation module 204 are respectively described as follows:
the motion object discretization module 201 is mainly used for discretizing a motion object in an original animation image to obtain a finite element set of the motion object, wherein the finite element set contains finite element particles of the motion object;
the free motion boundary condition determining module 202 is mainly used for obtaining the mass density of the moving object, and determining the free motion boundary condition of the moving object according to the mass density;
the force field intensity vector determining module 203 mainly constructs stokes equation of each finite element particle in the finite element set, performs finite element analysis on the moving object according to the free motion boundary condition and the stokes equation of the finite element particle, and determines the force field intensity vector of the moving object;
the rendering animation generation module 204 is mainly used for generating key frames in rendering animation, adjusting an inter-frame sampling interval in the rendering animation according to the field intensity vector, generating an image sequence of a moving object according to the inter-frame sampling interval and a preset animation duration, merging the key frames of the rendering animation and the image sequence of the moving object according to a time sequence to obtain a rendering animation image sequence, and further adding a transition special effect to the rendering animation image sequence to obtain the rendering animation.
In addition, the application also provides a computer device, which comprises a memory and a processor, wherein the memory stores codes, and the processor is configured to acquire the codes and execute the animation rendering method.
In some embodiments, reference is made to FIG. 3, which is a schematic structural diagram of a computer device implementing an animation rendering method, according to some embodiments of the application. The animation rendering method in the above-described embodiment may be implemented by a computer device shown in fig. 3, which includes at least one processor 301, a communication bus 302, a memory 303, and at least one communication interface 304.
Processor 301 may be a general purpose central processing unit (central processing unit, CPU), application-specific integrated circuit (ASIC), or one or more of the various functions used to control the execution of the animation rendering methods of the present application.
Communication bus 302 may include a path to transfer information between the above components.
The Memory 303 may be, but is not limited to, a read-only Memory (ROM) or other type of static storage device that can store static information and instructions, a random access Memory (random access Memory, RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only Memory (electrically erasable programmable read-only Memory, EEPROM), a compact disc (compact disc read-only Memory) or other optical disk storage, a compact disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 303 may be stand alone and be coupled to the processor 301 via the communication bus 302. Memory 303 may also be integrated with processor 301.
The memory 303 is used for storing program codes for executing the scheme of the present application, and the processor 301 controls the execution. The processor 301 is configured to execute program code stored in the memory 303. One or more software modules may be included in the program code. The determination of the field strength vector in the above embodiments may be implemented by one or more software modules in the processor 301 and in the program code in the memory 303.
Communication interface 304, using any transceiver-like device for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), etc.
In a specific implementation, as an embodiment, a computer device may include a plurality of processors, where each of the processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The computer device may be a general purpose computer device or a special purpose computer device. In particular implementations, the computer device may be a desktop, laptop, web server, palmtop (personal digital assistant, PDA), mobile handset, tablet, wireless terminal device, communication device, or embedded device. Embodiments of the application are not limited to the type of computer device.
In addition, the application also provides a computer readable storage medium storing a computer program which when executed by a processor realizes the animation rendering method.
In summary, in the animation rendering method, system, device and storage medium disclosed in the embodiments of the present application, discretizing a moving object in an original animation image to obtain a finite element set of the moving object, obtaining a mass density of the moving object, determining a free motion boundary condition of the moving object according to the mass density, further constructing a stokes equation of each finite element particle in the finite element set, performing finite element analysis on the moving object according to the free motion boundary condition and the stokes equation of the finite element particle, determining a field strength vector of the moving object, regenerating a key frame in a rendering animation, adjusting an inter-frame sampling interval in the rendering animation according to the field strength vector, generating an image sequence of the moving object according to the inter-frame sampling interval and a preset animation duration, merging the key frame of the rendering animation and the image sequence of the moving object according to a time sequence to obtain a rendering animation image sequence, and finally adding a transitional special effect to the rendering animation image sequence to obtain a rendering animation, and obtaining a discrete field strength vector of the moving object in the original animation image without requiring a discrete element particle of the moving object, thereby realizing a real rendering animation, and rendering the rendering animation.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. An animation rendering method, characterized by comprising the following steps:
discretizing a moving object in an original animation image to obtain a finite element set of the moving object, wherein the finite element set contains finite element particles of the moving object;
acquiring the mass density of the moving object, and determining the free movement boundary condition of the moving object according to the mass density;
constructing a Stokes equation of each finite element particle in the finite element set, carrying out finite element analysis on the moving object according to the free motion boundary condition and the Stokes equation of the finite element particle, and determining a force field intensity vector of the moving object;
generating a key frame in the rendering animation, adjusting an inter-frame sampling interval in the rendering animation according to the force field intensity vector, generating an image sequence of a moving object according to the inter-frame sampling interval and a preset animation duration, merging the key frame of the rendering animation and the image sequence of the moving object according to a time sequence to obtain a rendering animation image sequence, and adding a transition special effect to the rendering animation image sequence to obtain the rendering animation.
2. The method according to claim 1, wherein determining the free motion boundary condition of the moving object based on the mass density comprises:
determining the particle quality of single finite element particles in the finite element set according to the mass density of the moving object;
a free motion boundary condition of the moving object is determined based on the particle mass of the single finite element particle.
3. The method of claim 2, wherein the particle mass of the individual finite element particles is determined according to the formula:
m=(ρ·S)/k
wherein m is the particle mass of single finite element particles, ρ is the mass density of the moving object, S is the area occupied by the moving object in the original animation image, and k is the number of finite element particles in the finite element set.
4. The method of claim 1, wherein determining the field strength vector of the moving object comprises:
determining acceleration vectors of each finite element particle in the finite element set according to the free motion boundary condition and a Stokes equation of the finite element particle;
and determining the force field intensity vector of the moving object according to the acceleration vector of each finite element particle in the finite element set and a preset moving object coordinate function.
5. The method of claim 1, wherein determining the field strength vector of the moving object further comprises: and creating a force field layer for a moving object in the original animation image, wherein the field intensity and the direction of the force field layer are equal to the field intensity vector, and the force field layer controls the movement of finite element particles in the finite element set.
6. The method of claim 1, wherein the key frames in the rendering animation comprise a start frame and an end frame of the rendering animation.
7. The method of claim 1, further comprising, prior to discretizing the moving object in the original animated image: a frame of an original animated image containing moving objects is created.
8. An animation rendering system, comprising:
the motion object discretization module is used for discretizing a motion object in an original animation image to obtain a finite element set of the motion object, wherein the finite element set contains finite element particles of the motion object;
the free motion boundary condition determining module is used for obtaining the mass density of the moving object and determining the free motion boundary condition of the moving object according to the mass density;
the force field intensity vector determining module is used for constructing a Stokes equation of each finite element particle in the finite element set, carrying out finite element analysis on the moving object according to the free motion boundary condition and the Stokes equation of the finite element particle, and determining the force field intensity vector of the moving object;
the rendering animation generation module is used for generating key frames in rendering animation, adjusting an inter-frame sampling interval in the rendering animation according to the force field intensity vector, generating an image sequence of a moving object according to the inter-frame sampling interval and a preset animation duration, merging the key frames of the rendering animation and the image sequence of the moving object according to a time sequence to obtain a rendering animation image sequence, and further adding a transition special effect to the rendering animation image sequence to obtain the rendering animation.
9. A computer device comprising a memory storing code and a processor configured to obtain the code and to perform the animation rendering method of any of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the animation rendering method according to any one of claims 1 to 7.
CN202310780725.6A 2023-06-29 2023-06-29 Animation rendering method, system, equipment and storage medium Active CN116824009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310780725.6A CN116824009B (en) 2023-06-29 2023-06-29 Animation rendering method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310780725.6A CN116824009B (en) 2023-06-29 2023-06-29 Animation rendering method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116824009A true CN116824009A (en) 2023-09-29
CN116824009B CN116824009B (en) 2024-03-26

Family

ID=88116364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310780725.6A Active CN116824009B (en) 2023-06-29 2023-06-29 Animation rendering method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116824009B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5537641A (en) * 1993-11-24 1996-07-16 University Of Central Florida 3D realtime fluid animation by Navier-Stokes equations
US6266071B1 (en) * 1998-11-20 2001-07-24 Silicon Graphics, Inc. Method of producing fluid-like animations using a rapid and stable solver for the Navier-Stokes equations
JP2002092639A (en) * 2000-09-20 2002-03-29 Sony Corp Method and device for forming animation representing particle behavior
KR20080098871A (en) * 2007-05-07 2008-11-12 삼성전자주식회사 Method and apparatus to express fluid flows
US20100145632A1 (en) * 2008-12-10 2010-06-10 Electronics And Telecommunications Research Institute Method, apparatus and system for incompressible fluid simulations, and storage medium storing program for executing the method
US20170024922A1 (en) * 2015-07-23 2017-01-26 Pixar Method and system for vorticle fluid simulation
US20210279385A1 (en) * 2020-02-28 2021-09-09 Weta Digital Limited Method for Generating Simulations of Fluid Interfaces for Improved Animation of Fluid Interactions
CN115063518A (en) * 2022-06-08 2022-09-16 Oppo广东移动通信有限公司 Track rendering method and device, electronic equipment and storage medium
CN115310339A (en) * 2022-07-19 2022-11-08 燕山大学 Solid-liquid coupling simulation method with surface tension effect based on material point method
CN115879390A (en) * 2022-12-08 2023-03-31 浙江工业大学 Layered cloud fluid simulation method based on weak air particles and Lennard-Jones potential
CN116266356A (en) * 2021-12-17 2023-06-20 影石创新科技股份有限公司 Panoramic video transition rendering method and device and computer equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5537641A (en) * 1993-11-24 1996-07-16 University Of Central Florida 3D realtime fluid animation by Navier-Stokes equations
US6266071B1 (en) * 1998-11-20 2001-07-24 Silicon Graphics, Inc. Method of producing fluid-like animations using a rapid and stable solver for the Navier-Stokes equations
JP2002092639A (en) * 2000-09-20 2002-03-29 Sony Corp Method and device for forming animation representing particle behavior
KR20080098871A (en) * 2007-05-07 2008-11-12 삼성전자주식회사 Method and apparatus to express fluid flows
US20100145632A1 (en) * 2008-12-10 2010-06-10 Electronics And Telecommunications Research Institute Method, apparatus and system for incompressible fluid simulations, and storage medium storing program for executing the method
US20170024922A1 (en) * 2015-07-23 2017-01-26 Pixar Method and system for vorticle fluid simulation
US20210279385A1 (en) * 2020-02-28 2021-09-09 Weta Digital Limited Method for Generating Simulations of Fluid Interfaces for Improved Animation of Fluid Interactions
CN116266356A (en) * 2021-12-17 2023-06-20 影石创新科技股份有限公司 Panoramic video transition rendering method and device and computer equipment
CN115063518A (en) * 2022-06-08 2022-09-16 Oppo广东移动通信有限公司 Track rendering method and device, electronic equipment and storage medium
CN115310339A (en) * 2022-07-19 2022-11-08 燕山大学 Solid-liquid coupling simulation method with surface tension effect based on material point method
CN115879390A (en) * 2022-12-08 2023-03-31 浙江工业大学 Layered cloud fluid simulation method based on weak air particles and Lennard-Jones potential

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
肖苗苗等: "基于OpenCL加速的SPH流体仿真", 系统仿真学报, vol. 27, no. 4, pages 803 - 809 *
董兰芳等: "基于IIF模型的流体表面张力模拟", 图学学报, vol. 37, no. 3, pages 302 - 307 *

Also Published As

Publication number Publication date
CN116824009B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
US8248420B2 (en) Method and system for displaying animation with an embedded system graphics API
WO2022188282A1 (en) Three-dimensional fluid reverse modeling method based on physical perception
US20050212800A1 (en) Volumetric hair simulation
CN111695309B (en) High-performance large-scale fluid-solid coupling fluid simulation method based on statistical dynamics
US20090179898A1 (en) Creation of motion blur in image processing
KR101656167B1 (en) Method, apparatus, device, program and recording medium for displaying an animation
WO2023103576A1 (en) Video processing method and apparatus, and computer device and storage medium
CN112330779A (en) Method and system for generating dance animation of character model
CN110310299B (en) Method and apparatus for training optical flow network, and method and apparatus for processing image
WO2023151524A1 (en) Image display method and apparatus, electronic device, and storage medium
CN114513520A (en) Web three-dimensional visualization technology based on synchronous rendering of client and server
JP2023519728A (en) 2D image 3D conversion method, apparatus, equipment, and computer program
CN110930492B (en) Model rendering method, device, computer readable medium and electronic equipment
KR102242343B1 (en) A Fast High Quality Video Frame Rate Conversion Method and Apparatus
WO2023151525A1 (en) Method and apparatus for generating special-effect video, and electronic device and storage medium
CN110572717A (en) Video editing method and device
CN114972591A (en) Animation generation model training method, animation generation method and device
CN115587523A (en) High dynamic space self-adaptive fluid simulation method, equipment and storage medium
CN116824009B (en) Animation rendering method, system, equipment and storage medium
CN112862942B (en) Physical special effect simulation method, device, electronic equipment and storage medium
CN112785669A (en) Virtual image synthesis method, device, equipment and storage medium
CN111064981A (en) System and method for video streaming
CN112634420B (en) Image special effect generation method and device, electronic equipment and storage medium
CN114445529A (en) Human face image animation method and system based on motion and voice characteristics
Wu et al. Improved divergence‐free smoothed particle hydrodynamics via priority of divergence‐free solver and SOR

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant