Animation redirection method and apparatus, and computer device, computer-readable storage medium and computer program product
By constructing a local object bounding volume for spatial semantic detection and transmission, and combining it with model-corrected parameters, the problems of low efficiency and data inconsistency in animation retargeting are solved, achieving efficient and accurate animation data transmission.
Patent Information
- Application Number
- PCT/CN2024/076178
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2024-02-05
- Publication Date
- 2024-10-03
AI Technical Summary
Existing animation redirection techniques suffer from low efficiency and inconsistencies when transferring vertex structure information between different models due to the large amount of data and long processing time.
By constructing local object bounding volumes for the source and target models in the animation, spatial semantic detection and filtering of effective interactive bounding volumes are performed to convey spatial semantic information. Based on the model correction parameters, the model is corrected to ensure that the spatial semantics of the target model and the source model are consistent in the animation.
It improves the efficiency of animation redirection and the accuracy of spatial semantic transmission, ensuring the consistency of animation data.
Smart Images

Figure CN2024076178_03102024_PF_FP_ABST
Abstract
Description
Animation redirection method, device, computer equipment, computer-readable storage medium, and computer program product
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 2023103210087 and application date March 29, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to the field of computer technology, and in particular to an animation redirection method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0004] Animation redirection technology is to transfer the animation data of a certain character model (i.e., the animation transfer source model) to another character model (i.e., the animation transfer target model), thereby realizing the reuse of the same animation data and eliminating the need to redesign the animation data for another character model.
[0005] At present, the main method of animation redirection is to assign an additional shell mesh to the grid (i.e. mesh) of the animation transfer source model and the animation transfer target model, and require that the vertex structure information of the topological structure corresponding to the shell mesh between different character models (for example, the number of vertices and the connection method between vertices) needs to remain the same. This means that the animation redirection technology in the relevant technology needs to use the vertices of the shell mesh assigned to the animation transfer source model as interaction points, and transfer the vertex structure information between these interaction points on the animation transfer source model indiscriminately to the corresponding points with the same topological structure.
[0006] However, due to the complexity of different models, the amount of vertex structure information transferred during the redirection process can be large, resulting in a longer animation redirection time and lower animation redirection efficiency. Furthermore, due to the varying complexity of different models, directly transferring vertex structure information can easily lead to inconsistencies between the animation data presented by the target model and the source model. This means that related technologies suffer from inaccurate spatial semantic transfer during the animation redirection process.
[0007] Summary of the Invention
[0008] The embodiments of the present application provide an animation redirection method, apparatus, computer device, computer-readable storage medium, and computer program product, which can not only improve the efficiency of animation redirection, but also improve the accuracy of spatial semantic transmission during the animation redirection process.
[0009] An embodiment of the present application provides an animation redirection method, the method comprising: displaying an animation transfer source model associated with a first object, an animation transfer target model associated with a second object, N first local object bounding volumes associated with the first object, and M second local object bounding volumes associated with the second object on an animation redirection configuration interface; N and M are both positive integers; a first local object bounding volume contains a local object of the first object; a second local object bounding volume contains a local object of the second object; performing spatial semantic detection on the N first local object bounding volumes, and obtaining a spatial semantic detection result; based on the spatial semantic detection result, determining the first local object bounding volume pair that meets the animation redirection strategy and is screened out from the N first local object bounding volumes as a valid interactive package of the first object Enclosure; the second local object enclosing volume that meets the animation redirection strategy found in the M second local object enclosing volumes is determined as the enclosing volume to be transferred; when the spatial semantic information of the effective interactive enclosing volume is obtained based on the spatial semantic detection result, the spatial semantic information is transferred from the effective interactive enclosing volume to the enclosing volume to be transferred, and a transfer enclosing volume carrying the spatial semantic information is obtained; the model correction parameters determined by the spatial semantic information are obtained, and the animation transfer target model containing the transfer enclosing volume is subjected to model correction processing based on the model correction parameters to obtain the animation transfer target model after the model correction processing, and the animation transfer target model after the model correction processing is displayed on the animation redirection configuration interface, and the spatial semantic information of the animation transfer target model after the model correction processing is consistent with the same spatial semantic information of the animation transfer source model.
[0010] An embodiment of the present application provides an animation redirection device, which includes: a display module configured to display an animation transfer source model associated with a first object, an animation transfer target model associated with a second object, N first local object bounding volumes associated with the first object, and M second local object bounding volumes associated with the second object on an animation redirection configuration interface; N and M are both positive integers; a first local object bounding volume contains a local object of the first object; a second local object bounding volume contains a local object of the second object; a detection module configured to perform spatial semantic detection on the N first local object bounding volumes to obtain a spatial semantic detection result; a screening module configured to, based on the spatial semantic detection result, determine the first local object bounding volume pair that meets the animation redirection strategy that is screened out from the N first local object bounding volumes as the effective interactive bounding volume of the first object; a search module configured to search the first local object bounding volume pairs that meet the animation redirection strategy that are screened out from the N first local object bounding volumes to obtain the effective interactive bounding volume of the first object; and a search module configured to search the first local object bounding volume pairs that meet the animation redirection strategy that are screened out from the N first local object bounding volumes to obtain the effective interactive bounding volume of the first object. The second local object bounding volume found in the second local object bounding volume that meets the animation redirection strategy is determined as the bounding volume to be transferred; the transfer module is configured to transfer the spatial semantic information from the effective interactive bounding volume to the bounding volume to be transferred when the spatial semantic information of the effective interactive bounding volume is obtained based on the spatial semantic detection result, so as to obtain a transfer bounding volume carrying the spatial semantic information; the acquisition module is configured to obtain the model correction parameters determined by the spatial semantic information; the correction module is configured to perform model correction processing on the animation transfer target model containing the transfer bounding volume based on the model correction parameters, so as to obtain the animation transfer target model after the model correction processing; the model display module is configured to display the animation transfer target model after the model correction processing on the animation redirection configuration interface, and the spatial semantic information of the animation transfer target model after the model correction processing is consistent with the spatial semantic information of the animation transfer source model.
[0011] An embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the above-mentioned animation redirection method in the embodiment of the present application.
[0012] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor, so that a computer device having a processor executes the above-mentioned animation redirection method in the embodiment of the present application.
[0013] The present invention provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the above-mentioned animation retargeting method.
[0014] In an embodiment of the present application, on the one hand, the computer device can construct a first local bounding volume for the animation transfer source model and a second local bounding volume for the animation transfer target model in the animation redirection configuration interface, thereby obtaining N first local object bounding volumes associated with the first object and M second local object bounding volumes associated with the second object. The spatial expression of the animation transfer source model can be formed by the N first local object bounding volumes, and then the N first local object bounding volumes can be subjected to spatial semantic detection to obtain spatial semantic detection results, and based on the spatial semantic detection results, effective interactive bounding volumes that meet the animation redirection strategy can be screened out from the N first local object bounding volumes. In this way, the computer device can transfer the spatial semantic information of the effective interactive bounding volume to the second local object bounding volume that meets the animation redirection strategy to obtain a mapping bounding volume. Since directly transferring the spatial semantic information of the effective interactive bounding volume can save the amount of data transferred to a certain extent compared to transferring vertex structure information, the animation redirection method of the embodiment of the present application can improve the efficiency of animation redirection. On the other hand, the second local object bounding box that meets the animation redirection strategy can be screened from the M second local object bounding boxes as the bounding box to be transferred, and the spatial semantic information of the effective interactive bounding box can be transferred to the bounding box to be transferred. That is to say, the embodiment of the present application can more accurately map the spatial semantic information of the effective interactive bounding box in the animation transfer source model to the corresponding second local object bounding box in the animation transfer target model. Therefore, the accuracy of spatial semantic transfer can be greatly improved during the animation redirection process. On the other hand, the embodiment of the present application can perform model correction processing on the animation transfer target model containing the mapping bounding box according to the model correction parameters determined by the spatial semantic information to obtain the animation transfer target model after model correction. In this way, the model correction can be performed automatically, so that the spatial semantic information of the animation transfer target model after model correction is consistent with the spatial semantic information of the animation transfer source model, thereby improving the animation redirection efficiency while also improving the accuracy of spatial semantic transfer during the animation redirection process, thereby ensuring the consistency between the animation data presented by the animation transfer target model and the animation transfer source model. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0016] FIG1 is a schematic diagram of a bounding volume hierarchy structure of a model provided in an embodiment of the present application;
[0017] FIG2 is a structural diagram of an animation redirection system provided in an embodiment of the present application;
[0018] FIG3A is a flowchart of an animation redirection method provided in an embodiment of the present application;
[0019] FIG3B is a schematic diagram of a model correction provided in an embodiment of the present application;
[0020] FIG4 is a flow chart of an animation redirection method provided in an embodiment of the present application;
[0021] FIG5 is a schematic diagram of displaying a first animation transfer model pair on an animation redirection configuration interface according to an embodiment of the present application;
[0022] FIG6 is another schematic diagram of displaying a first animation transfer model pair on an animation redirection configuration interface according to an embodiment of the present application;
[0023] FIG7 is a schematic diagram of an animation redirection configuration interface provided in an embodiment of the present application;
[0024] FIG8 is a schematic diagram of a moving operation provided in an embodiment of the present application;
[0025] FIG9 is a schematic diagram of a zoom operation provided in an embodiment of the present application;
[0026] FIG10 is a schematic diagram of a rotation operation provided in an embodiment of the present application;
[0027] FIG11 is a flow chart of another animation redirection method provided in an embodiment of the present application;
[0028] FIG12 is a schematic diagram of the closest point between two spheres provided in an embodiment of the present application;
[0029] FIG13 is a schematic diagram of the closest point between a sphere and a capsule provided in an embodiment of the present application;
[0030] FIG14 is a schematic diagram of the closest point between capsules provided in an embodiment of the present application;
[0031] FIG15 is a schematic diagram of a local vector of the nearest point of a first effective interactive bounding volume provided by an embodiment of the present application;
[0032] FIG16 is a schematic diagram of a local vector of the nearest point of another first effective interactive bounding volume provided by an embodiment of the present application;
[0033] FIG17 is a schematic diagram of a proportional coefficient corresponding to the nearest point of a first valid interactive bounding volume provided by an embodiment of the present application;
[0034] FIG18 is a schematic diagram of determining a first position point having the same first spatial semantic information as the nearest point of a first valid interactive bounding volume according to an embodiment of the present application;
[0035] FIG19 is a schematic diagram of another embodiment of the present application for determining a first position point having the same first spatial semantic information as the nearest point of a first valid interactive bounding volume;
[0036] FIG20 is a schematic diagram of calculating interactive estimation points corresponding to a first transferred bounding volume provided by an embodiment of the present application;
[0037] FIG21 is a schematic diagram showing a comparison between an animation transfer target model including a transfer bounding volume and the animation transfer target model after model correction provided by an embodiment of the present application;
[0038] FIG22 is a schematic diagram showing a comparison between another animation transfer target model including a transfer bounding volume and the animation transfer target model after model correction provided by an embodiment of the present application;
[0039] FIG23 is a schematic structural diagram of an animation redirection device provided in an embodiment of the present application;
[0040] FIG24 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0042] For ease of understanding, the basic concepts involved in the embodiments of this application are explained below:
[0043] 1) Animation redirection: It is an animation reuse technology. Animation redirection allows for the reuse of animations between models that share the same skeleton resources but have very different proportions. Simply put, animation redirection can transfer the animation data of a certain model to another model, reuse the same animation data, and save the process of redesigning the animation data for another model. In an embodiment of the present application, the model to which the animation data is to be transferred can be called an animation transfer source model, and the model to which the animation data is to be transferred can be called an animation transfer target model. For example, animation redirection can transfer the animation data of model A to another model B. At this time, model A to which the animation data is to be transferred is called an animation transfer source model, and model B to which the animation data is to be transferred is called an animation transfer target model. It can be understood that the animation transfer source model in the embodiment of the present application is associated with the first object, and the animation transfer target model is associated with the second object. The so-called association means that the animation transfer source model contains the first object, and the animation transfer source model can be used to present the animation data corresponding to the first object. The animation transfer target model contains the second object, and the animation transfer target model can be used to present the animation data corresponding to the second object.
[0044] It should be understood that the first object and the second object have the same skeleton resources, that is, the first object and the second object have the same object attributes. For example, the first object and the second object can both be real people, cartoon characters, etc.; for another example, the first object and the second object can both be animals, and this embodiment of the application does not impose any restrictions on this. In this embodiment of the application, the animation transfer source model and the animation transfer target model can be game character models in game scenes, social person models in social scenes, etc., and this embodiment of the application does not impose any restrictions on this.
[0045] In an embodiment of the present application, the animation transfer source model can be, for example, a model corresponding to any frame of animation data in a multi-frame animation data, and the animation transfer source model can be called an actor model; the multi-frame animation data can be obtained by capturing human or animal movements using an animation capture device. The animation transfer target model is mainly composed of bones and meshes, and the motion relationship between the bones and the meshes is usually a linear blend skinning model (LBS). Among them, the linear blend skinning model is usually used as a carrier of human movements or expressions in games or film and television production.
[0046] 2) Bounding volume (BV): usually refers to a relatively simple geometric body, such as a rectangle, circle, box, sphere, etc. The bounding volume can be used to enclose a more complex model. For example, the bounding volume can be used to cover certain body parts of a game character model, replacing it to perform tasks such as collision detection. In an embodiment of the present application, the bounding volume can be used to enclose local objects of the first object and local objects in the second object. Taking the first object as a character object as an example, the bounding volume in the embodiment of the present application can be used to enclose certain character limbs in the first object, such as the bounding volume can be used to enclose the head, waist, chest, etc. of the first object. Among them, the bounding volume provided in the embodiment of the present application can also be used to enclose additional moving objects. The moving objects can be, for example, gaming equipment and social equipment. Gaming equipment can be backpacks, armor, etc., and social equipment can be, for example, glow sticks.
[0047] It should be understood that in the embodiments of the present application, the bounding volume of the local object surrounding the first object can be referred to as the first local object bounding volume, and the bounding volume of the local object surrounding the second object can be referred to as the second local object bounding volume. The first local object bounding volume and the second local object bounding volume can be used for spatial semantic detection and spatial semantic transfer during the animation retargeting process.
[0048] 3) Bounding volume hierarchy (BVH): A bounding volume set containing a tree structure is formed by arranging, embedding, and wrapping the above-mentioned bounding volumes. The bounding volume hierarchy usually serves the purpose of reducing the amount of calculation in the collision detection task. For example, Figure 1 is a schematic diagram of a bounding volume hierarchy of a model provided in an embodiment of the present application. The bounding volume hierarchy contains multiple bounding volumes, which can be spheres (such as spheres 11a and 11b in Figure 1), capsules (such as capsules 11c and 11d in Figure 1), etc. In an embodiment of the present application, the bounding volume hierarchy can be used for spatial semantic detection and spatial semantic transfer in the animation redirection process.
[0049] In an embodiment of the present application, the spatial relationship between the animation transfer target model and the transfer source model can be characterized by simple geometric bodies or further forming a geometric body hierarchy, thereby assisting the spatial semantic detection and spatial semantic transfer of the animation redirection process.
[0050] 4) Spatial semantic information: used to characterize the spatial relationship between bounding volumes. This spatial relationship includes the feature semantics corresponding to non-contact, contact, and collision. Its features include but are not limited to: the closest point pair between the bounding volumes, the direction of each closest point in the closest point pair, the distance, and other numerical values or vectors.
[0051] 5) Spatial semantic detection: This refers to the process of calculating spatial semantics within a spatial geometry set, that is, detecting the spatial semantics between the spatial geometry contained in the spatial geometry set. In the embodiments of this application, the spatial geometry set refers to the bounding volume hierarchy (BVH), and spatial semantic detection refers to the spatial semantic calculation of the BVs within the BVH.
[0052] 6) Spatial semantic transfer: During the animation redirection process, the spatial semantic information of the BVH corresponding to the animation transfer source model is transferred to the corresponding BVH of the animation transfer target model with the principle of unchanged shape and size and unchanged spatial posture. In an embodiment of the present application, the spatial semantic information transferred to the BVH corresponding to the animation transfer target model may include the nearest point and the local direction of the nearest point in the BV (i.e., local vector). In an embodiment of the present application, if the BV is a capsule, it will also include the proportional coefficient of the nearest point on the capsule axis vector. After the spatial semantic transfer is performed, the adjustment amount (hereinafter referred to as the adjustment vector) required to make the bounding volume of the animation transfer target model and the animation transfer source model adhere to the same spatial relationship can be calculated based on the transferred spatial semantic information. The spatial semantic transfer in the embodiment of the present application can also be called spatial semantic mapping.
[0053] 7) Spatial semantics-preserving correction: This can also be called model correction. Spatial semantics-preserving correction refers to the process of reasonably adjusting the BVH of the target model during animation retargeting to achieve the same bounding volume set spatial relationship as the BVH of the source model.
[0054] 8) End-effector (EEF): On animated characters, it is usually the end of a limb, such as a hand or foot.
[0055] 9) Inverse Kinematics (IK): Given a series kinematic chain and the position of the end EEF, the process of calculating the rotation angles of each intermediate joint. In the present embodiment, IK adjustment can be used to ensure that the spatial relationship of the corresponding BV on the animation transfer target model is consistent with the spatial relationship on the animation transfer source model. For example, in the present embodiment, the end effector is the left hand, and accordingly, a series kinematic chain can be: left hand - left forearm - left upper arm.
[0056] In the embodiments of the present application, content involving user information, such as animation transmission source model, animation transmission target model and other information, if it involves data related to user information or enterprise information, when the embodiments of the present application are applied to specific products or technologies, it is necessary to obtain user permission or consent, or to blur this information to eliminate the correspondence between this information and the user; and the relevant data collection and processing should be strictly in accordance with the requirements of relevant national laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained, and subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0057] Please refer to Figure 2, which is a structural diagram of an animation redirection system provided in an embodiment of the present application. The animation redirection system includes a terminal device 101 and a server 102, wherein the terminal device 101 and the server 102 can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment of the present application. The terminal devices involved in the embodiment of the present application can be smart phones, tablet computers, laptops, PDAs, personal computers, smart TVs, smart watches, vehicle-mounted devices, wearable devices, etc., but are not limited to this. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms. The number of terminal devices 101 and servers 102 is also not limited.
[0058] The terminal device 101 can be used to display an animation redirection configuration interface, and a user (such as an artist or an animation designer) can select a first animation transfer model pair to be subjected to spatial semantic transfer on the animation redirection configuration interface, wherein the first animation transfer model pair includes an animation transfer source model associated with a first object and an animation transfer target model associated with a second object. Then, the user processes the animation transfer source model and the animation transfer target model (such as constructing a BVH for the animation transfer source model, adjusting the position of the animation transfer target model, etc.). It is understandable that when the animation data of the animation transfer source model needs to be transferred to the animation transfer target model, at this time, the terminal device 101 can perform spatial semantic detection on the BVH of the animation transfer source model, and then detect the spatial semantics to obtain spatial semantic information, transfer it to the corresponding BVH of the animation transfer target model, and perform IK adjustment (i.e., model correction) on the transferred animation transfer target model to obtain an animation transfer correction model with the same spatial semantic information as the animation transfer source model. In addition, the animation redirection configuration interface can be used to display the animation transfer source model and the animation transfer correction model.
[0059] The terminal device 101 runs animation software (such as MotionBuilder), and the animation redirection configuration interface provided in the embodiment of the present application can be run and displayed in the animation software in the form of a plug-in. Of course, the terminal device 101 can also provide a software dedicated to running and displaying the animation redirection configuration interface, and the embodiment of the present application does not impose any limitation on this.
[0060] The server 102 can provide technical support for the services provided by the terminal device 101 (such as displaying an animation redirection configuration interface, etc.). It is understood that the server 102 can be used to store target animation data associated with a first object (such as a human body) captured by an animation capture device. The target animation data forms an action sequence of the first object, and the target animation data can include multiple frames of animation data. Each frame of animation data corresponds to an action of the first object, and the actions contained in each frame of animation data are presented through an animation transfer source model associated with the first object.
[0061] The animation capture device may include, but is not limited to: a camera device and a scanning device; wherein the camera device may include a common camera, a stereo camera, and a light field camera, etc. The scanning device may include a three-dimensional laser scanning device, etc.
[0062] For ease of understanding, please refer to Figure 3A, which is a flow chart of an animation redirection method provided in an embodiment of the present application. The animation redirection method can be executed by the above-mentioned terminal device 101 or by the above-mentioned server 102. When the animation redirection scheme is executed by the terminal device 101, the terminal device 101 can display the first animation transfer model pair to be subjected to spatial semantic transfer, and perform spatial semantic detection on the BVH of the animation transfer source model in the first animation transfer model pair, and then transfer the spatial semantic information to the BVH of the animation transfer target model in the first animation transfer model pair after spatial semantic detection, and perform IK adjustment (i.e., model correction) on the animation transfer target model after transfer, to obtain an animation transfer correction model (i.e., the animation transfer target model after model correction processing) having the same spatial semantic information as the animation transfer source model. The server 102 can be used to store the first animation transfer model pair, and to store the second animation transfer model pair including the animation transfer correction model and the animation transfer source model. When the animation redirection solution is executed by server 102, server 102 can perform spatial semantic detection on the BVH of the animation transfer source model, and then transfer the spatial semantic information to the corresponding BVH of the animation transfer target model after spatial semantic detection, and perform IK adjustment (i.e., model correction) on the transferred animation transfer target model to obtain an animation transfer correction model with the same spatial semantic information as the animation transfer source model. The terminal device 101 is used to display the first animation transfer model pair and the second animation transfer model pair including the animation transfer correction model and the transfer source model on the animation redirection configuration interface.
[0063] For ease of explanation, the following takes the animation redirection method executed by the terminal device 101 as an example, and explains respectively how to perform spatial semantic detection on the BVH of the animation transfer source model, transfer the spatial semantic information from the spatial semantic detection to the corresponding BVH of the animation transfer target model, and perform IK adjustment on the transferred animation transfer target model to obtain an animation transfer correction model with the same spatial semantic information as the animation transfer source model.
[0064] As shown in FIG3A , the terminal device 101 can implement the process of the animation redirection method provided in the embodiment of the present application by performing the following steps S1 to S7:
[0065] Step S1: The terminal device 101 displays an animation transfer source model associated with a first object.
[0066] In an embodiment of the present application, the terminal device 101 can first obtain the target animation data from the server 102, and determine the target frame animation data from the multiple frames of animation data contained in the target animation data. The target frame animation data corresponds to the animation transfer source model associated with the first object to be subjected to spatial semantic transfer, and the animation transfer source model associated with the first object is displayed in the animation redirection configuration interface.
[0067] Step S2: The terminal device 101 displays the animation transfer target model associated with the second object.
[0068] Here, the terminal device 101 may select an animation transfer target model associated with the second object to be subjected to spatial semantic transfer, and display the animation transfer target model associated with the second object in the animation redirection configuration interface.
[0069] Step S3: The terminal device 101 constructs a first local object bounding volume set (ie, a first BVH) for the animation transfer source model.
[0070] Here, the first local object bounding volume set includes N first local object bounding volumes associated with the first object, where N is a positive integer, and one first local object bounding volume includes one local object of the first object. When the user selects the animation transfer source model associated with the first object through the animation redirection interface, the terminal device 101 can construct a first initial local object bounding volume set for the animation transfer source model according to the default BV parameters. Since the default BV parameters are only adapted to parameters such as the length direction of the bone, the radius size usually adopts the default value. Therefore, the first initial local object bounding volume in the first initial local object bounding volume set constructed by the default BV parameters may not fully contain (i.e., cover) a local object. Therefore, in an embodiment of the present application, the user can fine-tune some or all of the first initial local object bounding volumes in the first initial local object bounding volume set to obtain the first local object bounding volume set corresponding to the animation transfer source model. By fine-tuning, the size of the first local object bounding volume in the first local object bounding volume set can be adapted to the scale of the local object of the corresponding first object, thereby achieving reasonable covering of the local object.
[0071] In this embodiment of the present application, constructing a first local object bounding volume set for the animation transfer source model actually involves constructing N first local object bounding volumes associated with the first object, where each first local object bounding volume encompasses a local object of the first object. For example, if the first object is an animated character, one first local object bounding volume may encompass a limb of the character (e.g., the right hand), another first local object bounding volume may encompass the character's left leg, and so on.
[0072] When fine-tuning the first initial local object bounding volume, the size and position of the first initial local object bounding volume can also be adjusted according to the different interactions between the first initial local object bounding volumes. For example, if there is interaction between the first initial local object bounding volume x and the first initial local object bounding volume y, the positions of the first initial local object bounding volume y and the first initial local object bounding volume x can be adjusted so that the first initial local object bounding volume y and the first initial local object bounding volume x are in an interactive state.
[0073] Step S4: The terminal device 101 constructs a second local object bounding volume set (ie, a second BVH) for the animation transfer target model.
[0074] Here, the second local object bounding volume includes M second local object bounding volumes associated with the second object, where M is a positive integer. One second local object bounding volume includes one local object of the second object. When the user selects the animation transfer target model associated with the second object in the animation redirection interface, the terminal device 101 can construct a second initial local object bounding volume set for the animation transfer target model based on the default BV parameters. Since the default BV parameters only adapt to parameters such as the length direction of the bone, its radius size usually adopts a default value. Therefore, the second initial local object bounding volume in the second initial local object bounding volume set constructed by the default BV parameters may not completely contain a local object of the second object. Therefore, in an embodiment of the present application, the user can fine-tune some or all of the second initial local object bounding volumes in the second initial local object bounding volume set to obtain a second local object bounding volume set corresponding to the animation transfer target model. By fine-tuning, the size of the second local object bounding volume in the second local object bounding volume set can be adapted to the scale of the corresponding local object of the second object, thereby achieving reasonable coverage of the local object.
[0075] In this embodiment of the present application, constructing a set of second partial object bounding volumes for the animation transfer target model actually involves constructing M second partial object bounding volumes associated with the second object. Each second partial object bounding volume may contain a partial object of the second object. For example, if the second object is an animated character, each second partial object bounding volume may contain a limb of the animated character (e.g., a right hand, left leg, arm, etc.).
[0076] When fine-tuning the second initial local object bounding volume, the size and position of the second initial local object bounding volume can also be adjusted based on the different interactions between the second initial local object bounding volumes. It should be noted that the fine-tuning process for the second initial local object bounding volume is similar to that for the first initial local object bounding volume and will not be further described here.
[0077] It should be understood that after the first local object bounding volume set and the second local object bounding volume set are constructed in step S3 and step S4, a spatial expression between the animation transfer source model and the animation transfer target model is formed.
[0078] Step S5: The terminal device 101 performs spatial semantic detection on the N first local object bounding volumes in the first local object bounding volume set to obtain spatial semantic detection results, and based on the spatial semantic detection results, selects first local object bounding volume pairs that meet the animation redirection strategy from the N first local object bounding volumes.
[0079] In one implementation, the animation redirection strategy includes an interaction detection strategy, which includes an interaction distance threshold for interaction detection. At this time, the terminal device can detect the nearest point between any two first local object bounding volumes in the first local object bounding volume set, and based on the nearest point distance between any two first local object bounding volumes, determine from the N first local object bounding volumes two first local object bounding volumes corresponding to the nearest point distance less than the interaction distance threshold. These two first local object bounding volumes are the first local object bounding volume pair.
[0080] In some embodiments, the terminal device may use the first local object bounding volume pair as the effective interactive bounding volume of the first object.
[0081] Step S6: The terminal device 101 performs spatial semantic transfer.
[0082] That is to say, the terminal device 101 obtains the spatial semantic information of the effective interactive bounding volume obtained after the spatial semantic detection, and transmits the spatial semantic information of the effective interactive bounding volume to the corresponding second local object bounding volume in the animation transmission target model to obtain the transmission bounding volume carrying the spatial semantic information.
[0083] Here, the spatial semantic information of the effective interactive bounding volume can be used to indicate the spatial relationship between the two first local object bounding volumes in the first local object bounding volume pair. Therefore, the spatial semantic information of the effective interactive bounding volume can be used to constrain the spatial relationship between the corresponding second local object bounding volumes on the animation transfer target model during the animation redirection adjustment process. Since the first local object bounding volume and the second local object bounding volume may differ in size and orientation, this requires that the spatial semantic information of the effective interactive bounding volume obtained in the spatial semantic detection step must ensure the shape, size, and spatial posture invariance of the animation transfer source model and the animation transfer target model during transmission. Therefore, the spatial semantic information of the effective interactive bounding volume obtained in the spatial semantic detection step must be transmitted to the corresponding second local object bounding volume in the second local object bounding volume set. That is, during the spatial semantic transmission process, the same semantic position of the corresponding second local object bounding volume should be reasonably transmitted. For example, if the spatial semantic information of the effective interactive bounding volume includes the medial midpoint of the forearm, then it is necessary to correctly locate the second local object bounding volume containing the forearm among the M second local object bounding volumes, and further locate the medial midpoint of the forearm within the second local object bounding volume.
[0084] In some embodiments, after performing spatial semantic transfer, in order to make the spatial relationship on the animation transfer target model including the transfer bounding volume consistent with the spatial relationship on the animation transfer source model, the terminal device 101 may further perform the following step S7.
[0085] Step S7: The terminal device 101 performs model correction on the animation transfer target model including the transfer bounding volume to obtain an animation transfer correction model.
[0086] In an embodiment of the present application, after obtaining the animation transfer correction model, the animation transfer correction model and the animation transfer source model can be displayed in the animation redirection configuration interface. For example, the end effector can be determined from the animation transfer target model containing the transfer bounding volume. The end effector usually corresponds to a joint point chain related to the second object. By adjusting the position of the end effector, changes can be made in the joint chain where the end effector is located. For example, if the end effector is a hand or a foot, by adjusting the hand and the foot, the remaining upstream joints can undergo corresponding changes that comply with the constraints, thereby obtaining the animation transfer correction model, and then achieving consistency between the spatial relationship of the animation transfer correction model and the spatial relationship on the animation transfer source model.
[0087] For ease of understanding, please refer to Figure 3B, which is a schematic diagram of a model correction provided in an embodiment of the present application. In Figure 3B, the left hand and right elbow of the animation transfer source model 3a maintain a certain distance (i.e., as shown in 31b in Figure 3B), and the left hand and right elbow of the animation transfer target model 3b containing the transfer bounding body obtained after the spatial semantic transfer are too close (i.e., as shown in 31a in Figure 3B). At this time, in order to make the spatial relationship between the bounding bodies on the animation transfer target model containing the transfer bounding body consistent with the spatial relationship between them on the animation transfer source model, the distance between the left hand and the right elbow is increased by adjusting the end effector (such as the left hand), thereby achieving model correction of the animation transfer target model containing the transfer bounding body, and obtaining the animation transfer correction model 3c. At this time, the left hand and right elbow of the animation transfer correction model are consistent (i.e., as shown in 31c in Figure 3B), the spatial relationship is improved, and the animation redirection effect is improved.
[0088] It should be noted that the implementation process of the terminal device 101 performing spatial semantic detection on the first local object bounding volume set, performing spatial semantic transmission based on the spatial semantic detection results, and performing model correction on the animation transmission target model including the transmission bounding volume can be referred to the description of the corresponding embodiments in Figures 4 to 22.
[0089] Please refer to Figure 4, which is a flow chart of an animation redirection method provided in an embodiment of the present application. The animation redirection method can be executed by a computer device, which can be the terminal device 101 or the server 102 in the above-mentioned animation redirection system. For ease of understanding, the animation redirection method provided in an embodiment of the present application is described using the computer device as the terminal device 101 as an example. In the embodiment of the present application, the animation redirection method may include at least the following steps S101 to S105:
[0090] Step S101: Display an animation transfer source model associated with a first object, an animation transfer target model associated with a second object, N first local object bounding volumes associated with the first object, and M second local object bounding volumes associated with the second object on an animation redirection configuration interface.
[0091] Here, N and M are both positive integers; a first local object bounding volume contains a local object of the first object; and a second local object bounding volume contains a local object of the second object.
[0092] The animation transfer source model associated with the first object and the animation transfer target model associated with the second object can be referred to as the first animation transfer model pair to be subjected to spatial semantic transfer. The first object and the second object can be game characters, social characters, animals, etc. The first animation transfer model pair can be displayed in any area on the animation redirection configuration interface (such as the middle area, the right area, etc. of the animation redirection configuration interface), and this embodiment of the application is not limited to this. For example, please refer to Figure 5, which provides a schematic diagram of displaying the first animation transfer model pair on the animation redirection configuration interface for an embodiment of the present application. In Figure 5, the first animation transfer model pair can be displayed in area 50 of the animation redirection configuration interface 500, and the first animation transfer model pair includes an animation transfer source model 51a associated with the first object and an animation transfer target model 51b associated with the second object.
[0093] The first object can contain L first sub-objects, and the animation transfer source model associated with the first object contains an animation transfer source sub-model associated with each first sub-object. The second object can also contain L second sub-objects, and the animation transfer target model associated with the second object contains an animation transfer target sub-model associated with each second sub-object. L is a positive integer. When L is 1, the first sub-object contained in the first object is itself, and the second sub-object contained in the second object is other itself. When L is greater than or equal to 2, the first animation transfer model pair contains L animation transfer sub-model pairs, that is, an animation transfer sub-model pair contains an animation transfer source sub-model associated with the first sub-object, and an animation transfer target sub-model associated with the second sub-object. For ease of understanding, please refer to Figure 6, which is another schematic diagram of displaying the first animation transfer model pair on the animation redirection configuration interface provided in an embodiment of the present application. In Figure 6, area 60 of the animation redirection configuration interface 600 displays an animation transfer source model 61a associated with the first object and an animation transfer target model 62a associated with the second object. The first object includes two first sub-objects, namely, a first sub-object A and a second sub-object B. In this case, the animation transfer source model 61a associated with the first object includes an animation transfer source sub-model 611a associated with the first sub-object A and an animation transfer source sub-model 611b associated with the first sub-object B. The second object includes two second sub-objects, namely, a second sub-object C and a second sub-object D. The animation transfer target model 62a associated with the second object includes an animation transfer target sub-model 621a associated with the second sub-object C and an animation transfer target sub-model 621b associated with the second sub-object D. The first animation transfer model pair can then include two animation transfer sub-model pairs, namely, one animation transfer sub-model pair can include the animation transfer source sub-model 611a associated with the first sub-object A and the animation transfer target sub-model 621a associated with the second sub-object C; the other animation transfer sub-model pair can include the animation transfer source sub-model 611b associated with the first sub-object B and the animation transfer target sub-model 621b associated with the second sub-object D.
[0094] In the embodiment of the present application, local objects of a first object can be determined based on the first object. For example, if the first object is a game character, the local objects of the first object may include but are not limited to: head, left hand, right hand, left foot, right foot, left lower arm, right lower arm, etc.; for another example, if the first object is an animal, the local objects of the first object may include but are not limited to: head, left forefoot, right forefoot, etc. Similarly, local objects of a second object can be determined based on the second object. For example, if the first object is a game character, the local objects of the second object may include but are not limited to: head, left hand, right hand, left foot, right foot, left lower arm, right lower arm, etc.
[0095] The first geometric attribute of the bounding volume of the first local object can be a sphere attribute, a capsule attribute, a cube attribute, etc. Correspondingly, the bounding volume of the first local object corresponding to the first geometric attribute is a sphere, a capsule, a cube, etc.; the second geometric attribute of the bounding volume of the second local object can also be a sphere attribute, a capsule attribute, a cube attribute, etc. Correspondingly, the bounding volume of the second local object corresponding to the second geometric attribute is a sphere, a capsule, a cube, etc.; the first geometric attribute and the second geometric attribute can be the same or different, and the embodiment of the present application does not limit this.
[0096] In an embodiment of the present application, a BVH can be configured for the animation transfer source model and the animation transfer target model displayed on the animation redirection configuration interface, and operations such as adjusting, loading, and saving can be performed for the BV in the BVH configured for the animation transfer source model and the animation transfer target model. For ease of understanding, please refer to Figure 7, which is a schematic diagram of an animation redirection configuration interface provided in an embodiment of the present application. Through the animation redirection configuration interface, the number of animation redirection groups can be set, and a BVH can be constructed for the displayed animation transfer source model and the animation transfer target model. In Figure 7, the animation redirection configuration interface 700 includes a model pair display area 70 and an animation redirection setting area 71a. The model pair display area 70 can be the area 50 in Figure 5 above, or the area 60 in Figure 6. The embodiment of the present application does not limit this. The animation redirection setting area 71a is used to set the number of groups that need to be animated redirected in the scene. The number of animation redirection groups here can be set according to demand, for example, the number of animation redirection groups is 1, 2, etc. Among them, it should be understood that, in an embodiment of the present application, the animation transfer source model associated with the first object and the animation transfer target model associated with the second object can be referred to as a group of redirections. When the first object contains L first sub-objects; the second object contains L second sub-objects, that is, the first animation transfer model pair contains L animation transfer sub-model pairs, and at this time the number of groups of animation redirection is L. In some embodiments, the animation orientation setting area may include an application option 710a, and the user can trigger (such as clicking or double-clicking) the application option 710a. Accordingly, the terminal device 101 can respond to the trigger operation for the application option 710a, and can generate one or more animation redirection groups (i.e., Retarget or) that meet the number of animation redirection groups according to the number of animation redirection groups.
[0097] The animation redirection configuration interface may also include an animation transfer source model option 711a and an animation transfer target model option 721a. At this time, before displaying the first animation transfer model pair to be spatially semantically transferred on the animation redirection configuration interface, the user can trigger the animation transfer source model option 711a. The terminal device 101 can respond to the trigger operation of the animation transfer source model option 711a and display multiple frames of animation data. Each frame of animation data contains an animation transfer source model associated with the first object, and determine the target frame animation data from the multiple frames of animation data. The target frame animation data corresponds to the animation transfer source model associated with the first object. Similarly, the user can trigger the animation transfer target model option 721a. The terminal device 101 can respond to the trigger operation of the animation transfer target model option and select an animation transfer target model from the animation transfer target model library.
[0098] The animation redirection interface also includes an animation transfer source model configuration area 71b and an animation transfer target model configuration area 71c. The animation transfer source model option 711a is located in the animation transfer source model configuration area 71b, and the animation transfer target model option 721a is located in the animation transfer target model configuration area 71c. The animation transfer source model configuration area 71b includes a first bounding volume initialization option 711b, an unbinding option 711c, a first mirror option 711d, a first save option 711e, and a first load option 711f.
[0099] Among them, the first bounding volume initialization option 711b can be used to initialize the local object bounding volume of the animation transfer source model, thereby obtaining N first initial local object bounding volumes associated with the first object. The unbinding option 711c is used to unbind the animation transfer source model from the N first initial local object bounding volumes. The first mirror option 711d is used to transfer the parameter information of the first local object bounding volume edited on one side of the symmetrical limb to the first local object bounding volume of the other limb that is symmetrical to it when the first object has symmetrical limbs (i.e., symmetrical local objects). For example, the left and right arms of the first object are symmetrical limbs. After the first initial local object bounding volume containing the left arm is completely edited to obtain the first local object bounding volume containing the left arm, the parameter information of the first local object bounding volume can be directly transferred to the first initial local object bounding volume containing the right arm through the first mirror option, thereby obtaining the first local object bounding volume containing the right arm. The first mirror option can be used to quickly construct N first local object bounding volumes associated with the first object. The first save option 711e is used to save the configuration file corresponding to the N first local object bounding volumes associated with the first object. The first loading option 711f is used to load the saved configuration file of N first local object bounding volumes associated with the first object.
[0100] In an embodiment of the present application, displaying N first local object bounding volumes associated with the first object on the animation redirection configuration interface can be: in response to the trigger operation of the first bounding volume initial option, displaying the N first initial local object bounding volumes associated with the first object; then, unbinding the N first initial local object bounding volumes from the animation transfer source model to obtain the N unbound first initial local object bounding volumes; in response to the adjustment operation on the N unbound first initial local object bounding volumes, adjusting the N unbound first initial local object bounding volumes to obtain N first local object bounding volumes associated with the first object, and displaying the N first local object bounding volumes associated with the first object on the animation redirection configuration interface.
[0101] It should be noted that before editing the N first initial local object bounding volumes, the N first initial local object bounding volumes need to be untied from the animation transfer source model, while when editing the M second initial local object bounding volumes, there is no need to untie the M second initial local object bounding volumes from the animation transfer target model.
[0102] In an embodiment of the present application, the N first initial local object bounding volumes and the animation transfer source model are untied to obtain the N untied first initial local object bounding volumes. This can be done by: in response to a trigger operation (such as a click operation, a double-click operation, an interactive operation, etc.) for the unbinding option 711c, the N first initial local object bounding volumes and the animation transfer source model are untied to obtain the N untied first initial local object bounding volumes.
[0103] In some embodiments, the animation transfer target model configuration area 71c may also include a second bounding volume initialization option 721b, a first geometric attribute bounding volume addition option 721c, a second geometric attribute bounding volume addition option 721d, a second mirroring option 721e, a second save option 721f, and a second load option 721g. The second bounding volume initialization option 721b can be used to initialize the local object bounding volume of the animation transfer target model, obtaining M initial second local object bounding volumes associated with the second object. The first geometric attribute bounding volume addition option 721c is used to add a first geometric attribute bounding volume to the scene to enclose an additional moving object. The second geometric attribute bounding volume addition option 721d is used to add a second geometric attribute bounding volume to the scene to enclose an additional moving object. The moving objects here can be determined based on different scenarios. For example, if the scenario is a game scene, the moving objects may include, but are not limited to, gaming equipment and social equipment. Gaming equipment may include backpacks, armor, etc., and social equipment may include, for example, glow sticks. The second mirror option 721e is used to transfer the parameter information of the edited second partial object bounding volume on one side of the symmetrical limb to the second partial object bounding volume of the other symmetrical limb when the second object has a symmetrical limb (i.e., a symmetrical partial object). The second save option 721f is used to save the configuration file corresponding to the M second partial object bounding volumes associated with the second object. The second load option 721g is used to load the saved configuration file of the M second partial object bounding volumes associated with the second object.
[0104] In an embodiment of the present application, displaying M second local object bounding volumes associated with the second object on the animation redirection configuration interface may include: in response to a triggering operation of an initial option of the second bounding volume, displaying the M second initial local object bounding volumes associated with the second object; and, in response to an adjustment operation on the M second initial local object bounding volumes, adjusting the M second initial local object bounding volumes to obtain M second local object bounding volumes associated with the second object, and displaying the M second local object bounding volumes associated with the second object on the animation redirection configuration interface.
[0105] Here, the first local object enclosing volume and the second local object enclosing volume can be a sphere, a capsule, a cube, a cuboid, etc. The adjustment operation in the embodiment of the present application can include one or more of the following: a move operation, a zoom operation, and a rotation operation. In the embodiment of the present application, an adjustment operation can be performed on some or all of the N first initial local object enclosing volumes, and an adjustment operation can also be performed on some or all of the M second initial local object enclosing volumes. The first local object enclosing volume or the second local object enclosing volume obtained by the adjustment operation can more reasonably cover the corresponding local object.
[0106] In the embodiment of the present application, by establishing a first local object enclosing volume, a second local object enclosing volume and an additional enclosing volume for the moving object, and introducing adjustments to the first local object enclosing volume and the second local object enclosing volume, the degree of coverage of the local object of the object by the enclosing volume is made more reasonable, and rigid objects on the limbs, such as backpacks, armor, helmets, etc., can be correctly covered. It is even possible to introduce the BV of the game tool as needed to give the game tool interactive redirection, thereby greatly improving the adaptability to various complex models. When processing complex models, it solves the problem that its general shell mesh cannot be correctly generated on complex models, which can improve the processing effect on armor or complex character models.
[0107] In an embodiment of the present application, the moving operation can be a moving operation for different directions. For example, refer to Figure 8, which is a schematic diagram of a moving operation provided by an embodiment of the present application. In Figure 8, it is schematically shown that the first initial local object enclosing volume or the second initial local object enclosing volume can be moved from three directions (i.e., direction 1, direction 2, and direction 3). When the adjustment operation is a moving operation, in response to the moving operation for the first initial local object enclosing volume, the first initial local object enclosing volume can be moved in the direction indicated by the moving operation.
[0108] The scaling operation can be to enlarge or reduce the first initial local object enclosing volume or the second initial local object enclosing volume in different directions to achieve adjustment of the size of the first initial local object enclosing volume. For example, refer to Figure 9, which is a schematic diagram of a scaling operation provided by an embodiment of the present application. In Figure 9, scaling the first initial local object enclosing volume or the second initial local object enclosing volume from three directions (i.e., direction x, direction y, and direction z) is schematically given. When the adjustment operation is the first scaling operation, in response to the first scaling operation for the first initial local object enclosing volume, the first initial local object enclosing volume can be enlarged in the direction indicated by the scaling operation. In response to the second scaling operation for the first initial local object enclosing volume, the first initial local object enclosing volume can be reduced in the direction indicated by the scaling operation.
[0109] The rotation operation can be to adjust the position of the first initial local object enclosing volume or the second initial local object enclosing volume along different directions. For example, refer to Figure 10, which is a schematic diagram of a rotation operation provided by an embodiment of the present application. In Figure 10, the first initial local object enclosing volume or the second initial local object enclosing volume is rotated from three directions (i.e., direction A, direction B, and direction C). When the adjustment operation is a rotation operation, the first initial local object enclosing volume can be rotated in the direction indicated by the rotation operation in response to the rotation operation on the first initial local object enclosing volume.
[0110] In some embodiments, the animation redirection configuration interface may also include a contact table selection option 731a. By triggering the contact table selection option, a contactable definition table can be configured for the animation transfer source model. The contactable definition table can be used to define the contact possibility between different first local object bounding volumes in the animation transfer source model. For example, the contact possibility can be indicated by 0 / 1. When the contact possibility between any two first local object bounding volumes is 0, it indicates that the contact relationship between the two first local object bounding volumes is non-contact. When the contact possibility between the first local object bounding volumes is 1, it indicates that the two first local object bounding volumes may be in contact. For example, as shown in Table 1, Table 1 shows the contact possibility between some first local object bounding volumes in the animation transfer source model:
[0111] Table 1
[0112] As can be seen from Table 1, the contact probability between the right hand's BV (i.e., the first local object bounding volume containing the right hand) and the right hand's BV (i.e., the first local object bounding volume containing the right hand) is non-contact; the contact probability between the left hand's BV (i.e., the first local object bounding volume containing the left hand) and the right hand's BV (i.e., the first local object bounding volume containing the right hand) is possible contact. Similarly, the contact relationship between all first local object bounding volumes in the animation transfer source model can be defined in the contactable definition table. By configuring the contactable definition table for the transfer source, a certain amount of computation can be saved during subsequent spatial semantic detection, that is, spatial semantic detection can be performed on the first local object bounding volumes that may be in contact.
[0113] It should be noted that when the first object contains L first sub-objects, this means that there is a possibility of contact between the first local object bounding volumes of each first sub-object. In this case, the contact definition table can define the contact possibility between each first local object bounding volume in the animation transfer source sub-model associated with the first sub-object. The contact definition table can also define the contact possibility between first local object bounding volumes in different animation transfer source sub-models. For example, the first object contains two first sub-objects (i.e., first sub-object 1 and first sub-object 2). In this case, the contact definition table can define the contact possibility between each first local object bounding volume in the animation transfer source sub-model 1 associated with the first sub-object 1. The contact definition table can also define the contact possibility between the first local object bounding volumes in two animation transfer source sub-models (i.e., animation transfer source sub-model 1 associated with the first sub-object 1 and animation transfer source sub-model 2 associated with the first sub-object 2).
[0114] By triggering the Contact Table Selection button, a contactable definition table can also be configured for the animation transfer target model. In this case, the contactable definition table can be used to define the contact possibilities between different second local object bounding volumes in the animation transfer target model. Of course, the contactable definition table source configured for the animation transfer source model and the contactable definition table configured for the animation transfer target model can be a single table. In other words, a single contactable definition table can include both the contact possibilities between first local object bounding volumes and the contact possibilities between second local object bounding volumes. Alternatively, the contactable definition table configured for the animation transfer source model and the contactable definition table configured for the animation transfer target model can be two different tables.
[0115] In some embodiments, the animation redirection configuration interface may further include an end-effector configuration option 731b. By triggering the end-effector configuration option 731b, a first local object bounding volume associated with the first object may be selected as the end-effector. The model may be modified by setting the end-effector. The user may trigger the end-effector configuration option 731b, and the terminal device 101 may then, in response to the triggering operation of the end-effector configuration option 731b, display the N first local object bounding volumes and select the first local object bounding volume from the N first local object bounding volumes as the end-effector.
[0116] It should be understood that, through the end effector configuration option, a second local object bounding volume may be selected from the M second local object bounding volumes associated with the second object as the second local object bounding volume of the end effector.
[0117] In some embodiments, the animation redirection configuration interface may further include a first interaction threshold setting area 731c, which is used to set a first interaction distance threshold for interaction detection. The first interaction distance threshold can be used to determine whether there is a valid interaction between the first local object bounding box associated with the first object. In addition, the animation redirection configuration interface may further display a contact button 731e and a display collision button 731d. The display contact button 731e allows you to choose whether to highlight the first local object bounding box and the second local object bounding box that are in contact in the scene. The display collision button 731d allows you to choose whether to highlight the first local object bounding box that is in contact in the scene and whether to highlight the second local object bounding box that is in contact in the scene.
[0118] The embodiment of the present application does not limit the highlighting method. As an implementation method, when the display contact button is used to select the first local object enclosing body that is in contact to be displayed in different colors in the scene. Then when there is a possibility of contact between the first local object enclosing body S1 and the first local object enclosing body S2, the first local object enclosing body S1 and the first local object enclosing body S2 that may be in contact can be displayed in red. For other first local object enclosing bodies that are not in contact, the first local object enclosing bodies that are not in contact are displayed in black. As another implementation method, the display contact button 731e can be used to select the first local object enclosing body that may be in contact to be displayed in bold in the scene. Then when there is a possibility of contact between the first local object enclosing body S1 and the first local object enclosing body S2, the first local object enclosing body S1 and the first local object enclosing body S2 that may be in contact can be displayed in bold. For other first local object enclosing bodies that are not in contact, it is not necessary to bold them.
[0119] Since the animation transfer source model is a model of one frame of animation data selected from multiple frames of animation data, the multiple frames of animation data constitute the action sequence of the first object. At this time, when the animation data in each frame transfer model is transferred to the animation transfer target model, the action sequence of the second object can also be constituted. In this case, the animation redirection platform can also include a single object sequence detection and correction area 71d, which is used to detect, transfer and correct the action sequence of the first object (that is, presented in the animation transfer source model). The detection here refers to the spatial semantic detection of the N first local object bounding volumes associated with the first object; the transfer refers to the transfer of the spatial semantic information obtained by the spatial semantic detection of the N first local object bounding volumes to the animation transfer target model; the correction refers to the model correction of the animation transfer target model obtained after the spatial semantic information is transferred to the animation transfer target model.
[0120] The single-object sequence detection and correction area 71d may include a start frame setting option 741a and an end frame setting option 741b. These options define the range of frames to be detected and corrected. For example, if the target animation data contains ten frames, the start frame may be the first frame and the end frame may be the seventh frame. This means that the animation data from frames 1 to 7 may be detected, transferred, and corrected. In some embodiments, the single-object sequence detection and correction area may also include a contact frame marking option 741c and a collision frame marking option 741d. The contact frame marking option 741c allows you to set whether to highlight frames where contact occurs, while the collision frame marking option 741d allows you to set whether to highlight frames where collision occurs. It should be understood that a frame where contact occurs refers to a frame where contact occurs between the first local object bounding volumes in the animation transfer source model corresponding to that frame of animation data. A frame where collision occurs refers to a frame where collision occurs between the first local object bounding volumes in the animation transfer source model corresponding to that frame of animation data. It should be understood that the highlight mark can be marked in different colors or through text marks, etc.
[0121] In some embodiments, the single object sequence detection and correction area 71d may further include a finger contact semantics option 741e, through which it may be set whether finger contact semantics need to be considered when performing spatial semantic detection on the N first local object bounding volumes in the animation transfer source model. For example, the single object sequence detection and correction area 71d may further include an adjustment interval frame number setting option 741f, which is used to configure the frame ratio (that is, it can be understood as the frame sampling ratio) for spatial semantic detection, transfer, and model correction. The frame ratio may be, for example, 0.4, 0.5, etc. For example, after setting the start frame and the end frame, the frames between the start frame and the end frame may be sampled according to the frame ratio, and the animation transfer source model corresponding to the sampled frames may be subjected to row spatial semantic detection, transfer, and model correction.
[0122] In some embodiments, the single-object sequence detection and correction area 71d may further include a retention coefficient configuration option 741g, which is used to configure a weight coefficient for maintaining the current position of the animation transfer target model, wherein the larger the retention coefficient, the smaller the adjustment to the current position of the animation transfer target model will be. In addition, the single-object sequence detection and correction area 71d may further include a joint point angle maximum difference setting option 741h, which may be used to set the maximum joint angle difference that can be adjusted for the joint point of the second object in the animation transfer target model containing the transfer bounding volume during the model correction process of the animation transfer target model containing the transfer bounding volume. It should be understood that during the model correction process, if an adjustment is required to make the joint angle of the joint point greater than the set maximum joint angle difference, the adjustment will not be performed.
[0123] In some embodiments, the single object sequence detection and correction area 71d may further include a maximum single adjustment amount setting area 741i. The maximum single adjustment amount setting area 741i is used to set the upper limit of the distance that the joint point corresponding to the second object can be adjusted during the model correction process (such as the distance that the joint point corresponding to the second object can be adjusted to 5cm each time). Alternatively, the single object sequence detection and correction area 71d may further include a first interactive detection button 741j and a first interactive transfer button 741k. The first interactive detection button 741j can be used to perform spatial semantic detection on the N first local object bounding volumes associated with the first object. The spatial semantic information in the N first local object bounding volumes can be transferred to the animation transfer target model through the first interactive transfer button 741k, and corresponding corrections can be made.
[0124] When the first object contains L first sub-objects and the second object contains L second sub-objects, L is a positive integer greater than 1. At this time, it can be understood that there is an action scene of multi-object interaction. For example, taking L as 2 as an example, at this time, it means a two-object interaction scene. For the action scene of multi-object interaction, the embodiment of the present application provides a multi-object interaction adjustment area 71e on the animation redirection configuration interface. As shown in Figure 7, the multi-object interaction adjustment area 71e includes a redirection setting group selection area 751a, and multiple redirection groups can be selected in the redirection setting group selection area 751a, corresponding to multiple redirection mappings in the scene. For example, if L is 2, then two redirection groups can be selected in the redirection setting group selection area 751a, corresponding to two redirection mappings in the scene.
[0125] In a multi-object interaction scene, the models corresponding to the multiple objects are corrected (i.e., in an embodiment of the present application, the second object includes L second sub-objects, and at this time, the animation transfer target sub-model associated with each second sub-object in the L second sub-objects is subjected to model correction). At this time, the global root coordinates corresponding to the animation transfer target sub-model associated with each second sub-object need to be adjusted. The so-called root coordinates are the coordinates of the animation transfer target sub-model. At this time, the animation redirection configuration interface also includes an end adjustment weight configuration area 751b and a root adjustment weight configuration area 751c. Among them, the end adjustment weight configuration area 751b is used to configure the end adjustment weight of the animation transfer target sub-model, and the end adjustment weight refers to: when a certain animation transfer target sub-model is subjected to model correction, the adjustment weight required when the bounding body of the animation transfer target sub-model as the end effector reaches a certain end position. The root adjustment weight configuration area 751c is used to configure the root adjustment weight of a certain animation transfer target sub-model. The root adjustment weight refers to the adjustment weight required by the animation transfer target sub-model when the bounding body of the end effector reaches a certain end position (i.e., the target position) during model correction of a certain animation transfer target sub-model. In simple terms, in a multi-object interactive scene, due to the interaction between different animation transfer source sub-models, after the spatial semantic information is transferred to different animation transfer target sub-models, when adjusting the position of the bounding body of the hand containing the second sub-object, for example, it is necessary not only to configure the end adjustment weight of the bounding body of the hand containing the second sub-object, but also to consider the interaction between different animation transfer target sub-models. Therefore, it is also necessary to configure the root adjustment weight required to move the entire animation transfer target sub-model. The accuracy of model correction can be achieved through the end adjustment weight and the root adjustment weight.
[0126] In some embodiments, the animation redirection configuration interface may further include an interaction distance threshold setting area 751d, which is used to set a second interaction distance threshold for interaction detection. The second interaction distance threshold is used to determine whether there is a valid interaction in the first local object bounding volume associated with different first sub-objects. The multi-object interaction adjustment area 71e may also include a second interaction detection button 751e and a second interaction transfer button 751f. The second interaction detection button 751e can be used to perform spatial semantic detection on the N first local object bounding volumes associated with the first object. The second interaction transfer button can be used to transfer the spatial semantic information between the N first local object bounding volumes to the animation transfer target model, and perform corresponding model corrections to maintain the spatial semantics.
[0127] Step S102: perform spatial semantic detection on the N first local object bounding volumes to obtain spatial semantic detection results, and based on the spatial semantic detection results, screen out first local object bounding volume pairs that meet the animation redirection strategy from the N first local object bounding volumes, and use the screened out first local object bounding volume pairs that meet the animation redirection strategy as the effective interactive bounding volumes of the first object.
[0128] Here, in response to the spatial semantic detection trigger operation for the N first local object bounding volumes, spatial semantic detection can be performed on the N first local object bounding volumes to obtain a spatial semantic detection result. The spatial semantic detection result may include the closest point pair and the closest point distance between any two first local object bounding volumes in the N first local object bounding volumes. It should be understood that the spatial semantic detection trigger operation may be a trigger operation for the first interactive detection button or a trigger operation for the second interactive detection button, and the trigger operation may be, for example, a click, a double-click, etc. The effective interactive bounding volume includes the first local object bounding volume.
[0129] The animation redirection strategy includes an interaction detection strategy and an interaction transfer strategy. The interaction detection strategy is used to select first local object bounding volume pairs from N first local object bounding volumes, and the interaction transfer strategy is used to perform interaction transfer (i.e., spatial semantic transfer). The interaction detection strategy may include an interaction distance threshold for interaction detection. In this case, the N first local object bounding volumes include first local object bounding volume i and first local object bounding volume j, where i is not equal to j, and both i and j are positive integers less than or equal to N.
[0130] Based on the spatial semantic detection result between the first local object bounding volume i and the first local object bounding volume j, screening out a first local object bounding volume pair from N first local object bounding volumes may include: based on the spatial semantic detection result, obtaining the first local object bounding volume i and the first local object bounding volume j from the N first local object bounding volumes, and determining the first closest point distance between the first local object bounding volume i and the first local object bounding volume j; if the first closest point distance between the first local object bounding volume i and the first local object bounding volume j is less than the interaction distance threshold, then using the first local object bounding volume i and the first local object bounding volume j as the first local object bounding volume pair screened out from the N first local object bounding volumes that meets the animation redirection strategy.
[0131] The interaction distance threshold may include a first interaction distance threshold and a second interaction distance threshold. When the first object does not contain a first sub-object, the interaction distance threshold includes the first interaction distance threshold. When the first object contains L first sub-objects, the interaction distance threshold includes the first interaction distance threshold and the second distance interaction threshold. The first interaction distance threshold can be used to determine whether there is a valid interaction between first local object bounding volumes associated with a certain first sub-object, while the second interaction threshold is used to determine whether there is a valid interaction between first local object bounding volumes associated with different first sub-objects.
[0132] When the spatial semantic detection trigger operation is a trigger operation for the first interaction detection button, the interaction distance threshold may include the first interaction distance threshold; when the spatial semantic detection trigger operation is a trigger operation for the second interaction detection button, the interaction distance threshold may include the first interaction distance threshold and the second interaction threshold.
[0133] Step S103: Search for a second local object bounding volume that satisfies the animation redirection strategy among the M second local object bounding volumes, and use the second local object bounding volume that satisfies the animation redirection strategy as the bounding volume to be transferred. When the spatial semantic information of the effective interactive bounding volume is obtained based on the spatial semantic detection result, the spatial semantic information is transferred from the effective interactive bounding volume to the bounding volume to be transferred, and a transferred bounding volume carrying the spatial semantic information is obtained.
[0134] Here, the spatial semantic information is used to describe the spatial relationship of the effective interactive bounding volume. The spatial semantic information of the effective interactive bounding volume can be used to constrain the spatial relationship of the bounding volume to be transferred with the same local object attributes on the animation transfer target model during the redirection adjustment process.
[0135] In response to an interactive transfer operation, a second local object bounding volume that satisfies the animation redirection strategy may be searched among the M second local object bounding volumes. The interactive transfer operation may be at least one of a triggering operation for the first interactive transfer button and a triggering operation for the second interactive transfer option.
[0136] The animation redirection strategy includes an interactive transfer strategy, which includes local object attributes of the effective interactive bounding volume. At this time, searching for the second local object bounding volume that meets the animation redirection strategy in the M second local object bounding volumes can be: searching for a second local object bounding volume with the same local object attributes as the effective interactive bounding volume in the M second local object bounding volumes, and determining the second local object bounding volume with the same local object attributes as the effective interactive bounding volume as the second local object bounding volume that meets the animation redirection strategy. In an embodiment of the present application, the effective interactive bounding volume can include a first effective interactive bounding volume and a second effective interactive bounding volume. At this time, searching for the second local object bounding volume with the same local object attributes as the effective interactive bounding volume in the M second local object bounding volumes can include: searching for a second local object bounding volume with the same local object attributes as the first effective interactive bounding volume in the M second local object bounding volumes as the first bounding volume to be transferred corresponding to the first effective interactive bounding volume, and searching for a second local object bounding volume with the same local object attributes as the second effective interactive bounding volume in the M second local object bounding volumes as the second bounding volume to be transferred corresponding to the second effective interactive bounding volume.
[0137] In the embodiment of the present application, the second object includes L second sub-objects, and the M second local object bounding volumes include a second local object bounding volume associated with the L second sub-objects. In this case, the animation transfer source sub-model corresponding to the valid interactive bounding volume is first determined, and then, based on the multiple redirection groups configured in the redirection setting group selection area 751a, the animation transfer target sub-model having an animation redirection relationship with the animation transfer source sub-model is determined. Then, the animation transfer target sub-model having an animation redirection relationship with the animation transfer source sub-model is searched for a second local object bounding volume having the same local object attributes as the valid interactive bounding volume. It is understood that the local object attributes can be, for example, left hand, right hand, etc.
[0138] Step S104: Obtain model correction parameters determined by the spatial semantic information, perform model correction processing on the animation transfer target model including the transfer bounding volume based on the model correction parameters, obtain the animation transfer target model after model correction processing, and display the animation transfer target model after model correction processing on the animation redirection configuration interface. The spatial semantic information of the animation transfer target model after model correction processing remains consistent with the spatial semantic information of the animation transfer target model after model correction processing.
[0139] In an embodiment of the present application, the animation transfer target model after model correction processing can be used as the animation transfer correction model, and the animation transfer correction model and the animation transfer source model are displayed on the animation redirection configuration interface. The animation transfer correction model and the animation transfer source model can be referred to as a second animation transfer model pair. By using the animation transfer target model after model correction as the animation transfer correction model and displaying the animation transfer correction model and the animation transfer source model on the animation redirection interface, it is possible to more intuitively present the effect that the animation transfer correction model and the animation transfer source model have the same spatial semantic information (such as the animation transfer correction model and the animation transfer source model have the same spatial semantic information "hand on top of the head", at this time, the hand of the second object of the animation transfer source model is placed on top of the head, and the hand of the second object in the animation transfer correction model is also placed on top of the head).
[0140] In an embodiment of the present application, a first local bounding volume is constructed for an animation transfer source model and a second local bounding volume is constructed for an animation transfer target model, resulting in N first local object bounding volumes associated with the first object and M second local object bounding volumes associated with the second object. The N first local object bounding volumes can form a spatial representation of the animation transfer source model, and then spatial semantic detection can be performed on the N first local object bounding volumes to obtain spatial semantic detection results. Based on the spatial semantic detection results, valid interactive bounding volumes that meet the animation redirection strategy are screened from the N first local object bounding volumes, thereby transferring the spatial semantic information of the valid interactive bounding volumes to the second local object bounding volumes that meet the animation redirection strategy to obtain mapping bounding volumes. Directly transferring the spatial semantic information of the valid interactive bounding volumes saves the amount of data transferred, thereby improving redirection efficiency to a certain extent. Furthermore, transferring the spatial semantic information of the valid interactive bounding volumes to the second local object bounding volumes that meet the animation redirection strategy means that the embodiment of the present application can more accurately map the spatial semantic information of the valid interactive bounding volumes in the mapping source model to the corresponding second local object bounding volumes in the mapping target model, thereby improving the accuracy of spatial semantic transfer during the animation redirection process. The embodiment of the present application can perform model correction processing on the animation transfer target model including the mapping bounding volume according to the model correction parameters determined by the spatial semantic information, and obtain the animation transfer target model after model correction. The model correction can be performed automatically, so that the spatial semantic information of the animation transfer target model after model correction is consistent with the animation transfer source model, without manual adjustment. While improving the efficiency of animation redirection, it effectively ensures that the spatial posture of the animation transfer target model after model correction and the animation transfer source model are consistent. It can also improve the accuracy of spatial semantic transfer and maintain the accuracy of spatial semantic transfer during the animation redirection process, and improve the consistency of animation data presented by the animation transfer target model and the animation transfer source model. In addition, the animation transfer target model after model correction is used as the animation transfer correction model, and the animation transfer correction model is displayed on the animation redirection interface, so that the effect of the animation transfer correction model can be presented more intuitively.
[0141] Please refer to Figure 11 below, which is a flow chart of another animation redirection method provided in an embodiment of the present application. The animation redirection method can be executed by a computer device, which can be the terminal device 101 or the server 102 in the above-mentioned animation redirection system. For ease of understanding, the animation redirection method provided in the embodiment of the present application is described using the computer device as the terminal device 101 as an example. In the embodiment of the present application, the animation redirection method can at least include the following steps S201 to S212:
[0142] Step S201: Displaying an animation transfer source model associated with a first object and an animation transfer target model associated with a second object on an animation redirection configuration interface.
[0143] Step S202: Display N first local object bounding volumes associated with the first object and M second local object bounding volumes associated with the second object on the animation redirection configuration interface; N and M are both positive integers; one first local object bounding volume contains one local object of the first object; one second local object bounding volume contains one local object of the second object. The N first local object bounding volumes include a first local object bounding volume i and a first local object bounding volume j; i is not equal to j, and both i and j are positive integers less than or equal to N.
[0144] The implementation of step S201 and step S202 may refer to the specific implementation of step S101 above, and will not be repeated here.
[0145] Step S203: Obtain the first local object bounding volume i and the first local object bounding volume j from the contactable definition table associated with the N first local object bounding volumes.
[0146] Here, the N first local object bounding volumes include the first local object bounding volume i and the first local object bounding volume j; i is not equal to j, and i and j are both positive integers less than or equal to N; the first local object bounding volume i and the first local object bounding volume j are local object bounding volumes that meet the local contact conditions in the contactable definition table; the contactable definition table is configured for the animation transfer source model.
[0147] In the embodiment of the present application, any two first local object bounding volumes (e.g., first local object bounding volume i and first local object bounding volume j) can also be directly obtained from the N first local object bounding volumes, and step S204 is executed. Since the embodiment of the present application mainly performs spatial semantic detection on first local bounding volumes that have interaction or potential contact, obtaining first local object bounding volumes i and j from the contactable definition table associated with the N first local object bounding volumes can save a certain amount of computation.
[0148] Step S204: Determine a first geometric attribute of the first local object bounding volume i and a second geometric attribute of the first local object bounding volume j.
[0149] The first geometric attribute and the second geometric attribute may be the same attribute or different attributes. The first geometric attribute may be a sphere attribute, a capsule attribute, a cube attribute, etc., and the second geometric attribute may be a sphere attribute, a capsule attribute, or a cube attribute.
[0150] Step S205 : Determine a first local contact surface of the first local object bounding volume i and a second local contact surface of the first local object bounding volume j based on the first geometric attribute, the second geometric attribute, and the contact relationship indicated by the local contact condition.
[0151] In some embodiments, step S205 may include but is not limited to the following three situations:
[0152] Case 1: The first geometric attribute is a sphere attribute, and the second geometric attribute is a sphere attribute, that is, the first local object enclosing volume i is a sphere, and the first local object enclosing volume j is a sphere. At this time, based on the first geometric attribute, the second geometric attribute and the contact relationship indicated by the local contact condition, it can be determined that the first local contact surface of the first local object enclosing volume i is a local sphere contact surface, and the second local contact surface of the first local object enclosing volume j is also a local sphere contact surface. As shown in Figure 12, Figure 12 is a schematic diagram of the nearest point between a sphere and a sphere provided in an embodiment of the present application. The first local object enclosing volume i is sphere 1, and the first local object enclosing volume j is sphere 2. At this time, based on the first geometric attribute, the second geometric attribute and the contact relationship indicated by the local contact condition, it can be determined that the first local contact surface of the first local object enclosing volume i is a local sphere contact surface, and the second local contact surface of the first local object enclosing volume j is also a local sphere contact surface.
[0153] Case 2: The first geometric attribute is a sphere attribute, and the second geometric attribute is a capsule attribute, that is, the first local object bounding volume i is a sphere, and the second local object bounding volume j is a capsule, which contains a sphere and a cylinder.
[0154] Assume that the contact relationship indicated by the local contact condition is: the first local object enclosing volume i is located on the side of the sphere contained in the first local object enclosing volume j. As shown in Figure 13, Figure 13 is a schematic diagram of the nearest point between the sphere and the capsule provided in an embodiment of the present application. The first local object enclosing volume i is the sphere 3, and the first local object enclosing volume j is the capsule 511, which contains the sphere 5111a and the cylinder 5111b. The contact relationship indicated by the local contact condition includes that the sphere 3 is located on the side of the sphere 5111a contained in the capsule 511. At this time, based on the first geometric attribute, the second geometric attribute and the contact relationship indicated by the local contact condition, it can be determined that the first local contact surface of the first local object enclosing volume i is the local sphere contact surface, and the second local contact surface of the first local object enclosing volume j is also the local sphere contact surface.
[0155] Assume that the contact relationship indicated by the local contact condition is: the first local object bounding volume i is located on the side of the cylinder contained in the first local object bounding volume j. For example, in Figure 13, the contact relationship indicated by the local contact condition includes the sphere 4 being located on the side of the cylinder 5111b contained in the capsule body 511. Then, it can be determined that the first local contact surface of the first local object bounding volume i is the local sphere contact surface, and the second local contact surface of the first local object bounding volume j is the local cylinder contact surface.
[0156] Case 3: The first geometric attribute is a capsule attribute, and the second geometric attribute is a capsule attribute, that is, the first local object bounding volume i and the first local object bounding volume j are capsules, and the capsule includes a sphere and a cylinder.
[0157] Assume that the contact relationship indicated by the local contact condition is: the cylinder centerline segment of the first local object bounding volume i is not located on the side of the cylinder contained by the first local object bounding volume j, and the cylinder centerline segment of the first local object bounding volume j is not located on the side of the cylinder contained by the first local object bounding volume i. For example, see Figure 14, which is a schematic diagram of the closest point between capsules. In Figure 14, the first local object bounding volume i is capsule 6, and the first local object bounding volume j is capsule 8. In this case, capsule 6 contains sphere 6a and cylinder 6b, and capsule 8 contains sphere 8a and cylinder 8b. In this case, it can be seen that the contact relationship indicated by the local contact condition includes that the cylinder centerline segment AB of the first local object bounding volume i is not located on the side of cylinder 8b contained by the first local object bounding volume j. In this case, based on the first geometric attribute, the second geometric attribute, and the contact relationship indicated by the local contact condition, it can be determined that the first local contact surface of the first local object bounding volume i is a local spherical contact surface, and the second local contact surface of the first local object bounding volume j is also a local spherical contact surface.
[0158] Assume that the contact relationship indicated by the local contact condition is: in the first local object bounding volume i and the first local object bounding volume j, the target endpoint of the cylindrical centerline segment of either local object bounding volume (such as the first local object bounding volume i) is located on the cylindrical side surface of the other local object bounding volume (such as the first local object bounding volume j). For example, in Figure 14, the first local object bounding volume i is capsule 7, and the first local object bounding volume j is capsule 8. In this case, capsule 7 contains sphere 7a and cylinder 7b, and capsule 8 contains sphere 8a and cylinder 8b. At this time, it can be seen that the contact relationship indicated by the local contact condition includes: the endpoint D of the cylindrical centerline segment CD of the first local object bounding volume i is located on the side surface of cylinder 8b contained in the first local object bounding volume j. Therefore, it can be determined that the first local contact surface of the first local object bounding volume i is the local sphere contact surface, and the second local contact surface of the first local object bounding volume j is the local cylinder contact surface.
[0159] Assume that the contact relationship indicated by the local contact condition is: the closest points between the cylindrical line segments of the first local object bounding volume i and the cylindrical line segments of the first local object bounding volume j are projected onto and within their respective cylindrical centerline segments. For example, in Figure 14, the first local object bounding volume i is capsule 9, and the first local object bounding volume j is capsule 8. In this case, capsule 9 contains sphere 9a and cylinder 9b, and capsule 8 contains sphere 8a and cylinder 8b. In this case, the closest points between the cylindrical line segments of the first local object bounding volume i and the first local object bounding volume j are points m6 and n6, respectively. In this case, point m6 is projected onto and within cylinder centerline segment GH, and point n6 is projected onto and within cylinder centerline segment EF. Therefore, the first local contact surface of the first local object bounding volume i can be determined to be a local cylindrical contact surface, and the second local contact surface of the first local object bounding volume j can be determined to be a local cylindrical contact surface.
[0160] Step S206 : Determine a first closest point pair between the first local object bounding volume i and the first local object bounding volume j based on the first local contact surface and the second local contact surface.
[0161] Here, by connecting the points on the first contact surface and the second contact surface, the first closest point pair between the first local contact surface and the second local contact surface can be determined. It should be understood that the first closest point pair between the first local object bounding volume i and the first local object bounding volume j includes: the first closest point of the first local object bounding volume i (i.e., the closest point on the first local bounding volume i) and the second closest point of the first local object bounding volume j (i.e., the closest point on the first local bounding volume j).
[0162] Step S207 : Determine the closest point distance between the first closest point and the second closest point, and use the closest point distance between the first closest point and the second closest point as the first closest point distance between the first local object bounding volume i and the first local object bounding volume j.
[0163] The closest point distance between the first closest point and the second closest point is the distance between the first closest point pair, that is, the distance between the first closest point and the second closest point. The closest point distance between the first closest point and the second closest point can be used as the first closest point distance between the first local object enclosing volume i and the first local object enclosing volume j. There are certain differences in determining the closest point distance between the first closest point and the second closest point based on the contact relationship indicated by the local contact condition, the first geometric attribute, and the second geometric attribute. Next, several methods for determining the closest point distance between the first closest point and the second closest point provided in the embodiments of the present application are explained with examples. It should be understood that the embodiments of the present application do not impose any restrictions on how to determine the closest point distance between the first closest point and the second closest point.
[0164] Method 1: Both the first and second geometric attributes are spherical attributes, that is, the first local object bounding volume i and the first local object bounding volume j are spheres. In this case, determining the closest point distance between the first closest point and the second closest point can include: determining the sphere center distance between the first local object bounding volume i and the first local object bounding volume j; and determining the closest point distance between the first closest point and the second closest point based on the sphere center distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
[0165] Here, the radius of the first local object bounding volume i and the radius of the first local object bounding volume i can be determined as follows: determine the center of the first local object bounding volume i, and determine the radius of the first local object bounding volume i based on the center of the first local object bounding volume i and the first closest point; then determine the center of the first local object bounding volume j, and determine the radius of the first local object bounding volume j based on the center of the first local object bounding volume j and the second closest point. For example, in Figure 12 above, the first local object bounding volume i is sphere 1, and the first local object bounding volume j is sphere 2. In this case, the center of the first local object bounding volume i is O1, the center of the first local object bounding volume j is O2, the first closest point is m1, and the second closest point is n1. The terminal device can calculate the distance from the first closest point to the center O1 as the radius of the first local object bounding volume i; similarly, the distance from the second closest point to the center O2 can be calculated as the radius of the first local object bounding volume j. Then, the closest point distance between the first closest point and the second closest point is obtained by subtracting the sum of the radii of the first local object bounding volume i and the first local object bounding volume j from the center-of-sphere distance between the center O1 and the center O2. That is, the closest point distance is the distance between the first closest point m1 and the second closest point n1.
[0166] Method 2: The first geometric attribute is a sphere attribute, and the second geometric attribute is a capsule attribute, that is, the first local object bounding volume i is a sphere, the first local object bounding volume j is a capsule, and the first local object bounding volume j includes a cylinder and a sphere.
[0167] In one case, the contact relationship indicated by the local contact condition is that the first local object bounding volume i is located on the side of the sphere contained by the first local object bounding volume j. At this time, determining the closest point distance between the first closest point and the second closest point can include: determining the center distance between the center of the first local object bounding volume i and the first local object bounding volume j, and based on the center distance between the center of the first local object bounding volume i and the first local object bounding volume j, the radius of the first local object bounding volume i and the radius of the first local object bounding volume j, determining the closest point distance between the first closest point and the second closest point.
[0168] The radius of the first local object bounding volume i and the radius of the first local object bounding volume j can be determined by: determining the radius of the first local object bounding volume i based on the first nearest point and the center of the first local object bounding volume i; determining the radius of the first local object bounding volume i based on the first nearest point and the center of the first local object bounding volume i; and determining the radius of the second local object bounding volume j based on the second nearest point and the center of the first local object bounding volume j.
[0169] For example, in FIG13 above, the first local object bounding volume i is a sphere 3, the center of the first local object bounding volume i is O3, the first local object bounding volume j is a capsule 511, the center of the first local object bounding volume j is O4, and the contact relationship indicated by the local contact condition includes that the first local object bounding volume i is located on the side of the sphere 5111a contained in the first local object bounding volume j, and the first closest point pair is point m2 (i.e., the first closest point) and point n2 (i.e., the second closest point). At this time, the terminal device can calculate the first closest point and the first local object bounding volume. The distance between the center O3 of the first local object bounding volume i is used as the radius of the first local object bounding volume i, and then the distance between the center O4 of the first local object bounding volume j and the second closest point is calculated as the radius of the first local object bounding volume j; then the center-center distance between the center O3 and the center O4 is calculated, and the closest point distance between the first closest point and the second closest point is determined based on the sum of the center-center distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j, that is, the closest point distance is the closest point distance between point m2 and point n2.
[0170] In another case, the contact relationship indicated by the local contact condition is that the first local object bounding volume i is located on the side of the cylinder contained in the first local object bounding volume j; at this time, determining the closest point distance between the first closest point and the second closest point can include: determining the closest point distance between the first closest point and the second closest point based on the distance between the center of the first local object bounding volume i and the center line segment of the cylinder contained in the first local object bounding volume j, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
[0171] It can be understood that the radius of the first local object bounding volume i and the radius of the first local object bounding volume j can be determined by determining the radius of the first local object bounding volume i based on the first nearest point and the center of the sphere of the first local object bounding volume i; and determining the distance between the second nearest point and the center line segment of the cylinder contained in the first local object bounding volume j as the radius of the first local object bounding volume j.
[0172] For example, in Figure 13, the first local object bounding volume i is a sphere 4, and the first local object bounding volume j is a capsule 511. At this time, the first closest point is m3, and the second closest point is n3. The terminal device can calculate the distance between the first closest point and the center O5 of the first local object bounding volume i as the radius of the first local object bounding volume i, and use the distance between the second closest point n3 and the center line segment of the cylinder contained in the first local object bounding volume j as the radius of the first local object bounding volume j; then, calculate the distance between the second closest point n3 and the center line segment O4O6 of the first local object bounding volume j as the radius of the first local object bounding volume j, and then calculate the distance between the center O5 of the first local object bounding volume i and the center line segment O4O6 contained in the first local object bounding volume j. Based on the calculated distance, subtract the sum of the radii of the first local object bounding volume i and the radius of the first local object bounding volume j to obtain the closest point distance between the first closest point and the second closest point, that is, the closest point distance is the distance between m3 and n3.
[0173] Method 3: The first geometric attribute is a capsule attribute, and the second geometric attribute is a capsule attribute; that is, the first local object bounding volume i is a capsule, the second local object bounding volume j is a capsule, the first local object bounding volume j contains a cylinder and a sphere, and the first local object bounding volume j contains a cylinder and a sphere; the first closest point pair contains the first closest point of the first local object bounding volume i and the second closest point of the first local object bounding volume j:
[0174] In one case, the contact relationship indicated by the local contact condition indicates that the cylinder centerline segment of the first local object bounding volume i is not located on the cylinder side surface contained by the first local object bounding volume j, and the cylinder centerline segment of the first local object bounding volume j is not located on the cylinder side surface contained by the first local object bounding volume i. In this case, determining the closest point distance between the first closest point and the second closest point may include: if the contact relationship indicated by the local contact condition includes that the cylinder centerline segment of the first local object bounding volume i is not located on the cylinder side surface contained by the first local object bounding volume j, and the cylinder centerline segment of the first local object bounding volume j is not located on the cylinder side surface contained by the first local object bounding volume i, then determining the closest endpoint distance between the cylinder centerline segment of the first local object bounding volume i and the cylinder centerline segment of the first local object bounding volume j, and determining the closest point distance between the first closest point and the second closest point based on the closest endpoint distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
[0175] The radius of the first local object bounding volume i and the radius of the first local object bounding volume j can be determined by taking the distance between the first closest point and the center of the first local object bounding volume i as the radius of the first local object bounding volume i, and taking the distance between the second closest point and the center of the first local object bounding volume j as the radius of the first local object bounding volume j. For example, in FIG14 , the first local object bounding volume i is capsule 6, and the first local object bounding volume j is capsule 8. In this case, capsule 6 includes sphere 6a and cylinder 6b, and capsule 8 includes sphere 8a and cylinder 8b. At this time, it can be seen that the contact relationship indicated by the local contact condition includes that the cylindrical center line segment AB of the first local object bounding volume i is not located on the side of the cylinder 8b included in the first local object bounding volume j, the first closest point of the first local object bounding volume i is m4, and the second closest point of the first local object bounding volume j is n4. The terminal device can use the distance between the first closest point m4 and the center point B of the first local object bounding volume i as the radius of the first local object bounding volume i, and the distance between the second closest point n4 and the center point E of the first local object bounding volume j as the radius of the first local object bounding volume j, and then determine the closest endpoint distance between the cylindrical center line segment of the first local object bounding volume i and the cylindrical center line segment of the first local object bounding volume j (that is, the distance between the closest endpoint B and the closest endpoint E), and determine the closest point distance between the first closest point m4 and the second closest point n4 based on the closest endpoint distance BE, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
[0176] In another case, the contact relationship indicated by the local contact condition is: in the first local object bounding volume i and the first local object bounding volume j, the target endpoint of the cylindrical centerline segment of any local object bounding volume is located on the cylindrical side surface of the other local object bounding volume. It should be understood that the target endpoint is the endpoint on the cylindrical centerline segment of any local object bounding volume that is closest to the cylindrical side surface of the other local object bounding volume. In the embodiment of the present application, the contact relationship indicated by the local contact condition includes the target endpoint of the cylindrical centerline segment of the first local object bounding volume i being located on the cylindrical side surface of the first local object bounding volume j, or the contact relationship indicated by the local contact condition includes the target endpoint of the cylindrical centerline segment of the first local object bounding volume j being located on the cylindrical side surface of the first local object bounding volume i. For example, in Figure 14, the first local object bounding volume i is capsule 7, and the first local object bounding volume j is capsule 8. In this case, capsule 7 includes sphere 7a and cylinder 7b, and capsule 8 includes sphere 8a and cylinder 8b. In this case, the target endpoint is the endpoint D of the cylindrical centerline segment CD of the first local object bounding volume i. At this time, the contact relationship indicated by the local contact condition includes: the endpoint D of the cylindrical centerline segment CD of the first local object bounding volume i is located on the side of the cylinder 8b included in the first local object bounding volume j, and the terminal device determines the closest point distance between the first nearest point and the second nearest point, which may include: if the contact relationship indicated by the local contact condition includes the first local object bounding volume i and the first local object bounding volume j, and the target endpoint of the cylindrical centerline segment of any local object bounding volume is located on the cylindrical side of the other local object bounding volume, then determine the target distance between the target endpoint of the cylindrical centerline segment of any local object bounding volume to the cylindrical centerline segment of the other local object bounding volume; based on the target distance, the radius of the first local object bounding volume i and the radius of the first local object bounding volume j, determine the closest point distance between the first nearest point and the second nearest point.
[0177] The radius of the first local object bounding volume i and the radius of the first local object bounding volume j are determined by determining the distance between the first closest point and the center of the sphere of the first local object bounding volume i as the radius of the first local object bounding volume i, and determining the distance between the second closest point and the cylindrical centerline segment of the first local object bounding volume j as the radius of the first local object bounding volume j. For example, in Figure 14, the first closest point is m5 and the second closest point is n5. In this case, the distance between the first closest point m5 and the center of the sphere D can be determined as the radius of the first local object bounding volume i, and the distance between the second closest point n5 and the cylindrical centerline segment EF of the first local object bounding volume j can be determined as the radius of the first local object bounding volume j. Then, the target distance between the target endpoint D of the cylindrical centerline segment of the first local object bounding volume i and the cylindrical centerline segment EF of the first local object bounding volume j is determined. Based on the target distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j, the closest point distance between the first closest point m5 and the second closest point n5 is determined.
[0178] In another embodiment, the contact relationship indicated by the local contact condition is that the first closest point of the cylindrical line segment of the first local object bounding volume i and the second closest point of the cylindrical line segment of the first local object bounding volume j are projected onto their respective cylindrical center line segments and are located within their respective cylindrical center line segments. In this case, determining the closest point distance between the first closest point and the second closest point includes: if the contact relationship indicated by the local contact condition indicates that the first closest point and the second closest point are projected onto their respective cylindrical center line segments and are located within their respective cylindrical center line segments, then determining the second closest point distance between the spatial straight line corresponding to the cylindrical center line segment of the first local object bounding volume i and the spatial straight line corresponding to the cylindrical center line segment of the first local object bounding volume j; and determining the closest point distance between the first closest point and the second closest point based on the second closest point distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
[0179] The radius of the first local object bounding volume i and the radius of the first local object bounding volume j can be determined by determining the distance from the first closest point to the first local object bounding volume i as the radius of the first local object bounding volume i, and determining the distance from the second closest point to the first local object bounding volume j as the radius of the first local object bounding volume j. For example, in FIG14 , the first closest point is m6 and the second closest point is n6. In this case, the distance between the first closest point m6 and the cylinder center segment GH of the first local object bounding volume i can be determined as the radius of the first local object bounding volume i, and the distance between the second closest point n6 and the cylinder center segment EF of the first local object bounding volume i can be determined as the radius of the first local object bounding volume j. Then, the second closest point distance between the spatial straight line corresponding to the cylinder center segment GH and the spatial straight line corresponding to the cylinder center segment EF is determined. Based on the second closest point distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j, the closest point distance between the first closest point m6 and the second closest point n6 can be determined.
[0180] In the embodiment of the present application, the distance obtained by the second closest point distance, the radius of the first local object bounding volume i and the radius of the first local object bounding volume j can be used as the closest point distance between the first closest point m6 and the second closest point n6.
[0181] It should be understood that there is no limitation on the order of step S206 to step S207, and step S206 and step S207 can also be executed simultaneously, that is, determining the first closest point pair and the closest point distance can actually be executed together. For example, when determining the closest point distance, the closest point distance is actually the line connecting the closest points on the first local bounding volume i and the first local object bounding volume j. The first closest point and the second closest point can be found based on the closest point distance.
[0182] Step S208: Determine the first closest point pair and the first closest point distance as a spatial semantic detection result between the first local object bounding volume i and the first local object bounding volume j.
[0183] Step S209: Based on the spatial semantic detection result between the first local object bounding volume i and the first local object bounding volume j, a first local object bounding volume pair that meets the animation redirection strategy is screened out from the N first local object bounding volumes, and the screened out first local object bounding volume pair that meets the animation redirection strategy is determined as the effective interactive bounding volume of the first object.
[0184] In one embodiment, if the first closest point distance between the first local object bounding volume i and the first local object bounding volume j is less than the interaction distance threshold, the first local object bounding volume i and the first local object bounding volume j are used as a first local object bounding volume pair that satisfies the animation redirection strategy, selected from the N first local object bounding volumes. It should be understood that the valid interaction bounding volume may include a first local object bounding volume pair, and the first local object bounding volume pair may include the first local object bounding volume i and the first local object bounding volume j.
[0185] Step S210: Search for a second local object bounding volume that satisfies the animation redirection strategy among the M second local object bounding volumes, and use the second local object bounding volume that satisfies the animation redirection strategy as the bounding volume to be transferred. When the spatial semantic information of the effective interactive bounding volume is obtained based on the spatial semantic detection result, the spatial semantic information is transferred from the effective interactive bounding volume to the bounding volume to be transferred, and a transferred bounding volume carrying the spatial semantic information is obtained.
[0186] The geometric properties of the first bounding volume to be transferred are the same as the geometric properties of the first effective interactive bounding volume, and the geometric properties of the second bounding volume to be transferred are the same as the geometric properties of the second effective interactive bounding volume; for example, if the first effective interactive bounding volume is a sphere, then the first bounding volume to be transferred is also a sphere. The spatial semantic information of the effective interactive bounding volume is used to constrain the spatial relationship between the corresponding second local object bounding volumes in the animation transfer target model. Therefore, it is required to ensure the invariance of size (shape-invariant) and spatial posture (orientation-invariant) during transfer. Therefore, a spatial semantic transfer descriptor is introduced in the embodiment of the present application. The spatial semantic transfer descriptor is used to describe the spatial semantic information between the first effective interactive bounding volume and the second effective interactive bounding volume in the effective interactive bounding volume, that is, the spatial semantic transfer descriptor can include at least one of a scale coefficient (i.e., scp ratio) and a local vector, wherein the scale coefficient is used to describe the ratio of the nearest point on the axis vector of the effective interactive bounding volume, and the local vector is used to describe the local coordinates in the coordinate system centered on the effective interactive bounding volume. The spatial semantic information may include the nearest point pair between the first valid interactive bounding volume (such as the first local object bounding volume i) and the second valid interactive bounding volume (such as the first local object bounding volume j), and the spatial semantic information also includes the first valid spatial semantic information of the first valid interactive bounding volume and the second valid spatial semantic information of the second valid interactive bounding volume. The nearest point pair between the first valid interactive bounding volume and the second valid interactive bounding volume includes the nearest point of the first valid interactive bounding volume and the nearest point of the second valid interactive bounding volume. The spatial semantic information of the valid interactive bounding volume may be obtained by constructing a first coordinate system with the first valid interactive bounding volume, and determining the vector whose origin of the first coordinate system points to the nearest point of the first valid interactive bounding volume as the local vector of the nearest point of the first valid interactive bounding volume; then, based on the local vector of the nearest point of the first valid interactive bounding volume, generating the first spatial semantic information of the first valid interactive bounding volume. Similarly, a second coordinate system is constructed using the second effective interactive bounding volume, and the vector whose origin points to the nearest point of the second effective interactive bounding volume is determined as the local vector of the nearest point of the second effective interactive bounding volume; then, based on the local vector of the nearest point of the second effective interactive bounding volume, the second spatial semantic information of the second effective interactive bounding volume is generated; finally, based on the first spatial semantic information of the first effective interactive bounding volume and the second spatial semantic information of the second effective interactive bounding volume, the spatial semantic information of the effective interactive bounding volume is generated.
[0187] When the first valid interactive bounding volume is a sphere, the origin of the constructed first coordinate system can be the center of the sphere. When the first valid interactive bounding volume is a capsule, the origin of the constructed first coordinate system can be the midpoint of the capsule's cylindrical centerline segment. It should be understood that the second valid interactive bounding volume is similar to the first valid interactive bounding volume and will not be further described here.
[0188] For ease of understanding, please refer to Figure 15, which is a schematic diagram of the local vector of the nearest point of a first effective interactive enclosing body provided in an embodiment of the present application. In Figure 15, the nearest point of the first effective interactive enclosing body is point K1, the first effective interactive enclosing body is a sphere, and the first coordinate system XYZ is constructed with the center of the first effective interactive enclosing body as the origin. At this time, the vector pointing from the origin of the first coordinate system to the nearest point K1 of the second effective interactive enclosing body is used as the local vector of the nearest point K1 of the first effective interactive enclosing body. For another example, as shown in Figure 16, Figure 16 is a schematic diagram of the local vector of the nearest point of another first effective interactive enclosing body provided in an embodiment of the present application. In Figure 16, the nearest point of the first effective interactive enclosing body is point K2, the first effective interactive enclosing body is a capsule, and the first coordinate system XYZ is constructed with the center of the central cylindrical segment ab of the first effective interactive enclosing body as the origin. At this time, the vector pointing from the origin of the first coordinate system to the nearest point K2 of the second effective interactive enclosing body is used as the local vector of the nearest point K2 of the first effective interactive enclosing body. The vector from the origin of the first coordinate system to the nearest point of the first effective interactive bounding volume is the local coordinate of the first effective interactive bounding volume in the first coordinate system.
[0189] When the first or second effective interactive bounding volume is a capsule, since the first spatial semantic information of the first effective interactive bounding volume is generated in a similar manner to the second spatial semantic information of the second effective interactive bounding volume, taking the first effective interactive bounding volume as an example, the first spatial semantic information of the first effective interactive bounding volume is generated based on the local vector of the nearest point of the first effective interactive bounding volume, including: determining the proportional coefficient corresponding to the nearest point of the first effective interactive bounding volume on the axis vector of the first local object bounding volume i; then, projecting the local vector of the first effective interactive bounding volume to obtain the projection vector of the nearest point of the first effective interactive bounding volume; finally, generating the first spatial semantic information of the first effective interactive bounding volume based on the proportional coefficient and projection vector corresponding to the nearest point of the first effective interactive bounding volume. Wherein, the axis vector of the first local object bounding volume i refers to the cylindrical center line segment of the first local object bounding volume.
[0190] For ease of understanding, please refer to FIG17 , which illustrates a process for determining a proportional coefficient corresponding to the nearest point of a first effective interactive bounding volume provided by an embodiment of the present application. The nearest point of the first effective interactive bounding volume is c, the projection point of the nearest point c on the axis vector is d, the axis vector of the first effective interactive bounding volume is ab, and the proportional coefficient α corresponding to the nearest point c on the axis vector ab of the first local object bounding volume i is expressed as the following formula (1): α = ad / ab (1)
[0191] Among them, α∈(0~1), ad is the vector from point a to the projection point d, and ab is the axis vector of the first effective interactive bounding volume.
[0192] In the embodiment of the present application, projecting the local vector of the first effective interactive enclosing volume to obtain the projection vector of the nearest point of the first effective interactive enclosing volume means: projecting the local vector of the first effective interactive enclosing volume along the target axis to obtain the projection vector of the nearest point of the first effective interactive enclosing volume. For example, the first coordinate system is composed of the X-axis, the Y-axis and the Z-axis, then the target axes are the X-axis and the Y-axis, that is, the local vector XY plane of the first effective interactive enclosing volume is projected to obtain the projection vector. It should be noted that when the first effective interactive enclosing volume or the second effective interactive enclosing volume is a sphere, there is no need to determine the proportional coefficient corresponding to the corresponding nearest point and there is no need to project the local vector.
[0193] In some embodiments, transferring spatial semantic information from an effective interactive bounding box to an enclosing box to be transferred to obtain a transfer bounding box carrying spatial semantic information may include: determining a first position point on the first enclosing box to be transferred that has the same first spatial semantic information as the nearest point of the first effective interactive bounding box, and determining a second position point on the second enclosing box to be transferred that has the same second spatial semantic information as the nearest point of the second effective interactive bounding box; transferring the first spatial semantic information of the nearest point of the first effective interactive bounding box to the first position point to obtain a first transfer bounding box carrying the first spatial semantic information; transferring the second spatial semantic information of the nearest point of the second effective interactive bounding box to the second position point to obtain a second transfer bounding box carrying the second spatial semantic information; and determining a transfer bounding box carrying spatial semantic information based on the first transfer bounding box carrying the first spatial semantic information and the second transfer bounding box carrying the second spatial semantic information.
[0194] Determining the first position point on the first bounding volume to be transferred that has the same first spatial semantic information as the nearest point of the first effective interactive bounding volume can be achieved in the following manner: establishing a third coordinate system with the first bounding volume to be transferred, and determining the first position point in the third coordinate system that has the same first spatial semantic information as the nearest point of the first effective interactive bounding volume based on the local vector contained in the first spatial semantic information. For ease of understanding, please refer to Figure 18, which is a schematic diagram of an embodiment of the present application for determining the first position point that has the same first spatial semantic information as the nearest point of the first effective interactive bounding volume. The first effective interactive bounding volume is a sphere, and the first bounding volume to be transferred is also a sphere. At this time, a third coordinate system is established with the center of the first bounding volume to be transferred, and based on the local vector contained in the first spatial semantic information, starting from the origin of the third coordinate system, point C' can be found in the first bounding volume to be transferred in the direction indicated by the local vector. At this time, point C' on the first bounding volume to be transferred and point C on the first effective interactive bounding volume have the same first spatial semantic information.
[0195] When the first bounding volume to be transferred is a sphere, the origin of the constructed first coordinate system can be the center of the sphere. When the first bounding volume to be transferred is a capsule, the origin of the constructed first coordinate system can be the midpoint of the capsule's cylindrical centerline segment. It should be understood that the second bounding volume to be transferred is similar to the second bounding volume to be transferred, and will not be further described here.
[0196] When the first spatial semantic information includes a proportional coefficient and a projection vector corresponding to the nearest point of the first effective interactive enclosing volume, determining the first position point on the first enclosing volume to be transferred that has the same first spatial semantic information as the nearest point of the first effective interactive enclosing volume can be achieved in the following manner: establishing a fourth coordinate system with the first enclosing volume to be transferred, and determining a candidate position point that satisfies the proportional coefficient on the axial vector of the first enclosing volume to be transferred based on the proportional coefficient included in the first spatial semantic information, and then determining the first position point that has the same first spatial semantic information as the nearest point of the first effective interactive enclosing volume based on the projection vector included in the first spatial semantic information and the candidate position point that satisfies the proportional coefficient. For example, please refer to Figure 19, which is a schematic diagram of another method of determining the first position point that has the same first spatial semantic information as the nearest point of the first effective interactive enclosing volume provided in an embodiment of the present application. The first effective interactive bounding volume is a capsule body. The coordinate system is established with the midpoint of the axis vector AB of the first effective interactive bounding volume. The nearest point of the first effective interactive bounding volume is point C. The first bounding volume to be transferred is also a capsule body. At this time, the fourth coordinate system is also established with the midpoint of the axis vector A'B' of the first bounding volume to be transferred. First, the position point D' that meets the proportional coefficient is determined on the axis vector A'B' of the first bounding volume to be transferred. Then, in the fourth coordinate system constructed with the first bounding volume to be transferred, according to the direction indicated by the projection vector contained in the first spatial semantic information and the position point that meets the proportional coefficient, point C' is found. That is, point C' is the first position on the bounding volume to be transferred that has the same first spatial semantic information as point C on the first effective interactive bounding volume.
[0197] It should be understood that the implementation method of determining the second position point on the second bounding volume to be transmitted that has the same second spatial semantic information as the nearest point of the second effective interactive bounding volume is similar to the implementation method of determining the first position point on the first bounding volume to be transmitted that has the same first spatial semantic information as the nearest point of the first effective interactive bounding volume, and will not be repeated here.
[0198] Step S211: Acquire model correction parameters determined by spatial semantic information.
[0199] After executing step S210 to transfer the spatial semantic information from the effective interactive bounding volume to the bounding volume to be transferred, the invariant semantic point transfer is completed, that is, the nearest point of the first effective interactive bounding volume has the same spatial semantics as the first position point on the first transfer bounding volume, and the nearest point of the second effective interactive bounding volume has the same spatial semantics as the first position point on the second transfer bounding volume. Therefore, there is also effective interaction between the first transfer bounding volume and the second transfer bounding volume. The first position point and the second position point are the second closest point pair between the first transfer bounding volume and the second transfer bounding volume, that is, the first position point is the closest point on the first transfer bounding volume, and the second position point is the closest point on the second transfer bounding volume.
[0200] In order to make the spatial relationship of the animation transfer target model containing the transfer bounding volume consistent with the spatial relationship on the animation transfer source model, the embodiment of the present application can correct the animation transfer target model containing the transfer bounding volume through IK adjustment, that is, determine the end effector in the animation transfer target model containing the transfer bounding volume, and determine the interactive transfer bounding volume that has effective interaction with the end effector in the animation transfer target model containing the transfer bounding volume. Then, the target position of the end effector can be calculated based on the interactive transfer bounding volume that has effective interaction with the end effector and the end effector, so as to determine the model correction parameters that need to be adjusted to the target position. Based on the model correction parameters, the end effector can be adjusted from the current position to the target position to complete the animation transfer target model containing the transfer bounding volume. At this time, obtaining the model correction parameters determined by the spatial semantic information can be achieved in the following manner: first, a first transfer bounding volume serving as an end effector is determined from the animation transfer target model containing the transfer bounding volume, a second transfer bounding volume having effective interaction with the first transfer bounding volume (i.e., an interactive transfer bounding volume) is determined, and the first position point and the second position point are used as the second closest point pair between the first and second transfer bounding volumes; then, along a direction perpendicular to the surface of the first transfer bounding volume, the closest point distance between the first and second effective interactive bounding volumes is superimposed on the second position point in the second closest point pair (the closest point distance between the first and second effective interactive bounding volumes is the closest point distance between the first and second effective interactive bounding volumes determined by the spatial semantic detection above, i.e., the closest point distance between the first and second effective interactive bounding volumes, i.e., the closest point distance between the first and second effective interactive bounding volumes, determined by the spatial semantic detection above), to obtain an estimated interaction point corresponding to the second position point; then, an adjustment vector for the first transfer bounding volume is determined based on the estimated interaction point corresponding to the first transfer bounding volume, the first position point in the second closest point pair, and the adjustment weight; finally, the model correction parameters are generated based on the adjustment vector for the first transfer bounding volume.
[0201] In an embodiment of the present application, the number of second transfer bounding volumes that have effective interactions with the first transfer bounding volume may be R. In this case, obtaining the model correction parameters determined by the spatial semantic information may include: determining the first transfer bounding volume as the end effector from the animation transfer target model containing the transfer bounding volume, and determining R second transfer bounding volumes that have effective interactions with the first transfer bounding volume. In this case, there are R first position points in the first transfer bounding volume, and each first position point of the first transfer bounding volume and the second position point on the corresponding second transfer bounding volume will constitute the second closest point pair between the second transfer bounding volume and the first transfer bounding volume; that is, when the number of second transfer bounding volumes that have effective interactions with the first transfer bounding volume may be R, then there are R second closest point pairs, that is, each of the R second transfer bounding volumes has a closest point pair with the first transfer bounding volume. After step S210, the terminal device may obtain a second closest point pair between the first transmission enclosure and the second transmission enclosure t, where the second closest point pair includes the closest point t (i.e., the first position point) on the first transmission enclosure and the closest point on the second transmission enclosure t (i.e., the second position point on the second transmission enclosure t); t is a positive integer less than or equal to R; then, along a direction perpendicular to the surface of the first transmission enclosure, the closest point distance between the first effective interactive enclosure and the second effective interactive enclosure corresponding to the second transmission enclosure t is superimposed on the closest point of the second transmission enclosure t to obtain an interaction estimation point corresponding to the second position of the second transmission enclosure t; an adjustment vector of the first transmission enclosure is determined based on the interaction estimation point corresponding to the second position of the second transmission enclosure t, the first position point in the second closest point pair, and the adjustment weight associated with the interaction estimation point corresponding to the second position point of the second transmission enclosure t; and a model correction parameter is generated based on the adjustment vector of the first transmission enclosure.
[0202] For ease of understanding, please refer to Figure 20, which is a schematic diagram of calculating the interaction estimation points corresponding to the first transfer bounding volume in an embodiment of the present application. For example, the number of second transfer bounding volumes that have effective interactions with the first transfer bounding volume is 2. The terminal device can determine the first transfer bounding volume as the end effector from the animation transfer target model containing the transfer bounding volume as BV K , the first transfer bounding volume is BV K The target position is composed of two second transfer bounding volumes (i.e., BV i and BV j ) is determined, that is, with the first transfer bounding volume BV K The second transitive bounding volume with valid interaction is BV i and BV jAmong them, in the animation transfer source model, the first transfer bounding volume corresponds to the first effective interactive bounding volume, and the second transfer bounding volume BV i Corresponding to the second effective interactive bounding volume 1; the second transfer bounding volume BV j Corresponding to the second effective interactive bounding volume 2; the closest point distance between the first effective interactive bounding volume and the second effective interactive bounding volume 1 is The closest point distance between the first effective interactive bounding volume and the second effective interactive bounding volume 2 is After the spatial semantic transfer is performed in step S210, a first transfer bounding volume BV may be determined. K With the second transfer bounding volume BV i The second closest point pair between them (i.e. the first transferred bounding volume BV K With the second transfer bounding volume BV i The second closest point pair between them is contained in the first transferred bounding volume BV K The closest point p on ki , in the second transfer bounding volume BV i The closest point on ); Similarly, determine the first transfer bounding volume BV K With the second transfer bounding volume BV j The second closest point pair between them (i.e. the first transferred bounding volume BV K With the second transfer bounding volume BV j The second closest point pair between them is contained in the first transferred bounding volume BV K The closest point p on kj , in the second transfer bounding volume BV j The closest point on ); then perpendicular to the first transfer bounding volume BV K Direction of the surface, for the second transferred bounding volume BV i on Superimpose the closest point distance between the first effective interactive bounding volume and the second effective interactive bounding volume 1 get Corresponding interaction estimation points Then, along the vertical direction of the first transfer enclosure BV K Direction of the surface, for the second transferred bounding volume BV j on Superimpose the closest point distance between the first effective interactive bounding volume and the second effective interactive bounding volume 2 get Corresponding interaction estimation points Then determine the interaction estimate point The associated adjustment weights and interaction estimates The associated adjusted weights are then estimated based on the interaction The nearest point ki , and interaction estimation points Associated adjustment weights, interaction estimation points The nearest point kj , and interaction estimation points The associated adjustment weights determine the first transfer bounding volume BV K The adjustment vector.
[0203] In the embodiment of the present application, the adjustment vector of the first transfer bounding volume is calculated according to the following formulas (2) and (3):
[0204] in, represents the adjustment vector of the first transferred bounding volume. kt represents the adjustment weight associated with the interaction estimation point corresponding to the second position point of the second transfer bounding volume t. represents the interactive estimation point corresponding to the second position point of the second transferred bounding volume t; It represents the closest point distance between the first effective interactive bounding volume corresponding to the first transfer bounding volume and the second effective interactive bounding volume corresponding to the second transfer bounding volume t on the animation transfer source model. Represents the second position point (ie, the nearest point) on the second transfer bounding volume t.
[0205] The adjustment weight associated with the interaction estimation point corresponding to the second position point of the second transfer bounding volume t is determined by calculating the sum of the closest point distances between the first effective interaction bounding volume and the second effective interaction bounding volume corresponding to each second transfer bounding volume to obtain a total distance sum, and determining the adjustment weight associated with the interaction estimation point corresponding to the second position point of the second transfer bounding volume t based on the closest point distance between the first effective interaction bounding volume and the second effective interaction bounding volume corresponding to the second transfer bounding volume t.
[0206] Among them, w kt The weight calculation can be achieved by the following formula (4):
[0207] in, is the absolute value of the closest point distance between the first effective interactive bounding volume corresponding to the first transfer bounding volume and the second effective interactive bounding volume corresponding to the second transfer bounding volume t on the animation transfer source model. m is a constant.
[0208] It should be understood that the above description only illustrates the process of determining model correction parameters when the first transfer bounding volume serves as the end effector. When the end effector is another bounding volume within the animation transfer target model that includes the transfer bounding volume, the specific implementation of determining model correction parameters for the first transfer bounding volume can be referenced and will not be further elaborated here.
[0209] In the animation redirection configuration interface, the second local object bounding volume serving as the end effector can be set through the end effector setting option. As can be seen from the above, the transfer bounding volume refers to the second local object bounding volume after the spatial semantic information is transferred. The terminal device can obtain the end effector configuration file associated with the animation transfer target model, and determine the first transfer bounding volume serving as the end effector from the transfer bounding volume based on the end effector configuration file.
[0210] Performing model correction processing on the animation transfer target model including the transfer bounding volume based on the model correction parameters may include: first, performing translation adjustment on the first transfer bounding volume in the animation transfer target model based on the adjustment vector of the first transfer bounding volume to obtain the first transfer bounding volume after translation adjustment; then, performing model correction on the animation transfer target model based on the first transfer bounding volume after translation adjustment to obtain the animation transfer target model after model correction processing, so that the local object included in the first transfer bounding volume reaches the target position, completing the model correction processing of the animation transfer target model, where the target position is the actual position of the first transfer bounding volume.
[0211] Step S212: Based on the model correction parameters, the animation transfer target model including the transfer bounding volume is subjected to model correction processing to obtain a model-corrected animation transfer target model, and the model-corrected animation transfer target model is displayed on the animation redirection configuration interface. The model-corrected animation transfer target model and the model-corrected animation transfer target model have the same spatial semantic information, that is, the animation transfer correction model and the animation transfer source model have the same spatial semantic information.
[0212] Performing model correction processing on an animation transfer target model including a transfer bounding volume based on model correction parameters to obtain the animation transfer target model after model correction processing may include: first, performing translation adjustment on the first transfer bounding volume along an adjustment vector to obtain a first transfer bounding volume after translation adjustment; then, performing model correction on the animation transfer target model based on the first transfer bounding volume after translation adjustment to obtain a final animation transfer target model after model correction. For example, as shown in FIG21, FIG21 is a schematic diagram comparing an animation transfer target model including a transfer bounding volume and an animation transfer target model after model correction processing provided in an embodiment of the present application. In Figure 21, the spatial semantic relationship between the hands and chest contained in the animation transfer source model 21a is shown as 211a in Figure 21. The animation transfer target model 21b containing the transfer bounding volume obtained after the transfer is inconsistent with the spatial semantic relationship between the hands and chest in the animation transfer source model because the contact position between the hands and chest is too high in the body proportion (as shown by 211b in Figure 21). At this time, the animation transfer target model containing the transfer bounding volume is model-corrected based on the model correction parameters to obtain the animation transfer target model after model correction. The spatial semantic relationship between the hands and chest of the animation transfer target model 21c after model correction is consistent with the spatial semantic relationship between the hands and chest in the animation transfer source model 21a.
[0213] The second object includes L second sub-objects. When the first transfer bounding volume is a transfer bounding volume associated with the target second sub-object, this means that there is interaction between different second sub-objects. In this case, the correction parameters can include end adjustment weights and root adjustment weights. In this case, the end adjustment weights and root adjustment weights corresponding to the adjustment of the first transfer bounding volume can be determined based on the adjustment vector. The first transfer bounding volume is adjusted based on the end adjustment weights, and the animation transfer target sub-model in which the first transfer bounding volume is located is adjusted based on the root adjustment weights to obtain the animation transfer target sub-model after model correction processing. Based on the animation transfer target sub-model after model correction processing, the animation transfer target model after model correction processing is obtained. The target second sub-object is any one of the L second sub-objects. The spatial semantics of the animation transfer target model after model correction processing is better maintained with the spatial semantics of the animation transfer source model. For example, please refer to Figure 22, which is a schematic diagram comparing the animation transfer target model including the transfer bounding volume and the animation transfer target model after model correction processing. In Figure 22, the animation transfer source model includes an animation transfer source sub-model 2A associated with the first sub-object 1 and an animation transfer source sub-model 2B associated with the second sub-object 2. The animation transfer target model containing the transfer bounding volume includes an animation transfer target model 2C associated with the second sub-object 3 and an animation transfer target model 2D associated with the second sub-object 4. In Figure 22, the hand-in-hand effect (i.e., the spatial semantic information of the hand-in-hand) between the animation transfer source sub-model 2A and the animation transfer source sub-model 2B can be seen, as shown in 22a in Figure 22. The hand-in-hand effect of the animation transfer target sub-model 2C and the animation transfer target sub-model 2D (i.e., as shown in 22b in Figure 22) is not spatially semantically preserved. The animation transfer target sub-model 2C and the animation transfer target sub-model 2D are subjected to model correction processing, and the hand-in-hand effect of the animation transfer target sub-model 2C' and the animation transfer target sub-model 2D' obtained after the model correction processing (i.e., as shown in 22c in Figure 22) is correctly preserved.
[0214] In an embodiment of the present application, a computer device constructs a first local bounding volume for an animation transfer source model and a second local bounding volume for an animation transfer target model, and can obtain N first local object bounding volumes associated with the first object and M second local object bounding volumes associated with the second object. The spatial expression of the animation transfer source model can be formed through N first local object bounding volumes, and then spatial semantic detection can be performed on the N first local object bounding volumes that may contact the first local object bounding volume according to the contactable definition table to obtain the spatial semantic detection result, and based on the spatial semantic detection result, the effective interactive bounding volume that meets the animation redirection strategy is selected from the N first local object bounding volumes, so that the spatial semantic information of the effective interactive bounding volume is transferred to the second local object bounding volume that meets the animation redirection strategy to obtain the mapping bounding volume. The contactable definition table can greatly reduce the computational amount of spatial semantic detection, thereby improving the redirection efficiency. In addition, the embodiment of the present application also saves the amount of data transmitted by transmitting the spatial semantic information of the effective interactive bounding volume, which can improve the redirection efficiency to a certain extent. At the same time, the spatial semantic information of the effective interactive bounding volume is transferred to the second local object bounding volume that meets the animation redirection strategy, which means that the embodiment of the present application can more accurately map the spatial semantic information of the effective interactive bounding volume in the mapping source model to the corresponding second local object bounding volume in the mapping target model, thereby improving the accuracy of spatial semantic transmission during the animation redirection process. The embodiment of the present application can perform model correction processing on the animation transfer target model including the mapping bounding volume according to the model correction parameters determined by the spatial semantic information, and obtain the animation transfer target model after model correction. The model correction can be performed automatically, so that the spatial semantic information of the animation transfer target model after model correction is consistent with the spatial semantic information of the animation transfer source model without manual adjustment. While improving the efficiency of animation redirection, it can also improve the accuracy of spatial semantic transfer and maintain the accuracy of spatial semantic transfer during the animation redirection process, and improve the consistency of animation data presented by the animation transfer target model and the animation transfer source model.
[0215] Based on the above description of the animation redirection method, the embodiment of the present application further provides an animation redirection device for implementing the above animation redirection method. Please refer to Figure 23, which is a structural diagram of an animation redirection device provided by the embodiment of the present application. The animation redirection device 1 can be a computer program (including program code) running on a computer device. For example, the animation redirection device 1 can be an application software; the animation redirection device 1 can be used to execute the corresponding steps in the animation redirection method provided by the embodiment of the present application. Among them, the animation redirection device 1 can include: a display module 2301, a detection module 2302, a screening module 2303, a search module 2304, a transfer module 2305, an acquisition module 2306, a correction module 2307 and a model display module 2308.
[0216] The display module 2301 is configured to display the animation transfer source model associated with the first object, the animation transfer target model associated with the second object, N first local object bounding volumes associated with the first object, and M second local object bounding volumes associated with the second object on the animation redirection configuration interface; N and M are both positive integers; a first local object bounding volume contains a local object of the first object; a second local object bounding volume contains a local object of the second object; the detection module 2302 is configured to perform spatial semantic detection on the N first local object bounding volumes to obtain spatial semantic detection results; the screening module 2303 is configured to, based on the spatial semantic detection results, determine the first local object bounding volume pairs that meet the animation redirection strategy that are screened out from the N first local object bounding volumes as valid interactive bounding volumes of the first object; the search module 2304 is configured to search for the first local object bounding volume pairs that meet the animation redirection strategy in the M second local object bounding volumes. The second local object bounding box that meets the animation redirection strategy is determined as the bounding box to be transferred; the transfer module 2305 is configured to transfer the spatial semantic information from the effective interactive bounding box to the bounding box to be transferred when the spatial semantic information of the effective interactive bounding box is obtained based on the spatial semantic detection result, so as to obtain the transfer bounding box carrying the spatial semantic information; the acquisition module 2306 is configured to obtain the model correction parameters determined by the spatial semantic information; the correction module 2307 is configured to perform model correction processing on the animation transfer target model containing the transfer bounding box based on the model correction parameters, so as to obtain the animation transfer target model after the model correction processing; the model display module 2308 is configured to display the animation transfer target model after the model correction processing on the animation redirection configuration interface, and the spatial semantic information of the animation transfer target model after the model correction processing is consistent with the spatial semantic information of the animation transfer source model.
[0217] In some embodiments, the N first local object bounding volumes include a first local object bounding volume i and a first local object bounding volume j; i is not equal to j, and both i and j are positive integers less than or equal to N; the first local object bounding volume i and the first local object bounding volume j are local object bounding volumes that meet the local contact condition in the contactable definition table; the contactable definition table is configured for the animation transfer source model; the detection module 2302 is further configured to: obtain the first local object bounding volume i and the first local object bounding volume j from the contactable definition table associated with the N first local object bounding volumes; determine the first geometric attribute of the first local object bounding volume i and the second geometric attribute of the first local object bounding volume j; determine the contact relationship indicated by the first geometric attribute, the second geometric attribute and the local contact condition, and A first local contact surface of the enclosure i and a second local contact surface of the first local object enclosure j; based on the first local contact surface and the second local contact surface, determining a first closest point pair between the first local object enclosure i and the first local object enclosure j; the first closest point pair includes a first closest point on the first local object enclosure i and a second closest point on the first local object enclosure j; determining a closest point distance between the first closest point and the second closest point, and determining the closest point distance between the first closest point and the second closest point as the first closest point distance between the first local object enclosure i and the first local object enclosure j; determining the first closest point pair and the first closest point distance as a spatial semantic detection result between the first local object enclosure i and the first local object enclosure j.
[0218] In some embodiments, the first geometric attribute and the second geometric attribute are both spherical attributes; the detection module 2302 is further configured to: determine the sphere center distance between the first local object bounding volume i and the first local object bounding volume j; and determine the closest point distance between the first closest point and the second closest point based on the sphere center distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
[0219] In some embodiments, the first geometric attribute is a sphere attribute, and the second geometric attribute is a capsule attribute; the detection module 2302 is further configured to: if the contact relationship indicated by the local contact condition includes that the first local object bounding volume i is located on the side of the sphere contained in the first local object bounding volume j, then based on the center distance between the center of the first local object bounding volume i and the first local object bounding volume j, the radius of the first local object bounding volume i and the radius of the first local object bounding volume j, determine the closest point distance between the first closest point and the second closest point.
[0220] In some embodiments, the first geometric attribute is a sphere attribute, and the second geometric attribute is a capsule attribute; the detection module 2302 is further configured to: if the contact relationship indicated by the local contact condition includes that the first local object bounding volume i is located on the side of the cylinder contained in the first local object bounding volume j, then based on the distance between the center of the first local object bounding volume i and the center line segment of the cylinder contained in the first local object bounding volume j, the radius of the first local object bounding volume i and the radius of the first local object bounding volume j, determine the closest point distance between the first nearest point and the second nearest point.
[0221] In some embodiments, the first geometric attribute is a capsule attribute, and the second geometric attribute is a capsule attribute; the first local object bounding volume i includes a cylinder and a sphere; the first local object bounding volume j includes a cylinder and a sphere; the detection module 2302 is further configured to: if the contact relationship indicated by the local contact condition includes that the cylinder center line segment of the first local object bounding volume i is not located on the cylinder side included in the first local object bounding volume j, and the cylinder center line segment of the first local object bounding volume j is not located on the cylinder side included in the first local object bounding volume i, then determine the nearest endpoint distance between the cylinder center line segment of the first local object bounding volume i and the cylinder center line segment of the first local object bounding volume j; based on the nearest endpoint distance, the radius of the first local object bounding volume i and the radius of the first local object bounding volume j, determine the nearest point distance between the first nearest point and the second nearest point.
[0222] In some embodiments, the first geometric attribute is a capsule attribute, and the second geometric attribute is a capsule attribute; the first local object bounding volume i includes a cylinder and a sphere; the first local object bounding volume j includes a cylinder and a sphere; the detection module 2302 is further configured to: if the contact relationship indicated by the local contact condition includes the first local object bounding volume i and the first local object bounding volume j, and the target endpoint of the cylinder centerline segment of any local object bounding volume is located on the cylinder side of the other local object bounding volume, then determine the target distance between the target endpoint of the cylinder centerline segment of any local object bounding volume to the cylinder centerline segment of the other local object bounding volume; based on the target distance, the radius of the first local object bounding volume i and the radius of the first local object bounding volume j, determine the closest point distance between the first closest point and the second closest point.
[0223] In some embodiments, the detection module 2302 is further configured to: if the contact relationship indicated by the local contact condition includes a first nearest point and a second nearest point projected on their respective cylinder center line segments and located within their respective cylinder center line segments, then determine the distance from the first nearest point to the first local object bounding volume i as the radius of the first local object bounding volume i; determine the distance from the second nearest point to the first local object bounding volume j as the radius of the first local object bounding volume j; determine the second nearest point distance between the spatial straight line corresponding to the cylinder center line segment of the first local object bounding volume i and the spatial straight line corresponding to the cylinder center line segment of the first local object bounding volume j; and determine the nearest point distance between the first nearest point and the second nearest point based on the second nearest point distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
[0224] In some embodiments, the N first local object bounding volumes include a first local object bounding volume i and a first local object bounding volume j; i is not equal to j, and both i and j are positive integers less than or equal to N; the animation redirection strategy includes an interaction detection strategy, and the interaction detection strategy includes an interaction distance threshold for interaction detection; the screening module 2303 is further configured to: based on the spatial semantic detection result, obtain the first local object bounding volume i and the first local object bounding volume j from the N first local object bounding volumes, and determine the first closest point distance between the first local object bounding volume i and the first local object bounding volume j; if the first closest point distance between the first local object bounding volume i and the first local object bounding volume j is less than the interaction distance threshold, then determine the first local object bounding volume i and the first local object bounding volume j as the first local object bounding volume pair that meets the animation redirection strategy screened out from the N first local object bounding volumes.
[0225] In some embodiments, the effective interactive enclosing volume includes the first effective interactive enclosing volume and the second effective interactive enclosing volume, and the enclosing volume to be transferred includes the first enclosing volume to be transferred and the second enclosing volume to be transferred; the spatial semantic information includes the closest point pair between the first effective interactive enclosing volume and the second effective interactive enclosing volume, the first spatial semantic information of the first effective interactive enclosing volume and the second spatial semantic information of the second effective interactive enclosing volume; the transfer enclosing volume includes the first transfer enclosing volume and the second transfer enclosing volume; the closest point pair between the first effective interactive enclosing volume and the second effective interactive enclosing volume includes the closest point of the first effective interactive enclosing volume and the closest point of the second effective interactive enclosing volume; the transfer module 2305 is further configured to: determine the closest point of the first effective interactive enclosing volume on the first enclosing volume to be transferred. The first position point of the closest point of the effective interactive bounding volume has the same first spatial semantic information, and the second position point determined on the second bounding volume to be transferred and having the same second spatial semantic information as the closest point of the second effective interactive bounding volume; the first spatial semantic information of the closest point of the first effective interactive bounding volume is transferred to the first position point to obtain a first transfer bounding volume carrying the first spatial semantic information; the second spatial semantic information of the closest point of the second effective interactive bounding volume is transferred to the second position point to obtain a second transfer bounding volume carrying the second spatial semantic information; based on the first transfer bounding volume carrying the first spatial semantic information and the second transfer bounding volume carrying the second spatial semantic information, a transfer bounding volume carrying the spatial semantic information is generated.
[0226] In some embodiments, the device also includes: a construction module, configured to construct a first coordinate system based on the first valid interactive enclosure, and determine the vector with the origin of the first coordinate system pointing to the nearest point of the first valid interactive enclosure as the local vector of the nearest point of the first valid interactive enclosure; a generation module, configured to generate first spatial semantic information of the first valid interactive enclosure based on the local vector of the nearest point of the first valid interactive enclosure.
[0227] In some embodiments, the first effective interactive bounding volume is a capsule; the generation module is further configured to: determine the proportional coefficient corresponding to the nearest point of the first effective interactive bounding volume on the axis vector of the first local object bounding volume i; project the local vector of the first effective interactive bounding volume to obtain the projection vector of the nearest point of the first effective interactive bounding volume; based on the proportional coefficient and the projection vector, generate the first spatial semantic information of the first effective interactive bounding volume.
[0228] In some embodiments, the acquisition module 2306 is further configured to: determine a first transfer bounding volume as an end effector from an animation transfer target model including a transfer bounding volume; use the first position point and the second position point as the second closest point pair between the first transfer bounding volume and the second transfer bounding volume; superimpose the closest point distance between the first effective interaction bounding volume and the second effective interaction bounding volume on the second position point in the second closest point pair along a direction perpendicular to the surface of the first transfer bounding volume to obtain an interaction estimation point corresponding to the second position point; determine an adjustment vector of the first transfer bounding volume based on the interaction estimation point corresponding to the second position point, the first position point in the second closest point pair, and the adjustment weight; and generate model correction parameters based on the adjustment vector of the first transfer bounding volume.
[0229] In some embodiments, the correction module 2307 is further configured to: perform translation adjustment on the first transfer bounding volume in the animation transfer target model based on the adjustment vector of the first transfer bounding volume to obtain the first transfer bounding volume after translation adjustment; perform model correction processing on the animation transfer target model based on the first transfer bounding volume after translation adjustment to obtain the animation transfer target model after model correction processing.
[0230] In some embodiments, the animation redirection configuration interface includes an animation transfer source model option and an animation transfer target model option, and the device also includes: a model selection module configured to: in response to a trigger operation for the animation transfer source model option, determine target frame animation data from multiple frames of animation data contained in the target animation data, the target frame animation data corresponding to the animation transfer source model to be spatially semantically transferred and associated with the first object; in response to a trigger operation for the animation transfer target model option, select the animation transfer target model to be spatially semantically transferred from the transfer model database.
[0231] In some embodiments, the animation redirection configuration interface includes a first bounding volume initial option and a second bounding volume initial option, and the display module 2301 is further configured to: in response to a trigger operation on the first bounding volume initial option, display N first initial local object bounding volumes associated with the first object; unbind the N first initial local object bounding volumes from the animation transfer source model to obtain the unbound N first initial local object bounding volumes; in response to an adjustment operation on the unbound N first initial local object bounding volumes, adjust the unbound N first initial local object bounding volumes to obtain N first local object bounding volumes associated with the first object. Bounding volume, and displaying N first local object bounding volumes associated with the first object on the animation redirection configuration interface; in response to the triggering operation of the second bounding volume initial option, displaying M second initial local object bounding volumes associated with the second object; in response to the adjustment operation on the M second initial local object bounding volumes, adjusting the M second initial local object bounding volumes to obtain M second local object bounding volumes associated with the second object, and displaying the M second local object bounding volumes associated with the second object on the animation redirection configuration interface; wherein the adjustment operation includes at least one or more of the following: scaling operation, moving operation, and rotation operation.
[0232] In an embodiment of the present application, a first local bounding volume is constructed for an animation transfer source model and a second local bounding volume is constructed for an animation transfer target model, thereby obtaining N first local object bounding volumes associated with the first object and M second local object bounding volumes associated with the second object. The N first local object bounding volumes can form a spatial representation of the animation transfer source model, and then spatial semantic detection can be performed on the N first local object bounding volumes to obtain spatial semantic detection results. Based on the spatial semantic detection results, effective interactive bounding volumes that meet the animation redirection strategy are selected from the N first local object bounding volumes, and the spatial semantic information of the effective interactive bounding volumes is transferred to the second local object bounding volumes that meet the animation redirection strategy to obtain a mapping bounding volume. Directly transferring the spatial semantic information of the effective interactive bounding volumes saves the amount of data transferred, which can improve redirection efficiency to a certain extent. At the same time, transferring the spatial semantic information of the effective interactive bounding volumes to the second local object bounding volumes that meet the animation redirection strategy means that the embodiment of the present application can more accurately map the spatial semantic information of the effective interactive bounding volumes in the mapping source model to the corresponding second local object bounding volumes in the mapping target model, thereby improving the accuracy of spatial semantic transfer during the animation redirection process. The embodiment of the present application can perform model correction processing on the animation transfer target model including the mapping bounding volume according to the model correction parameters determined by the spatial semantic information, and obtain the animation transfer target model after model correction. The model correction can be performed automatically, so that the spatial semantic information of the animation transfer target model after model correction is consistent with the spatial semantic information of the animation transfer source model. While improving the efficiency of animation redirection, it can also improve the accuracy of spatial semantic transfer and maintain the accuracy of spatial semantic transfer during the animation redirection process, and improve the consistency of animation data presented by the animation transfer target model and the animation transfer source model.
[0233] Based on the animation redirection method and animation redirection device provided in the above embodiments, an embodiment of the present application further provides a computer device for implementing the animation redirection method, wherein the animation redirection device can be a virtual device located in the computer device. Please refer to Figure 24, which is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. As shown in Figure 24, the computer device 1000 can be a terminal device, for example, the terminal device 101 in the embodiment corresponding to Figure 1 above, or it can be a server, for example, the server 102 in the embodiment corresponding to Figure 1 above, which will not be limited here. For ease of understanding, the embodiment of the present application takes the computer device as an example of a terminal device. The computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. The communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). Memory 1005 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk storage. Memory 1005 may optionally be at least one storage device located remote from processor 1001. As shown in FIG24 , memory 1005, as a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application.
[0234] The network interface 1004 in the computer device 1000 can also provide network communication functions. In the computer device 1000 shown in Figure 24, the network interface 1004 can provide network communication functions; the user interface 1003 is primarily used to provide an interface for user input; and the processor 1001 can be used to call the device control application stored in the memory 1005 to execute the animation redirection method described in the embodiments corresponding to Figures 4 or 11 above, or the animation redirection device 1 described in the embodiment corresponding to Figure 23 above, which will not be repeated here. Furthermore, the description of the beneficial effects of using the same method will not be repeated here.
[0235] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the animation redirection device 1 mentioned above, and the computer program includes computer instructions. When the processor executes the computer instructions, it can execute the description of the animation redirection method in the embodiment corresponding to Figure 4 or Figure 11 above. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the computer instructions can be deployed on a computer device for execution, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.
[0236] In addition, it should be noted that: the embodiment of the present application also provides a computer program product, which may include a computer program, and the computer program may be stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor can execute the computer program, so that the computer device executes the description of the animation redirection method in the embodiment corresponding to Figure 4 or Figure 11 above, so it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer program product embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0237] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed, the computer program can include the processes according to the above-described method embodiments. The computer-readable storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0238] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that implementing all or part of the processes of the above embodiment and making equivalent changes in accordance with the claims of this application still fall within the scope of the invention.
Claims
1. An animation redirection method, the method being executed by a computer device, comprising: An animation transfer source model associated with a first object, an animation transfer target model associated with a second object, N first local object bounding volumes associated with the first object, and M second local object bounding volumes associated with the second object are displayed on an animation redirection configuration interface; N and M are both positive integers; a first local object bounding volume includes a local object of the first object; a second local object bounding volume includes a local object of the second object; Performing spatial semantic detection on the N first local object bounding volumes to obtain a spatial semantic detection result; Based on the spatial semantic detection result, a first local object bounding volume pair that satisfies the animation redirection strategy and is screened out from the N first local object bounding volumes is determined as a valid interactive bounding volume of the first object; Determine the second local object bounding volume that satisfies the animation redirection strategy and is found among the M second local object bounding volumes as the bounding volume to be transferred; When the spatial semantic information of the effective interactive bounding volume is obtained based on the spatial semantic detection result, the spatial semantic information is transferred from the effective interactive bounding volume to the bounding volume to be transferred, so as to obtain a transferred bounding volume carrying the spatial semantic information; Acquire model correction parameters determined by the spatial semantic information, perform model correction processing on the animation transfer target model including the transfer bounding volume based on the model correction parameters, obtain the animation transfer target model after the model correction processing, and display the animation transfer target model after the model correction processing on the animation redirection configuration interface, wherein the spatial semantic information of the animation transfer target model after the model correction processing is consistent with the spatial semantic information of the animation transfer source model.
2. The method according to claim 1, wherein: The N first local object bounding volumes include a first local object bounding volume i and a first local object bounding volume j; i is not equal to j, and i and j are both positive integers less than or equal to N; the first local object bounding volume i and the first local object bounding volume j are local object bounding volumes that meet the local contact condition in the contactable definition table; the contactable definition table is configured for the animation transfer source model; The performing spatial semantic detection on the N first local object bounding volumes to obtain a spatial semantic detection result includes: Acquire the first local object bounding volume i and the first local object bounding volume j from the contactable definition table associated with the N first local object bounding volumes; Determine a first geometric attribute of the first local object bounding volume i and a second geometric attribute of the first local object bounding volume j; Determining a first local contact surface of the first local object bounding volume i and a second local contact surface of the first local object bounding volume j based on the first geometric attribute, the second geometric attribute, and a contact relationship indicated by the local contact condition; Based on the first local contact surface and the second local contact surface, determining a first closest point pair between the first local object bounding volume i and the first local object bounding volume j; the first closest point pair includes a first closest point on the first local object bounding volume i and a second closest point on the first local object bounding volume j; Determine a closest point distance between the first closest point and the second closest point, and determine the closest point distance between the first closest point and the second closest point as a first closest point distance between the first local object bounding volume i and the first local object bounding volume j; The first closest point pair and the first closest point distance are determined as a spatial semantic detection result between the first local object bounding volume i and the first local object bounding volume j.
3. The method according to claim 2, wherein: The first geometric attribute and the second geometric attribute are both spherical attributes; The determining the closest point distance between the first closest point and the second closest point comprises: Determine a spherical center distance between the first local object bounding volume i and the first local object bounding volume j; The closest point distance between the first closest point and the second closest point is determined according to the sphere center distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
4. The method according to claim 2, wherein: The first geometric attribute is a sphere attribute, and the second geometric attribute is a capsule attribute; The determining the closest point distance between the first closest point and the second closest point comprises: If the contact relationship indicated by the local contact condition includes that the first local object bounding volume i is located on the side of a sphere included in the first local object bounding volume j, the closest point distance between the first nearest point and the second nearest point is determined based on the center distance between the center of the first local object bounding volume i and the center of the first local object bounding volume j, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
5. The method according to claim 2, wherein: The first geometric attribute is a sphere attribute, and the second geometric attribute is a capsule attribute; The determining the closest point distance between the first closest point and the second closest point comprises: If the contact relationship indicated by the local contact condition includes that the first local object bounding volume i is located on the side of the cylinder included in the first local object bounding volume j, the closest point distance between the first nearest point and the second nearest point is determined based on the distance between the center of the first local object bounding volume i and the center line segment of the cylinder included in the first local object bounding volume j, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
6. The method according to claim 2, wherein: The first geometric attribute is a capsule attribute, and the second geometric attribute is a capsule attribute; the first local object bounding volume i includes a cylinder and a sphere; the first local object bounding volume j includes a cylinder and a sphere; The determining the closest point distance between the first closest point and the second closest point comprises: If the contact relationship indicated by the local contact condition includes that the cylinder center line segment of the first local object bounding volume i is not located on the cylinder side surface included in the first local object bounding volume j, and the cylinder center line segment of the first local object bounding volume j is not located on the cylinder side surface included in the first local object bounding volume i, then determining the closest endpoint distance between the cylinder center line segment of the first local object bounding volume i and the cylinder center line segment of the first local object bounding volume j; The closest point distance between the first closest point and the second closest point is determined based on the closest endpoint distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
7. The method according to claim 2, wherein: The first geometric attribute is a capsule attribute, and the second geometric attribute is a capsule attribute; the first local object bounding volume i includes a cylinder and a sphere; the first local object bounding volume j includes a cylinder and a sphere; The determining the closest point distance between the first closest point and the second closest point comprises: If the contact relationship indicated by the local contact condition includes that the target endpoint of the cylinder centerline segment of any local object bounding volume i and the first local object bounding volume j is located on the cylinder side of the other local object bounding volume, then determine the target distance between the target endpoint of the cylinder centerline segment of any local object bounding volume and the cylinder centerline segment of the other local object bounding volume; A closest point distance between the first closest point and the second closest point is determined based on the target distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
8. The method according to claim 6 or 7, wherein: The determining of the closest point distance between the first closest point and the second closest point further includes: If the contact relationship indicated by the local contact condition includes the first closest point and the second closest point being projected on their respective cylinder center line segments and being within their respective cylinder center line segments, then the distance from the first closest point to the first local object bounding volume i is determined to be the radius of the first local object bounding volume i; the distance from the second closest point to the first local object bounding volume j is determined to be the radius of the first local object bounding volume j; Determine a second closest point distance between a spatial straight line corresponding to a cylinder center line segment of the first local object bounding volume i and a spatial straight line corresponding to a cylinder center line segment of the first local object bounding volume j; The closest point distance between the first closest point and the second closest point is determined based on the second closest point distance, the radius of the first local object bounding volume i, and the radius of the first local object bounding volume j.
9. The method according to any one of claims 1 to 8, wherein: The N first local object bounding volumes include a first local object bounding volume i and a first local object bounding volume j; i is not equal to j, and both i and j are positive integers less than or equal to N; the animation redirection strategy includes an interaction detection strategy, and the interaction detection strategy includes an interaction distance threshold for interaction detection; Before determining the first local object bounding volume pair that satisfies the animation redirection strategy and is screened out from the N first local object bounding volumes as the valid interactive bounding volume of the first object, the method further includes: Based on the spatial semantic detection result, acquiring the first local object bounding volume i and the first local object bounding volume j from the N first local object bounding volumes, and determining a first closest point distance between the first local object bounding volume i and the first local object bounding volume j; If the first nearest point distance between the first local object bounding volume i and the first local object bounding volume j is less than the interaction distance threshold, the first local object bounding volume i and the first local object bounding volume j are determined as the first local object bounding volume pair screened out from the N first local object bounding volumes that meets the animation redirection strategy.
10. The method according to any one of claims 1 to 9, wherein: The effective interactive enclosing volume includes a first effective interactive enclosing volume and a second effective interactive enclosing volume, and the to-be-transferred enclosing volume includes a first to-be-transferred enclosing volume and a second to-be-transferred enclosing volume; The spatial semantic information includes the closest point pair between the first effective interactive bounding volume and the second effective interactive bounding volume, the first spatial semantic information of the first effective interactive bounding volume, and the second spatial semantic information of the second effective interactive bounding volume; the transfer bounding volume includes the first transfer bounding volume and the second transfer bounding volume; The closest point pair between the first valid interactive bounding volume and the second valid interactive bounding volume includes the closest point of the first valid interactive bounding volume and the closest point of the second valid interactive bounding volume; The transferring of the spatial semantic information from the effective interactive bounding volume to the bounding volume to be transferred to obtain a transfer bounding volume carrying the spatial semantic information includes: Determine, on the first bounding volume to be transferred, a first position point having the same first spatial semantic information as the nearest point of the first valid interactive bounding volume, and determine, on the second bounding volume to be transferred, a second position point having the same second spatial semantic information as the nearest point of the second valid interactive bounding volume; Transferring the first spatial semantic information of the nearest point of the first effective interactive bounding volume to the first position point to obtain a first transfer bounding volume carrying the first spatial semantic information; Transferring the second spatial semantic information of the nearest point of the second effective interactive bounding volume to the second position point to obtain a second transferred bounding volume carrying the second spatial semantic information; A transfer bounding volume carrying the spatial semantic information is generated based on a first transfer bounding volume carrying the first spatial semantic information and a second transfer bounding volume carrying the second spatial semantic information.
11. The method according to claim 10, wherein: The method further comprises: Constructing a first coordinate system based on the first valid interactive bounding volume, and determining a vector pointing from the origin of the first coordinate system to the nearest point of the first valid interactive bounding volume as a local vector of the nearest point of the first valid interactive bounding volume; First spatial semantic information of the first valid interactive bounding volume is generated based on the local vector of the nearest point of the first valid interactive bounding volume.
12. The method according to claim 11, wherein: The first effective interactive enclosure is a capsule; The generating first spatial semantic information of the first effective interactive bounding volume based on the local vector of the nearest point of the first effective interactive bounding volume comprises: Determine a proportional coefficient corresponding to the nearest point of the first effective interactive bounding volume on the axis vector of the first local object bounding volume i; Projecting the local vector of the first effective interactive bounding volume to obtain a projection vector of the nearest point of the first effective interactive bounding volume; Based on the scale coefficient and the projection vector, first spatial semantic information of the first effective interactive bounding volume is generated.
13. The method according to any one of claims 10 to 12, wherein: The obtaining of the model correction parameters determined by the spatial semantic information includes: Determine the first transfer bounding volume as the end effector from the animation transfer target model including the transfer bounding volume; Taking the first position point and the second position point as the second closest point pair between the first transfer bounding volume and the second transfer bounding volume; Along a direction perpendicular to the surface of the first transferred bounding volume, superimposing the closest point distance between the first valid interactive bounding volume and the second valid interactive bounding volume on the second position point in the second closest point pair to obtain an interactive estimated point corresponding to the second position point; determining an adjustment vector of the first transferred bounding volume based on an interactive estimation point corresponding to the second position point, the first position point in the second closest point pair, and an adjustment weight; The model correction parameter is generated based on the adjustment vector of the first transfer bounding volume.
14. The method according to claim 13, wherein: The step of performing model correction processing on the animation transfer target model including the transfer bounding volume based on the model correction parameters to obtain the animation transfer target model after the model correction processing comprises: Based on the adjustment vector of the first transfer bounding volume, the first transfer bounding volume in the animation transfer target model is translationally adjusted to obtain the first transfer bounding volume after translation adjustment; The animation transfer target model is model-corrected based on the first transfer bounding volume after the translation adjustment to obtain the animation transfer target model after the model correction processing.
15. The method according to any one of claims 1 to 14, wherein: The animation redirection configuration interface includes an animation transfer source model option and an animation transfer target model option, and the method further includes: In response to a trigger operation for the animation transfer source model option, determining target frame animation data from multiple frames of animation data included in the target animation data, the target frame animation data corresponding to the animation transfer source model to be subjected to spatial semantic transfer and associated with the first object; In response to a trigger operation on the animation transfer target model option, an animation transfer target model to be subjected to spatial semantic transfer is selected from a transfer model database.
16. The method according to any one of claims 1 to 15, wherein: The animation redirection configuration interface includes a first bounding volume initial option and a second bounding volume initial option; displaying N first local object bounding volumes associated with the first object and displaying M second local object bounding volumes associated with the second object on the animation redirection configuration interface, including: In response to a trigger operation for the first bounding volume initial option, N first initial local object bounding volumes associated with the first object are displayed, and the N first initial local object bounding volumes are unbounded from the animation transfer source model to obtain the unbound N first initial local object bounding volumes; In response to an adjustment operation on the unbound N first initial local object bounding volumes, adjusting the unbound N first initial local object bounding volumes to obtain N first local object bounding volumes associated with the first object, and displaying the N first local object bounding volumes associated with the first object on the animation redirection configuration interface; In response to a triggering operation of the second bounding volume initial option, displaying M second initial local object bounding volumes associated with the second object; In response to an adjustment operation on the M second initial local object bounding volumes, the M second initial local object bounding volumes are adjusted to obtain M second local object bounding volumes associated with the second object, and the M second local object bounding volumes associated with the second object are displayed on the animation redirection configuration interface.
17. An animation redirection device, comprising: A display module is configured to display, on the animation redirection configuration interface, an animation transfer source model associated with the first object, an animation transfer target model associated with the second object, N first local object bounding volumes associated with the first object, and M second local object bounding volumes associated with the second object; N and M are both positive integers; a first local object bounding volume includes a local object of the first object; a second local object bounding volume includes a local object of the second object; A detection module, configured to perform spatial semantic detection on the N first local object bounding volumes to obtain a spatial semantic detection result; A screening module is configured to, based on the spatial semantic detection result, determine the first local object bounding volume pair that satisfies the animation redirection strategy and is screened out from the N first local object bounding volumes as a valid interactive bounding volume of the first object; A search module is configured to find the second local object that satisfies the animation redirection strategy in the M second local object bounding volumes. The bounding volume is determined as the bounding volume to be transferred; A transfer module, configured to transfer the spatial semantic information from the effective interactive bounding volume to the bounding volume to be transferred, when the spatial semantic information of the effective interactive bounding volume is acquired based on the spatial semantic detection result, to obtain a transfer bounding volume carrying the spatial semantic information; An acquisition module configured to acquire a model correction parameter determined by the spatial semantic information; A correction module is configured to perform model correction processing on the animation transfer target model including the transfer bounding volume based on the model correction parameters to obtain the animation transfer target model after the model correction processing; The model display module is configured to display the animation transfer target model after the model correction processing on the animation redirection configuration interface, and the spatial semantic information of the animation transfer target model after the model correction processing is consistent with the spatial semantic information of the animation transfer source model.
18. A computer device comprising a memory and a processor; The memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the animation redirection method according to any one of claims 1 to 16.
19. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the animation redirection method according to any one of claims 1 to 16.
20. A computer program product, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium; When the processor of the computer device reads the computer program from the computer-readable storage medium and executes the computer program, the animation redirection method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Method and system for redirecting movement styles of virtual human animation
CN103679752A
Virtual image driving method and device and server
CN114519758A
Animation migration method and system and animation processing equipment
CN115239859A
Animation redirection method and device, equipment and medium
CN116012497A
Systems and Methods for Improved Collision Detection in Video Games
US20220203237A1
