A pointing mark special effect generation method and device, electronic equipment and storage medium

CN117258289BActive Publication Date: 2026-09-11NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311478728.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2026-09-11
Estimated Expiration
2043-11-07

AI Technical Summary

Benefits of technology

[0017] The solution adopted in this application embodiment can determine the effect emitting object and the effect target object corresponding to the directional marker effect to be generated; obtain the position information of the effect emitting object and the effect target object, as well as the first curve generation parameters corresponding to the directional marker effect to be generated; generate a directional curve from the effect emitting object to the effect target object based on the first curve generation parameters and the position information of the effect emitting object and the effect target object; obtain the rendering parameters of the directional curve, and render the directional curve according to the rendering parameters to obtain the directional marker effect. Thus, by obtaining only the required parameters, a directional curve can be generated based on the position information of the effect emitting object and the effect target object, as well as the first curve generation parameters corresponding to the directional marker effect to be generated. The directional marker effect can then be obtained by rendering the directional curve using the rendering parameters, eliminating the need to set and process a two-dimensional timing diagram, which is beneficial for improving the generation efficiency of the directional marker effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117258289B_ABST
    Figure CN117258289B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, electronic device, and storage medium for generating directional sign effects. The method includes: determining the emitting object and the target object of the directional sign effect to be generated; acquiring the position information of the emitting and target objects, and the first curve generation parameters corresponding to the directional sign effect; generating a directional curve based on the first curve generation parameters and the position information of the emitting and target objects; acquiring rendering parameters for the directional curve; and rendering the directional curve based on the rendering parameters to obtain the directional sign effect. Thus, by generating the directional curve based on the position information of the emitting and target objects and the first curve generation parameters corresponding to the directional sign effect, and then rendering the directional curve using the rendering parameters to obtain the directional sign effect, the generation efficiency of the directional sign effect can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of special effects generation technology, specifically to a method, apparatus, electronic device, and storage medium for generating directional sign effects. Background Technology

[0002] With the development of gaming technology, users have increasingly higher demands for game display effects. For example, in directional combat scenarios with a target and a launcher, more flexible directional visual effects are needed to enhance the user experience.

[0003] Currently, directional visual effects in game products are typically implemented using 2D texture effects. Specifically, 2D planar textures are used, and effects renderer scripts are used to achieve 2D dynamic effects such as movement, dissolution, showing, and hiding. However, when implementing directional visual effects based on 2D texture effects, multiple 2D timing maps need to be pre-designed and set for dynamic effects, and complex image processing is required on these timing maps, which is not conducive to improving the generation efficiency of directional marker effects. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and storage medium for generating directional sign effects. It can generate a directional curve based on the position information of the emitting object and the target object of the effect, as well as the first curve generation parameters corresponding to the directional sign effect to be generated. Then, the directional curve is rendered in combination with rendering parameters to obtain the directional sign effect. There is no need to set and process a two-dimensional timing diagram, which helps to improve the generation efficiency of directional sign effects.

[0005] In a first aspect, embodiments of this application provide a method for generating pointing marker effects, including:

[0006] Determine the emitting object of the pointing marker effect to be generated, and the target object of the effect;

[0007] Obtain the position information of the aforementioned special effect emitting object and the aforementioned special effect target object, as well as the first curve generation parameters corresponding to the pointing marker special effect to be generated;

[0008] Based on the first curve generation parameters and the position information of the special effect emitting object and the special effect target object, a pointing curve is generated from the special effect emitting object to the special effect target object.

[0009] Obtain the rendering parameters of the aforementioned pointing curve, and render the pointing curve according to the aforementioned rendering parameters to obtain the pointing mark effect.

[0010] Secondly, embodiments of this application provide a pointing marker effect generation device, comprising:

[0011] The object determination module is used to determine the object that emits the effect corresponding to the pointing marker effect to be generated, as well as the target object of the effect.

[0012] The data acquisition module is used to acquire the position information of the aforementioned special effect emitting object and the aforementioned special effect target object, as well as the first curve generation parameters corresponding to the pointing marker special effect to be generated;

[0013] The data processing module is used to generate a pointing curve from the special effect emitting object to the special effect target object based on the parameters generated by the first curve and the position information of the special effect emitting object and the special effect target object.

[0014] The special effects generation module is used to obtain the rendering parameters of the aforementioned pointing curve, and to render the aforementioned pointing curve according to the aforementioned rendering parameters to obtain the pointing mark effect.

[0015] Thirdly, embodiments of this application also provide an electronic device, including a memory storing multiple instructions; a processor loads instructions from the memory to execute the steps of any of the pointing mark effect generation methods provided in embodiments of this application.

[0016] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute the steps of any of the pointing identifier effect generation methods provided in embodiments of this application.

[0017] The solution adopted in this application embodiment can determine the effect emitting object and the effect target object corresponding to the directional marker effect to be generated; obtain the position information of the effect emitting object and the effect target object, as well as the first curve generation parameters corresponding to the directional marker effect to be generated; generate a directional curve from the effect emitting object to the effect target object based on the first curve generation parameters and the position information of the effect emitting object and the effect target object; obtain the rendering parameters of the directional curve, and render the directional curve according to the rendering parameters to obtain the directional marker effect. Thus, by obtaining only the required parameters, a directional curve can be generated based on the position information of the effect emitting object and the effect target object, as well as the first curve generation parameters corresponding to the directional marker effect to be generated. The directional marker effect can then be obtained by rendering the directional curve using the rendering parameters, eliminating the need to set and process a two-dimensional timing diagram, which is beneficial for improving the generation efficiency of the directional marker effect. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic flowchart of an embodiment of the pointing marker effect generation method provided in this application.

[0020] Figure 2 This is a schematic diagram of a basic game scene provided in an embodiment of this application;

