Animation processing method, device, electronic device and storage medium

By obtaining and utilizing the external interaction parameters of the augmented reality model to drive the animation samples of the model unit, the problem that the augmented reality animation cannot be adjusted in the existing technology is solved, and the user operation is realized to adjust the animation effect in real time, which improves the ease of use and the user experience. experience.

CN111862273BActive Publication Date: 2024-10-25DOUYIN VISION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010688598.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-16
Publication Date
2024-10-25
Estimated Expiration
2040-07-16

AI Technical Summary

Technical Problem

Existing augmented reality animations cannot be adjusted during user operations, resulting in poor usability and the inability to adjust animation effects in real time based on user interactions.

Method used

By obtaining the external interaction parameters of the augmented reality model and using shaders to drive the animation samples of the model unit, real-time adjustment of the animation samples is achieved and the user's ability to control the model animation is improved.

Benefits of technology

Improved the usability of augmented reality animation, allowing users to adjust model animation in real time based on operations, enhancing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111862273B_ABST
    Figure CN111862273B_ABST
Patent Text Reader

Abstract

The present invention discloses an animation processing method, device, electronic device and storage medium. Applied to a shader, the method comprises: obtaining an animation sample of a model unit; obtaining an external interaction parameter of an augmented reality model, wherein the augmented reality model is composed of a plurality of model units; outputting the augmented reality model, and driving the animation sample of the model unit in the output augmented reality model according to the external interaction parameter. The animation sample of the model unit can be driven according to the external interaction parameter, so that the model animation can be adjusted according to the user operation, thereby improving the usability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to virtual reality technology, and more particularly to an animation processing method, device, electronic device and storage medium. Background Art

[0002] Augmented Reality (AR) is a technology that superimposes real information with virtual information. First, the computer system processes the real information and generates virtual information that matches the real information and contains virtual objects, sounds or texts; then, the virtual information is superimposed on the human-computer interaction interface that displays the real information, thereby enhancing the user's perception of the real world.

[0003] At present, the augmented reality animation of landmark buildings is a pre-baked animation. The content of the pre-baked animation is fixed, and after the playback is triggered, the pre-recorded animation content is played. The pre-recorded animation lacks interaction with the user, and the pre-recorded screen cannot be adjusted according to the user's operation, which has poor usability. Summary of the invention

[0004] The present invention provides an animation processing method, device, electronic equipment and storage medium, so as to adjust the model animation according to the user operation and improve the usability.

[0005] In a first aspect, an embodiment of the present invention provides an animation processing method, which is applied to a shader, comprising:

[0006] Get animation samples of model units;

[0007] Obtaining external interaction parameters of an augmented reality model, where the augmented reality model is composed of multiple model units;

[0008] The augmented reality model is output, and animation samples of the model units are driven in the output augmented reality model according to the external interaction parameters.

[0009] In a second aspect, an embodiment of the present invention further provides an animation generation device, applied to a shader, comprising:

[0010] Animation sample acquisition module, used to acquire animation samples of model units;

[0011] An external interaction parameter acquisition module is used to acquire external interaction parameters of an augmented reality model, where the augmented reality model is composed of multiple model units;

[0012] The driving module is used to output the augmented reality model and drive the animation samples of the model units in the output augmented reality model according to the external interaction parameters.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0014] one or more processors;

[0015] a storage device for storing one or more programs,

[0016] When one or more programs are executed by one or more processors, the one or more processors implement the animation processing method as shown in the embodiment of the present disclosure.

[0017] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the animation processing method as shown in the embodiment of the present disclosure.

[0018] The animation processing scheme disclosed in the embodiment of the present disclosure can generate animation samples of model units with parameter transmission interfaces. When the user triggers augmented reality, the external interaction parameters of the augmented reality model are obtained, and the animation samples of the model units are driven by the external interaction parameters. Compared with the current situation where users cannot control the pre-set model change animation, the usability is poor. The embodiment of the present disclosure can drive the animation samples of the model units according to the external interaction parameters, realize the adjustment of the model animation according to the user operation, and improve the usability. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flowchart of the animation processing method in the first embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of the structure of an animation processing device in Embodiment 2 of the present invention;

[0021] Figure 3 It is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0023] Embodiment 1

