Special effect processing method and apparatus, device, computer-readable storage medium and product
By obtaining the terminal device's movement information and initial posture, and controlling the three-dimensional subject to movement operations, the problem of poor driving effect of three-dimensional objects is solved, and accurate driving and augmented reality effects are achieved in various scenarios.
Patent Information
- Application Number
- PCT/CN2023/130694
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-12-06
- Filing Date
- 2023-11-09
- Publication Date
- 2025-07-10
AI Technical Summary
The existing three-dimensional object driving effect is poor and cannot be applied to many different application scenarios.
By obtaining the special effect call request, the initial attitude and follow mechanism of the three-dimensional subject in the target special effect relative to the terminal device is determined, and combined with the movement information collected by the terminal device, the three-dimensional subject is controlled to perform movement operations, obtain the target three-dimensional motion trajectory, and display it on the terminal device.
The movement effect of the three-dimensional subject is consistent with the terminal equipment, the driving effect and applicable scenes of the three-dimensional object are improved, and the real experience is enhanced.
Smart Images

Figure CN2023130694_10072025_PF_FP_ABST
Abstract
Description
Special effects processing method, device, equipment, computer-readable storage medium and product
[0001] This application claims priority to the Chinese invention patent application with application number 202211559301.9 filed on December 6, 2022, and titled “Special effects processing method, device, equipment, computer-readable storage medium and product”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present disclosure relate to the field of image processing technology, and in particular to a special effects processing method, apparatus, device, computer-readable storage medium, and product. Background Art
[0003] With the improvement of terminal device hardware performance and the continuous advancement of artificial intelligence technology, virtual reality is being used more and more in real life.
[0004] When driving 3D objects in virtual reality, existing technologies typically use key point information to map the object's transformation matrix to the transformation matrix of the key point information returned by the algorithm to achieve the desired driving effect. Alternatively, a script-driven approach involves writing a transformation function and assigning the returned matrix to the 3D object for each frame. Alternatively, a pre-made animation configuration file can be used in the animation area to directly play the animation system to achieve the desired driving effect.
[0005] However, the above solutions for driving three-dimensional objects often have poor effects, and each solution is limited by the application scenario and cannot be applied to a variety of different application scenarios.
[0006] Summary of the Invention
[0007] The embodiments of the present disclosure provide a special effects processing method, device, equipment, computer-readable storage medium and product for solving the technical problem of poor driving effect of existing three-dimensional objects.
[0008] In a first aspect, an embodiment of the present disclosure provides a special effects processing method, including:
[0009] Obtaining a special effect calling request, wherein the special effect calling request includes a target special effect;
[0010] Determining an initial posture and a following mechanism of the three-dimensional subject in the target special effect relative to the terminal device according to the special effect calling request;
[0011] Acquiring mobile information collected by the terminal device;
[0012] Controlling the three-dimensional subject to move according to the initial posture, the following mechanism, and the movement information to obtain a target three-dimensional motion trajectory;
[0013] The three-dimensional motion trajectory of the target is displayed on the terminal device.
[0014] In a second aspect, an embodiment of the present disclosure provides a special effects processing device, including:
[0015] An acquisition module, configured to acquire a special effect call request, wherein the special effect call request includes a target special effect;
[0016] A determination module, configured to determine an initial posture and a following mechanism of the three-dimensional subject in the target special effect relative to the terminal device according to the special effect call request;
[0017] A mobile information acquisition module, used to acquire the mobile information collected by the terminal device;
[0018] a control module, configured to control the three-dimensional subject to perform a movement operation according to the initial posture, the following mechanism, and the movement information, so as to obtain a target three-dimensional motion trajectory;
[0019] A display module is configured to display the three-dimensional motion trajectory of the target on the terminal device.
[0020] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0021] The memory stores computer-executable instructions;
[0022] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the special effects processing method described in the first aspect and various possible designs of the first aspect.
[0023] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the special effects processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0024] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the special effects processing method described in the first aspect and various possible designs of the first aspect.
[0025] The special effects processing method, apparatus, device, computer-readable storage medium, and product provided in this embodiment determine the initial posture and following mechanism of the three-dimensional subject in the target special effect relative to the terminal device after receiving a special effect call request. The method also obtains movement information collected by the terminal device and controls the movement of the three-dimensional subject based on the initial posture, following mechanism, and movement information. The method then assigns the translation and rotation information collected by the terminal device to the three-dimensional subject, ensuring that the motion effect of the three-dimensional subject remains consistent with that of the terminal device. This allows the three-dimensional subject to follow the movement of the terminal device in real space, achieving an augmented reality effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0027] FIG1A is a diagram of the system architecture on which the present disclosure is based;
[0028] FIG1B is another system architecture diagram based on the present disclosure;
[0029] FIG2 is a schematic diagram of a flow chart of a special effects processing method provided by an embodiment of the present disclosure;
[0030] FIG3 is a schematic flow chart of a special effects processing method provided by another embodiment of the present disclosure;
[0031] FIG4 is a schematic diagram of a first initial posture provided by an embodiment of the present disclosure;
[0032] FIG5 is a schematic diagram of a second initial posture provided by an embodiment of the present disclosure;
[0033] FIG6 is a schematic diagram of a third initial posture provided by an embodiment of the present disclosure;
[0034] FIG7 is a schematic flow chart of a special effects processing method provided by another embodiment of the present disclosure;
[0035] FIG8 is a schematic flow chart of a special effects processing method provided by yet another embodiment of the present disclosure;
[0036] FIG9 is a schematic structural diagram of a special effects processing device provided by an embodiment of the present disclosure;
[0037] FIG10 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0038] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0039] In order to solve the technical problem of poor driving effect of existing three-dimensional objects, the present disclosure provides a special effects processing method, device, equipment, computer-readable storage medium and product.
[0040] It should be noted that the special effects processing method, device, equipment, computer-readable storage medium and product provided by the present disclosure can be applied to any three-dimensional object-driven scene.
[0041] Common methods for driving 3D objects typically determine key point information for the object and then achieve the desired driving effect through matrix transformation based on this key point information. However, these methods often fail to accurately align the movement of the terminal device, resulting in a mismatch between the driving effect and the terminal device's movement, and poor display quality.
[0042] In the process of solving the above technical problems, the inventors discovered through research that in order to improve the driving effect of three-dimensional objects and make the movement trajectory of the three-dimensional objects match the movement of the terminal device, the movement information collected by the preset gyroscope in the terminal device can be obtained, and the three-dimensional object can be driven according to the movement information and the initial posture corresponding to the target special effect and the following mechanism.
[0043] Figure 1A is a diagram of the system architecture underlying the present disclosure. As shown in Figure 1A , the system underlying the present disclosure includes at least a terminal device 11 and a server 12. The server 12 may be provided with a special effects processing device. The special effects processing device may be written in a language such as C / C++, Java, Shell, or Python. The terminal device 11 may be, for example, a desktop computer or tablet computer.
[0044] Based on the above system architecture, a user can select a target special effect to be displayed on terminal device 11. Terminal device 11 then sends a special effect call request to server 12 based on the target special effect. Server 12 can then determine the initial posture and tracking mechanism of the three-dimensional object in the target special effect relative to the terminal device based on the special effect call request. The three-dimensional object can then be driven based on the movement information collected by terminal device 11, the initial posture, and the tracking mechanism.
[0045] Optionally, FIG1B is another system architecture diagram based on the present disclosure. As shown in FIG1B , the system architecture diagram based on the present disclosure includes at least a terminal device 13. The terminal device 13 may be provided with a special effects processing device. The special effects processing device may be written in a language such as C / C++, Java, Shell, or Python. The terminal device 13 includes but is not limited to a desktop computer, a tablet computer, a mobile phone, etc.
[0046] Based on the above system architecture, users can select target effects on terminal device 13 based on their actual needs. After obtaining the target effect selected by the user, terminal device 13 can further determine the initial posture and following mechanism corresponding to the target effect. Terminal device 13 can collect movement information through one or more pre-set sensors. Based on the initial posture, following mechanism, and movement information, terminal device 13 can then control the movement of the 3D subject, obtain the target 3D motion trajectory, and display the target 3D motion trajectory.
[0047] FIG2 is a flow chart of a special effects processing method provided by an embodiment of the present disclosure. As shown in FIG2 , the method includes:
[0048] Step 201: Obtain a special effect calling request, where the special effect calling request includes a target special effect.
[0049] The execution entity of this embodiment is a special effects processing device, which can be coupled to a server. The server can communicate with a terminal device, thereby obtaining movement information collected by the terminal device to control the three-dimensional object. Optionally, the special effects processing device can also be coupled to the terminal device, thereby controlling the three-dimensional object based on the movement information collected by the terminal device.
[0050] In this embodiment, the target application can provide users with a variety of special effects, each of which can include a 3D subject and a 3D object. Users can select the target special effect they want to display in the target application based on their actual needs. For example, if the target special effect is to drive a pot to cook, the 3D subject can be the pot, and the 3D object can be the dish inside the pot.
[0051] The server of the target application may initiate a special effect calling request based on the target special effect. Accordingly, the special effect processing device may obtain the special effect calling request, wherein the special effect calling request includes the target special effect.
[0052] Step 202: Determine the initial posture and following mechanism of the three-dimensional subject in the target special effect relative to the terminal device according to the special effect calling request.
[0053] In this embodiment, to ensure the display quality of special effects, a corresponding initial posture and follow-up mechanism can be pre-set for each special effect. The initial posture is used to control the rotation of the 3D subject and / or 3D object, and the follow-up mechanism is used to control the movement of the 3D subject and / or 3D object.
[0054] Therefore, after obtaining the special effect calling request, the initial posture and following mechanism of the three-dimensional subject in the target special effect relative to the terminal device can be determined according to the special effect calling request.
[0055] Step 203: Acquire the movement information collected by the terminal device.
[0056] In this embodiment, in order to make the three-dimensional object follow the movement of the terminal device in real space, the three-dimensional object can be controlled according to the movement information collected by the terminal device. Therefore, the movement information collected by the terminal device can be obtained.
[0057] It should be noted that a variety of sensors for collecting movement information may be pre-installed in the terminal device, and movement information collected by any one or more of the sensors may be obtained.
[0058] Step 204: Control the three-dimensional subject to perform a movement operation according to the initial posture, the following mechanism, and the movement information to obtain a target three-dimensional motion trajectory.
[0059] In this embodiment, after determining the initial posture, following mechanism and movement information collected by the terminal device corresponding to the target special effect, the three-dimensional subject can be controlled to perform movement operations based on the initial posture, following mechanism and movement information to obtain the target three-dimensional motion trajectory.
[0060] Step 205: Display the three-dimensional motion trajectory of the target on the terminal device.
[0061] In this embodiment, after the target 3D motion trajectory of the 3D subject is acquired, the target 3D motion trajectory can be displayed on the terminal device, so that the motion effect of the 3D subject can be consistent with that of the terminal device.
[0062] Optionally, the movement information collected by a preset gyroscope in the terminal device may be obtained.
[0063] A gyroscope is a device that uses the angular moment of a high-speed rotating object to detect angular motion about one or two axes orthogonal to its rotational axis. By assigning this motion information to a 3D object, the object's trajectory can be precisely matched to the terminal device, improving the display quality of the target special effects.
[0064] The special effects processing method provided in this embodiment determines the initial posture and following mechanism of the 3D subject in the target special effect relative to the terminal device after receiving a special effects call request. It then obtains movement information collected by the terminal device and controls the movement of the 3D subject based on the initial posture, following mechanism, and movement information. This allows the translation and rotation information collected by the terminal device to be assigned to the 3D subject, ensuring that the motion effect of the 3D subject remains consistent with that of the terminal device. This allows the 3D subject to follow the movement of the terminal device in real space, achieving an augmented reality effect.
[0065] FIG3 is a flow chart of a special effect processing method provided by another embodiment of the present disclosure. Based on any of the above embodiments, the movement information includes rotation information and displacement information. As shown in FIG3 , step 204 includes:
[0066] Step 301: Control the three-dimensional body to perform a rotation operation according to the rotation information and the initial posture.
[0067] Step 302: Control the three-dimensional subject to move according to the displacement information and the following mechanism to obtain a target three-dimensional motion trajectory.
[0068] In this embodiment, the movement information may specifically include rotation information and displacement information. The rotation information may represent the rotation angle of the terminal device, and the displacement information may represent the movement distance of the terminal device.
[0069] After obtaining the movement information, the 3D object can be controlled to rotate based on the rotation information and initial posture, ensuring that the rotation of the 3D object is consistent with that of the terminal device. The 3D object can also be controlled to move based on the displacement information and the following mechanism, ensuring that the movement of the 3D object is consistent with that of the terminal device. By controlling the movement and rotation of the 3D object based on the movement information, a 3D motion trajectory that is consistent with the movement of the terminal device can be obtained.
[0070] The special effects processing method provided in this embodiment controls the three-dimensional subject to rotate according to the rotation information and the initial posture, and controls the three-dimensional subject to move according to the displacement information and the following mechanism, thereby ensuring that the obtained target three-dimensional motion trajectory is more consistent with the effect of the terminal device moving in the real space, thereby improving the authenticity of the three-dimensional object movement.
[0071] Further, based on any of the above embodiments, the initial posture includes any one of a first initial posture, a second initial posture and a third initial posture.
[0072] The first initial posture is configured such that a fixed angle exists between the three-dimensional subject and other three-dimensional objects in the target special effect and the terminal device, and the gravity direction of the three-dimensional subject is consistent with the gravity direction of the terminal device.
[0073] The second initial posture is configured so that the angle between the three-dimensional body and the terminal device is not fixed, and the gravity direction of the three-dimensional body is consistent with the gravitational field of the earth.
[0074] The third initial posture is configured such that there is a fixed angle between the three-dimensional body and the terminal device, the gravity direction of the three-dimensional body is consistent with the gravity direction of the terminal device, and other three-dimensional objects in the target special effect do not follow the movement of the terminal device.
[0075] In this embodiment, the initial posture includes a first initial posture, a second initial posture, and a third initial posture.
[0076] The first initial posture is configured so that a fixed angle exists between the 3D subject and other 3D objects in the target special effect and the terminal device, and the direction of gravity of the 3D subject is consistent with the direction of gravity of the terminal device. In the first initial posture, the coordinate system of the other 3D objects is consistent with the coordinate system of the 3D subject and the virtual space. To ensure that this solution can achieve a realistic experience, the 3D subject, other 3D objects, and the terminal device can be considered as a whole. The initial difference between the virtual space coordinate system and the real space coordinate system should be a fixed value, regardless of the initial state of the terminal device.
[0077] The second initial posture is configured so that the angle between the three-dimensional subject and the terminal device is not fixed, and the gravity direction of the three-dimensional subject is consistent with the gravitational field of the earth. In the case of the second initial posture, the coordinate system of the three-dimensional subject and other three-dimensional objects is consistent with the coordinate system of the real empty space. In order to ensure that this solution can achieve a realistic experience, the three-dimensional subject and other three-dimensional objects should be regarded as a whole, and the relative rotation deviation between the three-dimensional subject and the terminal plane should be calculated in real time based on the terminal rotation information, so as to adjust the posture of the three-dimensional subject. This solution can ensure that the physical performance of the virtual object always conforms to the user's cognitive effect in the real space, but it will untie the three-dimensional subject from the terminal device, and can be used in scenarios where the positional relationship between the two is not restricted by common sense, such as driving pots to cook.
[0078] The third initial posture is configured so that there is a fixed angle between the three-dimensional body and the terminal device, the gravity direction of the three-dimensional body is consistent with the gravity direction of the terminal device, and other three-dimensional objects in the target special effects do not follow the movement of the terminal device. In the case of the third initial posture, the coordinate system of other three-dimensional objects is consistent with the coordinate system of the real empty space. In order to ensure that this solution can achieve a realistic experience, the three-dimensional body and the terminal should be regarded as a whole, and the three-dimensional body should always be consistent with the terminal posture. This solution can ensure that the physical performance of other three-dimensional objects interacting with the three-dimensional body always conforms to the user's cognitive effect in the real space, and is suitable for driving handheld objects such as pistols.
[0079] The special effects processing method provided in this embodiment can achieve accurate driving of three-dimensional objects in a variety of different scenarios by setting a variety of different initial postures, thereby improving the applicable scenarios of the target special effects.
[0080] Optionally, based on any of the above embodiments, the initial posture includes a first initial posture, and the first initial posture is configured such that a fixed angle exists between the three-dimensional subject and other three-dimensional objects in the target special effect and the terminal device, and the gravity direction of the three-dimensional subject is consistent with the gravity direction of the terminal device; step 301 includes:
[0081] When the initial posture is the first initial posture, the three-dimensional main body and other three-dimensional objects are controlled to rotate synchronously with the terminal device according to the rotation information.
[0082] In this embodiment, when the initial posture is the first initial posture, the coordinate system of the other 3D objects is consistent with the coordinate system of the 3D main body and the virtual space. To ensure that this solution can achieve a realistic experience, the 3D main body, other 3D objects, and the terminal device can be treated as a whole, and the 3D main body and other 3D objects can be controlled to rotate synchronously with the terminal device based on the rotation information.
[0083] Figure 4 is a schematic diagram of a first initial posture provided by an embodiment of the present disclosure. As shown in Figure 4, a fixed angle exists between a 3D subject 41 and other 3D objects 42 in the target special effect and a terminal device 43. The direction of gravity 44 of the 3D subject 41 is consistent with the direction of gravity 45 of the terminal device. When the terminal device 43 moves, the 3D subject 41 and other 3D objects 42 in the target special effect rotate synchronously with the terminal device 43.
[0084] Optionally, based on any of the foregoing embodiments, the initial posture includes a second initial posture, and the second initial posture is configured such that an angle between the three-dimensional body and the terminal device is not fixed, and a gravity direction of the three-dimensional body is consistent with the gravitational field of the earth; step 301 includes:
[0085] When the initial posture is the second initial posture, the three-dimensional main body and other three-dimensional objects are controlled to maintain their initial positions according to the rotation information, and do not rotate synchronously with the terminal device.
[0086] In this embodiment, when the initial posture is the second initial posture, the coordinate system of the 3D subject and other 3D objects is consistent with the coordinate system of real empty space. To ensure a realistic experience, the 3D subject and other 3D objects should be treated as a whole. The 3D subject and other 3D objects should be controlled based on the rotation information to maintain their initial positions and not rotate synchronously with the terminal device.
[0087] FIG5 is a schematic diagram of a second initial posture provided by an embodiment of the present disclosure. As shown in FIG5 , the angle between the three-dimensional object 51 and the terminal device 52 is not fixed, and the direction of gravity 53 of the three-dimensional object 51 is consistent with the Earth's gravitational field. When the terminal device 52 moves, the three-dimensional object 51 does not rotate synchronously with the terminal device 52.
[0088] Optionally, based on any of the above embodiments, the initial posture includes a third initial posture, and the third initial posture is configured such that a fixed angle exists between the three-dimensional subject and the terminal device, the gravity direction of the three-dimensional subject is consistent with the gravity direction of the terminal device, and other three-dimensional objects in the target special effect do not follow the movement of the terminal device; step 301 includes:
[0089] When the initial posture is the third initial posture, the three-dimensional body is controlled to rotate synchronously with the terminal device according to the rotation information, and the other three-dimensional objects are controlled to maintain their initial positions and not rotate synchronously with the terminal device.
[0090] In this embodiment, when the initial posture is the third initial posture, the coordinate system of other three-dimensional objects is consistent with the coordinate system of real empty space. To ensure a realistic experience, the three-dimensional object and the terminal should be considered as a whole, and the three-dimensional object should always maintain the same posture as the terminal. Therefore, based on the rotation information, the three-dimensional object can be controlled to rotate synchronously with the terminal device, while other three-dimensional objects can be controlled to maintain their initial positions and not rotate synchronously with the terminal device.
[0091] Figure 6 is a schematic diagram of the third initial posture provided by an embodiment of the present disclosure. As shown in Figure 6, there is a fixed angle between the three-dimensional body 61 and the terminal device 62, and the gravity direction 63 of the three-dimensional body 61 is consistent with the gravity direction 64 of the terminal device 62. When the terminal device 62 moves, the three-dimensional body 61 moves with the terminal device 62, and other three-dimensional objects 65 in the target special effects do not follow the movement of the terminal device 62.
[0092] The special effects processing method provided in this embodiment drives the 3D subject based on different initial postures and rotation information, thereby enabling driving operations of the 3D subject in different application scenarios. Furthermore, it can accurately drive the 3D subject in different special effects in different application scenarios, optimizing the display quality of the special effects.
[0093] FIG7 is a flowchart of a special effects processing method provided by another embodiment of the present disclosure. Based on any of the above embodiments, as shown in FIG7 , step 302 includes:
[0094] Step 701: Determine a target position according to the following mechanism and the displacement information.
[0095] Step 702: Control the three-dimensional body to move to the target position.
[0096] In this embodiment, after determining the following mechanism corresponding to the target special effect and the displacement information collected by the terminal device, in order to ensure that the movement of the 3D subject is consistent with the terminal device, the target position can be determined based on the following mechanism and the displacement information. The 3D subject is controlled to move to the target position.
[0097] The special effects processing method provided in this embodiment determines the target position according to the following mechanism and displacement information, and controls the movement of the three-dimensional subject according to the target position, thereby being able to accurately control the three-dimensional subject.
[0098] Further, based on any of the above embodiments, step 302 includes:
[0099] The three-dimensional object is controlled to move according to the displacement information, and other three-dimensional objects are controlled to maintain their initial positions.
[0100] Alternatively, step 302 includes:
[0101] The three-dimensional object and the other three-dimensional objects are controlled to move according to the displacement information.
[0102] In this embodiment, the following mechanism may include a first following mechanism and a second following mechanism. When the following mechanism is the first following mechanism, the three-dimensional object can be controlled to move based on the displacement information, while other three-dimensional objects can be controlled to maintain their initial positions. For example, if the target special effect is a pot cooking effect, the three-dimensional pot can be moved based on the displacement information, while the food inside the pot, i.e., the three-dimensional object, can remain stationary with the terminal device, thereby enabling display effects such as "stirring the wok."
[0103] When the following mechanism is the second following mechanism, the three-dimensional object and other three-dimensional objects can be controlled to move according to the displacement information.
[0104] The special effects processing method provided in this embodiment, by pre-setting different following mechanisms, can achieve accurate control of the three-dimensional subject in different application scenarios. Furthermore, it can accurately drive the three-dimensional subject in different special effects in different application scenarios, optimizing the display effect of the special effects.
[0105] Furthermore, based on any of the above embodiments, after step 302, the following steps may be further included:
[0106] Calculate in real time whether the movement range of the three-dimensional body is greater than a preset posture change threshold.
[0107] If so, the three-dimensional body is controlled to move according to the posture change threshold.
[0108] In this embodiment, to prevent the 3D object from moving significantly beyond the screen display range when the terminal device is moved drastically, a posture change threshold can be pre-set. The system then calculates in real time whether the 3D object's range of movement exceeds the preset posture change threshold. If so, the 3D object is controlled to move according to the posture change threshold. Otherwise, the 3D object can move within the specified range.
[0109] The special effects processing method provided in this embodiment pre-sets a posture change threshold and controls the movement of the three-dimensional subject according to the posture change threshold, thereby avoiding the problem of poor display effect caused by excessive movement range of the three-dimensional subject, and further optimizing the display effect of the special effects.
[0110] FIG8 is a flowchart of a special effects processing method provided by another embodiment of the present disclosure. Based on any of the above embodiments, step 203 includes:
[0111] Step 801: Acquire multiple frames of original data collected by the terminal device.
[0112] Step 802: Perform interpolation processing on the original data to obtain the movement information.
[0113] In this embodiment, since the multiple frames of raw data collected by the terminal device are often not very accurate, controlling the three-dimensional object based on this raw data will result in poor display effects. Therefore, multiple frames of raw data collected by the terminal device can be obtained and interpolated to obtain movement information.
[0114] Further, based on any of the above embodiments, step 802 includes:
[0115] The original data of the current frame and the original data of a preset number of frames before the original data of the current frame are obtained.
[0116] An average value between the original data of the current frame and the original data of the preset number of frames is calculated to obtain the movement information.
[0117] In this embodiment, the raw data of the current frame and the raw data of a preset number of frames before the current frame can be obtained, and the average value between the raw data of the current frame and the raw data of the preset number of frames can be calculated to implement interpolation processing of multiple frames of raw data to obtain movement information.
[0118] The special effects processing method provided in this embodiment obtains movement information by interpolating the original data after acquiring multiple frames of original data collected by the terminal device, thereby improving the accuracy of three-dimensional subject driving.
[0119] Figure 9 is a schematic structural diagram of a special effects processing device provided by an embodiment of the present disclosure. As shown in Figure 9, the device includes: an acquisition module 91, a determination module 92, a movement information acquisition module 93, a control module 94, and a display module 95. Among them, the acquisition module 91 is used to obtain a special effect call request, and the special effect call request includes a target special effect. The determination module 92 is used to determine the initial posture and following mechanism of the three-dimensional subject in the target special effect relative to the terminal device according to the special effect call request. The movement information acquisition module 93 is used to obtain the movement information collected by the terminal device. The control module 94 is used to control the three-dimensional subject to perform movement operations according to the initial posture, following mechanism and the movement information to obtain the target three-dimensional motion trajectory. The display module 95 is used to display the target three-dimensional motion trajectory on the terminal device.
[0120] Furthermore, based on any of the above embodiments, the movement information includes rotation information and displacement information, and the control module is configured to: control the three-dimensional subject to rotate according to the rotation information and the initial posture; and control the three-dimensional subject to move according to the displacement information and the following mechanism to obtain a target three-dimensional motion trajectory.
[0121] Further, based on any of the above embodiments, the initial posture includes any one of a first initial posture, a second initial posture and a third initial posture. The first initial posture is configured so that a fixed angle exists between the three-dimensional body and other three-dimensional objects in the target special effect and the terminal device, and the gravity direction of the three-dimensional body is consistent with the gravity direction of the terminal device. The second initial posture is configured so that the angle between the three-dimensional body and the terminal device is not fixed, and the gravity direction of the three-dimensional body is consistent with the gravitational field of the earth. The third initial posture is configured so that a fixed angle exists between the three-dimensional body and the terminal device, the gravity direction of the three-dimensional body is consistent with the gravity direction of the terminal device, and other three-dimensional objects in the target special effect do not follow the movement of the terminal device.
[0122] Furthermore, based on any of the above embodiments, the control module is used to: when the initial posture is the first initial posture, control the three-dimensional body and other three-dimensional objects to rotate synchronously with the terminal device according to the rotation information.
[0123] Furthermore, based on any of the above embodiments, the control module is used to: when the initial posture is the second initial posture, control the three-dimensional body and other three-dimensional objects to maintain their initial positions according to the rotation information, and not to rotate synchronously with the terminal device.
[0124] Furthermore, based on any of the above embodiments, the control module is used to: when the initial posture is the third initial posture, control the three-dimensional body to rotate synchronously with the terminal device according to the rotation information, and control the other three-dimensional objects to maintain their initial positions and not rotate synchronously with the terminal device.
[0125] Furthermore, based on any of the above embodiments, the control module is configured to: determine a target position according to the following mechanism and the displacement information, and control the three-dimensional body to move to the target position.
[0126] Furthermore, based on any of the above embodiments, the control module is configured to: control the movement of the three-dimensional object based on the displacement information, and control the other three-dimensional objects to maintain their initial positions. Alternatively, the control module is configured to: control the movement of the three-dimensional object and the other three-dimensional objects based on the displacement information.
[0127] Furthermore, based on any of the above embodiments, the apparatus further includes: a calculation module for calculating in real time whether the movement range of the three-dimensional object is greater than a preset posture change threshold; and a processing module for controlling the three-dimensional object to move according to the posture change threshold if the range is greater than a preset posture change threshold.
[0128] Furthermore, based on any of the above embodiments, the movement information acquisition module is configured to: acquire multiple frames of original data collected by the terminal device, and perform interpolation processing on the original data to obtain the movement information.
[0129] Furthermore, based on any of the above embodiments, the motion information acquisition module is configured to: acquire raw data of a current frame and raw data of a preset number of frames prior to the raw data of the current frame, and calculate an average value between the raw data of the current frame and the raw data of the preset number of frames to obtain the motion information.
[0130] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0131] In order to implement the above embodiment, an embodiment of the present disclosure further provides an electronic device, including: a processor and a memory.
[0132] The memory stores computer-executable instructions.
[0133] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the special effect processing method as described in any of the above embodiments.
[0134] FIG10 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG10 , the electronic device 1000 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG10 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0135] As shown in Figure 10, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. Various programs and data required for the operation of the electronic device 1000 are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0136] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although FIG10 illustrates an electronic device 1000 having various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0137] 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 includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0138] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0139] An embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the special effects processing method described in any of the above embodiments is implemented.
[0140] An embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the special effects processing method as described in any of the above embodiments.
[0141] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0142] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0143] 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 stand-alone 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., via the Internet using an Internet service provider).
[0144] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0145] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0146] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0147] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0148] In a first aspect, according to one or more embodiments of the present disclosure, a special effects processing method is provided, comprising:
[0149] Obtaining a special effect calling request, wherein the special effect calling request includes a target special effect;
[0150] Determining an initial posture and a following mechanism of the three-dimensional subject in the target special effect relative to the terminal device according to the special effect calling request;
[0151] Acquiring mobile information collected by the terminal device;
[0152] Controlling the three-dimensional subject to move according to the initial posture, the following mechanism, and the movement information to obtain a target three-dimensional motion trajectory;
[0153] The three-dimensional motion trajectory of the target is displayed on the terminal device.
[0154] According to one or more embodiments of the present disclosure, the movement information includes rotation information and displacement information, and controlling the three-dimensional subject to perform a movement operation based on the initial posture, the following mechanism, and the movement information to obtain a target three-dimensional motion trajectory includes:
[0155] Controlling the three-dimensional body to perform a rotation operation according to the rotation information and the initial posture;
[0156] The three-dimensional body is controlled to move according to the displacement information and the following mechanism to obtain a target three-dimensional motion trajectory.
[0157] According to one or more embodiments of the present disclosure, the initial posture includes any one of a first initial posture, a second initial posture, and a third initial posture;
[0158] The first initial posture is configured such that a fixed angle exists between the three-dimensional subject and other three-dimensional objects in the target special effect and the terminal device, and the gravity direction of the three-dimensional subject is consistent with the gravity direction of the terminal device;
[0159] The second initial posture is configured such that an angle between the three-dimensional body and the terminal device is not fixed, and a gravity direction of the three-dimensional body is consistent with the gravitational field of the earth;
[0160] The third initial posture is configured such that there is a fixed angle between the three-dimensional body and the terminal device, the gravity direction of the three-dimensional body is consistent with the gravity direction of the terminal device, and other three-dimensional objects in the target special effect do not follow the movement of the terminal device.
[0161] According to one or more embodiments of the present disclosure, controlling the three-dimensional body to perform a rotation operation according to the rotation information and the initial posture includes:
[0162] When the initial posture is the first initial posture, the three-dimensional main body and other three-dimensional objects are controlled to rotate synchronously with the terminal device according to the rotation information.
[0163] According to one or more embodiments of the present disclosure, controlling the three-dimensional body to perform a rotation operation according to the rotation information and the initial posture includes:
[0164] When the initial posture is the second initial posture, the three-dimensional main body and other three-dimensional objects are controlled to maintain their initial positions according to the rotation information, and do not rotate synchronously with the terminal device.
[0165] According to one or more embodiments of the present disclosure, controlling the three-dimensional body to perform a rotation operation according to the rotation information and the initial posture includes:
[0166] When the initial posture is the third initial posture, the three-dimensional body is controlled to rotate synchronously with the terminal device according to the rotation information, and the other three-dimensional objects are controlled to maintain their initial positions and not rotate synchronously with the terminal device.
[0167] According to one or more embodiments of the present disclosure, controlling the three-dimensional subject to perform a movement operation according to the displacement information and the following mechanism includes:
[0168] determining a target position according to the following mechanism and the displacement information;
[0169] The three-dimensional body is controlled to move to the target position.
[0170] According to one or more embodiments of the present disclosure, controlling the three-dimensional subject to perform a movement operation according to the displacement information and the following mechanism includes:
[0171] controlling the three-dimensional object to move according to the displacement information, and controlling other three-dimensional objects to maintain their initial positions;
[0172] Alternatively, controlling the three-dimensional body to perform a movement operation according to the displacement information and the following mechanism includes:
[0173] The three-dimensional object and the other three-dimensional objects are controlled to move according to the displacement information.
[0174] According to one or more embodiments of the present disclosure, after controlling the three-dimensional subject to move according to the initial posture, the following mechanism, and the movement information, the method further includes:
[0175] Calculating in real time whether the movement range of the three-dimensional subject is greater than a preset posture change threshold;
[0176] If so, the three-dimensional body is controlled to move according to the posture change threshold.
[0177] According to one or more embodiments of the present disclosure, obtaining the movement information collected by the terminal device includes:
[0178] Acquire multiple frames of raw data collected by the terminal device;
[0179] Interpolation processing is performed on the original data to obtain the movement information.
[0180] According to one or more embodiments of the present disclosure, performing interpolation processing on the original data to obtain the movement information includes:
[0181] Acquire the original data of the current frame and the original data of a preset number of frames before the original data of the current frame;
[0182] An average value between the original data of the current frame and the original data of the preset number of frames is calculated to obtain the movement information.
[0183] In a second aspect, according to one or more embodiments of the present disclosure, a special effects processing device is provided, comprising:
[0184] An acquisition module, configured to acquire a special effect call request, wherein the special effect call request includes a target special effect;
[0185] A determination module, configured to determine an initial posture and a following mechanism of the three-dimensional subject in the target special effect relative to the terminal device according to the special effect call request;
[0186] A mobile information acquisition module, used to acquire the mobile information collected by the terminal device;
[0187] a control module, configured to control the three-dimensional subject to perform a movement operation according to the initial posture, the following mechanism, and the movement information, so as to obtain a target three-dimensional motion trajectory;
[0188] A display module is configured to display the three-dimensional motion trajectory of the target on the terminal device.
[0189] According to one or more embodiments of the present disclosure, the movement information includes rotation information and displacement information, and the control module is configured to:
[0190] Controlling the three-dimensional body to perform a rotation operation according to the rotation information and the initial posture;
[0191] The three-dimensional body is controlled to move according to the displacement information and the following mechanism to obtain a target three-dimensional motion trajectory.
[0192] According to one or more embodiments of the present disclosure, the initial posture includes any one of a first initial posture, a second initial posture, and a third initial posture;
[0193] The first initial posture is configured such that a fixed angle exists between the three-dimensional subject and other three-dimensional objects in the target special effect and the terminal device, and the gravity direction of the three-dimensional subject is consistent with the gravity direction of the terminal device;
[0194] The second initial posture is configured such that an angle between the three-dimensional body and the terminal device is not fixed, and a gravity direction of the three-dimensional body is consistent with the gravitational field of the earth;
[0195] The third initial posture is configured such that there is a fixed angle between the three-dimensional body and the terminal device, the gravity direction of the three-dimensional body is consistent with the gravity direction of the terminal device, and other three-dimensional objects in the target special effect do not follow the movement of the terminal device.
[0196] According to one or more embodiments of the present disclosure, the control module is configured to:
[0197] When the initial posture is the first initial posture, the three-dimensional main body and other three-dimensional objects are controlled to rotate synchronously with the terminal device according to the rotation information.
[0198] According to one or more embodiments of the present disclosure, the control module is configured to:
[0199] When the initial posture is the second initial posture, the three-dimensional main body and other three-dimensional objects are controlled to maintain their initial positions according to the rotation information, and do not rotate synchronously with the terminal device.
[0200] According to one or more embodiments of the present disclosure, the control module is configured to:
[0201] When the initial posture is the third initial posture, the three-dimensional body is controlled to rotate synchronously with the terminal device according to the rotation information, and the other three-dimensional objects are controlled to maintain their initial positions and not rotate synchronously with the terminal device.
[0202] According to one or more embodiments of the present disclosure, the control module is configured to:
[0203] determining a target position according to the following mechanism and the displacement information;
[0204] The three-dimensional body is controlled to move to the target position.
[0205] According to one or more embodiments of the present disclosure, the control module is configured to:
[0206] controlling the three-dimensional object to move according to the displacement information, and controlling other three-dimensional objects to maintain their initial positions;
[0207] Alternatively, the control module is configured to:
[0208] The three-dimensional object and the other three-dimensional objects are controlled to move according to the displacement information.
[0209] According to one or more embodiments of the present disclosure, the apparatus further includes:
[0210] A calculation module, configured to calculate in real time whether the movement range of the three-dimensional subject is greater than a preset posture change threshold;
[0211] The processing module is configured to, if yes, control the three-dimensional body to move according to the posture change threshold.
[0212] According to one or more embodiments of the present disclosure, the movement information acquisition module is configured to:
[0213] Acquire multiple frames of raw data collected by the terminal device;
[0214] Interpolation processing is performed on the original data to obtain the movement information.
[0215] According to one or more embodiments of the present disclosure, the movement information acquisition module is configured to:
[0216] Acquire the original data of the current frame and the original data of a preset number of frames before the original data of the current frame;
[0217] An average value between the original data of the current frame and the original data of the preset number of frames is calculated to obtain the movement information.
[0218] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0219] The memory stores computer-executable instructions;
[0220] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the special effects processing method described in the first aspect and various possible designs of the first aspect.
[0221] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the special effects processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0222] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the special effects processing method described in the first aspect and various possible designs of the first aspect.
[0223] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0224] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0225] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A special effect processing method, characterized in that, Including: Obtain a special effect call request, where the special effect call request includes a target special effect; Determine the initial pose and following mechanism of the three-dimensional object in the target special effect relative to the terminal device according to the special effect call request; Obtain the movement information collected by the terminal device; Control the three-dimensional object to perform a movement operation according to the initial pose, following mechanism, and the movement information to obtain a target three-dimensional movement trajectory; Display the target three-dimensional movement trajectory on the terminal device.
2. The method according to claim 1, wherein The movement information includes rotation information and displacement information. The controlling the three-dimensional object to perform a movement operation according to the initial pose, following mechanism, and the movement information to obtain a target three-dimensional movement trajectory includes: Controlling the three-dimensional object to perform a rotation operation according to the rotation information and the initial pose; Controlling the three-dimensional object to perform a movement operation according to the displacement information and the following mechanism to obtain a target three-dimensional movement trajectory.
3. The method according to claim 2, wherein The controlling the three-dimensional object to perform a rotation operation according to the rotation information and the initial pose includes: When the initial pose is a preset first initial pose, controlling the three-dimensional object and other three-dimensional objects to synchronously rotate with the terminal device according to the rotation information.
4. The method according to claim 2, wherein The controlling the three-dimensional object to perform a rotation operation according to the rotation information and the initial pose includes: When the initial pose is a preset second initial pose, controlling the three-dimensional object and other three-dimensional objects to maintain their initial positions and not synchronously rotate with the terminal device according to the rotation information.
5. The method according to claim 2, wherein The controlling the three-dimensional object to perform a rotation operation according to the rotation information and the initial pose includes: When the initial pose is a preset third initial pose, controlling the three-dimensional object to synchronously rotate with the terminal device according to the rotation information, and controlling the other three-dimensional objects to maintain their initial positions and not synchronously rotate with the terminal device.
6. The method according to claim 2, wherein The controlling the three-dimensional object to perform a movement operation according to the displacement information and the following mechanism includes: Determining a target position according to the following mechanism and the displacement information; Controlling the three-dimensional object to move to the target position.
7. The method according to claim 2, characterized in that, The controlling the three-dimensional object to perform a movement operation according to the displacement information and the following mechanism includes: Controlling the three-dimensional object to move according to the displacement information and controlling the other three-dimensional objects to maintain their initial positions; Or, the controlling the three-dimensional object to perform a movement operation according to the displacement information and the following mechanism includes: Controlling the three-dimensional object and the other three-dimensional objects to move according to the displacement information.
8. The method according to any one of claims 1-7, characterized in that The initial pose includes any one of a first initial pose, a second initial pose, and a third initial pose; Wherein, the first initial pose is configured such that there is a fixed angle between the three-dimensional object and other three-dimensional objects in the target special effect and the terminal device, and the gravity direction of the three-dimensional object is consistent with the gravity direction of the terminal device; The second initial posture is configured such that the angle between the three-dimensional object and the terminal device is not fixed, and the direction of gravity of the three-dimensional object is consistent with the gravitational field of the Earth; The third initial posture is configured such that there is a fixed angle between the three-dimensional object and the terminal device, the direction of gravity of the three-dimensional object is consistent with the direction of gravity of the terminal device, and other three-dimensional objects in the target special effect do not follow the movement of the terminal device.
9. The method according to any one of claims 1-7, characterized by After controlling the three-dimensional object to perform a movement operation according to the initial posture, the following mechanism, and the movement information, it further includes: Calculating in real time whether the movement range of the three-dimensional object is greater than a preset posture change threshold; If so, controlling the three-dimensional object to perform a movement operation according to the posture change threshold.
10. The method according to any one of claims 1 to 7, characterized in that, The obtaining of the movement information collected by the terminal device includes: Obtaining multiple frames of original data collected by the terminal device; Performing interpolation processing on the original data to obtain the movement information.
11. The method according to claim 9, wherein The performing of interpolation processing on the original data to obtain the movement information includes: Obtaining the current frame of original data and the original data of a preset number of frames before the current frame of original data; Calculating the average value between the current frame of original data and the original data of the preset number of frames to obtain the movement information.
12. The method according to any one of claims 1-7, characterized in that, The obtaining of the movement information collected by the terminal device includes: Obtaining the movement information collected by a preset gyroscope in the terminal device.
13. An special effect processing device, characterized in that, It includes: An obtaining module, configured to obtain a special effect call request, where the special effect call request includes a target special effect; A determining module, configured to determine the initial posture and the following mechanism of the three-dimensional object in the target special effect relative to the terminal device according to the special effect call request; A movement information obtaining module, configured to obtain the movement information collected by the terminal device; A control module, configured to control the three-dimensional object to perform a movement operation according to the initial posture, the following mechanism, and the movement information to obtain a target three-dimensional movement trajectory; A display module, configured to display the target three-dimensional movement trajectory on the terminal device.
14. An electronic device, characterized in that, It includes: A processor and a memory; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the processor executes the special effect processing method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium, and when the processor executes the computer execution instructions, the special effect processing method according to any one of claims 1 to 12 is implemented.
16. A computer program product comprising a computer program, characterized in that, When the computer program is executed by the processor, the method for special effect processing according to any one of claims 1 to 12 is implemented.