[0021] Figure 3 This is a schematic diagram of a directional curve trajectory provided in an embodiment of this application;

[0022] Figure 4 This is a schematic diagram of the trajectory of a Bézier curve provided in an embodiment of this application;

[0023] Figure 5 This is a schematic diagram of a control interface for the curve rendering component provided in an embodiment of this application;

[0024] Figure 6 This is another schematic diagram of the control interface of the curve rendering component provided in the embodiments of this application;

[0025] Figure 7 This is another schematic diagram of the control interface of the curve rendering component provided in the embodiments of this application;

[0026] Figure 8 This is a schematic diagram of a directional marker effect provided in an embodiment of this application;

[0027] Figure 9 This is another schematic diagram of a directional marker effect provided in an embodiment of this application;

[0028] Figure 10 This is a schematic diagram of the structure of the pointing mark effect generation device provided in the embodiments of this application;

[0029] Figure 11 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. At the same time, in the description of the embodiments of this application, the terms "first," "second," etc., are only used to distinguish descriptions and should not be construed as indicating or implying relative importance. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0031] This application provides a method, apparatus, electronic device, and computer-readable storage medium for generating pointing marker effects.

[0032] Specifically, this embodiment will be described from the perspective of a directional sign effect generation device, which can be integrated into an electronic device. That is, the directional sign effect generation method of this application embodiment can be executed by an electronic device. Optionally, the electronic device may include a terminal device. The terminal device may be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, game console, or personal computer (PC), etc.

[0033] The directional sign effect generation method provided in this application can be applied to a directional sign effect generation system. This system can include a terminal device and a server. The terminal can be a device including receiving and transmitting hardware, i.e., a device with receiving and transmitting hardware capable of performing bidirectional communication over a bidirectional communication link. The terminal device and the server can communicate bidirectionally via a network.

[0034] Optionally, the electronic device can be a server, which can be a standalone server, a server network, or a server cluster, including but not limited to computers, network hosts, single network servers, multiple network server sets, or cloud servers composed of multiple servers. A cloud server consists of a large number of computers or network servers based on cloud computing.

[0035] In one embodiment of this application, the method for generating pointer effects can run on a local terminal device or a server. When the method for generating pointer effects runs on a server, it can be implemented and executed based on a cloud interaction system, which includes a server and client devices.

[0036] The following detailed description is provided in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device as an example. It should be noted that the order of description in the following embodiments is not intended to limit the preferred order of the embodiments. Although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the accompanying drawings.

[0037] The first aspect of this application provides a method for generating pointing marker effects. Please refer to [link / reference]. Figure 1 The specific process for generating this pointing icon effect can be summarized in steps 101 to 104:

[0038] Step 101: Determine the emitting object of the pointing marker effect to be generated, and the target object of the effect.

[0039] The aforementioned directional marker effect to be generated is a directional visual effect (VFX) that needs to be generated. The emitting object of the aforementioned effect is the object corresponding to the starting point of the directional marker effect, and the target object of the aforementioned effect is the object corresponding to the ending point of the directional marker effect.

[0040] It should be noted that the pointing mark effect generation method provided in this application embodiment generates a pointing mark effect that can display the pointing relationship between the two in a scene that has already been built with an effect emitting object and an effect target object.

[0041] In one application scenario, the aforementioned determination of the effect emitting object corresponding to the pointing marker effect to be generated, and the effect target object, includes:

[0042] Use the object with the curve rendering component as the effect emission object.

[0043] The control interface of the above curve rendering component is displayed. The control interface includes a setting control for the pointing mark effect to be generated, and the setting control includes a setting control for the target object of the effect.

[0044] The target object for the special effects is determined by setting the control based on the target object for the special effects described above.

[0045] The aforementioned curve rendering component is a curve rendering script component mounted on the effect emitting object. The settings controls in the control interface of this curve rendering component are used to set and adjust control parameters during the generation of the pointing indicator effect. It should be noted that the aforementioned curve rendering component may include one or more control interfaces, each with at least one settings control, but this is not a specific limitation.

[0046] In this embodiment, a basic game scene for implementing directional VFX effects is used as an example for illustration. Figure 2 This is a schematic diagram of a basic game scene provided in an embodiment of this application. For example... Figure 2 As shown, in this basic game scene, only two object objects are set: one as the effect emitting object and the other as the effect target object. In this embodiment of the application, as... Figure 2 As shown, Figure 2 The cube model object in the image is used as the target emission object for the special effects, and a curve rendering component is attached to the target emission object. The curve rendering component's control interface is used to specify... Figure 2 The cylindrical object in the model serves as the target object for the special effect.

[0047] It should be noted that the specific models of the two objects mentioned above can be arbitrarily replaced according to actual needs, and the selection of the special effect emitting object and the special effect target emitting object can be determined and adjusted according to actual needs, and is not a specific limitation here.

[0048] It should be further explained that in more complex game scenes, there are multiple object objects. Curve rendering components can be attached to each object object, meaning that each object object can act as an effect emission object. The corresponding effect target object is determined based on the curve rendering component attached to it, and the generation of the pointing marker effect is controlled.

[0049] Step 102: Obtain the position information of the above-mentioned special effect emitting object and the above-mentioned special effect target object, as well as the first curve generation parameters corresponding to the pointing mark special effect to be generated.

[0050] The position information of the special effect launching object is used to indicate the position of the special effect launching object in the game scene, and the position information of the special effect target object is used to indicate the position of the special effect target object in the game scene. The first curve generation parameters include parameters for controlling the pointing curve between the special effect launching object and the special effect target object. For example, it may include the launching angle of the pointing identification effect, the initial launching speed, and the curve equation for controlling the shape of the pointing curve, which are not specifically limited here.