[0024] Figure 1 This is a flowchart of an animation processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where an augmented reality model animation is played in augmented reality. The method can be executed by an electronic device that implements augmented reality, which can be a terminal such as a smart phone or a tablet computer, and specifically includes the following steps:

[0025] Step 110: Obtain animation samples of the model unit.

[0026] Animation samples can be made in advance through 3D digital content creation software (Digital Content Creation, DCC). The 3D digital content creation software can be Houdini, which is suitable for making procedural animations. Animation samples are also called demos. The augmented reality model involved in the embodiment of the present disclosure is composed of model units. The model unit can be a fixed shape, such as a cube box. The animation sample obtained in step 110 is a movement or deformation animation of a model unit. Different types of animation samples can be edited to match the display of the augmented reality model.

[0027] The pre-generated animation samples may be stored in the local storage, or the animation samples may be downloaded from the server and cached locally to obtain the animation samples of the model unit.

[0028] In one implementation, the animation sample is a first animation sample. At this time, step 110 can be implemented as obtaining a first animation sample of a model unit, wherein the first animation sample represents an animation of rotating the model unit along a preset coordinate axis at the center point of the model unit. In the production software of the above-mentioned animation sample, the model unit is edited to complete the production of the first animation sample. Optionally, the first animation sample provides a preset coordinate axis setting interface or a rotation angle setting interface, etc. In subsequent steps, the reference axis when the model unit rotates can be set through the preset coordinate axis setting interface, and the angle of rotation of the model unit on the preset coordinate axis can be set through the rotation angle setting interface, etc. Exemplarily, a model unit in the shape of a cube can be set to rotate continuously along a preset coordinate axis, or a model unit in the shape of a cube can be set to rotate along a preset coordinate axis in a preset direction at a preset angle.

[0029] In another implementation, the animation sample is a second animation sample. In this case, step 110 can be implemented as obtaining a second animation sample of the model unit, wherein the second animation sample represents an animation of the model unit jumping on a preset coordinate axis. In the production software of the above-mentioned animation sample, the model unit is edited to complete the production of the second animation sample. Optionally, the second animation sample provides a preset coordinate axis setting interface, a jumping frequency setting interface, or a jumping amplitude setting interface. In subsequent steps, the reference coordinate axis of the jumping of the model unit can be set through the preset coordinate axis setting interface, the jumping direction of the model unit is parallel to the reference coordinate axis, the amplitude of the jumping of the model unit on the preset coordinate axis can be set through the jumping amplitude setting interface, and the frequency of the jumping of the model unit on the preset coordinate axis can be set through the jumping frequency setting interface. Exemplarily, the preset coordinate axis of the jumping of the model unit in the shape of a cube can be set, and the height or frequency of the jumping of the model unit in the shape of a cube on the preset coordinate axis can be set.

[0030] In another implementation, the animation sample is a third animation sample. In this case, step 110 can be implemented as obtaining a third animation sample of the model unit, wherein the third animation sample indicates that the surface texture or color of the model unit changes periodically. In addition to rotating or moving the model unit, the animation sample can also change the surface texture of the model unit. For example, in the initial state, the surface of the model unit is a preset color or a preset texture, and the surface graphics of the model unit in the third animation sample changes from the initial state (such as the preset color or the preset texture) to the target state, and then restores from the target state to the initial state. The target state includes a target color or a target texture, and the target color can be a color with a fixed color difference from the preset color, and the target texture can be the actual surface texture of the object to which the augmented reality model is mapped, etc. If the model unit is a cubic unit, the color of a surface of the cube is the average color of the four vertices of the surface.

[0031] The interface provided by the above animation sample can receive different types of parameter data. For example, it can receive floating-point parameters. Floating-point parameters are no longer simple 0-1 triggers (0 / 1 means triggering a certain animation or not triggering a certain animation). Floating-point parameters can achieve smooth interactive effects. Procedural animation is achieved through shaders. The GPU is used to calculate the movement of each vertex, which can achieve more complex visual effects in real time and effectively.

[0032] The disclosed embodiment is applied to a graphics processor GPU, which operates each model unit in the augmented reality model in parallel, thereby enabling each model unit in the augmented reality model to synchronously execute animation samples.

[0033] Step 120: Obtain external interaction parameters of the augmented reality model, where the augmented reality model is composed of multiple model units.

