Data processing method and related device
By automatically generating and executing clothing calculation data, it solves the difficulty and cumbersome problems of constructing real clothing effects in the existing technology, realizes an efficient and convenient clothing calculation process, and reduces the dependence on manual operations.
Patent Information
- Application Number
- CN202410569766.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-09
AI Technical Summary
In the existing technology, building an object model with real clothing effects requires proficiency in multiple software and switching between multiple software, which results in high construction difficulty, cumbersome process, and heavy reliance on manual operations.
Provide a data processing method that automatically generates grid point change data by acquiring the target model's bone point change data and relative position relationships to achieve clothing solution and automatically adjust the position of the clothing grid points so that the clothing follows the object's movements. changes to simulate real physical effects.
It reduces the dependence on manual operations, improves the automation of clothing calculation, simplifies the process, improves efficiency and convenience, reduces the requesting party's participation steps, and ensures the accuracy of clothing calculation.
Smart Images

Figure CN118154740B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method and related devices. Background Art
[0002] Clothing solution is one of the key technologies in 3D model technology. It is used to adjust the model grid points of the clothing model worn by the object model based on the motion posture of the object model, so that the clothing effect brought by the clothing model is more natural and realistic, and fits the motion posture of the object model.
[0003] In the related technology, some software can realize the fine construction of object models and accurate adjustment of the motion posture of object models, so as to control the rich and diverse object models to make various vivid and real object movements; some software can realize the accurate clothing settlement of clothing models. Relevant personnel can realize the fine construction and more realistic dynamic adjustment of object models with clothing models through the cooperation between these programs.
[0004] However, when it is necessary to build an object model with a realistic clothing effect, the relevant technology requires relevant personnel to be proficient in the use of multiple programs, which makes the construction difficult and requires switching between multiple software, making the construction process cumbersome. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a data processing method that can realize highly automated clothing solving function and reduce dependence on manual operation.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] In a first aspect, an embodiment of the present application discloses a data processing method, the method comprising:
[0008] Obtaining a clothing solution request, wherein the clothing solution request is used to request clothing solution for a target object action corresponding to a target model, wherein the target model is used to display a target object and a target clothing worn by the target object, and the target object action is an action performed by the target object;
[0009] Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action;
[0010] Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed;
[0011] The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when executing the target object action, so that the clothing grid points are used to simulate the physical effect that the target clothing changes with the action change of the target object.
[0012] In a second aspect, an embodiment of the present application discloses a data processing method, the method comprising:
[0013] Displaying an action selection interface, the action selection interface includes a trigger control corresponding to a target object action corresponding to a target model, the target model is used to display a target object and a target garment worn by the target object, and the target object action is an action performed by the target object;
[0014] Based on the target trigger operation for the trigger control, the target grid point change data obtained by performing clothing solution on the target object action is displayed, and the target trigger operation is used to trigger the execution of the following steps:
[0015] Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action;
[0016] Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed;
[0017] The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when the target object action is executed, and obtain the target grid point change data, so that the clothing grid points are used to simulate the physical effect that the target clothing changes following the action change of the target object;
[0018] In a possible implementation, the displaying of animation frame images corresponding to a plurality of animation frames respectively based on the target triggering operation includes:
[0019] Based on the target trigger operation, an animation video corresponding to the target object action is displayed, and the animation video is used to display animation frame images corresponding to the multiple animation frames respectively based on the timing relationship between the multiple animation frames.
[0020] In a third aspect, an embodiment of the present application discloses a data processing device, the device comprising a first acquisition unit, a first determination unit, a second determination unit and a solution unit:
[0021] The first acquisition unit is used to acquire a clothing solution request, wherein the clothing solution request is used to request clothing solution for a target object action corresponding to a target model, wherein the target model is used to display a target object and a target clothing worn by the target object, and the target object action is an action performed by the target object;
[0022] The first determination unit is used to determine the target relative position relationship corresponding to the target model and the skeleton point change data corresponding to the target object action, the target relative position relationship is the relative position relationship between the grid points and the skeleton points corresponding to the target model when constructing the target model, the skeleton points are used to control the target object to perform the object action, the grid points are the grid vertices of the model grid constituting the target model, the grid points include clothing grid points and object grid points, the clothing grid points are the grid vertices corresponding to the model grid constituting the target clothing, the object grid points are the grid vertices corresponding to the model grid constituting the target object, and the skeleton point change data is used to identify the position change mode of the skeleton points when performing the target object action;
[0023] The second determining unit is used to determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is performed;
[0024] The solving unit is used to perform the clothing solving according to the grid point change data, and the clothing solving is used to adjust the position change mode of the clothing grid points when executing the target object action, so that the clothing grid points are used to simulate the physical effect that the target clothing changes with the action change of the target object.
[0025] In a possible implementation, the grid point change data includes grid point positions corresponding to a plurality of animation frames, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, and the second determining unit is specifically configured to:
[0026] Determining the positions of the skeleton points corresponding to the skeleton points in the plurality of animation frames respectively according to the skeleton point change data;
[0027] The grid point positions corresponding to the multiple animation frames are determined according to the target relative position relationship and the skeleton point positions corresponding to the multiple animation frames.
[0028] In a possible implementation, the multiple animation frames include multiple first animation frames and multiple second animation frames, the multiple second animation frames are used to constitute the target action animation, the target second animation frame is the first frame of the multiple second animation frames, the multiple first animation frames are animation frames before the target second animation frame, and the second determining unit is specifically used to:
[0029] Determining the positions of the skeleton points corresponding to the skeleton points in the plurality of second animation frames respectively according to the skeleton point change data;
[0030] Determine the skeleton point position corresponding to the skeleton point in the target first animation frame as the initial skeleton point position, the target first animation frame is the first frame of the multiple first animation frames, and the initial skeleton point position is the skeleton point position corresponding to the skeleton point when the target object does not perform any action;
[0031] According to the initial skeleton point position and the target skeleton point position corresponding to the skeleton point in the target second animation frame, the skeleton point positions corresponding to the skeleton point in multiple third animation frames are determined, so that the skeleton point position corresponding to the skeleton point is uniformly changed from the initial skeleton point position to the target skeleton point position, and the multiple third animation frames are the animation frames in the multiple first animation frames except the target first animation frame.
[0032] In a possible implementation, the solving unit is specifically used for:
[0033] Determine a solution template corresponding to the target model, the solution template comprising first identification information and second identification information, the first identification information is used to identify the clothing grid point among the grid points, and the second identification information is used to identify the object grid point among the grid points;
[0034] The clothing solution is performed according to the grid point change data through the solution template.
[0035] In a possible implementation, the target garment includes a first garment and a second garment, the first garment is located on the inner side of the second garment, the first identification information includes first sub-identification information and second sub-identification information, the first sub-identification information is used to identify a first garment grid point corresponding to the first garment in the garment grid points, the second sub-identification information is used to identify a second garment grid point corresponding to the second garment in the garment grid points, the garment solution includes a first garment solution and a second garment solution, and the solution unit is specifically used to:
[0036] The first clothing solution is performed according to the grid point change data through the first sub-identification information to generate the first grid point change data, wherein the first clothing solution is used to adjust the position change mode of the first clothing grid point when the target object action is performed, so that the first clothing grid point is used to simulate the physical effect that the first clothing changes following the action change of the target object;
[0037] The second clothing solution is performed according to the first grid point change data through the second sub-identification information to generate the second grid point change data. The second clothing solution is used to adjust the position change mode of the second clothing grid points when executing the target object action, so that the second clothing grid points are used to simulate the physical effect that the second clothing changes with the action changes of the target object without penetrating the second clothing.
[0038] In a possible implementation manner, the device further includes a second acquiring unit:
[0039] The second acquisition unit is used to acquire clothing solution parameters, and the clothing solution parameters are used to control the solution method of the clothing solution;
[0040] The solving unit is specifically used for:
[0041] The clothing solution is performed according to the clothing solution parameters and the grid point change data.
[0042] In a possible implementation, the clothing solution parameters include any one or more combinations of frame range parameters and dynamic parameters;
[0043] The frame number range parameter is used to identify a target animation frame among a plurality of animation frames, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify a position change mode of the grid points between the plurality of animation frames, and the clothing solution is used to adjust the grid point positions of the clothing grid points in the target animation frames;
[0044] The dynamic parameters are used to control the physical effects simulated by the garment solver.
[0045] In a possible implementation, the clothing solution request is used to request clothing solution for multiple object actions, the target object action is any one of the multiple object actions, and the solution unit is specifically used to:
[0046] Based on the fact that the clothing solution has not been performed on the target object action when the clothing solution parameters are obtained, the clothing solution is performed on the target object action according to the clothing solution parameters and the grid point change data.
[0047] In a possible implementation, the clothing solution request is used to request clothing solution for multiple object actions, the target object action is any one of the multiple object actions, and the solution unit is specifically used to:
[0048] Based on the fact that, when acquiring the clothing solution parameters, the clothing solution has been performed on the target object action according to the initial clothing solution parameters, and the initial clothing solution parameters are inconsistent with the clothing solution parameters, the clothing solution is re-performed on the target object action according to the clothing solution parameters and the grid point change data.
[0049] In a possible implementation manner, the device further includes a third acquiring unit and a first generating unit:
[0050] The third acquisition unit is used to acquire image rendering data corresponding to a plurality of animation frames after the clothing solution is completed, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify the position change mode of the grid points between the plurality of animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the plurality of animation frames, the target image rendering data corresponding to the target animation frame is used to generate a target animation frame image corresponding to the target animation frame, the target animation frame image is used to display the target model in the target animation frame, and the target animation frame is any one of the plurality of animation frames;
[0051] The first generating unit is used to generate the target animation frame image according to the target image rendering data.
[0052] In a possible implementation, the target animation frame image is an animation frame image corresponding to the target animation frame, and the device further includes a second generating unit:
[0053] The second generating unit is used to generate an animation video corresponding to the target object action according to the timing relationship between the multiple animation frames and the animation frame images respectively corresponding to the multiple animation frames, and the animation video is used to display the animation frame images respectively corresponding to the multiple animation frames based on the timing relationship.
[0054] In a possible implementation manner, the second determining unit is specifically configured to:
[0055] By calling a first program, the grid point change data is determined according to the skeleton point change data and the target relative position relationship, the first program is used to control the target model to perform the target object action according to the skeleton point change data, and in the process of performing the target object action, the first program is used to control the relative position relationship between the grid point and the skeleton point to satisfy the target relative position relationship;
[0056] The solving unit is specifically used for:
[0057] The clothing is solved according to the grid point change data by calling the second program.
[0058] In a fourth aspect, an embodiment of the present application discloses a data processing device, the device comprising a first display unit and a second display unit:
[0059] The first display unit is used to display an action selection interface, the action selection interface includes a trigger control corresponding to a target object action corresponding to a target model, the target model is used to display a target object and a target garment worn by the target object, and the target object action is an action performed by the target object;
[0060] The second display unit is used to display the target grid point change data obtained by performing clothing solution on the target object action based on the target trigger operation on the trigger control, and the target trigger operation is used to trigger the execution of the following steps:
[0061] Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action;
[0062] Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed;
[0063] The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when executing the target object action, to obtain the target grid point change data, so that the clothing grid points are used to simulate the physical effect that the target clothing changes as the action of the target object changes.
[0064] In a possible implementation, the device further includes a third display unit:
[0065] The third display unit is used to display animation frame images corresponding to multiple animation frames based on the target trigger operation, the multiple animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the multiple animation frames, the grid point change data is used to identify the position change mode of the grid points between the multiple animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the multiple animation frames, the target animation frame image corresponding to the target animation frame is used to display the target model in the target animation frame, and the target animation frame is any one of the multiple animation frames.
[0066] In a possible implementation, the third display unit is specifically used to:
[0067] Based on the target trigger operation, an animation video corresponding to the target object action is displayed, and the animation video is used to display animation frame images corresponding to the multiple animation frames respectively based on the timing relationship between the multiple animation frames.
[0068] In a possible implementation, the device further includes a fourth display unit:
[0069] The fourth display unit is used to display a parameter setting interface;
[0070] The second display unit is specifically used for:
[0071] Based on the target triggering operation on the triggering control and the parameter setting operation on the parameter setting interface, target grid point change data obtained by performing clothing solution on the target object action is displayed, and the parameter setting operation is used to set clothing solution parameters;
[0072] The performing the clothing calculation according to the grid point change data includes:
[0073] The clothing solution is performed according to the clothing solution parameters and the grid point change data.
[0074] In a fifth aspect, an embodiment of the present application discloses a computer device, wherein the computer device includes a processor and a memory:
[0075] The memory is used to store a computer program and transmit the computer program to the processor;
[0076] The processor is used to execute the data processing method described in any one of the first aspects, or execute the data processing method described in any one of the second aspects according to the instructions in the computer program;
[0077] In a sixth aspect, an embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program is used to execute the data processing method described in any one of the first aspects, or execute the data processing method described in any one of the second aspects;
[0078] In the seventh aspect, an embodiment of the present application discloses a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the data processing method described in any one of the first aspect, or execute the data processing method described in any one of the second aspect.
[0079] It can be seen from the above technical solution that after obtaining the clothing solution request for the target object action corresponding to the target model composed of the target object and the target clothing worn by the target object, the present application can first determine the target relative position relationship between the skeleton points and the grid points of the target model when the model is constructed, as well as the skeleton point change data corresponding to the target object action. The skeleton point change data is used to identify the position change mode of the skeleton points during the process of the target model executing the target object action. Thus, through the skeleton point change data and the target relative position relationship, it is possible to automatically determine the position change mode of the grid points when executing the target object action under the premise of maintaining the target relative position relationship when the clothing solution is not performed, and obtain the grid point change data. The grid point change data is the data required for clothing solution. Furthermore, clothing solution can be automatically performed through the grid point change data to adjust the position change mode of the clothing grid points constituting the target clothing in the grid points, so that the clothing grid points can be used to simulate the physical effect of the target clothing changing with the action change of the target object. The entire clothing solution process only requires the requester to initiate a clothing solution request to achieve automatic generation of data required for clothing solution and automatic execution of clothing solution. The requester does not need to generate data on its own, nor does it need to master how to use the clothing solution software. The entire process has a low degree of dependence on the requester and a high degree of automation. It can reduce the steps required for the requester to participate in the clothing solution process while ensuring the accuracy of the clothing solution. While improving the efficiency of clothing solution, it can bring a more convenient clothing solution experience to the requester and reduce the time occupied by the requester. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0081] Figure 1 A schematic diagram of a model and clothing provided in an embodiment of the present application;
[0082] Figure 2 A schematic diagram of a data processing method in an actual application scenario provided by an embodiment of the present application;
[0083] Figure 3 A flowchart of a data processing method provided in an embodiment of the present application;
[0084] Figure 4 A schematic diagram of an animation frame involved in an object action provided in an embodiment of the present application;
[0085] Figure 5 A schematic diagram of changes in bone points involved in an object action provided in an embodiment of the present application;
[0086] Figure 6 A schematic diagram of an object with multiple garments provided in an embodiment of the present application;
[0087] Figure 7 A schematic diagram of a clothing solution sequence provided in an embodiment of the present application;
[0088] Figure 8 A flowchart of a data processing method provided in an embodiment of the present application;
[0089] Fig. 9 A schematic diagram of an interaction for selecting an object action provided in an embodiment of the present application;
[0090] Fig.10 A schematic diagram of automatically displaying an animation frame image provided by an embodiment of the present application;
[0091] Fig.11 A schematic diagram of automatically displaying an animated video provided in an embodiment of the present application;
[0092] Fig.12 A schematic diagram of a parameter setting interface provided in an embodiment of the present application;
[0093] Fig.13 A signaling diagram of a data processing method in an actual application scenario provided by an embodiment of the present application;
[0094] Fig.14 A schematic diagram of the interaction between a computer device and multiple programs during background data processing in an actual application scenario provided by an embodiment of the present application;
[0095] Fig.15 A structural block diagram of a data processing device provided in an embodiment of the present application;
[0096] Fig.16A structural block diagram of a data processing device provided in an embodiment of the present application;
[0097] Fig.17 A structural diagram of a terminal provided in an embodiment of the present application;
[0098] Fig.18 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0099] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0100] First, the technical scenarios and technical concepts involved in this application are introduced. This application mainly involves three-dimensional modeling and rendering scenes, mainly for models composed of objects and clothes worn by objects. Objects can include a variety of objects that can wear clothes, such as human objects, animal objects, etc. Clothing can be any wearable clothing, for example, it can include various clothes, decorations, etc. The skeleton points corresponding to the model are used to control the objects in the model to perform various object actions. For example, by adjusting the position of the skeleton points corresponding to the object's arm, the object can be controlled to raise its hand, wave its hand, and so on. A three-dimensional model is usually composed of multiple model grids, and the grid points corresponding to the model are the vertices of the model grid.
[0101] When constructing a model, the skeleton points corresponding to the model and the mesh points corresponding to the model have a relative position relationship. In the absence of clothing solution, the relative position relationship between the mesh points and the skeleton points remains unchanged, and the clothing of the model will not have the physical effect of changing with the object's movements. Model solution of object movements is used to adjust the position change mode of the clothing mesh points that constitute the clothing when executing the object's movements, so that the clothing mesh points can be used to simulate the real physical effect of the clothing changing with the object's movements. Figure 1 As shown, the object can be a character object, and the clothing can include the top and pants worn by the character. When the character performs the hand-raising action by adjusting the position of the arm bone point, when the clothing solution is not performed, since the relative position relationship between the clothing mesh point and the bone point of the top sleeve remains unchanged, the top sleeve will move with the arm while maintaining its shape, and the physical effect cannot be simulated, and the model may even break. After the clothing solution is performed, by adjusting the clothing mesh point position of the top sleeve, the physical effect of the top sleeve fitting the arm when the arm is raised and drooping due to gravity can be simulated.
[0102] In the related art, the first type of software used to set the object action of the model and the second type of software used for clothing solution are different software. The data required for clothing solution is the grid point change data that identifies the position change mode of the grid point during the execution of the object action. The grid point change data needs to be obtained by the user by constantly changing the object action in the first type of software. Clothing solution requires the user to input the grid point change data in the second type of software and enable the clothing solution function in the software. It can be seen that in the related art, clothing solution requires users to master the use functions of multiple software on the one hand, and on the other hand, requires users to constantly switch between multiple software. Therefore, clothing solution is difficult, the process is cumbersome, and the efficiency is low.
[0103] In order to solve the above technical problems, the present application provides a data processing method. After obtaining a clothing solution request initiated by a requesting party for a target object action, the target relative position relationship corresponding to the target model and the bone point change data corresponding to the target object action can be determined first. According to the relative position relationship between the bone point and the grid point identified by the target relative position relationship, and the position change mode of the bone point identified by the bone point change data during the execution of the target object action, the grid point change data corresponding to the target model when the target object action is executed can be automatically generated, so that the clothing solution of the target object action can be automatically triggered according to the grid point change data. After initiating the clothing solution request, the entire clothing solution process does not require the participation of the requesting party. Therefore, on the one hand, the requesting party does not need to understand how to use multiple software, and on the other hand, the requesting party does not need to switch between multiple software, which reduces the difficulty of clothing solution and the time occupied by the requesting party, and improves the efficiency and convenience of clothing solution.
[0104] The data processing method provided in the present application can be applied to a variety of scenarios involving virtual object models, for example, it can be used to construct virtual objects used in various virtual interactive scenarios, construct virtual objects in carriers with image information such as images and animations, construct virtual game objects in games, etc., so that when these virtual objects perform object actions, the clothes they wear can have more reasonable and accurate physical effects.
[0105] It is understandable that the method can be applied to a computer device, which is a computer device capable of data processing, such as a terminal device or a server. The method can be executed independently by a terminal device or a server, or it can be applied to a network scenario in which a terminal device and a server communicate, and it can be executed in cooperation with a terminal device and a server. Among them, the terminal device can be a mobile phone, a tablet computer, a laptop computer, a desktop computer and other devices. The terminal device can also include a variety of virtual reality devices, such as augmented reality (AR) devices, such as AR glasses, AR screens and other devices, and virtual reality technology (VR) devices, such as head-mounted VR glasses and other devices. The server can be understood as an application server or a Web server. In actual deployment, 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, CDN, and basic cloud computing services such as big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The terminal and the server may be connected directly or indirectly via wired or wireless communication, which is not limited in this application.
[0106] This application also involves cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to achieve data computing, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
[0107] This application mainly relates to cloud computing technology. Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use.
[0108] As a provider of basic cloud computing capabilities, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
[0109] According to the logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on the PaaS layer. SaaS can also be deployed directly on IaaS. PaaS is a platform for software operation, such as databases, web containers, etc. SaaS is a variety of business software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.
[0110] This application can use cloud computing resources to provide online clothing solution services, upload models and set parameters through the network interface, complete clothing solution and rendering by the cloud, and finally download the clothing solution results. This solution can further reduce the hardware requirements on the user side. In addition, this application can also build a distributed computing platform, allowing multiple users to share computing resources for clothing solution. In this way, complex clothing solution tasks can be performed simultaneously on multiple computer devices, thereby further improving the processing speed and efficiency of clothing solution.
[0111] In order to facilitate understanding of the technical solution provided by this application, the data processing method provided by this application will be introduced below in combination with an actual application scenario.
[0112] See also Figure 2 , Figure 2A schematic diagram of a data processing method in an actual application scenario provided for an embodiment of the present application. In the actual application scenario, the computer device may be a server 101 with a data processing function, the target model may be a character model, the target object in the target model may be a character body in the character model, the target clothing may be clothing worn by the character body, and the target object action may be a hand-raising action.
[0113] If the requesting party wants the target model to be able to perform the target object action naturally and reasonably, a clothing solution request for the target object action can be initiated. After obtaining the request, the server 101 can determine the skeleton point change data corresponding to the target object action and the target relative position relationship corresponding to the target model. The skeleton point change data is used to identify the position change mode of the skeleton points of the target model when performing the target object action of the hand-raising action. The change of the skeleton points is used to control the posture change of the human body in the target model, so that the human body can be controlled to perform various object actions. The target relative position relationship is used to identify the relative position relationship between the grid point and the skeleton point when constructing the target model. Thus, according to the skeleton point change data and the target relative position relationship, the server 101 can determine the position change mode of the grid point when performing the hand-raising action, while maintaining the target relative position relationship, that is, obtain the initial grid point change data.
[0114] like Figure 2 As shown, in the position change mode identified by the initial grid point change data, since it is necessary to maintain a fixed relative position relationship of the target, the initial grid point change data will cause abnormal problems such as model breakage when the hand is raised, and the clothing can only move rigidly following the body movement of the character, and cannot simulate the real physical effect. Server 101 can automatically perform clothing solution for the target object movement based on the grid point change data to adjust the position change mode of the clothing grid points. Figure 1 It can be seen that in the change mode of the adjusted grid points, the object grid points have not changed, but the position change mode of the clothing grid points has changed, so that the target clothing can fit the human body more closely and can also simulate the physical effect of natural drooping due to gravity, thereby simulating the physical effect that the target clothing changes with the changes of the human body.
[0115] It can be seen from the above process that in the present application, if the requesting party has a clothing solution requirement, it only needs to initiate a clothing solution request for the target object action. The server 101 can automatically complete the determination of the grid point change data and the execution of the clothing solution. The requesting party does not need to operate in multiple software by itself. On the one hand, it reduces the learning difficulty required for clothing solution. On the other hand, the requesting party does not need to switch between multiple software, which improves the intelligence and convenience of clothing solution, reduces the time occupied by the requesting party, and helps the requesting party to perform multiple operations required by multiple lines.
[0116] Next, the data processing method provided by the present application will be introduced in detail in conjunction with the accompanying drawings.
[0117] See also Figure 3 , Figure 3 A flowchart of a data processing method provided in an embodiment of the present application, in which the computer device can be any computer device with data processing function, such as a server or terminal device such as a computer or mobile phone for data processing. The method includes:
[0118] S301: Obtain clothing solution request.
[0119] When the requesting party needs to perform clothing solution on the target object action, a clothing solution request for the target object action can be initiated. There are many ways to initiate the request, which are described in detail below and will not be described in detail here.
[0120] The clothing solution request is used to request clothing solution for the target object action corresponding to the target model. The target model is used to display the target object and the target clothing worn by the target object, that is, a model composed of the target object and the target clothing worn by the target object. The target object and the target clothing can be any object and any clothing. The target object action is the action performed by the target object. For example, when the target object is a person object, the target object action may include jumping, walking, talking and other actions.
[0121] S302: Determine the target relative position relationship corresponding to the target model and the bone point change data corresponding to the target object action.
[0122] In the present application, the model has corresponding skeleton points and grid points. The skeleton points corresponding to the target model are used to control the target object to perform object actions, that is, by adjusting the position of the skeleton points, the target object can perform a variety of object actions; the grid points are the grid vertices of the model grid that constitutes the target model. The target model is composed of the model grid, that is, the observable target model is spliced together by model grids. The grid points include clothing grid points and object grid points. The clothing grid points are the grid vertices corresponding to the model grid that constitutes the target clothing, and the object grid points are the grid vertices corresponding to the model grid that constitutes the target object. It should be emphasized that the model can be a three-dimensional model or a two-dimensional model, as long as the model has skeleton points and grid points, which is not limited here.
[0123] In the model rendering scene, there is a certain relative position relationship between the grid points and the bone points. The relative position relationship can determine the spatial position of the grid points when the position of the bone points changes, so that the model can change based on the change of the position of the bone points. Before the clothing solution is performed, the relative position relationship between the bone points and the grid points of the target model remains unchanged. This results in that although the target model can perform object actions due to the change of the bone point position, the target clothing will change its position relatively rigidly following the action of the target object, but it cannot simulate the physical effect of real clothing, which requires the participation of clothing solution.
[0124] Clothing solving requires knowing how the target model's grid points change their positions when executing the target object's actions. This allows, on the one hand, the target object's action changes and the position of the target object's torso to be understood based on the position changes of the object's grid points. On the other hand, the target clothing's posture during the execution of the target object's actions can be understood based on the position changes of the clothing's grid points. This allows knowing how to adjust the clothing's grid points so that the target clothing has a real physical effect that changes with the target object's action changes without interpenetrating with the target object.
[0125] In summary, in order to automatically perform clothing solving, the computer device can first generate grid point change data for identifying the position change mode of the grid points of the target model when the clothing solving is not performed. The computer device can first determine the target relative position relationship and the skeleton point change data. The target relative position relationship is the relative position relationship between the grid points and the skeleton points corresponding to the target model when the target model is constructed, that is, the relative position relationship maintained between the grid points and the skeleton points of the target model when the clothing solving is not performed. The skeleton point change data is used to identify the position change mode of the skeleton points when executing the target object action. The skeleton point change data has been generated when the designer designs the target object action, that is, the designer designs the target object action by controlling the skeleton points to change in the position change mode identified by the skeleton point change data.
[0126] S303: Determine the grid point change data according to the skeleton point change data and the target relative position relationship.
[0127] The computer device can fuse the target relative position relationship based on the position change mode of the skeleton point identified by the skeleton point change data, thereby determining the position change mode of the grid point when executing the target object action while maintaining the target relative position relationship, and generating the grid point change data. The grid point change data is used to identify the position change mode of the grid point when executing the target object action. For example, in a model rendering scene, the object action usually corresponds to multiple animation frames, and the skeleton point change data can identify the skeleton point positions corresponding to the multiple animation frames corresponding to the target object action. The target relative position relationship can be superimposed on the skeleton point position to obtain the grid point positions corresponding to the grid points in the multiple animation frames, thereby obtaining the grid point change data.
[0128] S304: performing clothing calculation according to the grid point change data.
[0129] It can be seen from the above method that the computer device can automatically trigger the execution of clothing solution according to the grid point change data, that is, through the position change mode of the object grid point identified in the grid point change data and the position change mode of the clothing grid point, it can be analyzed how to adjust the position change mode of the clothing grid point, so that the clothing grid point can be used to simulate the physical effect of the target clothing changing with the action change of the target object, thereby realizing clothing solution, which is used to adjust the position change mode of the clothing grid point when executing the target object action. It should be emphasized that the clothing solution can be completed by the computer device itself, or it can be completed by other devices instructed by the computer device, which is not limited here, and the above methods do not require the participation of the requesting party.
[0130] It can be seen from the above technical scheme that after obtaining the clothing solution request for the target object action corresponding to the target model composed of the target object and the target clothing worn by the target object, the present application can automatically realize the determination of the grid point position change data required for clothing solution, and automatically realize the execution of clothing solution. There is no need for the requester to obtain and generate data by itself, nor is there any need for the requester to master the use of clothing solution software. The whole process has a low degree of dependence on the requester and a high degree of automation. Under the premise of ensuring the accuracy of clothing solution, it can reduce the steps required for the requester to participate in the clothing solution process. While improving the efficiency of clothing solution, it can bring a more convenient clothing solution experience to the requester, reduce the time occupied by the requester, and enable the requester to perform technical operations in other model rendering scenarios while solving the clothing, thereby helping to improve the overall efficiency of model rendering and construction.
[0131] Next, various technical details involved in this application will be introduced in detail in conjunction with the accompanying drawings.
[0132] First, the method for determining grid point change data in this application is introduced in detail.
[0133] In a possible implementation, the target object action may involve multiple animation frames during execution, and the multiple animation frames include animation frames that constitute the target action animation, and the target action animation is an animation of the target object performing the target object action. The target model has corresponding bone point positions in multiple animation frames, and the bone point position change mode based on the timing relationship between the multiple animation frames is the position change mode identified by the bone point change data, and the timing relationship is the timing relationship of the animation frames passed when executing the target object action. Figure 4 As shown, when performing the hand-raising action, two animation frames, animation frame 1 and animation frame 2, may be included.
[0134] In this implementation, the grid point change data may include grid point positions corresponding to a plurality of animation frames. When executing step S303, the computer device may execute steps S3031-S3032 (not shown in the figure). Steps S3031-S3032 are a possible implementation of step S303, including:
[0135] S3031: Determine the positions of the skeleton points corresponding to the skeleton points in the plurality of animation frames according to the skeleton point change data.
[0136] The position of the skeleton point is the position corresponding to the skeleton point when the target object action is executed to the execution progress corresponding to each animation frame, which can represent the action posture of the target object at each execution progress.
[0137] S3032: Determine the grid point positions corresponding to the multiple animation frames according to the target relative position relationship and the skeleton point positions corresponding to the multiple animation frames.
[0138] Since the target relative position relationship is maintained between the skeleton points and the grid points when the clothing solution is not performed, the grid point position corresponding to each animation frame can be determined based on the skeleton point position corresponding to each animation frame, so that based on the timing relationship between multiple animation frames and the grid point positions corresponding to multiple animation frames, the position change mode of the grid point when executing the target object action can be identified. In the related art, since there is no automated data processing function, the relevant personnel need to manually set each animation frame through the software, and then record the grid point data corresponding to each animation frame. An object action usually has a large number of animation frames, so the related art will consume a lot of time and energy, resulting in low efficiency in the preliminary preparation work of clothing solution. The present application can automatically complete the determination of the grid point change data based on the target relative position relationship and the skeleton point change data, thereby improving the efficiency of clothing solution and reducing the dependence on manual labor.
[0139] As mentioned above, clothing solution is to analyze the actual change mode of the target clothing by analyzing the motion state of the target object. However, since the first frame of the animation frames that constitute the target object has no preceding animation frames in the target object action, it is impossible to analyze the motion state of the target object when entering the first animation frame, which may result in the inability to perform effective clothing solution for the target clothing in the first animation frame. Figure 5 In the figure, animation frames B and C are the animation frames that constitute the target object action (hand-raising action), and animation frame B is the first frame. In animation frame B, the arm is in a slightly raised state. When the clothing is solved, it is impossible to know whether the arm position in animation frame B is dropped to this position or raised to this position, so it is impossible to judge the movement posture of the target object.
[0140] Based on this, in a possible implementation, in order to further improve the rationality and accuracy of clothing solution, the computer device can add an initial action starting point for the target object action to more accurately analyze the movement posture of the target object.
[0141] In this implementation, the multiple animation frames may include multiple first animation frames and multiple second animation frames, the multiple second animation frames are used to form the target action animation, that is, the animation frames passed when the target object action is performed, the target second animation frame is the first frame of the multiple second animation frames, and the multiple first animation frames are animation frames before the target second animation frame. When executing step S3031, the computer device may execute steps S30311-S30313 (not shown in the figure), and steps S30311-S30313 are a possible implementation of step S3031, including:
[0142] S30311: Determine the positions of the skeleton points corresponding to the skeleton points in the plurality of second animation frames according to the skeleton point change data.
[0143] Since the skeleton point change data is data corresponding to the target object action, and the multiple second animation frames are animation frames constituting the target object action, the skeleton point positions corresponding to the skeleton points in the multiple second animation frames can be directly determined based on the data.
[0144] S30312: Determine the bone point position corresponding to the target first animation frame as the initial bone point position.
[0145] Among them, the target first animation frame is the first frame of multiple first animation frames, and the initial bone point position is the bone point position corresponding to the bone point when the target object does not perform any action, that is, the bone point position corresponding to the absence of any motion posture, such as the preset standard posture of the model (such as the T-Pose posture), etc. Therefore, starting from the initial bone point position, the motion posture corresponding to the bone point position of each animation frame can be accurately analyzed. Based on this, the computer device can set the initial bone point position as the initial position analyzed when performing clothing solution, so as to accurately analyze the motion postures corresponding to multiple animation frames.
[0146] S30313: According to the initial bone point position and the target bone point position corresponding to the bone point in the target second animation frame, determine the bone point positions corresponding to the bone point in multiple third animation frames, so that the bone point position corresponding to the bone point changes uniformly from the initial bone point position to the target bone point position.
[0147] In order to make the target object's motion change more natural, the computer device can analyze how the skeleton point changes position in multiple third animation frames based on the initial skeleton point position and the target skeleton point position in the target second animation frame, so that the skeleton point position can be changed from the initial skeleton point position to the target skeleton point position, thereby being able to determine the skeleton point positions corresponding to the multiple third animation frames, and then obtain the skeleton point positions corresponding to the multiple animation frames. The multiple third animation frames are animation frames other than the target first animation frame in the multiple first animation frames. For example, the computer device can determine the skeleton point positions corresponding to the multiple third animation frames by interpolation, so that the target object can evenly change from the object posture in the target first animation frame to the object posture in the target second animation frame, so that the object movement is more natural, and then the motion posture analyzed by the clothing solution is more accurate.
[0148] For example, the computer device can add 50 first animation frames before the target second animation frame, wherein the skeletal point positions in the target first animation frame are the skeletal point positions under T-Pose, and the computer device can perform interpolation calculations based on the skeletal point positions in the target first animation frame and the target second animation frame through interpolation method to obtain the skeletal point positions corresponding to the 50 first animation frames, so that the target object can start to execute with a reasonable movement posture when performing the target object action, so that the clothing can change naturally and realistically.
[0149] Through the above method, the computer device can provide a reasonable object motion starting point for clothing solution, making the clothing solution more accurate and realistic in analyzing the motion status of the target object in each animation frame, so that the clothing grid points corresponding to each animation frame can be adjusted more accurately, and finally a more realistic physical effect can be simulated. Figure 5 In the figure, animation frame A is the target first animation frame, animation frame B and animation frame C are the second animation frames, and animation frame B is the target second animation frame. By adding animation frame A, it can be known during clothing solving that when in animation frame A, the target object is in a motion posture of raising the arm, thereby avoiding the physical effect of clothing solving simulating the downward movement of the clothing following the arm, thereby improving the rationality of clothing solving.
[0150] Next, the clothing solving process will be introduced in detail.
[0151] As mentioned above, clothing solution is to adjust clothing grid points based on the motion state of the target object. Therefore, clothing solution first needs to know how the object grid points used to constitute the target object move. In a possible implementation, when executing step S304, the computer device can execute steps S3041-S3042 (not shown in the figure), which are a possible implementation of step S304, including:
[0152] S3041: Determine the solution template corresponding to the target model.
[0153] The solution template includes first identification information and second identification information, the first identification information is used to identify the clothing grid point in the grid point, and the second identification information is used to identify the object grid point in the grid point. Thus, through the solution template, the target object and target clothing in the target model can be determined in the clothing solution process. The solution template can be generated by the computer device based on the model structure of the target model, or it can be a solution template preset before the clothing solution, which is not limited here. The above two methods do not require the participation of the requester in the actual clothing solution process.
[0154] S3042: Perform clothing calculation based on the calculation template and the grid point change data.
[0155] After determining the object grid points, the movement status of the target object can be accurately analyzed during the clothing solution process, and the position of the torso of the target object at each execution progress can be known; after determining the clothing grid points, the position of the target clothing at each execution progress and the way the target clothing changes in the historical progress can be known. Therefore, combined with the above information, the position change mode of the clothing grid points can be accurately adjusted through clothing solution. On the one hand, the real physical effect of the target clothing changing with the movement of the target object can be simulated, and on the other hand, the model penetration between the target clothing and the target object can be avoided to ensure the display effect of the target clothing.
[0156] It is understandable that a subject may be wearing multiple garments, e.g. Figure 6As shown, the character object can wear a shirt and a coat at the same time. Under the real physical effect, not only should there be no model penetration between clothing and objects, but also between clothing. At the same time, the change mode of the outer clothing is also affected by the change mode of the inner clothing to a certain extent. Based on this, in a possible implementation method, the computer device can perform layered solution on the clothing to further improve the rationality and accuracy of clothing solution.
[0157] In this implementation, the target garment may include a first garment and a second garment, and the first garment is located on the inner side of the second garment, that is, closer to the target object, so the change of the second garment is affected by the change of the first garment and the target object at the same time, and the change of the first garment is mainly affected by the change of the target object. The first identification information includes first sub-identification information and second sub-identification information, the first sub-identification information is used to identify the first garment grid point corresponding to the first garment in the garment grid point, and the second sub-identification information is used to identify the second garment grid point corresponding to the second garment in the garment grid point. The garment solution may include the first garment solution and the second garment solution. When executing step S3042, the computer device may execute steps S30421-S30422 (not shown in the figure), and steps S30421-S30422 are a possible implementation of step S3042, including:
[0158] S30421: Perform a first clothing solution according to the grid point change data using the first sub-identification information to generate first grid point change data.
[0159] Among them, the first clothing solution is used to adjust the position change mode of the first clothing grid points when executing the target object action, so that the first clothing grid points are used to simulate the physical effect that the first clothing changes with the action changes of the target object, that is, when the first clothing is solved, the position change mode of the second clothing grid points is not adjusted, and the target model is regarded as a model of only the target object and the first clothing, so as to simulate the physical effect that the first clothing changes with the action changes of the target object, with the purpose of enabling the first clothing to change naturally with the target object without penetrating the target object.
[0160] S30422: Perform a second clothing solution according to the first grid point change data using the second sub-identification information to generate second grid point change data.
[0161] The second garment solution is used to adjust the position change mode of the second garment grid points when executing the target object action, so that the second garment grid points are used to simulate the physical effect that the second garment changes with the target object's action and does not penetrate the second garment. That is, when the second garment is solved, the position change mode of the first garment grid points is not adjusted. At this time, the adjusted first garment and the target object can be regarded as a whole. Therefore, through the second garment solution, the second garment can be changed with the action changes of the whole and does not penetrate the whole. Figure 7 As shown, in the first clothing solution, only the clothing grid points corresponding to the shirt can be solved, so that the shirt can change with the character's movements. In the second clothing solution, the shirt and the character's body can be regarded as a whole, and the clothing grid points corresponding to the coat can be solved, so that the coat can change with the overall movement.
[0162] Through the above-mentioned clothing solving method, when solving clothing scenes for multiple pieces of clothing, it is possible to refer to the wearing logic of the object wearing the clothing, ensure that multiple pieces of clothing have real physical effects, improve the authenticity of the physical relationship between multiple pieces of clothing, and further improve the clothing solving accuracy.
[0163] In addition, in order to increase the degree of freedom of clothing solving and to meet the diverse solving requirements of the requesting party for clothing solving, in a possible implementation, the computer device also supports the requesting party to set the solving parameters for controlling the clothing solving method.
[0164] The computer device can obtain clothing solution parameters, which can be parameters set by the requester in various ways, which will be described in detail below; or default parameters that do not need to be set by the requester, which are not limited here. The clothing solution parameters are used to control the solution method of clothing solution, for example, they can be used to control the physical effects achieved by clothing solution, control the range of movement of the object for clothing solution, etc.
[0165] When executing step S304, the computer device may execute step S3043 (not shown in the figure). Step S3043 is a possible implementation of step S304, including:
[0166] S3043: Perform clothing solution according to clothing solution parameters and grid point change data.
[0167] The requester can set clothing solution parameters that meet their needs based on their own clothing solution requirements, so that when the clothing solution is performed according to the dissolution method indicated by the clothing solution parameters, the clothing solution method can meet the clothing solution requirements of the requester. On the premise of achieving automation, more diversified clothing solution functions can be provided to further improve the data processing experience.
[0168] In one possible implementation, the clothing solution parameters may include any one or more combinations of frame range parameters and dynamic parameters. These parameters will be introduced in detail below.
[0169] The frame number range parameter is used to identify a target animation frame among multiple animation frames, the multiple animation frames include animation frames constituting a target action animation, the target action animation is an animation of a target object performing a target object action, the grid points have corresponding grid point positions in multiple animation frames, the grid point change data is used to identify the position change mode of the grid points between multiple animation frames, and the clothing solution is used to adjust the grid point positions of the clothing grid points in the target animation frame. That is, when the target object action involves multiple animation frames, the requester can freely select the target animation frame therein, so that the computer device only performs clothing solution on this part of the target animation frames, and does not perform clothing solution on animation frames that are not required, thereby further improving the solution speed of the clothing solution and improving the flexibility of the clothing solution.
[0170] The dynamic parameters are used to control the physical effects simulated by clothing solution, for example, they may include gravity parameters, bending strength parameters, stretch resistance parameters, drag parameters, etc., which are used to control the gravity effect in the physical effect. These parameters can be used to freely adjust the physical effects achieved by clothing solution to meet the diverse physical effect requirements, for example, different physical effects can be set for different types of clothing, and different physical effects can be set for different scenes where the model is located. In addition, clothing solution parameters may also include solution step parameters for controlling the number of clothing solutions, time scale parameters for controlling the interval between animation frames selected when solving clothing, etc., which are not limited here.
[0171] Furthermore, in addition to providing a function for setting clothing solving parameters when starting clothing solving, the computer device can also provide a function for freely adjusting clothing solving parameters during clothing solving, which mainly includes the following two functional implementation methods:
[0172] The first method: adjust the action of the object that has not yet been solved for clothing
[0173] In a possible implementation, the clothing solution request can be used to request clothing solution for multiple object actions, that is, the requester can trigger automatic clothing solution for multiple object actions by initiating a request. The target object action is any one of the multiple object actions. When executing step S3043, the computer device can execute step S30431 (not shown in the figure). Step S30431 is a possible implementation of step S3043, including:
[0174] S30431: Based on the fact that clothing solution has not been performed on the target object action when the clothing solution parameters are obtained, clothing solution is performed on the target object action according to the clothing solution parameters and the grid point change data.
[0175] In this implementation, the computer device can obtain the clothing solution parameters when the requesting party sets the clothing solution parameters. At this time, the computer device can determine whether the target object action has been subjected to clothing solution. If not, the target object action can be subjected to clothing solution based on the new clothing solution parameters. The advantage of this parameter adjustment method is that the requesting party can perform clothing solution on multiple object actions through multiple clothing solution parameters in one clothing solution request to meet the diverse clothing solution requirements, so that one clothing solution process can output solution results corresponding to multiple clothing solution parameters, without the need for the requesting party to repeatedly initiate multiple clothing solution requests.
[0176] Second: Adjust all object actions
[0177] In another possible implementation, the clothing solution request may also be used to request clothing solution for multiple object actions, where the target object action is any one of the multiple object actions. When executing step S3043, the computer device may execute step S30432 (not shown in the figure), which is a possible implementation of step S3043, including:
[0178] S30432: Based on the fact that, when obtaining the clothing solution parameters, clothing solution has been performed on the target object action according to the initial clothing solution parameters, and the initial clothing solution parameters are inconsistent with the clothing solution parameters, clothing solution is re-performed on the target object action according to the clothing solution parameters and the grid point change data.
[0179] In this implementation, the requester can adjust the clothing solution mode of all object actions by setting clothing solution parameters. When obtaining the clothing solution parameters set by the requester, the computer device can directly perform clothing solution based on the new clothing solution parameters for the object actions that have not yet been solved; for the object actions that have already been solved, such as the target object actions, the computer device can first determine whether the initial clothing solution parameters when performing clothing solution on the target object actions are consistent with the new clothing solution parameters. If they are inconsistent, it means that the completed clothing solution cannot meet the clothing solution requirements of the requester. At this time, the computer device can re-perform clothing solution on the target object actions based on the new clothing solution parameters and the grid point change data before the solution.
[0180] The advantage of this clothing solution method is that no matter at which stage of clothing unlocking the requester sets new clothing solution parameters, the grid point change data corresponding to all object actions solved based on the new clothing solution parameters can be obtained, and the clothing solution parameters of multiple object actions can be adjusted efficiently and completely, further improving the convenience of the clothing solution function. When adjusting clothing solution parameters, the above two methods do not need to interrupt the clothing solution process, so they will not have a significant impact on the clothing solution speed.
[0181] In addition to being able to automatically process preliminary data for clothing solving and automatically execute clothing solving, computer equipment can also automatically generate a variety of data based on clothing solving.
[0182] For example, in order to enable the requesting party to clearly know the solution effect of the clothing solution, in a possible implementation method, after the clothing solution is completed, the computer device can obtain image rendering data corresponding to multiple animation frames, the multiple animation frames include animation frames that constitute the target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the multiple animation frames, the grid point change data is used to identify the position change mode of the grid points between the multiple animation frames, and the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the multiple animation frames, thereby realizing the adjustment of the grid point position change mode.
[0183] The target image rendering data corresponding to the target animation frame is used to generate the target animation frame image corresponding to the target animation frame, and the target animation frame image is used to display the target model in the target animation frame, and the target animation frame is any one of multiple animation frames. That is, the target animation frame image generated by the target image rendering data can display the posture corresponding to the target model when the model performs the target object action to the execution progress corresponding to the target animation frame. In other words, the target animation frame image is the image that can be viewed when watching the target model perform the target object action and when the execution progress corresponding to the target animation frame is executed, so that the requesting party can understand the state of the target model corresponding to the target animation frame through the target animation frame image.
[0184] The processing device can generate a target animation frame image according to the target image rendering data, so that the requester can know through the target animation frame image whether the target model has a real and reasonable physical effect on the target animation frame after the clothing solution, so as to understand whether the clothing solution is effective and accurate, and then decide whether to end the clothing solution, or whether it is necessary to adjust the clothing solution parameters to re-execute the clothing solution, etc., which optimizes the feedback information of the clothing solution process to the requester, so that the requester can control the clothing solution process more reasonably, thereby improving the clothing solution effect.
[0185] When displaying the animation frame images, the computer device may display the animation frame images of certain specific animation frames, or may display the animation frame images corresponding to multiple animation frames. There are multiple ways to display the multiple animation frame images, for example, the computer device may directly display the images one by one, or may dynamically display the multiple animation frame images in the form of a video in order to highlight the dynamic execution effect of the target object action.
[0186] In this implementation, the target animation frame image is the animation frame image corresponding to the target animation frame. The computer device can generate an animation video corresponding to the target object action based on the timing relationship between multiple animation frames and the animation frame images corresponding to the multiple animation frames. The animation video is used to display the animation frame images corresponding to the multiple animation frames based on the timing relationship, so that the position change mode of the grid point between the multiple animation frames can be dynamically displayed, and then the change mode of the target model when executing the target object action can be dynamically displayed. Since executing the object action itself is a dynamic process, the animation video can enable the requester to more clearly understand the dynamic changes of the target model in the process of executing the target object action, so that the requester can more intuitively perceive whether the target clothing has a real physical effect when following the changes of the target object, so that the requester can know whether the clothing solution has been effectively completed, so that the requester can perform subsequent processing.
[0187] Through the above-mentioned various automated post-processing methods, the computer equipment can automatically generate and provide the requesting party with a variety of data for measuring the clothing solution effect, so that the requesting party has a clear understanding of the clothing solution effect and further improves the automated experience of data processing.
[0188] As mentioned above, the clothing calculation process in the related art may require the participation of multiple software. In the absence of automated data processing, the requester needs to trigger the software programs of multiple software on the front end to implement the program functions corresponding to the multiple software. In this application, since it can be processed automatically by computer equipment, the program call can be made on the back end without the requester having to operate on the front end.
[0189] Specifically, in a possible implementation manner, determining the grid point change data requires calling a program function of a first program corresponding to the first software. When executing step S303, the computer device may execute step S3033 (not shown in the figure). Step S3033 is a possible implementation manner of step S303, including:
[0190] S3033: Determine the grid point change data according to the skeleton point change data and the target relative position relationship by calling the first program.
[0191] Among them, the first program is the program corresponding to the first software. The first program is used to control the target model to execute the target object action according to the skeleton point change data. In the process of executing the target object action, the first program is used to control the relative position relationship between the grid point and the skeleton point to satisfy the target relative position relationship. Therefore, through the first program, the position change mode of the grid point in the process of executing the target object action can be determined, and then the grid point change data can be obtained.
[0192] When executing step S304, the computer device may execute step S3044 (not shown in the figure). Step S3044 is a possible implementation of step S304, including:
[0193] S3044: By calling the second program, the clothing is solved according to the grid point change data.
[0194] The second program is a program corresponding to the second software, and is used to execute the clothing solution function. Since the computer device can directly call the first program and the second program in the background, there is no need for the requester to operate and switch the first software and the second software at the front end to trigger the corresponding program function, so that the requester can wait for the clothing solution to be completed after initiating the clothing solution request, which greatly simplifies the front-end operation process of the requester and optimizes the data processing experience of clothing solution.
[0195] The above content mainly introduces the background data processing method involved in this application. Next, the optimized experience that the data processing method of this application can bring in front-end operations will be introduced in detail.
[0196] See also Figure 8 , Figure 8 A flowchart of a data processing method provided in an embodiment of the present application, in which the computer device can be any data computer device that supports front-end interaction, for example, a terminal device such as a mobile phone or a computer, or a combination of a terminal device and a server. The method includes:
[0197] S801: Displaying an action selection interface.
[0198] Among them, the action selection interface is used to select the object action that needs to be solved for clothing. The action selection interface includes a trigger control corresponding to the target object action corresponding to the target model. The target model is used to display the target object and the target clothing worn by the target object. The target object action is the action performed by the target object, and the trigger control is used to trigger the clothing solution for the target object action.
[0199] S802: Based on the target trigger operation for the trigger control, target grid point change data obtained by performing clothing solution on the target object action is displayed.
[0200] The target grid point change data is data generated by performing clothing solution on the target object action, and is used to identify the position change mode of the grid points of the target model when performing the target object action after adjusting the change mode of the clothing grid points through clothing solution. The target trigger operation is used to trigger the execution of the following steps (i.e., the above steps S301-S304), that is, a clothing solution request for the target object action can be initiated through the target trigger operation:
[0201] Determine the target relative position relationship corresponding to the target model and the skeleton point change data corresponding to the target object action, the target relative position relationship is the relative position relationship between the grid points and the skeleton points corresponding to the target model when constructing the target model, the skeleton points are used to control the target object to perform the object action, the grid points are the grid vertices of the model grid constituting the target model, the grid points include clothing grid points and object grid points, the clothing grid points are the grid vertices corresponding to the model grid constituting the target clothing, the object grid points are the grid vertices corresponding to the model grid constituting the target object, and the skeleton point change data are used to identify the position change mode of the skeleton points when performing the target object action;
[0202] Determine the grid point change data according to the skeleton point change data and the target relative position relationship, the grid point change data is used to identify the position change mode of the grid point when executing the target object action;
[0203] The clothing solution is performed according to the grid point change data. The clothing solution is used to adjust the position change mode of the clothing grid points when executing the target object action, obtain the target grid point change data, and use the clothing grid points to simulate the physical effect that the target clothing changes with the target object's action changes.
[0204] It should be emphasized that the target trigger operation can not only be used to trigger the execution of the above steps, but also can trigger the execution of any steps in the background data processing method of this application, which will not be elaborated here.
[0205] It can be seen from the above scheme that when performing clothing solution, the requester can only perform a trigger operation on the trigger control to obtain the target grid point change data obtained through clothing solution. The preliminary data generation involved in the clothing solution process and the clothing solution itself can be completed automatically by the computer equipment background. The requester does not need to operate and switch software in multiple software. Therefore, the requester does not need to master how to use the software, nor does the requester need to interact in the clothing solution process, which reduces the time occupied by the requester.
[0206] like Fig. 9As shown, the trigger controls corresponding to the seven object actions, object action 1 to object action 7, can be displayed on the object selection interface. By triggering the trigger control corresponding to object action 1, the data display interface can be triggered. The data display interface is used to display grid point change data 1, which is the grid point change data obtained by performing clothing solution on object action 1.
[0207] As mentioned above, the computer device can automatically generate a variety of data for measuring the effect of clothing solution. Next, the display method of these data will be introduced from the front end. First, in a possible implementation method, based on the target trigger operation, the computer device can display the animation frame images corresponding to multiple animation frames, the multiple animation frames include animation frames constituting the target action animation, the target action animation is the animation of the target object performing the target object action, the grid points have corresponding grid point positions in multiple animation frames, the grid point change data is used to identify the position change mode of the grid points between multiple animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in multiple animation frames, the target animation frame image corresponding to the target animation frame is used to display the target model in the target animation frame, and the target animation frame is any one of the multiple animation frames. Thus, through multiple animation frame images, the requester can clearly know the model postures corresponding to the action execution progress of the target model in multiple animation frames after the clothing solution is performed, and then can clearly understand the solution effect of the clothing solution.
[0208] like Fig.10 As shown, after obtaining the trigger operation of the trigger control corresponding to object action 1, the computer device can display an image display interface, which is used to display animation frame images corresponding to multiple animation frames. For example, the currently selected image can be displayed at the top, and the displayed animation frame image can be switched by performing a sliding operation at the bottom.
[0209] In another possible implementation, when displaying the animation frame images corresponding to the multiple animation frames based on the target trigger operation, the computer device can also display them in the form of an animation video. Based on the target trigger operation, the computer device can display the animation video corresponding to the target object action. The animation video is used to display the animation frame images corresponding to the multiple animation frames based on the timing relationship between the multiple animation frames. Through the animation video, the dynamic changes of the target model in the process of executing the target object action can be more intuitively observed, so that the solution effect of the clothing solution can be more clearly known.
[0210] like Fig.11As shown, based on the trigger operation of the trigger control corresponding to the object action 1, the computer device can display a video display interface, which is used to display the animation video corresponding to the object action 1. The animation video can display animation frame images corresponding to multiple animation frames based on the timing relationship between the multiple animation frames. The video playback progress can be adjusted through the progress bar below, so that the animation frame images of the animation frames corresponding to each time point can be viewed.
[0211] As mentioned above, the computer device can support the requester to set various clothing solution parameters. Next, the front-end setting method of the clothing solution parameters will be introduced in detail.
[0212] In a possible implementation, the computer device may display a parameter setting interface, which may include a variety of setting controls for setting clothing solution parameters. When executing step S802, the computer device may execute step S8021 (not shown in the figure), which is a possible implementation of step S802, including:
[0213] S8021: Based on the target trigger operation on the trigger control and the parameter setting operation on the parameter setting interface, the target grid point change data obtained by performing clothing solution on the target object action is displayed.
[0214] Among them, the parameter setting operation is used to set the clothing solution parameters. When performing clothing solution according to the grid point change data, the computer device can perform clothing solution according to the clothing solution parameters and the grid point change data. The detailed solution process can be found in the above content and will not be repeated here. Through this parameter setting interface, the requester can set a variety of clothing solution parameters according to its own clothing solution requirements so that the clothing solution effect can meet its own clothing solution requirements.
[0215] For example Fig.12As shown, the parameter setting interface may include selection controls corresponding to multiple parameter preset templates, and parameter setting controls corresponding to multiple clothing solution parameters. The parameter preset template is a parameter template pre-set for various clothing solution scenes, including preset values corresponding to multiple clothing solution parameters. For example, the computer device can preset corresponding parameter preset templates for three object motion scenes of low-speed motion, medium-speed motion and high-speed motion, respectively, and the clothing solution parameters included therein are used to perform clothing solution for the object motion of low-speed motion, medium-speed motion and high-speed motion, respectively. For example, the requester can perform a trigger operation on the selection control corresponding to the preset template for low-speed clothing solution parameters, and can set the clothing solution parameters corresponding to the preset template to achieve accurate clothing solution for the object motion of low-speed motion. In addition, the requester can also achieve targeted adjustment of each clothing solution parameter through the parameter setting controls corresponding to each clothing solution parameter, so as to perform targeted clothing solution parameter setting for clothing solution scenes not involved in the parameter preset template.
[0216] It should be emphasized that the trigger operations involved in this application may include multiple trigger operations, for example, trigger operations such as clicking, sliding, and long pressing, which are not limited here.
[0217] In order to facilitate understanding of the technical solution provided by the present application, the data processing method provided by the present application will be introduced in detail below in combination with an actual application scenario.
[0218] See also Fig.13 , Fig.13 A signaling diagram of a data processing method in an actual application scenario provided in an embodiment of the present application. In the actual application scenario, the computer device may be a computer device having both front-end interaction and background data processing functions. The method includes:
[0219] S1301: The computer device displays an action selection interface and a parameter setting interface to the requesting party.
[0220] S1302: The requesting party performs a target triggering operation on a triggering control corresponding to the target object action, and performs a parameter setting operation through a parameter setting interface.
[0221] The requester can click the trigger control corresponding to the target object action that needs to be solved for clothing to initiate a clothing solution request for the target object action in the computer device background. The clothing solution parameters for clothing solution can be set through the parameter setting interface. The parameter setting operation can be performed not only at the beginning of clothing solution, but also during the clothing solution process to adjust the clothing solution parameters in real time.
[0222] S1303: The computer device determines the target relative position relationship corresponding to the target object and the bone point change data corresponding to the target object action.
[0223] In the present application, the program for generating grid point change data and setting clothing solution parameters is the first program corresponding to the first software, and the program for performing clothing solution and subsequent data generation is the second program corresponding to the second software. The interaction between the computer device and multiple programs during background data processing can be as follows: Fig.14 As shown. The computer device can display the above interface through the first program, determine the grid point change data and clothing solution parameters through the first program, and then call the second program to trigger the execution of clothing solution through the grid point change data and clothing solution parameters. The second program can realize the generation of clothing solution, animation frame images and animation videos, and finally output the target grid point change data, animation frame images and animation videos obtained by clothing solution. Among them, the call between programs can be completed in many ways, for example, it can be called through batch commands. In addition, the second program can also feedback the clothing solution progress to the computer device, so that the computer device and the requesting party know whether the clothing solution is completed.
[0224] S1304: The computer device determines the grid point change data according to the target relative position relationship and the skeleton point change data.
[0225] S1305: The computer device performs clothing calculation on the target object action according to the grid point change data and the clothing calculation parameters.
[0226] During the clothing solving process, the requester can freely adjust the clothing solving parameters. When the requester sets new clothing solving parameters, the computer device can re-solve all object actions that require clothing solving based on the new clothing solving parameters.
[0227] At the same time, during the clothing solution process, the computer equipment can also accelerate the clothing solution in a variety of ways. For example, the computer equipment can merge closely spaced grid points into one grid point for position adjustment, that is, reduce the model accuracy of the model during the clothing solution process; after the solution is completed, the model grid points are restored based on the positional relationship between the grid points to restore the high-precision model. Also, after the solution is completed, the computer equipment can unify the normals and point sequence of the model grid, and can self-check the self-interpenetration behavior in the double-sided high-precision model and perform self-optimization and repair to further ensure the model accuracy after the clothing solution.
[0228] S1306: The computer device determines image rendering data corresponding to the plurality of animation frames.
[0229] S1307: The computer device generates animation frame images corresponding to the plurality of animation frames respectively according to the image rendering data corresponding to the plurality of animation frames respectively.
[0230] S1308: The computer device generates an animation video according to the temporal relationship between the multiple animation frames and the animation frame images respectively corresponding to the multiple animation frames.
[0231] S1309: The computer device displays the target grid point change data, animation frame images and animation video to the requesting party.
[0232] It can be seen from the above scheme that the present application can bring the following technical effects:
[0233] 1. In the process of clothing solution, this application only needs the requester to perform a trigger operation and initiate a clothing solution request to automatically complete the entire clothing solution process without the need for the requester to participate too much, thereby improving the convenience of clothing solution.
[0234] 2. Computer equipment can automatically complete the call of multiple program functions, and complete the entire clothing solution process through the cooperation of multiple program functions. There is no need for the requester to understand how to use multiple software, which reduces the difficulty of clothing solution.
[0235] 3. This application can support the requester to freely set a variety of clothing solution parameters, and does not limit the timing of setting the clothing solution parameters. It can be freely set in the entire clothing solution process to meet diverse clothing solution needs.
[0236] 4. After the clothing solution is completed, this application can automatically generate a variety of data for displaying the clothing solution effect, so that the requesting party can clearly know the completion status of the clothing solution, further improving the data processing experience.
[0237] Based on the data processing method of the background side provided in the above embodiment, the present application also provides a data processing device, see Fig.15 , Fig.15 This is a structural block diagram of a data processing device provided in an embodiment of the present application. The device 1500 includes a first acquisition unit 1501, a first determination unit 1502, a second determination unit 1503 and a solution unit 1504:
[0238] The first acquisition unit 1501 is used to acquire a clothing solution request, wherein the clothing solution request is used to request clothing solution for a target object action corresponding to a target model, wherein the target model is used to display a target object and a target clothing worn by the target object, and the target object action is an action performed by the target object;
[0239] The first determining unit 1502 is used to determine the target relative position relationship corresponding to the target model and the skeleton point change data corresponding to the target object action, the target relative position relationship is the relative position relationship between the grid points and the skeleton points corresponding to the target model when constructing the target model, the skeleton points are used to control the target object to perform the object action, the grid points are the grid vertices of the model grid constituting the target model, the grid points include clothing grid points and object grid points, the clothing grid points are the grid vertices corresponding to the model grid constituting the target clothing, the object grid points are the grid vertices corresponding to the model grid constituting the target object, and the skeleton point change data is used to identify the position change mode of the skeleton points when performing the target object action;
[0240] The second determining unit 1503 is used to determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is performed;
[0241] The solving unit 1504 is used to perform the clothing solving according to the grid point change data, and the clothing solving is used to adjust the position change mode of the clothing grid points when executing the target object action, so that the clothing grid points are used to simulate the physical effect that the target clothing changes with the action change of the target object.
[0242] In a possible implementation, the grid point change data includes grid point positions corresponding to a plurality of animation frames, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, and the second determining unit 1503 is specifically configured to:
[0243] Determining the positions of the skeleton points corresponding to the skeleton points in the plurality of animation frames respectively according to the skeleton point change data;
[0244] The grid point positions corresponding to the multiple animation frames are determined according to the target relative position relationship and the skeleton point positions corresponding to the multiple animation frames.
[0245] In a possible implementation, the multiple animation frames include multiple first animation frames and multiple second animation frames, the multiple second animation frames are used to constitute the target action animation, the target second animation frame is the first frame of the multiple second animation frames, the multiple first animation frames are animation frames before the target second animation frame, and the second determining unit 1503 is specifically used to:
[0246] Determining the positions of the skeleton points corresponding to the skeleton points in the plurality of second animation frames respectively according to the skeleton point change data;
[0247] Determine the skeleton point position corresponding to the skeleton point in the target first animation frame as the initial skeleton point position, the target first animation frame is the first frame of the multiple first animation frames, and the initial skeleton point position is the skeleton point position corresponding to the skeleton point when the target object does not perform any action;
[0248] According to the initial skeleton point position and the target skeleton point position corresponding to the skeleton point in the target second animation frame, the skeleton point positions corresponding to the skeleton point in multiple third animation frames are determined, so that the skeleton point position corresponding to the skeleton point is uniformly changed from the initial skeleton point position to the target skeleton point position, and the multiple third animation frames are the animation frames in the multiple first animation frames except the target first animation frame.
[0249] In a possible implementation, the solving unit 1504 is specifically used for:
[0250] Determine a solution template corresponding to the target model, the solution template comprising first identification information and second identification information, the first identification information is used to identify the clothing grid point among the grid points, and the second identification information is used to identify the object grid point among the grid points;
[0251] The clothing solution is performed according to the grid point change data through the solution template.
[0252] In a possible implementation, the target garment includes a first garment and a second garment, the first garment is located on the inner side of the second garment, the first identification information includes first sub-identification information and second sub-identification information, the first sub-identification information is used to identify a first garment grid point corresponding to the first garment in the garment grid points, the second sub-identification information is used to identify a second garment grid point corresponding to the second garment in the garment grid points, the garment solution includes a first garment solution and a second garment solution, and the solution unit 1504 is specifically used to:
[0253] The first clothing solution is performed according to the grid point change data through the first sub-identification information to generate the first grid point change data, wherein the first clothing solution is used to adjust the position change mode of the first clothing grid point when the target object action is performed, so that the first clothing grid point is used to simulate the physical effect that the first clothing changes following the action change of the target object;
[0254] The second clothing solution is performed according to the first grid point change data through the second sub-identification information to generate the second grid point change data. The second clothing solution is used to adjust the position change mode of the second clothing grid points when executing the target object action, so that the second clothing grid points are used to simulate the physical effect that the second clothing changes with the action changes of the target object without penetrating the second clothing.
[0255] In a possible implementation manner, the device further includes a second acquiring unit:
[0256] The second acquisition unit is used to acquire clothing solution parameters, and the clothing solution parameters are used to control the solution method of the clothing solution;
[0257] The solving unit 1504 is specifically used for:
[0258] The clothing solution is performed according to the clothing solution parameters and the grid point change data.
[0259] In a possible implementation, the clothing solution parameters include any one or more combinations of frame range parameters and dynamic parameters;
[0260] The frame number range parameter is used to identify a target animation frame among a plurality of animation frames, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify a position change mode of the grid points between the plurality of animation frames, and the clothing solution is used to adjust the grid point positions of the clothing grid points in the target animation frames;
[0261] The dynamic parameters are used to control the physical effects simulated by the garment solver.
[0262] In a possible implementation, the clothing solving request is used to request clothing solving for multiple object actions, the target object action is any one of the multiple object actions, and the solving unit 1504 is specifically used to:
[0263] Based on the fact that the clothing solution has not been performed on the target object action when the clothing solution parameters are obtained, the clothing solution is performed on the target object action according to the clothing solution parameters and the grid point change data.
[0264] In a possible implementation, the clothing solving request is used to request clothing solving for multiple object actions, the target object action is any one of the multiple object actions, and the solving unit 1504 is specifically used to:
[0265] Based on the fact that, when acquiring the clothing solution parameters, the clothing solution has been performed on the target object action according to the initial clothing solution parameters, and the initial clothing solution parameters are inconsistent with the clothing solution parameters, the clothing solution is re-performed on the target object action according to the clothing solution parameters and the grid point change data.
[0266] In a possible implementation manner, the device further includes a third acquiring unit and a first generating unit:
[0267] The third acquisition unit is used to acquire image rendering data corresponding to a plurality of animation frames after the clothing solution is completed, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify the position change mode of the grid points between the plurality of animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the plurality of animation frames, the target image rendering data corresponding to the target animation frame is used to generate a target animation frame image corresponding to the target animation frame, the target animation frame image is used to display the target model in the target animation frame, and the target animation frame is any one of the plurality of animation frames;
[0268] The first generating unit is used to generate the target animation frame image according to the target image rendering data.
[0269] In a possible implementation, the target animation frame image is an animation frame image corresponding to the target animation frame, and the device further includes a second generating unit:
[0270] The second generating unit is used to generate an animation video corresponding to the target object action according to the timing relationship between the multiple animation frames and the animation frame images respectively corresponding to the multiple animation frames, and the animation video is used to display the animation frame images respectively corresponding to the multiple animation frames based on the timing relationship.
[0271] In a possible implementation manner, the second determining unit 1503 is specifically configured to:
[0272] By calling a first program, the grid point change data is determined according to the skeleton point change data and the target relative position relationship, the first program is used to control the target model to perform the target object action according to the skeleton point change data, and in the process of performing the target object action, the first program is used to control the relative position relationship between the grid point and the skeleton point to satisfy the target relative position relationship;
[0273] The solving unit 1504 is specifically used for:
[0274] The clothing is solved according to the grid point change data by calling the second program.
[0275] Based on the data processing method on the front end provided in the above embodiment, the present application also provides a data processing device, see Fig.16 , Fig.16 This is a structural block diagram of a data processing device provided in an embodiment of the present application. The device 1600 includes a first display unit 1601 and a second display unit 1602:
[0276] The first display unit 1601 is used to display an action selection interface, wherein the action selection interface includes a trigger control corresponding to a target object action corresponding to a target model, wherein the target model is used to display a target object and a target garment worn by the target object, and the target object action is an action performed by the target object;
[0277] The second display unit 1602 is used to display the target grid point change data obtained by performing clothing solution on the target object action based on the target trigger operation on the trigger control, and the target trigger operation is used to trigger the execution of the following steps:
[0278] Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action;
[0279] Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed;
[0280] The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when executing the target object action, to obtain the target grid point change data, so that the clothing grid points are used to simulate the physical effect that the target clothing changes as the action of the target object changes.
[0281] In a possible implementation, the device further includes a third display unit:
[0282] The third display unit is used to display animation frame images corresponding to multiple animation frames based on the target trigger operation, the multiple animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the multiple animation frames, the grid point change data is used to identify the position change mode of the grid points between the multiple animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the multiple animation frames, the target animation frame image corresponding to the target animation frame is used to display the target model in the target animation frame, and the target animation frame is any one of the multiple animation frames.
[0283] In a possible implementation, the third display unit is specifically used to:
[0284] Based on the target trigger operation, an animation video corresponding to the target object action is displayed, and the animation video is used to display animation frame images corresponding to the multiple animation frames respectively based on the timing relationship between the multiple animation frames.
[0285] In a possible implementation, the device further includes a fourth display unit:
[0286] The fourth display unit is used to display a parameter setting interface;
[0287] The second display unit 1602 is specifically used for:
[0288] Based on the target triggering operation on the triggering control and the parameter setting operation on the parameter setting interface, target grid point change data obtained by performing clothing solution on the target object action is displayed, and the parameter setting operation is used to set clothing solution parameters;
[0289] The performing the clothing calculation according to the grid point change data includes:
[0290] The clothing solution is performed according to the clothing solution parameters and the grid point change data.
[0291] The present application also provides a computer device, see Fig.17 As shown, the computer device may be a terminal device, and a mobile phone is taken as an example:
[0292] Fig.17 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Fig.17The mobile phone includes: a radio frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, and a power supply 790. Those skilled in the art can understand that Fig.17 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0293] Combine the following Fig.17 A detailed introduction to the various components of the mobile phone:
[0294] The RF circuit 710 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 780 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit 710 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0295] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0296] The input unit 730 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 731 or near the touch panel 731 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 780, and can receive and execute the command sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0297] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in Fig.17 In the embodiment, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.
[0298] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; As for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0299] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received audio data to the speaker 761 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
[0300] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 770. It provides users with wireless broadband Internet access. Fig.17 A WiFi module 770 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0301] The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the mobile phone and processes data, thereby performing overall detection of the mobile phone. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.
[0302] The mobile phone also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0303] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0304] In this embodiment, the processor 780 included in the terminal device also has the following functions:
[0305] Obtaining a clothing solution request, wherein the clothing solution request is used to request clothing solution for a target object action corresponding to a target model, wherein the target model is used to display a target object and a target clothing worn by the target object, and the target object action is an action performed by the target object;
[0306] Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action;
[0307] Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed;
[0308] The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when executing the target object action, so that the clothing grid points are used to simulate the physical effect that the target clothing changes with the action change of the target object.
[0309] In this embodiment, the processor 780 included in the terminal device also has the following functions:
[0310] Displaying an action selection interface, the action selection interface includes a trigger control corresponding to a target object action corresponding to a target model, the target model is used to display a target object and a target garment worn by the target object, and the target object action is an action performed by the target object;
[0311] Based on the target trigger operation for the trigger control, the target grid point change data obtained by performing clothing solution on the target object action is displayed, and the target trigger operation is used to trigger the execution of the following steps:
[0312] Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action;
[0313] Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed;
[0314] The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when executing the target object action, to obtain the target grid point change data, so that the clothing grid points are used to simulate the physical effect that the target clothing changes as the action of the target object changes.
[0315] The present application also provides a server. Fig.18 As shown, Fig.18 The structural diagram of the server 800 provided in the embodiment of the present application, the server 800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 can be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 822 can be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server 800.
[0316] The server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and / or one or more operating systems 841, such as Windows Server 2000. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM etc.
[0317] The steps performed by the server in the above embodiment can be based on Fig.18 The server structure shown.
[0318] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the data processing methods described in the aforementioned embodiments.
[0319] An embodiment of the present application further provides a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the data processing method described in any one of the above embodiments.
[0320] It is understandable that in the specific implementation of this application, data related to user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0321] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: read-only memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0322] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0323] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: The method comprises: Obtaining a clothing solution request, wherein the clothing solution request is used to request clothing solution for a target object action corresponding to a target model, wherein the target model is used to display a target object and a target clothing worn by the target object, and the target object action is an action performed by the target object; Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action; Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed; The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when the target object performs the action, so that the clothing grid points are used to simulate the physical effect that the target clothing changes following the action change of the target object; After the clothing solution is completed, image rendering data corresponding to a plurality of animation frames are obtained, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify the position change mode of the grid points between the plurality of animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the plurality of animation frames, the target image rendering data corresponding to the target animation frame is used to generate a target animation frame image corresponding to the target animation frame, the target animation frame image is used to display the target model in the target animation frame, and the target animation frame is any one of the plurality of animation frames; The target animation frame image is generated according to the target image rendering data.
2. The method according to claim 1, characterized in that: The grid point change data includes grid point positions corresponding to a plurality of animation frames, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, and determining the grid point change data according to the relative position relationship between the skeleton point change data and the target includes: Determining the positions of the skeleton points corresponding to the skeleton points in the plurality of animation frames respectively according to the skeleton point change data; The grid point positions corresponding to the multiple animation frames are determined according to the target relative position relationship and the skeleton point positions corresponding to the multiple animation frames.
3. The method according to claim 2, characterized in that The multiple animation frames include multiple first animation frames and multiple second animation frames, the multiple second animation frames are used to constitute the target action animation, the target second animation frame is the first frame of the multiple second animation frames, and the multiple first animation frames are animation frames before the target second animation frame, and determining the positions of the skeleton points corresponding to the skeleton points in the multiple animation frames respectively according to the skeleton point change data includes: Determining the positions of the skeleton points corresponding to the skeleton points in the plurality of second animation frames respectively according to the skeleton point change data; Determine the skeleton point position corresponding to the skeleton point in the target first animation frame as the initial skeleton point position, wherein the target first animation frame is the first frame of the plurality of first animation frames, and the initial skeleton point position is the skeleton point position corresponding to the skeleton point when the target object does not perform any action; According to the initial skeleton point position and the target skeleton point position corresponding to the skeleton point in the target second animation frame, the skeleton point positions corresponding to the skeleton point in multiple third animation frames are determined, so that the skeleton point position corresponding to the skeleton point is uniformly changed from the initial skeleton point position to the target skeleton point position, and the multiple third animation frames are the animation frames in the multiple first animation frames except the target first animation frame.
4. The method according to claim 1, characterized in that: The performing the clothing calculation according to the grid point change data includes: Determine a solution template corresponding to the target model, the solution template comprising first identification information and second identification information, the first identification information is used to identify the clothing grid point among the grid points, and the second identification information is used to identify the object grid point among the grid points; The clothing solution is performed according to the grid point change data through the solution template.
5. The method according to claim 4, characterized in that The target garment includes a first garment and a second garment, the first garment is located inside the second garment, the first identification information includes first sub-identification information and second sub-identification information, the first sub-identification information is used to identify a first garment grid point corresponding to the first garment in the garment grid points, and the second sub-identification information is used to identify a second garment grid point corresponding to the second garment in the garment grid points, the garment solution includes a first garment solution and a second garment solution, and the garment solution is performed according to the grid point change data by using the solution template, including: The first clothing solution is performed according to the grid point change data through the first sub-identification information to generate the first grid point change data, wherein the first clothing solution is used to adjust the position change mode of the first clothing grid point when the target object action is performed, so that the first clothing grid point is used to simulate the physical effect that the first clothing changes following the action change of the target object; The second clothing solution is performed according to the first grid point change data through the second sub-identification information to generate the second grid point change data. The second clothing solution is used to adjust the position change mode of the second clothing grid points when executing the target object action, so that the second clothing grid points are used to simulate the physical effect that the second clothing changes with the action changes of the target object without penetrating the second clothing.
6. The method according to claim 1, characterized in that The method further comprises: Acquire clothing solving parameters, where the clothing solving parameters are used to control the solving method of the clothing solving; The performing the clothing calculation according to the grid point change data includes: The clothing solution is performed according to the clothing solution parameters and the grid point change data.
7. The method according to claim 6, characterized in that The clothing solution parameters include any one or more combinations of frame range parameters and dynamic parameters; The frame number range parameter is used to identify a target animation frame among a plurality of animation frames, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify a position change mode of the grid points between the plurality of animation frames, and the clothing solution is used to adjust the grid point positions of the clothing grid points in the target animation frames; The dynamic parameters are used to control the physical effects simulated by the garment solver.
8. The method according to claim 6, characterized in that The clothing solving request is used to request to perform clothing solving on multiple object actions, the target object action is any one of the multiple object actions, and the clothing solving is performed according to the clothing solving parameters and the grid point change data, including: Based on the fact that the clothing solution has not been performed on the target object action when the clothing solution parameters are obtained, the clothing solution is performed on the target object action according to the clothing solution parameters and the grid point change data.
9. The method according to claim 6, characterized in that The clothing solving request is used to request to perform clothing solving on multiple object actions, the target object action is any one of the multiple object actions, and the clothing solving is performed according to the clothing solving parameters and the grid point change data, including: Based on the fact that, when acquiring the clothing solution parameters, the clothing solution has been performed on the target object action according to the initial clothing solution parameters, and the initial clothing solution parameters are inconsistent with the clothing solution parameters, the clothing solution is re-performed on the target object action according to the clothing solution parameters and the grid point change data.
10. The method according to claim 1, characterized in that The target animation frame image is an animation frame image corresponding to the target animation frame, and the method further includes: According to the timing relationship between the multiple animation frames and the animation frame images respectively corresponding to the multiple animation frames, an animation video corresponding to the target object action is generated, and the animation video is used to display the animation frame images respectively corresponding to the multiple animation frames based on the timing relationship.
11. The method according to claim 1, characterized in that: Determining the grid point change data according to the skeleton point change data and the target relative position relationship includes: By calling a first program, the grid point change data is determined according to the skeleton point change data and the target relative position relationship, the first program is used to control the target model to perform the target object action according to the skeleton point change data, and in the process of performing the target object action, the first program is used to control the relative position relationship between the grid point and the skeleton point to satisfy the target relative position relationship; The performing the clothing calculation according to the grid point change data includes: The clothing is solved according to the grid point change data by calling the second program.
12. A data processing method, characterized in that: The method comprises: Displaying an action selection interface, the action selection interface includes a trigger control corresponding to a target object action corresponding to a target model, the target model is used to display a target object and a target garment worn by the target object, and the target object action is an action performed by the target object; Based on the target trigger operation for the trigger control, the target grid point change data obtained by performing clothing solution on the target object action is displayed, and the target trigger operation is used to trigger the execution of the following steps: Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action; Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed; The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when the target object action is executed, and obtain the target grid point change data, so that the clothing grid points are used to simulate the physical effect that the target clothing changes following the action change of the target object; After the clothing solution is completed, image rendering data corresponding to a plurality of animation frames are obtained, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify the position change mode of the grid points between the plurality of animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the plurality of animation frames, the target image rendering data corresponding to the target animation frame is used to generate a target animation frame image corresponding to the target animation frame, the target animation frame image is used to display the target model in the target animation frame, and the target animation frame is any one of the plurality of animation frames; The target animation frame image is generated according to the target image rendering data.
13. The method according to claim 12, characterized in that The method further comprises: Based on the target trigger operation, animation frame images corresponding to multiple animation frames are displayed, the multiple animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the multiple animation frames, the grid point change data is used to identify the position change manner of the grid points between the multiple animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the multiple animation frames, the target animation frame image corresponding to the target animation frame is used to display the target model in the target animation frame, and the target animation frame is any one of the multiple animation frames.
14. The method according to claim 12, characterized in that The method further comprises: Display parameter setting interface; The target trigger operation based on the trigger control, displaying the target grid point change data obtained by performing clothing solution on the target object action, includes: Based on the target trigger operation for the trigger control and the parameter setting operation for the parameter setting interface, the target grid point change data obtained by performing clothing solution on the target object action is displayed, and the parameter setting operation is used to set clothing solution parameters; The performing the clothing calculation according to the grid point change data includes: The clothing solution is performed according to the clothing solution parameters and the grid point change data.
15. A data processing device, characterized in that: The device comprises a first acquisition unit, a first determination unit, a second determination unit and a solution unit: The first acquisition unit is used to acquire a clothing solution request, wherein the clothing solution request is used to request clothing solution for a target object action corresponding to a target model, wherein the target model is used to display a target object and a target clothing worn by the target object, and the target object action is an action performed by the target object; The first determination unit is used to determine the target relative position relationship corresponding to the target model and the skeleton point change data corresponding to the target object action, the target relative position relationship is the relative position relationship between the grid points and the skeleton points corresponding to the target model when constructing the target model, the skeleton points are used to control the target object to perform the object action, the grid points are the grid vertices of the model grid constituting the target model, the grid points include clothing grid points and object grid points, the clothing grid points are the grid vertices corresponding to the model grid constituting the target clothing, the object grid points are the grid vertices corresponding to the model grid constituting the target object, and the skeleton point change data is used to identify the position change mode of the skeleton points when performing the target object action; The second determining unit is used to determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is performed; The solving unit is used to perform the clothing solving according to the grid point change data, and the clothing solving is used to adjust the position change mode of the clothing grid points when the target object performs the action, so that the clothing grid points are used to simulate the physical effect that the target clothing changes following the action change of the target object; The device also includes a third acquisition unit and a first generation unit: The third acquisition unit is used to acquire image rendering data corresponding to a plurality of animation frames after the clothing solution is completed, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify the position change mode of the grid points between the plurality of animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the plurality of animation frames, the target image rendering data corresponding to the target animation frame is used to generate a target animation frame image corresponding to the target animation frame, the target animation frame image is used to display the target model in the target animation frame, and the target animation frame is any one of the plurality of animation frames; The first generating unit is used to generate the target animation frame image according to the target image rendering data.
16. The device according to claim 15, characterized in that The grid point change data includes grid point positions corresponding to a plurality of animation frames, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, and the second determining unit is specifically configured to: Determining the positions of the skeleton points corresponding to the skeleton points in the plurality of animation frames respectively according to the skeleton point change data; The grid point positions corresponding to the multiple animation frames are determined according to the target relative position relationship and the skeleton point positions corresponding to the multiple animation frames.
17. The device according to claim 16, characterized in that The multiple animation frames include multiple first animation frames and multiple second animation frames, the multiple second animation frames are used to form the target action animation, the target second animation frame is the first frame of the multiple second animation frames, the multiple first animation frames are animation frames before the target second animation frame, and the second determining unit is specifically used to: Determining the positions of the skeleton points corresponding to the skeleton points in the plurality of second animation frames respectively according to the skeleton point change data; Determine the skeleton point position corresponding to the skeleton point in the target first animation frame as the initial skeleton point position, wherein the target first animation frame is the first frame of the plurality of first animation frames, and the initial skeleton point position is the skeleton point position corresponding to the skeleton point when the target object does not perform any action; According to the initial skeleton point position and the target skeleton point position corresponding to the skeleton point in the target second animation frame, the skeleton point positions corresponding to the skeleton point in multiple third animation frames are determined, so that the skeleton point position corresponding to the skeleton point is uniformly changed from the initial skeleton point position to the target skeleton point position, and the multiple third animation frames are the animation frames in the multiple first animation frames except the target first animation frame.
18. The device according to claim 15, characterized in that The solving unit is specifically used for: Determine a solution template corresponding to the target model, the solution template comprising first identification information and second identification information, the first identification information is used to identify the clothing grid point among the grid points, and the second identification information is used to identify the object grid point among the grid points; The clothing solution is performed according to the grid point change data through the solution template.
19. The device according to claim 18, characterized in that The target garment includes a first garment and a second garment, the first garment is located inside the second garment, the first identification information includes first sub-identification information and second sub-identification information, the first sub-identification information is used to identify a first garment grid point corresponding to the first garment in the garment grid points, the second sub-identification information is used to identify a second garment grid point corresponding to the second garment in the garment grid points, the garment solution includes a first garment solution and a second garment solution, and the solution unit is specifically used to: The first clothing solution is performed according to the grid point change data through the first sub-identification information to generate the first grid point change data, wherein the first clothing solution is used to adjust the position change mode of the first clothing grid point when the target object action is performed, so that the first clothing grid point is used to simulate the physical effect that the first clothing changes following the action change of the target object; The second clothing solution is performed according to the first grid point change data through the second sub-identification information to generate the second grid point change data. The second clothing solution is used to adjust the position change mode of the second clothing grid points when executing the target object action, so that the second clothing grid points are used to simulate the physical effect that the second clothing changes with the action changes of the target object without penetrating the second clothing.
20. The device according to claim 15, characterized in that The device also includes a second acquisition unit: The second acquisition unit is used to acquire clothing solution parameters, and the clothing solution parameters are used to control the solution method of the clothing solution; The solving unit is specifically used for: The clothing solution is performed according to the clothing solution parameters and the grid point change data.
21. The device according to claim 20, characterized in that The clothing solution parameters include any one or more combinations of frame range parameters and dynamic parameters; The frame number range parameter is used to identify a target animation frame among a plurality of animation frames, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify a position change mode of the grid points between the plurality of animation frames, and the clothing solution is used to adjust the grid point positions of the clothing grid points in the target animation frames; The dynamic parameters are used to control the physical effects simulated by the garment solver.
22. The device according to claim 20, characterized in that The clothing solving request is used to request clothing solving for multiple object actions, the target object action is any one of the multiple object actions, and the solving unit is specifically used to: Based on the fact that the clothing solution has not been performed on the target object action when the clothing solution parameters are obtained, the clothing solution is performed on the target object action according to the clothing solution parameters and the grid point change data.
23. The device according to claim 20, characterized in that The clothing solving request is used to request clothing solving for multiple object actions, the target object action is any one of the multiple object actions, and the solving unit is specifically used to: Based on the fact that, when acquiring the clothing solution parameters, the clothing solution has been performed on the target object action according to the initial clothing solution parameters, and the initial clothing solution parameters are inconsistent with the clothing solution parameters, the clothing solution is re-performed on the target object action according to the clothing solution parameters and the grid point change data.
24. The device according to claim 15, characterized in that The target animation frame image is an animation frame image corresponding to the target animation frame, and the device further includes a second generating unit: The second generating unit is used to generate an animation video corresponding to the target object action according to the timing relationship between the multiple animation frames and the animation frame images respectively corresponding to the multiple animation frames, and the animation video is used to display the animation frame images respectively corresponding to the multiple animation frames based on the timing relationship.
25. The device according to claim 15, characterized in that The second determining unit is specifically configured to: By calling a first program, the grid point change data is determined according to the skeleton point change data and the target relative position relationship, the first program is used to control the target model to perform the target object action according to the skeleton point change data, and in the process of performing the target object action, the first program is used to control the relative position relationship between the grid point and the skeleton point to satisfy the target relative position relationship; The solving unit is specifically used for: The clothing is solved according to the grid point change data by calling the second program.
26. A data processing device, characterized in that: The device comprises a first display unit and a second display unit: The first display unit is used to display an action selection interface, the action selection interface includes a trigger control corresponding to a target object action corresponding to a target model, the target model is used to display a target object and a target garment worn by the target object, and the target object action is an action performed by the target object; The second display unit is used to display the target grid point change data obtained by performing clothing solution on the target object action based on the target trigger operation on the trigger control, and the target trigger operation is used to trigger the execution of the following steps: Determine a target relative position relationship corresponding to the target model and skeleton point change data corresponding to the target object action, wherein the target relative position relationship is a relative position relationship between a grid point and a skeleton point corresponding to the target model when constructing the target model, wherein the skeleton point is used to control the target object to perform an object action, wherein the grid point is a grid vertex of a model grid constituting the target model, wherein the grid point includes a clothing grid point and an object grid point, wherein the clothing grid point is a grid vertex corresponding to a model grid constituting the target clothing, wherein the object grid point is a grid vertex corresponding to a model grid constituting the target object, and wherein the skeleton point change data is used to identify a position change mode of the skeleton point when performing the target object action; Determine grid point change data according to the skeleton point change data and the target relative position relationship, wherein the grid point change data is used to identify the position change mode of the grid point when the target object action is executed; The clothing solution is performed according to the grid point change data, and the clothing solution is used to adjust the position change mode of the clothing grid points when the target object action is executed, and obtain the target grid point change data, so that the clothing grid points are used to simulate the physical effect that the target clothing changes following the action change of the target object; After the clothing solution is completed, image rendering data corresponding to a plurality of animation frames are obtained, the plurality of animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the plurality of animation frames, the grid point change data is used to identify the position change mode of the grid points between the plurality of animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the plurality of animation frames, the target image rendering data corresponding to the target animation frame is used to generate a target animation frame image corresponding to the target animation frame, the target animation frame image is used to display the target model in the target animation frame, and the target animation frame is any one of the plurality of animation frames; The target animation frame image is generated according to the target image rendering data.
27. The device according to claim 26, characterized in that The device also includes a third display unit: The third display unit is used to display animation frame images corresponding to multiple animation frames based on the target trigger operation, the multiple animation frames include animation frames constituting a target action animation, the target action animation is an animation of the target object performing the target object action, the grid points have corresponding grid point positions in the multiple animation frames, the grid point change data is used to identify the position change mode of the grid points between the multiple animation frames, the clothing solution is used to adjust the grid point positions corresponding to the clothing grid points in the multiple animation frames, the target animation frame image corresponding to the target animation frame is used to display the target model in the target animation frame, and the target animation frame is any one of the multiple animation frames.
28. The device according to claim 26, characterized in that The device also includes a fourth display unit: The fourth display unit is used to display a parameter setting interface; The second display unit is specifically used for: Based on the target trigger operation for the trigger control and the parameter setting operation for the parameter setting interface, the target grid point change data obtained by performing clothing solution on the target object action is displayed, and the parameter setting operation is used to set clothing solution parameters; The performing the clothing calculation according to the grid point change data includes: The clothing solution is performed according to the clothing solution parameters and the grid point change data.
29. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is used to execute the data processing method described in any one of claims 1 to 11 according to the instructions in the computer program, or to execute the data processing method described in any one of claims 12 to 14.
30. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the data processing method described in any one of claims 1 to 11, or execute the data processing method described in any one of claims 12 to 14.
31. A computer program product comprising a computer program, which, when executed on a computer device, enables the computer device to execute the data processing method according to any one of claims 1 to 11, or the data processing method according to any one of claims 12 to 14.