[0051] Step 103: Based on the first curve generation parameters and the position information of the special effect emitting object and the special effect target object, generate a pointing curve from the special effect emitting object to the special effect target object.

[0052] It should be noted that there are several ways to generate a directional curve. For example, the directional curve can be directly generated by rendering in the corresponding coordinate system (a pre-established coordinate system in the game scene) based on the curve equation and other parameters. Alternatively, the position of each sampling point can be determined based on the curve equation and other parameters, and then the directional curve can be obtained by fitting the curve.

[0053] In this embodiment, a scheme using sampling points for fitting is used as an example for specific explanation, but it is not intended to be a specific implementation. The above-mentioned generation of a pointing curve from the special effects emitting object to the special effects target object, based on the parameters generated by the first curve and the position information of the special effects emitting object and the special effects target object, includes:

[0054] Obtain the sampling time interval corresponding to the pointing curve to be generated;

[0055] Based on the above sampling time interval, the above first curve generation parameters, and the position information of the above special effects emitting object and the above special effects target object, the position information of multiple basic sampling points between the above special effects emitting object and the above special effects target object is calculated.

[0056] The aforementioned pointing curve is obtained by fitting the location information of the aforementioned basic sampling points.

[0057] The aforementioned sampling time interval is used to control the density of sampling points on the directional curve to be generated. The sampling time interval can be set and adjusted according to actual needs, and no specific limitation is made here.

[0058] It should be noted that, in order to obtain more flexible and richer directional indicator effects, and to achieve flexible adjustment of indicator display effects, the above-mentioned directional curve can also be perturbed according to the perturbation curve to obtain a better curve display effect.

[0059] In one application scenario, multiple disturbance curves can be generated, and the direction curve can be controlled by combining these multiple disturbance curves. In this embodiment of the application, the generation of a single disturbance curve is used as an example for specific explanation, but this is not intended to be a specific limitation.

[0060] Specifically, before performing step 104, the above method also includes:

[0061] Obtain the second curve generation parameters corresponding to the directional marker effect to be generated;

[0062] Based on the second curve generation parameters and the position information of the special effects emitting object and the special effects target object, a perturbation curve is generated from the special effects emitting object to the special effects target object.

[0063] The above perturbation curve is superimposed on the above pointing curve to obtain the perturbated pointing curve.

[0064] The parameters for generating the second curve mentioned above may include the curve equation corresponding to the disturbance curve and other required control parameters, which are not specifically limited here. It should be noted that the curve equation of the disturbance curve and the curve equation of the pointing curve can also be preset, which are not specifically limited here either.

[0065] In some embodiments of this application, generating a perturbation curve from the special effects emitting object to the special effects target object based on the second curve generation parameters and the position information of the special effects emitting object and the special effects target object includes:

[0066] Obtain the sampling time interval used when generating the aforementioned pointing curve;

[0067] Based on the above sampling time interval, the above second curve generation parameters, and the position information of the above special effect emitting object and the above special effect target object, the position information of multiple perturbation sampling points between the above special effect emitting object and the above special effect target object is calculated.

[0068] The above-mentioned disturbance curve is obtained by fitting the location information of the above-mentioned disturbance sampling points.

[0069] In this embodiment, the sampling time interval used to generate the perturbation curve is the same as the sampling time interval used to generate the pointing curve. Therefore, the projection positions of a perturbation sampling point on the perturbation curve and a basic sampling point on the pointing curve on the horizontal plane are the same, meaning the sampling points on the two curves correspond one-to-one. In one application scenario, the sampling time interval used to generate the perturbation curve may be different from the sampling time interval used to generate the pointing curve. In this case, the sampling on the two curves may not correspond one-to-one. When it is necessary to obtain the perturbation sampling point corresponding to the basic sampling point, the coordinate values ​​of the corresponding point on the perturbation curve can be determined based on the coordinates of the basic sampling point.

[0070] In some embodiments of this application, the aforementioned location information is location coordinates, and the aforementioned superimposing of the disturbance curve onto the pointing curve to obtain the disturbed pointing curve includes:

[0071] Obtain the disturbance coefficients corresponding to the above disturbance curves;

[0072] For each basic sampling point, the perturbation coordinates are calculated based on the perturbation coefficient and the position coordinates of the perturbation sampling point corresponding to the basic sampling point. The position coordinates of the basic sampling point are added to the perturbation coordinates to update the position coordinates of each basic sampling point.

[0073] The perturbation-adjusted pointing curve is obtained by fitting the position coordinates of the updated base sampling points.

[0074] The aforementioned disturbance coefficient is a parameter used to control the degree of disturbance influence of the disturbance curve on the pointing curve. Its specific parameter value can be set and adjusted according to actual needs, and is not specifically limited here.

[0075] It should be noted that the equations corresponding to the pointing curve and the disturbance curve can be set and adjusted according to actual needs. In this embodiment, the parabolic trajectory equation is used for the pointing curve and the Bézier curve equation is used for the disturbance curve as examples, but this is not intended to be a specific limitation.

[0076] Specifically, a pointing curve is generated based on the equation of parabolic trajectory. To account for potential gravitational effects on the pointing marker effect, the parabolic trajectory is calculated in real-time based on the positions of the launching and target objects of the effect, as well as the set launching angle. The vertical direction of the 3D space corresponding to the game scene is used as the y-axis (the specific coordinate axis direction can be found in [reference]). Figure 2 As shown), the equation of the parabolic trajectory is given by formula (1):

[0077]