[0034] The current augmented reality model can only play animation samples according to pre-recorded fixed content, and cannot adjust the animation samples according to the actual augmented reality scene. Therefore, the usability is poor, the animation effect is rigid, and the augmented reality experience is affected. In the disclosed embodiment, step 120 can obtain the external interaction parameters of the augmented reality model, and then control the model unit through the external interaction parameters.

[0035] Real-time sensing data can be obtained through terminal sensors, and according to the interface provided by the animation sample, the sensing data can be converted into external interaction parameters that can be used to drive the animation sample.

[0036] The user can start the augmented reality function in the preset application, which can be the camera function of the terminal or an application with augmented reality function. The terminal camera obtains the current image, and the terminal displays the obtained current image on the preview page. If it is recognized that the object in the current image has a corresponding augmented reality model, the augmented reality model is mapped to the building image. The object can be a landmark building, or it can be an entity corresponding to other pre-made augmented display models such as vehicles.

[0037] For the convenience of explanation, the following embodiments are described by taking the shape of a model unit as a cubic unit as an example. In this case, the model unit is a cubic unit; the augmented reality model is a building model; and the building model is composed of multiple cubic units.

[0038] Optionally, the preset coordinate axis in the first animation example can be determined according to any of the following methods: determining the preset coordinate axis according to the sliding direction of the sliding trajectory input by the user in the terminal screen; or, determining the preset coordinate axis according to the object mapped to the augmented reality model and the shooting direction of the terminal; or, determining the preset coordinate axis according to the moving direction of the terminal's camera.

[0039] The preset coordinate axis in the first animation example is the rotation axis for reference when the model unit rotates. When the user performs a sliding operation in the preview page displayed on the terminal screen, the touch screen can detect the trajectory corresponding to the sliding operation. The rotation axis can be determined according to the sliding direction of the trajectory. Optionally, the rotation axis can be selected from the three coordinate axes of the three-dimensional coordinate system, the three coordinate axes are the x-axis, the y-axis and the z-axis, the x-axis represents the horizontal lateral direction, the y-axis is the vertical direction of the perpendicular plane, and the z-axis represents the longitudinal direction of the horizontal plane. The sliding direction of the sliding trajectory can be used as the tangent direction when the cube unit rotates, and then the rotation axis is determined. For example, if the user slides along the x-axis direction, the preset coordinate axis is determined, that is, the rotation axis is the z-axis.

[0040] The preset coordinate axis can also be determined according to the object to which the augmented reality model is mapped and the shooting direction of the terminal. The shooting direction is mapped to the surface of the object, and then the rotation direction of the cube unit is determined, and then the preset coordinate axis is determined. For example, when a user stands in front of the right side of the building to shoot the building, when the shooting direction is mapped to the building, the direction is the negative direction of the x-axis, which is the rotation direction of the cube unit. Then, the preset coordinate axis is derived as the z-axis.

[0041] During the augmented reality process, the user can move. The longitudinal movement of the user can be determined by the size of the content in the image acquired by the camera, and the lateral movement of the user can be determined by the displacement of the object in the image acquired by the camera. The main movement direction can be determined from the longitudinal movement and the lateral movement, and the coordinate axis corresponding to the main movement direction is used as the preset coordinate axis.

[0042] In the first animation example, after configuring the preset coordinate axis, the rotation angle can be a fixed value, such as a 90-degree rotation. It is also possible to rotate the cube unit continuously after determining the rotation axis. Furthermore, the rotation speed, angle, etc. of the cube unit can be adjusted according to user operations. When rotating the cube unit, the world coordinates of the center point of the cube unit can be stored in each vertex of the cube unit. Each vertex rotates around the center point in the vertex shader. The color of the vertex uses the color of the center coordinate. The overall process animation of the building is to flip multiple cube units on a certain face or axis in turn to achieve a wave-like flipping process animation.

[0043] Optionally, the jumping amplitude of the model unit on the preset coordinate axis in the second animation sample is determined according to the beat, re-beat or music intensity of the target audio.

[0044] The method for obtaining the preset coordinate axis in the second animation example can refer to the method for obtaining the preset coordinate axis in the first animation example mentioned above. In the second animation example, the jump amplitude of the model unit can be determined according to the beat, beat or music intensity of the target audio. The target audio can be an audio selected by the user, or it can be a target audio bound to the augmented reality model read by the terminal after the augmented reality model is recognized. For example, if the augmented reality model is a museum model, the target audio can be the introduction audio of the museum, or it can be the background music currently playing in the museum. The beat, beat or music intensity contained in the target audio can be determined by analyzing the target audio. The heavier the beat and the stronger the music intensity, the greater the jump amplitude.