[0078] Where x represents the coordinates of the base sampling point on the x-axis of the calculated pointing curve, y represents the coordinates of the base sampling point on the y-axis of the calculated pointing curve, and z represents the coordinates of the base sampling point on the z-axis of the calculated pointing curve. The angle θ is the emission angle from the emitting object of the pointing marker effect to be generated. x v y and v z These represent the components of the initial launch velocity v on the three coordinate axes. xz and dis y These represent the distances between the effect's emitting object and its target object on the xz and y axes, respectively. g is the preset gravitational acceleration. t is the sampling time determined based on the sampling time interval corresponding to the pointing curve.

[0079] Figure 3 This is a schematic diagram of a directional curve trajectory provided in an embodiment of this application, such as... Figure 3 As shown, as the sampling time changes, the coordinate values ​​corresponding to different basic sampling points can be calculated, thereby fitting a parabolic pointing curve.

[0080] Furthermore, in order to achieve flexible curve effects such as perturbations in VFX special effects, this embodiment of the application also simulates and generates perturbation curves based on the Bézier curve equation. Specifically, the nth-order Bézier curve equation is shown in the following formula (2):

[0081]

[0082] Where t is the sampling time determined based on the sampling time interval corresponding to the pointing curve. n (t) is a point with a relative position t in an n-order Bézier curve, b j These are the control points of the Bézier curve. It is a Béssel polynomial. Specifically, the Béssel polynomial is shown in formula (3) below:

[0083]

[0084] In this embodiment of the application, the curve rendering component used is a curve rendering script component based on the C# programming language. In the C# script, the Bézier curve trajectory can be calculated by setting the control points of the Bézier curve in the engine and setting the order n of the Bézier curve.

[0085] Figure 4 This is a schematic diagram of the trajectory of a Bézier curve provided in an embodiment of this application, such as... Figure 4 As shown, the trajectory of the generated Bézier curve is... Figure 3 The parabolic trajectory shown is more flexible. Therefore, the parabola can be perturbed using Bézier curves to obtain a more flexible curve display effect.

[0086] It should be noted that Bézier curves can also be used as directional curves, and a single curve trajectory can be used to render and generate directional marker effects. Other curve trajectories can also be used, without specific limitations here.

[0087] In this embodiment, a Bezier curve (perturbation curve) is superimposed on a parabola (pointing curve) to obtain a perturbed pointing curve. The superposition method is shown in the following formula (4):

[0088] p VFX (t)=p parabola (t)+αp bessel (t) (4)

[0089] Where, p VFX (t) represents the spatial location of the base sampling point after the perturbation at time t, p parabola (t) represents the spatial location of the base sampling point before the disturbance at time t (the location of the curve trajectory point calculated from the parabola), p bessel (t) represents the spatial location of the disturbance sampling point at time t (the location of the trajectory point calculated from the Bézier curve), and α represents the disturbance coefficient that controls the intensity of the Bézier curve disturbance. The value of the disturbance coefficient can be set and adjusted according to actual needs, and is not specifically limited here.

[0090] Step 104: Obtain the rendering parameters of the above-mentioned pointing curve, and render the above-mentioned pointing curve according to the above-mentioned rendering parameters to obtain the pointing mark effect.

[0091] The rendering parameters of the aforementioned pointing curve are parameters that correspond to the pointing curve and are used to control the rendering effect of the pointing mark effect. The specific rendering parameters can be set and adjusted according to actual needs, and no specific limitations are made here.

[0092] In this embodiment of the application, the above-mentioned rendering parameters can also be obtained through the setting controls in the control interface of the curve rendering component. Specifically, the above-mentioned rendering parameters include material parameters; the above-mentioned setting controls also include material parameter setting controls.

[0093] The above-mentioned method obtains the rendering parameters of the pointing curve, and renders the pointing curve according to the rendering parameters to obtain the pointing indicator effect, including:

[0094] Obtain material parameters using the control set according to the above material parameters;

[0095] The aforementioned curve rendering component renders the aforementioned directional curve according to the aforementioned material parameters to obtain the aforementioned directional marker effect.

[0096] Specifically, the control interface of the curve rendering component has multiple setting controls, and the curve rendering component can set one or more control interfaces. In this embodiment, the example of the curve rendering component having multiple control interfaces is used for illustration.

[0097] Figure 5 This is a schematic diagram of a control interface for the curve rendering component provided in an embodiment of this application. Figure 6 This is another schematic diagram of the control interface of the curve rendering component provided in the embodiments of this application. Figure 7 This is another schematic diagram of the control interface of the curve rendering component provided in the embodiments of this application.

[0098] like Figures 5 to 7 As shown, multiple setting controls are located in different control interfaces. Specifically, different parameters can be obtained through different setting controls, and users can adjust these parameters through each control, thus making it easier and more flexible to adjust the generated pointing marker effects. Specifically, controls can be set for target object settings, material parameters, emission angles, disturbance coefficients (used to adjust Bézier curve weights), Bézier control points, etc. Other setting controls can also be set as needed, without specific limitations here.

[0099] By using the various settings controls in the control interface of the curve rendering component attached to the effect's emitting object, you can set various parameters required for generating the pointing marker effect. For example, you can select the effect's target object, adjust the generation parameters of the pointing curve and perturbation curve, specify the effect material by adjusting the line material parameters, modify the emission angle of the parabola emitted by the VFX by adjusting the emission angle parameters, add control points for the Bézier curve by clicking the "Add Bézier Curve Control Point" button, and adjust the intensity of the Bézier curve's interference with the parabola by modifying the "Bézier Curve Weight α".

[0100] In one application scenario, the material parameters mentioned above in the rendering parameters can be used to control material color, material texture, etc. Rendering parameters can also include curve segment length, used to control the length of a unit curve material segment in curve rendering. Other parameters can also be set according to actual needs, without specific limitations here.

[0101] Figure 8 This is a schematic diagram of a directional marker effect provided in an embodiment of this application. Figure 9 This is a schematic diagram of another directional marker effect provided in an embodiment of this application. Wherein, Figure 8 The center is a directional indicator effect that has not been processed by superimposing a perturbation curve. Figure 9 The first effect is a directional marker effect processed by overlaying a perturbation curve (this can be achieved by adjusting the perturbation coefficient), and the second effect uses different rendering materials (this can be achieved by adjusting the material parameters). Figure 8 and Figure 9 As shown, according to the method for generating directional marker effects in this application embodiment, different display effects of directional marker effects can be generated simply by adjusting the parameters. The adjustment is flexible and the generation efficiency is high.

[0102] Therefore, when building a game scene, you only need to attach a curve rendering component to the effect emission object. The curve equation can then be calculated numerically in a C# script, achieving dynamic 3D curve VFX effects with low performance overhead using only a simple 3D curve model and an effect material renderer script (shader). Effects designers can adjust the curve model's parameters through the curve rendering script's UI panel (control interface) to achieve flexible and variable trajectory pointing effects, improving the efficiency of fine-tuning the VFX.

[0103] The solution adopted in this application embodiment can determine the effect emitting object and the effect target object corresponding to the directional marker effect to be generated; obtain the position information of the effect emitting object and the effect target object, as well as the first curve generation parameters corresponding to the directional marker effect to be generated; generate a directional curve from the effect emitting object to the effect target object based on the first curve generation parameters and the position information of the effect emitting object and the effect target object; obtain the rendering parameters of the directional curve, and render the directional curve according to the rendering parameters to obtain the directional marker effect. Thus, by obtaining only the required parameters, a directional curve can be generated based on the position information of the effect emitting object and the effect target object, as well as the first curve generation parameters corresponding to the directional marker effect to be generated. The directional marker effect can then be obtained by rendering the directional curve using the rendering parameters, eliminating the need to set and process a two-dimensional timing diagram, which is beneficial for improving the generation efficiency of the directional marker effect.

[0104] This embodiment also provides a directional sign effect generation device, which can be integrated into a terminal device. For example... Figure 10 As shown, the pointing sign effect generation device may include:

[0105] The object determination module 1001 is used to determine the special effect emitting object corresponding to the pointing mark special effect to be generated, and the special effect target object.

[0106] The data acquisition module 1002 is used to acquire the position information of the above-mentioned special effect emitting object and the above-mentioned special effect target object, as well as the first curve generation parameters corresponding to the pointing mark special effect to be generated;

[0107] The data processing module 1003 is used to generate a pointing curve from the special effect emitting object to the special effect target object based on the first curve generation parameters and the position information of the special effect emitting object and the special effect target object.

[0108] The special effects generation module 1004 is used to obtain the rendering parameters of the above-mentioned pointing curve, and to render the above-mentioned pointing curve according to the above-mentioned rendering parameters to obtain the pointing mark effect.

[0109] In an optional example, the aforementioned pointing marker effect generation device further includes a curve perturbation module for:

[0110] Obtain the second curve generation parameters corresponding to the directional marker effect to be generated;

[0111] Based on the second curve generation parameters and the position information of the special effects emitting object and the special effects target object, a perturbation curve is generated from the special effects emitting object to the special effects target object.

[0112] The above perturbation curve is superimposed on the above pointing curve to obtain the perturbated pointing curve.

[0113] In an optional example, the data processing module 1003 described above is specifically used for:

[0114] Obtain the sampling time interval corresponding to the pointing curve to be generated;

[0115] Based on the above sampling time interval, the above first curve generation parameters, and the position information of the above special effects emitting object and the above special effects target object, the position information of multiple basic sampling points between the above special effects emitting object and the above special effects target object is calculated.

[0116] The aforementioned pointing curve is obtained by fitting the location information of the aforementioned basic sampling points.

[0117] In an optional example, the curve perturbation module described above is specifically used for:

[0118] Obtain the sampling time interval used when generating the aforementioned pointing curve;

[0119] Based on the above sampling time interval, the above second curve generation parameters, and the position information of the above special effect emitting object and the above special effect target object, the position information of multiple perturbation sampling points between the above special effect emitting object and the above special effect target object is calculated.

[0120] The above-mentioned disturbance curve is obtained by fitting the location information of the above-mentioned disturbance sampling points.

[0121] In an optional example, the above location information is location coordinates, and the curve perturbation module is also specifically used for:

[0122] For each basic sampling point, the perturbation coordinates are calculated based on the perturbation coefficient and the position coordinates of the perturbation sampling point corresponding to the basic sampling point. The position coordinates of the basic sampling point are added to the perturbation coordinates to update the position coordinates of each basic sampling point.

[0123] The perturbation-adjusted pointing curve is obtained by fitting the position coordinates of the updated base sampling points.

[0124] In an optional example, the object determination module 1001 described above is specifically used for:

[0125] Use the object with the curve rendering component as the effect emission object.

[0126] The control interface of the above curve rendering component is displayed. The control interface includes a setting control for the pointing mark effect to be generated, and the setting control includes a setting control for the target object of the effect.

[0127] The target object for the special effects is determined by setting the control based on the target object for the special effects described above.

[0128] In one optional example, the rendering parameters mentioned above include material parameters;

[0129] The aforementioned settings controls also include material parameter settings controls;

[0130] The aforementioned special effects generation module 1004 is specifically used for:

[0131] The above-mentioned method obtains the rendering parameters of the pointing curve, and renders the pointing curve according to the rendering parameters to obtain the pointing indicator effect, including:

[0132] Obtain material parameters using the control set according to the above material parameters;

[0133] The aforementioned curve rendering component renders the aforementioned directional curve according to the aforementioned material parameters to obtain the aforementioned directional marker effect.