[0045] Optionally, the surface pattern of the model unit in the third animation example is processed according to a Perlin noise algorithm.

[0046] Perlin Noise can be combined with model vertex parameters (Vertex Attributes) and interactive control parameters. Perlin noise is referenced to the model vertices so that the vertices of the cube model unit are distributed according to the surface features of the building entity, making the effect more three-dimensional rather than flat. The surface texture of the building is obtained through the terminal camera, and the surface pattern close to the actual surface texture of the building is simulated through the Perlin noise algorithm. The surface pattern is used as the target texture in the third animation sample. At this time, after the surface pattern of the model unit is changed to this surface pattern, it can be maintained without being restored to the initial state.

[0047] Furthermore, the third animation example can be combined with the first animation example and the second animation example to implement the Perlin noise processing on the surface pattern of the model unit and then perform the rotation shown in the first animation example or the jumping shown in the second animation example.

[0048] Further, the attribute information of the model unit is set, the attribute information including one or more of vertex coordinates, center point coordinates, rotation start parameters or bounce start parameters, the rotation start parameters indicate whether the first animation sample is allowed to be driven, and the bounce start parameters indicate whether the second animation sample is allowed to be driven.

[0049] In the disclosed embodiment, the attributes of the model unit itself can also be edited. The vertex coordinates can be the coordinates of each vertex of the cube. The center point coordinates can be the coordinates of the center point of the cube. The jump start parameter indicates whether the vertex is allowed to move, and a Boolean value can be used to indicate permission and prohibition. In one implementation, the rotation start parameter indicates whether the model unit is allowed to rotate, and a Boolean value can be used to indicate permission and prohibition. In another implementation, the rotation start parameter indicates the identification of the axis around which it is rotated, such as the Y axis, X axis, or Z axis, which can be represented by integer data. If only two axes are open for rotation, such as the Y axis and the Z axis, a Boolean value can be used to identify the Y axis or the Z axis respectively.

[0050] Step 130: output the augmented reality model, and drive the animation samples of the model units in the output augmented reality model according to the external interaction parameters.

[0051] When the augmented reality model is output, the model units in the model are in the initial state. If the external interaction parameters triggered by the user are obtained in step 120, they are passed to the shader through the uniform of the shader, and each model unit is processed separately in the shader.

[0052] The external interaction parameters are passed into the animation sample by passing parameters. The animation sample can be a combination of one or more of the first animation sample, the second animation sample, or the third animation sample. After the animation sample is driven, each cube unit executes the animation sample and outputs the corresponding animation effect. For example, when the user slides the screen, the cube unit can be triggered to roll in waves along the x-axis, or when the terminal lens moves upward, the cube unit can be triggered to roll in waves upward.

[0053] Furthermore, adjustment parameters are determined based on skeleton detection or face detection, and the adjustment parameters are used to control the driving degree of the first animation sample, the second animation sample or the third animation sample; and model units in the output augmented reality model are adjusted based on the adjustment parameters.

[0054] During the playback of animation samples, the terminal can try to obtain new external interaction parameters, and then update the driven animation samples. During the playback of animation samples or after playing a section of animation samples, bone detection or face detection can be performed. Bone detection can detect the user's actions made in the air, such as: a gesture or body movement (such as nodding, running or jumping, etc.). Face detection can detect the user's facial expression. The user can be the target person being photographed (obtained by the rear camera) or the user of the handheld terminal (obtained by the front camera). Adjustment parameters can be determined based on facial expressions or actions. The adjustment parameters can be to increase or decrease the amplitude of the current animation sample according to the preset adjustment unit. The user can then adjust the animation sample more accurately.

[0055] The animation processing method disclosed in the embodiment of the present disclosure can generate an animation sample of a model unit with a parameter transmission interface. When the user triggers augmented reality, the external interaction parameters of the augmented reality model are obtained, and the animation sample of the model unit is driven by the external interaction parameters. Compared with the current situation where users cannot control the pre-set model change animation, the usability is poor. The embodiment of the present disclosure can drive the animation sample of the model unit according to the external interaction parameters, realize the adjustment of the model animation according to the user operation, and improve the usability.

[0056] Embodiment 2

[0057] Figure 2 This is a structural diagram of an animation processing device provided in the second embodiment of the present disclosure. This embodiment can be applied to the case of playing augmented reality model animation in augmented reality. The method can be executed by a device that implements augmented reality, which can be a smart phone, a tablet computer, etc. The device includes: an animation sample acquisition module 210, an external interaction parameter acquisition module 220 and a driving module 230. Among them:

[0058] Animation sample acquisition module 210, used to acquire animation samples of model units;

[0059] An external interaction parameter acquisition module 220 is used to acquire external interaction parameters of an augmented reality model, where the augmented reality model is composed of multiple model units;

[0060] The driving module 230 is used to output the augmented reality model and drive the animation samples of the model units in the output augmented reality model according to the external interaction parameters.

[0061] Furthermore, the animation sample acquisition module 210 is used to:

[0062] Obtaining a first animation sample of the model unit, where the first animation sample represents an animation of rotating the model unit along a preset coordinate axis at a center point of the model unit;

[0063] A second animation sample of the model unit is obtained, where the second animation sample represents an animation of the model unit jumping on a preset coordinate axis.

[0064] Furthermore, it also includes a model unit attribute setting module for:

[0065] The attribute information of the model unit is set, and the attribute information includes one or more of vertex coordinates, center point coordinates, rotation start parameters or bounce start parameters. The rotation start parameters indicate whether the first animation sample is allowed to be driven, and the bounce start parameters indicate whether the second animation sample is allowed to be driven.

[0066] Furthermore, the animation sample acquisition module 210 is used to:

[0067] A third animation sample of the model unit is obtained, where the third animation sample indicates that a surface texture or color of the model unit changes periodically.

[0068] Furthermore, the external interaction parameter acquisition module 220 is used to:

[0069] The preset coordinate axis in the first animation example is determined according to any of the following methods: the preset coordinate axis is determined according to the sliding direction of the sliding track input by the user on the terminal screen; or the preset coordinate axis is determined according to the photographed object mapped to the augmented reality model and the photographing direction of the terminal; or the preset coordinate axis is determined according to the moving direction of the camera of the terminal;

[0070] Determine the jumping amplitude of the model unit on the preset coordinate axis in the second animation example according to the beat, re-beat or music intensity of the target audio;

[0071] The surface pattern of the model unit in the third animation example is processed according to the Perlin noise algorithm.

[0072] Furthermore, an adjustment module is included, which is used to determine adjustment parameters according to skeleton detection or face detection, and the adjustment parameters are used to control the driving degree of the first animation sample, the second animation sample or the third animation sample;

[0073] The model units in the output augmented reality model are adjusted according to the adjustment parameters.

[0074] Furthermore, the model unit is a cube unit; the augmented reality model is a building model; and the building model is composed of multiple cube units.

[0075] In the animation processing device disclosed in the embodiment of the present disclosure, the animation sample acquisition module 210 generates an animation sample of a model unit with a parameter transmission interface. When the user triggers augmented reality, the external interaction parameter acquisition module 220 acquires the external interaction parameters of the augmented reality model, and the driving module 230 drives the animation sample of the model unit using the external interaction parameters. Compared with the current situation where users cannot control the pre-set model change animation, the usability is poor. The embodiment of the present disclosure can drive the animation sample of the model unit according to the external interaction parameters, realize the adjustment of the model animation according to the user operation, and improve the usability.

[0076] The animation processing device provided in the embodiment of the present invention can execute the animation processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0077] Embodiment 3

[0078] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 800 suitable for implementing the third embodiment of the present disclosure. The terminal device in the embodiment 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), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0079] like Figure 3 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

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

[0081] 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 computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0082] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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 of the above.

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

[0084] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet Protocol addresses; sends a node evaluation request including the at least two Internet Protocol addresses to a node evaluation device, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained Internet Protocol address indicates an edge node in a content distribution network.

[0085] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; selects an Internet Protocol address from the at least two Internet Protocol addresses; and returns the selected Internet Protocol address; wherein the received Internet Protocol address indicates an edge node in a content distribution network.

[0086] 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 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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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).