[0134] The solution adopted in this application embodiment can determine the effect emitting object and the effect target object corresponding to the directional marker effect to be generated; obtain the position information of the effect emitting object and the effect target object, as well as the first curve generation parameters corresponding to the directional marker effect to be generated; generate a directional curve from the effect emitting object to the effect target object based on the first curve generation parameters and the position information of the effect emitting object and the effect target object; obtain the rendering parameters of the directional curve, and render the directional curve according to the rendering parameters to obtain the directional marker effect. Thus, by obtaining only the required parameters, a directional curve can be generated based on the position information of the effect emitting object and the effect target object, as well as the first curve generation parameters corresponding to the directional marker effect to be generated. The directional marker effect can then be obtained by rendering the directional curve using the rendering parameters, eliminating the need to set and process a two-dimensional timing diagram, which is beneficial for improving the generation efficiency of the directional marker effect.

[0135] Accordingly, this application also provides an electronic device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Alternatively, the electronic device can be a server.

[0136] like Figure 11 As shown, Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 1100 includes a processor 1101 with one or more processing cores, a memory 1102 with one or more computer-readable storage media, and a computer program stored on the memory 1102 and executable on the processor. The processor 1101 and the memory 1102 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0137] The processor 1101 is the control center of the electronic device 1100. It connects various parts of the electronic device 1100 via various interfaces and lines. By running or loading software programs and / or units stored in the memory 1102, and by calling data stored in the memory 1102, it executes various functions and processes data of the electronic device 1100, thereby providing overall monitoring of the electronic device 1100. The processor 1101 can be a CPU, GPU, network processor (NP), etc., and can implement or execute the methods, steps, and logic diagrams disclosed in the embodiments of this application.

[0138] In this embodiment, the processor 1101 in the electronic device 1100 loads the instructions corresponding to the processes of one or more applications into the memory 1102 according to the following steps, and the processor 1101 runs the applications stored in the memory 1102 to realize various functions, such as:

[0139] Determine the emitting object of the pointing marker effect to be generated, and the target object of the effect;

[0140] Obtain the position information of the aforementioned special effect emitting object and the aforementioned special effect target object, as well as the first curve generation parameters corresponding to the pointing marker special effect to be generated;

[0141] Based on the first curve generation parameters and the position information of the special effect emitting object and the special effect target object, a pointing curve is generated from the special effect emitting object to the special effect target object.

[0142] Obtain the rendering parameters of the aforementioned pointing curve, and render the pointing curve according to the aforementioned rendering parameters to obtain the pointing mark effect.

[0143] In an optional example, before obtaining the rendering parameters of the pointing curve and rendering the pointing curve according to the rendering parameters to obtain the pointing marker effect, the method further includes:

[0144] Obtain the second curve generation parameters corresponding to the directional marker effect to be generated;

[0145] Based on the second curve generation parameters and the position information of the special effects emitting object and the special effects target object, a perturbation curve is generated from the special effects emitting object to the special effects target object.

[0146] The above perturbation curve is superimposed on the above pointing curve to obtain the perturbated pointing curve.

[0147] In an optional example, the above-mentioned generation of a pointing curve from the effect emitting object to the effect target object, based on the first curve generation parameters and the position information of the effect emitting object and the effect target object, includes:

[0148] Obtain the sampling time interval corresponding to the pointing curve to be generated;

[0149] Based on the above sampling time interval, the above first curve generation parameters, and the position information of the above special effects emitting object and the above special effects target object, the position information of multiple basic sampling points between the above special effects emitting object and the above special effects target object is calculated.

[0150] The aforementioned pointing curve is obtained by fitting the location information of the aforementioned basic sampling points.

[0151] In an optional example, the above-mentioned generation of a perturbation curve from the effect emitting object to the effect target object is generated based on the second curve generation parameters and the position information of the effect emitting object and the effect target object, including:

[0152] Obtain the sampling time interval used when generating the aforementioned pointing curve;

[0153] Based on the above sampling time interval, the above second curve generation parameters, and the position information of the above special effect emitting object and the above special effect target object, the position information of multiple perturbation sampling points between the above special effect emitting object and the above special effect target object is calculated.

[0154] The above-mentioned disturbance curve is obtained by fitting the location information of the above-mentioned disturbance sampling points.

[0155] In an optional example, the above location information is location coordinates, and the above perturbation curve is superimposed on the above pointing curve to obtain the perturbated pointing curve, including:

[0156] Obtain the disturbance coefficients corresponding to the above disturbance curves;

[0157] For each basic sampling point, the perturbation coordinates are calculated based on the perturbation coefficient and the position coordinates of the perturbation sampling point corresponding to the basic sampling point. The position coordinates of the basic sampling point are added to the perturbation coordinates to update the position coordinates of each basic sampling point.

[0158] The perturbation-adjusted pointing curve is obtained by fitting the position coordinates of the updated base sampling points.

[0159] In an optional example, the above determination of the effect emitting object corresponding to the pointing marker effect to be generated, and the effect target object, includes:

[0160] Use the object with the curve rendering component as the effect emission object.

[0161] The control interface of the above curve rendering component is displayed. The control interface includes a setting control for the pointing mark effect to be generated, and the setting control includes a setting control for the target object of the effect.

[0162] The target object for the special effects is determined by setting the control based on the target object for the special effects described above.

[0163] In one optional example, the rendering parameters mentioned above include material parameters;

[0164] The aforementioned settings controls also include material parameter settings controls;

[0165] The above-mentioned method obtains the rendering parameters of the pointing curve, and renders the pointing curve according to the rendering parameters to obtain the pointing indicator effect, including:

[0166] Obtain material parameters using the control set according to the above material parameters;

[0167] The aforementioned curve rendering component renders the aforementioned directional curve according to the aforementioned material parameters to obtain the aforementioned directional marker effect.