[0087] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0088] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0089] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. An animation processing method, characterized in that: Applicable to shaders, including: Get animation samples of model units; Acquire external interaction parameters of an augmented reality model, where the augmented reality model is composed of a plurality of the model units; Outputting the augmented reality model, and driving the animation sample of the model unit in the output augmented reality model according to the external interaction parameter; Wherein, the animation sample is the motion or deformation animation of the model unit; The animation sample includes a first animation sample and / or a second animation sample, wherein the first animation sample provides a preset coordinate axis setting interface or a rotation angle setting interface; the second animation sample provides a preset coordinate axis setting interface, a beating frequency setting interface or a beating amplitude setting interface; Wherein, the obtaining of the external interaction parameters of the augmented reality model includes: obtaining real-time sensing data through a terminal sensor, and converting the sensing data into external interaction parameters for driving the animation sample according to an interface provided by the animation sample; The method further includes: if it is recognized that a corresponding augmented reality model exists for the photographed object in the current image, mapping the augmented reality model onto the building image.

2. The method according to claim 1, characterized in that The step of obtaining the animation sample of the model unit includes: Acquire a first animation sample of a model unit, where the first animation sample represents an animation of rotating the model unit along a preset coordinate axis at a center point of the model unit; A second animation sample of the model unit is obtained, where the second animation sample represents an animation of the model unit jumping on a preset coordinate axis.

3. The method according to claim 2, characterized in that Before outputting the augmented reality model, the method further includes: The attribute information of the model unit is set, wherein the attribute information includes one or more of vertex coordinates, center point coordinates, rotation start parameters, or bounce start parameters, wherein the rotation start parameters indicate whether the first animation sample is allowed to be driven, and the bounce start parameters indicate whether the second animation sample is allowed to be driven.

4. The method according to claim 3, characterized in that The step of obtaining the animation sample of the model unit includes: A third animation sample of the model unit is obtained, where the third animation sample indicates that a surface texture or color of the model unit changes periodically.

5. The method according to claim 4, characterized in that The obtaining of external interaction parameters of the augmented reality model includes: The preset coordinate axis in the first animation example is determined according to any one of the following methods: the preset coordinate axis is determined according to the sliding direction of the sliding track input by the user on the terminal screen; or the preset coordinate axis is determined according to the photographed object mapped to the augmented reality model and the photographing direction of the terminal; or the preset coordinate axis is determined according to the moving direction of the camera of the terminal; Determine the jumping amplitude of the model unit on the preset coordinate axis in the second animation example according to the beat, re-beat or music intensity of the target audio; The surface pattern of the model unit in the third animation example is processed according to the Perlin noise algorithm.

6. The method according to claim 5, characterized in that After driving the animation sample of the model unit in the output augmented reality model according to the external interaction parameter, the method further includes: determining an adjustment parameter according to skeleton detection or face detection, wherein the adjustment parameter is used to control a driving degree of the first animation sample, the second animation sample or the third animation sample; The model units in the output augmented reality model are adjusted according to the adjustment parameters.

7. The method according to any one of claims 1 to 6, characterized in that The model unit is a cube unit; the augmented reality model is a building model; and the building model is composed of a plurality of the cube units.

8. An animation generating device, characterized in that: Applicable to shaders, including: Animation sample acquisition module, used to acquire animation samples of model units; An external interaction parameter acquisition module, used to acquire external interaction parameters of an augmented reality model, wherein the augmented reality model is composed of a plurality of the model units; A driving module, configured to output the augmented reality model and drive the animation sample of the model unit in the output augmented reality model according to the external interaction parameter; Wherein, the animation sample is the motion or deformation animation of the model unit; The animation sample includes a first animation sample and / or a second animation sample, wherein the first animation sample provides a preset coordinate axis setting interface or a rotation angle setting interface; the second animation sample provides a preset coordinate axis setting interface, a beating frequency setting interface or a beating amplitude setting interface; Wherein, the obtaining of the external interaction parameters of the augmented reality model includes: obtaining real-time sensing data through a terminal sensor, and converting the sensing data into external interaction parameters for driving the animation sample according to an interface provided by the animation sample; The device is also used for: if it is recognized that a corresponding augmented reality model exists for a photographed object in a current image, mapping the augmented reality model to a building image.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the animation processing method as described in any one of claims 1-7.

10. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the animation processing method according to any one of claims 1 to 7 when executed by a computer processor.