[0168] This can improve the generation efficiency of directional marker effects.

[0169] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0170] Optional, such as Figure 11 As shown, the electronic device 1100 also includes: a touch display screen 1103, a radio frequency circuit 1104, an audio circuit 1105, an input unit 1106, and a power supply 1107. The processor 1101 is electrically connected to the touch display screen 1103, the radio frequency circuit 1104, the audio circuit 1105, the input unit 1106, and the power supply 1107. Those skilled in the art will understand that... Figure 11 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0171] The touch display screen 1103 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 1103 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 1101. It can also receive and execute commands from the processor 1101. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 1101 to determine the type of touch event. Subsequently, the processor 1101 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and display panel can be integrated into the touch display screen 1103 to achieve input and output functions. However, in some embodiments, the touch panel and display panel can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 1103 can also be used as part of the input unit 1106 to achieve input functions.

[0172] The radio frequency circuit 1104 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.

[0173] Audio circuit 1105 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuit 1105 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 1105, converted back into audio data, and then processed by processor 1101 before being transmitted via radio frequency circuit 1104 to, for example, another electronic device, or output to memory 1102 for further processing. Audio circuit 1105 may also include an earphone jack to provide communication between peripheral headphones and electronic devices.

[0174] The input unit 1106 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0175] Power supply 1107 is used to supply power to various components of electronic device 1100. Optionally, power supply 1107 can be logically connected to processor 1101 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 1107 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0176] although Figure 11 As not shown in the diagram, the electronic device 1100 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0177] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0178] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0179] Therefore, embodiments of this application provide a computer-readable storage medium storing multiple computer programs that can be loaded by a processor to execute any of the pointer effect generation methods provided in this application. The computer program can execute the following steps of the pointer effect generation method:

[0180] Determine the emitting object of the pointing marker effect to be generated, and the target object of the effect;

[0181] Obtain the position information of the aforementioned special effect emitting object and the aforementioned special effect target object, as well as the first curve generation parameters corresponding to the pointing marker special effect to be generated;

[0182] Based on the first curve generation parameters and the position information of the special effect emitting object and the special effect target object, a pointing curve is generated from the special effect emitting object to the special effect target object.

[0183] Obtain the rendering parameters of the aforementioned pointing curve, and render the pointing curve according to the aforementioned rendering parameters to obtain the pointing mark effect.

[0184] In an optional example, before obtaining the rendering parameters of the pointing curve and rendering the pointing curve according to the rendering parameters to obtain the pointing marker effect, the method further includes:

[0185] Obtain the second curve generation parameters corresponding to the directional marker effect to be generated;

[0186] Based on the second curve generation parameters and the position information of the special effects emitting object and the special effects target object, a perturbation curve is generated from the special effects emitting object to the special effects target object.

[0187] The above perturbation curve is superimposed on the above pointing curve to obtain the perturbated pointing curve.

[0188] In an optional example, the above-mentioned generation of a pointing curve from the effect emitting object to the effect target object, based on the first curve generation parameters and the position information of the effect emitting object and the effect target object, includes:

[0189] Obtain the sampling time interval corresponding to the pointing curve to be generated;

[0190] Based on the above sampling time interval, the above first curve generation parameters, and the position information of the above special effects emitting object and the above special effects target object, the position information of multiple basic sampling points between the above special effects emitting object and the above special effects target object is calculated.

[0191] The aforementioned pointing curve is obtained by fitting the location information of the aforementioned basic sampling points.

[0192] In an optional example, the above-mentioned generation of a perturbation curve from the effect emitting object to the effect target object is generated based on the second curve generation parameters and the position information of the effect emitting object and the effect target object, including:

[0193] Obtain the sampling time interval used when generating the aforementioned pointing curve;

[0194] Based on the above sampling time interval, the above second curve generation parameters, and the position information of the above special effect emitting object and the above special effect target object, the position information of multiple perturbation sampling points between the above special effect emitting object and the above special effect target object is calculated.

[0195] The above-mentioned disturbance curve is obtained by fitting the location information of the above-mentioned disturbance sampling points.

[0196] In an optional example, the above location information is location coordinates, and the above perturbation curve is superimposed on the above pointing curve to obtain the perturbated pointing curve, including:

[0197] Obtain the disturbance coefficients corresponding to the above disturbance curves;

[0198] For each basic sampling point, the perturbation coordinates are calculated based on the perturbation coefficient and the position coordinates of the perturbation sampling point corresponding to the basic sampling point. The position coordinates of the basic sampling point are added to the perturbation coordinates to update the position coordinates of each basic sampling point.

[0199] The perturbation-adjusted pointing curve is obtained by fitting the position coordinates of the updated base sampling points.

[0200] In an optional example, the above determination of the effect emitting object corresponding to the pointing marker effect to be generated, and the effect target object, includes:

[0201] Use the object with the curve rendering component as the effect emission object.

[0202] The control interface of the above curve rendering component is displayed. The control interface includes a setting control for the pointing mark effect to be generated, and the setting control includes a setting control for the target object of the effect.

[0203] The target object for the special effects is determined by setting the control based on the target object for the special effects described above.

[0204] In one optional example, the rendering parameters mentioned above include material parameters;

[0205] The aforementioned settings controls also include material parameter settings controls;

[0206] The above-mentioned method obtains the rendering parameters of the pointing curve, and renders the pointing curve according to the rendering parameters to obtain the pointing indicator effect, including:

[0207] Obtain material parameters using the control set according to the above material parameters;

[0208] The aforementioned curve rendering component renders the aforementioned directional curve according to the aforementioned material parameters to obtain the aforementioned directional marker effect.

[0209] This can improve the generation efficiency of directional marker effects.

[0210] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0211] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0212] Since the computer program stored in the computer-readable storage medium can execute any of the pointing mark effect generation methods provided in the embodiments of this application, it can achieve the beneficial effects that any of the pointing mark effect generation methods provided in the embodiments of this application can achieve, as detailed in the preceding embodiments, and will not be repeated here.

[0213] According to one aspect of this application, a computer program product or computer program is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in the various optional implementations of the above embodiments.

[0214] In the above embodiments of the directional sign effect generation device, computer-readable storage medium, electronic device, and computer program product, the descriptions of each embodiment have different focuses. Parts not described in detail in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the directional sign effect generation device, computer-readable storage medium, computer program product, electronic device, and their corresponding units described above can be referred to the description of the directional sign effect generation method in the above embodiments, and will not be repeated here.

[0215] The foregoing has provided a detailed description of a method, apparatus, electronic device, computer-readable storage medium, and computer program product for generating pointing marker effects according to embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for generating a pointer identification special effect, characterized by, include: Determine the emitting object of the pointing marker effect to be generated, and the target object of the effect; Obtain the position information of the special effect emitting object and the special effect target object, as well as the first curve generation parameters corresponding to the pointing marker special effect to be generated; Based on the first curve generation parameters, and the position information of the special effect emitting object and the special effect target object, a pointing curve is generated from the special effect emitting object to the special effect target object; Obtain the rendering parameters of the pointing curve, and render the pointing curve according to the rendering parameters to obtain the pointing mark effect; The method further includes, before obtaining the rendering parameters of the pointing curve and rendering the pointing curve according to the rendering parameters to obtain the pointing marker effect: Obtain the second curve generation parameters corresponding to the directional marker effect to be generated; Based on the second curve generation parameters, and the position information of the special effect emitting object and the special effect target object, a perturbation curve is generated from the special effect emitting object to the special effect target object; The perturbation curve is superimposed on the pointing curve to obtain the perturbated pointing curve.

2. The pointing identification effect generation method of claim 1, wherein, The step of generating a pointing curve from the special effects emitting object to the special effects target object based on the first curve generation parameters and the position information of the special effects emitting object and the special effects target object includes: Obtain the sampling time interval corresponding to the pointing curve to be generated; Based on the sampling time interval, the first curve generation parameters, and the position information of the special effects emitting object and the special effects target object, the position information of multiple basic sampling points between the special effects emitting object and the special effects target object is calculated. The pointing curve is obtained by fitting the position information of the basic sampling points.

3. The pointing identification effect generation method of claim 2, wherein, The step of generating a perturbation curve from the special effects emitting object to the special effects target object based on the second curve generation parameters and the position information of the special effects emitting object and the special effects target object includes: Obtain the sampling time interval used when generating the pointing curve; Based on the sampling time interval, the second curve generation parameters, and the position information of the special effects emitting object and the special effects target object, the position information of multiple perturbation sampling points between the special effects emitting object and the special effects target object is calculated. The disturbance curve is obtained by fitting the location information of the disturbance sampling points.

4. The method for generating directional sign effects according to claim 3, characterized in that, The location information is location coordinates, and the step of superimposing the disturbance curve onto the pointing curve to obtain the disturbed pointing curve includes: Obtain the disturbance coefficient corresponding to the disturbance curve; For each basic sampling point, the perturbation coordinates are calculated based on the perturbation coefficient and the position coordinates of the perturbation sampling point corresponding to the basic sampling point. The position coordinates of the basic sampling point are added to the perturbation coordinates to update the position coordinates of each basic sampling point. The perturbation-adjusted pointing curve is obtained by fitting the position coordinates of the updated base sampling points.

5. The method for generating directional sign effects according to claim 1, characterized in that, The process of determining the emitting object of the pointing marker effect to be generated and the target object of the effect includes: Use the object with the curve rendering component as the effect emission object. The control interface of the curve rendering component is displayed, wherein the control interface includes a setting control corresponding to the pointing mark effect to be generated, and the setting control includes a setting control for the target object of the effect. The target object of the special effect is determined by the control set according to the target object of the special effect.

6. The method for generating directional sign effects according to claim 5, characterized in that, The rendering parameters include material parameters; The settings control also includes a material parameter settings control; The process of obtaining the rendering parameters of the pointing curve and rendering the pointing curve according to the rendering parameters to obtain the pointing indicator effect includes: The material parameters are obtained from the material parameter setting control; The directional curve is rendered using the curve rendering component according to the material parameters to obtain the directional marker effect.

7. A device for generating directional sign effects, characterized in that, include: The object determination module is used to determine the object that emits the effect corresponding to the pointing marker effect to be generated, as well as the target object of the effect. The data acquisition module is used to acquire the position information of the special effect emitting object and the special effect target object, as well as the first curve generation parameters corresponding to the pointing identifier special effect to be generated; The data processing module is used to generate a pointing curve from the special effect emitting object to the special effect target object based on the parameters generated by the first curve and the position information of the special effect emitting object and the special effect target object. The special effects generation module is used to obtain the rendering parameters of the pointing curve, and render the pointing curve according to the rendering parameters to obtain the pointing mark effect; The curve perturbation module is used to obtain the second curve generation parameters corresponding to the directional marker effect to be generated; Based on the second curve generation parameters and the position information of the special effect emitting object and the special effect target object, a perturbation curve is generated pointing from the special effect emitting object to the special effect target object; the perturbation curve is superimposed on the pointing curve to obtain the perturbated pointing curve.

8. An electronic device, characterized in that, It includes a memory and a processor; the memory stores an application program, and the processor is used to run the application program within the memory to perform the steps in the pointing identifier effect generation method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps in the pointing mark effect generation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for rendering areas bounded by curves using a GPU

    CA2776678A1

  • Particle special effect rendering method, device and equipment and storage medium

    CN112652044A