A method, apparatus, device, and storage medium for constructing a virtual object
By performing three-dimensional conversion and segmentation of multiple first preset two-dimensional virtual objects, a first preset three-dimensional material set is formed, and splicing is performed according to the construction request of the target terminal, the problem of abrupt transition at the three-dimensional material splicing is solved, and the natural connection of the three-dimensional virtual objects and user personalized customization is realized.
Patent Information
- Application Number
- CN202111327614.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-10
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2041-11-10
AI Technical Summary
In the prior art, the transition of the three-dimensional material splicing is abrupt, resulting in unnaturally connecting the three-dimensional virtual objects at the splicing points of each object part.
By performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects in advance, a plurality of first preset three-dimensional virtual objects are obtained and segmented to form a first preset three-dimensional material set. Then, according to the construction request of the target terminal, the target three-dimensional material is determined from the first preset three-dimensional material set and splicing is performed to generate the target three-dimensional virtual object.
It realizes smooth transition and natural connection at the splicing of three-dimensional material, improves the overall naturalness of the three-dimensional virtual objects, and supports users to personalize the customization of each object part of the three-dimensional virtual object.
Smart Images

Figure CN114241123B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method, apparatus, device, and storage medium for constructing a virtual object. Background Art
[0002] With the rapid development of science and technology, the application of three-dimensional (3D) image reconstruction has received increasing attention and emphasis in various industries. Currently, 3D image reconstruction has been widely applied in daily life and scientific research. In related technologies, multiple three-dimensional materials of object parts can be pre-generated for subsequent use. Generally, three-dimensional virtual materials corresponding to two-dimensional virtual materials are directly generated to facilitate the quick acquisition of three-dimensional virtual materials and the splicing of three-dimensional virtual materials corresponding to two-dimensional virtual materials when generating a three-dimensional virtual object. However, for such three-dimensional virtual materials directly obtained from two-dimensional virtual materials, when splicing human faces, since the transitions of the three-dimensional virtual materials corresponding to different object parts are abrupt at the splicing points, the resulting three-dimensional virtual object will have unnatural connections at the splicing points of each object part. Summary of the Invention
[0003] The present disclosure provides a method, apparatus, device, and storage medium for constructing a virtual object, so as to at least solve the problem in related technologies that the transitions at the splicing points of three-dimensional materials are abrupt and the connections between different object parts of the three-dimensional virtual object are unnatural. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a method for constructing a virtual object, including:
[0005] Receiving a construction request for a three-dimensional virtual object sent by a target terminal, where the construction request includes material identifiers of a plurality of target two-dimensional materials;
[0006] Determining target three-dimensional materials corresponding to the material identifiers from a first preset three-dimensional material set, where the first preset three-dimensional materials in the first preset three-dimensional material set are obtained by performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects to obtain a plurality of first preset three-dimensional virtual objects and then performing segmentation processing on the plurality of first preset three-dimensional virtual objects;
[0007] Performing splicing processing on the plurality of target three-dimensional materials to obtain a target three-dimensional virtual object;
[0008] Sending the target three-dimensional virtual object to the target terminal.
[0009] In a possible implementation manner, the method further includes:
[0010] Obtaining the plurality of first preset two-dimensional virtual objects;
[0011] Perform three-dimensional conversion processing on the multiple first preset two-dimensional virtual objects to obtain the multiple first preset three-dimensional virtual objects;
[0012] Based on the preset object parts, perform segmentation processing on the multiple first preset three-dimensional virtual objects to obtain the first preset three-dimensional material set.
[0013] In a possible implementation manner, before obtaining the multiple first preset two-dimensional virtual objects, the method further includes:
[0014] Obtain multiple first preset two-dimensional materials, where the multiple first preset two-dimensional materials are two-dimensional materials corresponding to the preset object parts;
[0015] According to the object parts of the multiple first preset two-dimensional materials, divide the multiple first preset two-dimensional materials into multiple first material combinations, and each first material combination includes the first preset two-dimensional materials corresponding to the preset object parts;
[0016] Perform material combination processing on the first preset two-dimensional materials in each first material combination to obtain the multiple first preset two-dimensional virtual objects.
[0017] In a possible implementation manner, the performing material combination processing on the first preset two-dimensional materials in each first material combination to obtain the multiple first preset two-dimensional virtual objects includes:
[0018] Determine the object parts and position information corresponding to the first preset two-dimensional materials in each first material combination;
[0019] Based on the object parts and position information of the first preset two-dimensional materials in each first material combination, perform hierarchical stacking processing and position adjustment on the first preset two-dimensional materials in each first material combination to obtain the first preset two-dimensional virtual objects corresponding to each first material combination.
[0020] In a possible implementation manner, the method further includes:
[0021] Receive an update request for a preset three-dimensional material, where the update request includes a second preset two-dimensional material;
[0022] Based on the second preset two-dimensional material, construct a second preset two-dimensional virtual object;
[0023] Perform three-dimensional conversion processing on the second preset two-dimensional virtual object to obtain a second preset three-dimensional virtual object;
[0024] Based on the preset object parts, perform segmentation processing on the second preset three-dimensional virtual object to obtain a second preset three-dimensional material set;
[0025] Update the first preset three-dimensional material set based on the second preset three-dimensional material set to obtain an updated preset three-dimensional material set.
[0026] In a possible implementation, constructing the second preset two-dimensional virtual object based on the second preset two-dimensional material includes:
[0027] When the object part corresponding to the second preset two-dimensional material is all the object parts of the preset object part, divide the second preset two-dimensional material to obtain a plurality of second material combinations;
[0028] Perform a combination process on the second preset two-dimensional materials in each second material combination to obtain the second preset two-dimensional virtual object.
[0029] In a possible implementation, constructing the second preset two-dimensional virtual object based on the second preset two-dimensional material includes:
[0030] When the object part corresponding to the second preset two-dimensional material is a part of the preset object part, determine the first object part of the second preset two-dimensional material;
[0031] Based on the first object part of the second preset two-dimensional material, determine a second object part, where the second object part is the object part of the preset object part other than the first object part;
[0032] Obtain the first preset two-dimensional material corresponding to the second object part from the plurality of first preset two-dimensional materials;
[0033] Determine a plurality of third material combinations according to the second preset two-dimensional material corresponding to the first object part and the first preset two-dimensional material corresponding to the second object part;
[0034] Perform a combination process on the second preset two-dimensional material and the first preset two-dimensional material corresponding to the second object part in each third material combination to obtain the second preset two-dimensional virtual object.
[0035] According to the second aspect of the embodiments of the present disclosure, there is provided a virtual object construction device, including:
[0036] A receiving module, configured to receive a construction request of a three-dimensional virtual object sent by a target terminal, where the construction request includes material identifiers of a plurality of target two-dimensional materials;
[0037] A three-dimensional material determination module, configured to determine a target three-dimensional material corresponding to the material identifier from a first preset three-dimensional material set, where the first preset three-dimensional materials in the first preset three-dimensional material set are obtained by performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects to obtain a plurality of first preset three-dimensional virtual objects, and then performing segmentation processing on the plurality of first preset three-dimensional virtual objects;
[0038] A splicing module, configured to perform splicing processing on the plurality of target three-dimensional materials to obtain a target three-dimensional virtual object;
[0039] A sending module, configured to send the target three-dimensional virtual object to the target terminal.
[0040] In a possible implementation manner, the device further includes:
[0041] A two-dimensional virtual object acquisition module, configured to acquire the plurality of first preset two-dimensional virtual objects;
[0042] A first three-dimensional conversion module, configured to perform three-dimensional conversion processing on the plurality of first preset two-dimensional virtual objects to obtain the plurality of first preset three-dimensional virtual objects;
[0043] A first segmentation processing module, configured to perform segmentation processing on the plurality of first preset three-dimensional virtual objects based on a preset object part to obtain the first preset three-dimensional material set.
[0044] In a possible implementation manner, the device further includes:
[0045] A preset two-dimensional material acquisition module, configured to acquire a plurality of first preset two-dimensional materials, where the plurality of first preset two-dimensional materials are two-dimensional materials corresponding to the preset object part;
[0046] A combination determination module, configured to divide the plurality of first preset two-dimensional materials into a plurality of first material combinations according to the object parts of the plurality of first preset two-dimensional materials, and each first material combination includes the first preset two-dimensional materials corresponding to the preset object part;
[0047] A first combination processing module, configured to perform material combination processing on the first preset two-dimensional materials in each first material combination to obtain the plurality of first preset two-dimensional virtual objects.
[0048] In a possible implementation manner, the first combination processing module includes:
[0049] An information determination unit, configured to determine the object parts and position information corresponding to the first preset two-dimensional materials in each first material combination;
[0050] The two-dimensional material processing unit is configured to perform hierarchical stacking processing and position adjustment on the first preset two-dimensional materials in each of the first material combinations based on the object parts and position information of the first preset two-dimensional materials in the first material combinations, so as to obtain the first preset two-dimensional virtual objects corresponding to the first material combinations.
[0051] In a possible implementation manner, the device further includes:
[0052] An update request receiving module, configured to receive an update request for a preset three-dimensional material, where the update request includes a second preset two-dimensional material;
[0053] A two-dimensional construction module, configured to construct a second preset two-dimensional virtual object based on the second preset two-dimensional material;
[0054] A second three-dimensional conversion module, configured to perform three-dimensional conversion processing on the second preset two-dimensional virtual object to obtain a second preset three-dimensional virtual object;
[0055] A second segmentation processing module, configured to perform segmentation processing on the second preset three-dimensional virtual object based on the preset object part to obtain a second preset three-dimensional material set.
[0056] In a possible implementation manner, the second two-dimensional construction module includes:
[0057] A material division unit, configured to divide the second preset two-dimensional material to obtain a plurality of second material combinations when the object part corresponding to the second preset two-dimensional material is all the object parts of the preset object part;
[0058] A first combination processing unit, configured to perform combination processing on the second preset two-dimensional materials in each of the second material combinations to obtain the second preset two-dimensional virtual object.
[0059] In a possible implementation manner, the second two-dimensional construction module includes:
[0060] A first object part determination unit, configured to determine the first object part of the second preset two-dimensional material when the object part corresponding to the second preset two-dimensional material is a part of the object parts of the preset object part;
[0061] A second object part determination unit, configured to determine a second object part based on the first object part of the second preset two-dimensional material, where the second object part is the object part of the preset object part other than the first object part;
[0062] A material acquisition unit, configured to acquire the first preset two-dimensional material corresponding to the second object part from the plurality of first preset two-dimensional materials;
[0063] A combination determination unit configured to determine a plurality of third material combinations according to a second preset two-dimensional material corresponding to the first object part and a first preset two-dimensional material corresponding to the second object part;
[0064] A second combination processing unit configured to perform combination processing on the second preset two-dimensional material in each third material combination and the first preset two-dimensional material corresponding to the second object part to obtain a second preset two-dimensional virtual object.
[0065] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the instructions to implement the method according to any one of the first aspects as described above.
[0066] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enabling the electronic device to execute any one of the methods according to the first aspect of the embodiments of the present disclosure.
[0067] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including computer instructions, when the computer instructions are executed by a processor, enabling a computer to execute any one of the methods according to the first aspect of the embodiments of the present disclosure. The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects:
[0068] By performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects in advance to obtain a plurality of first preset three-dimensional virtual objects and performing segmentation processing on the plurality of first preset three-dimensional virtual objects, a first preset three-dimensional material set including a plurality of first preset three-dimensional materials can be obtained. This kind of three-dimensional virtual object obtained by converting a complete two-dimensional virtual object can ensure smoother splicing processing of the three-dimensional materials and more natural connection at the splicing when used for material segmentation processing to obtain three-dimensional materials; and, by the method of sending a construction request by the target terminal to obtain a target three-dimensional virtual object, personalized customization of each object part of the three-dimensional virtual object by the user can be realized, and a target three-dimensional virtual object with smooth splicing of each object part can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure, and do not constitute an improper limitation to the present disclosure.
[0070] Figure 1 is a schematic diagram of an implementation environment shown according to an exemplary embodiment.
[0071] Figure 2 It is a flowchart of a method for constructing a virtual object shown according to an exemplary embodiment.
[0072] Figure 3 It is a schematic diagram of a two-dimensional virtual object shown according to an exemplary embodiment.
[0073] Figure 4 It is a flowchart of a method for constructing a virtual object shown according to another exemplary embodiment.
[0074] Figure 5 It is a flowchart of a method for pre-constructing a first preset two-dimensional virtual object shown according to an exemplary embodiment.
[0075] Figure 6 It is a schematic diagram of a first preset two-dimensional material shown according to an exemplary embodiment.
[0076] Figure 7 It is a flowchart of a method for constructing a preset two-dimensional virtual object corresponding to each first material combination shown according to an exemplary embodiment.
[0077] Figure 8 It is a flowchart of a method for updating a first preset three-dimensional material set shown according to an exemplary embodiment.
[0078] Figure 9 It is a flowchart of a method for pre-constructing a second preset two-dimensional virtual object shown according to an exemplary embodiment.
[0079] Figure 10 It is a flowchart of a method for pre-constructing a second preset two-dimensional virtual object shown according to another exemplary embodiment.
[0080] Figure 11 It is a block diagram of a virtual object construction device shown according to an exemplary embodiment.
[0081] Figure 12 It is a block diagram of an electronic device for a virtual object construction method shown according to an exemplary embodiment. Detailed implementation
[0082] In order to enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0083] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present disclosure are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order different from those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0084] Please refer to Figure 1 , which shows a schematic diagram of the implementation environment provided by the embodiments of the present disclosure. The implementation environment may include: at least one target terminal 01 and at least one server 02. The at least one target terminal 01 and the at least one server 02 can communicate data through a network.
[0085] In an alternative embodiment, the target terminal 01 may be a client that provides a construction request for a three-dimensional virtual object to the server 02. And when the server 02 constructs a three-dimensional virtual object according to the construction request to obtain a target three-dimensional virtual object, the target terminal 01 may receive the target three-dimensional virtual object sent by the server 02 and display the target three-dimensional virtual object on the interface. Among them, the above-mentioned target terminal 01 may include, but is not limited to, types of electronic devices such as smart phones, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, and smart wearable devices. The operating systems running on the target terminal 01 may include, but are not limited to, Android system, IOS system, linux, windows, Unix, etc.
[0086] In an alternative embodiment, the server 02 may be a server that constructs a three-dimensional virtual object in response to a construction request for a three-dimensional virtual object sent by the target terminal 01 to obtain a target three-dimensional virtual object. Optionally, the server 02 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0087] In addition, it should be noted that Figure 1 What is shown is merely an application environment of the virtual object construction method provided by the present disclosure.
[0088] It should be noted that the following figure shows a possible step sequence, but in fact, it is not necessary to strictly follow this sequence. Some steps can be executed in parallel without depending on each other. The user information (including but not limited to user device information, user personal information, user behavior information, etc.) and data (including but not limited to data for display, training data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0089] Figure 2 is a flowchart of a virtual object construction method shown according to an exemplary embodiment. This virtual object construction method can be applied to server 02, such as Figure 2 shown, the virtual object construction method includes the following steps:
[0090] In step S21, a construction request for a three-dimensional virtual object sent by the target terminal is received. The construction request includes material identifiers of a plurality of target two-dimensional materials.
[0091] In the embodiments of this specification, the three-dimensional virtual object can be any object. For example, it can include furniture, pets (dogs and cats), humans, etc. As an example, below, a part of the human body will be described, such as the head.
[0092] In the embodiments of this specification, the plurality of target two-dimensional materials can be at least two of a plurality of first preset two-dimensional materials; the plurality of first preset two-dimensional materials can be two-dimensional materials corresponding to the facial features of the head. The material identifier of the target two-dimensional material can be used to uniquely identify the target two-dimensional material to distinguish it from other first preset two-dimensional materials.
[0093] In practical applications, the target terminal can display a plurality of first preset two-dimensional materials. The user can select a plurality of target two-dimensional materials from the plurality of first preset two-dimensional materials. Based on the user's selection, the target terminal can be triggered to generate a construction request for a three-dimensional virtual object and send the construction request to the server. The server performs construction processing on the three-dimensional virtual object based on this construction request. Specifically, the construction request can include material identifiers of a plurality of target two-dimensional materials.
[0094] In step S22, a target three-dimensional material corresponding to the material identifier is determined from the first preset three-dimensional material set. The first preset three-dimensional materials in the first preset three-dimensional material set are obtained by performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects to obtain a plurality of first preset three-dimensional virtual objects and then performing segmentation processing on the plurality of first preset three-dimensional virtual objects.
[0095] In the embodiments of this specification, the first preset three-dimensional material set refers to a set composed of preset three-dimensional materials. There may be a corresponding relationship between the material identifiers of the preset two-dimensional materials and the material identifiers of the preset three-dimensional materials. Therefore, based on this corresponding relationship, the material identifier of the target three-dimensional material corresponding to the material identifier of the target two-dimensional material can be determined, and then the target three-dimensional material corresponding to the material identifier of the target three-dimensional material can be determined from the first preset three-dimensional material set. In some examples, the corresponding relationship between the material identifiers of the preset two-dimensional materials and the material identifiers of the preset three-dimensional materials may be as shown in the following table:
[0096] Table 1
[0097]
[0098] The example of the corresponding relationship between the material identifiers of the preset two-dimensional materials and the material identifiers of the preset three-dimensional materials shown in Table 1 above is only an example provided in the embodiments of this specification. The embodiments of this application do not limit the representation method of the material identifiers.
[0099] In the embodiments of this specification, the preset three-dimensional materials in the first preset three-dimensional material set are three-dimensional materials of preset object parts. For example, when the three-dimensional virtual object to be constructed is the head, the preset object parts can be the facial features of the head. Correspondingly, the first preset three-dimensional material set can include the three-dimensional materials corresponding to the facial features of the head. The preset object parts can include the eyebrow part, the eye part, the nose part, the mouth part, and the ear part. The first preset two-dimensional virtual object can be a two-dimensional head image.
[0100] In the embodiments of this specification, the segmentation process for multiple preset three-dimensional virtual objects can be to, after performing three-dimensional conversion on multiple preset two-dimensional virtual objects to obtain multiple preset three-dimensional virtual objects, split out the corresponding preset three-dimensional materials according to the annotations of the vertices of the preset object parts.
[0101] In step S23, the multiple target three-dimensional materials are spliced to obtain a target three-dimensional virtual object.
[0102] In the embodiments of this specification, the target three-dimensional virtual object refers to a three-dimensional virtual object constructed according to the construction request of the three-dimensional virtual object sent by the target terminal. The preset object parts can include multiple object parts. According to the multiple vertices of each object part, the target three-dimensional materials are spliced to obtain the target three-dimensional virtual object. Among them, the multiple vertices of each object part can refer to multiple points on the edge of each object part. For example, when the target three-dimensional virtual object is the head, the target three-dimensional materials can be spliced according to the annotations of the vertices of the five parts including the eyebrows, eyes, nose, mouth, and ears; when the target three-dimensional virtual object is the human body, the target three-dimensional materials can be spliced according to the annotations of the vertices of the three parts including the head, limbs, and torso.
[0103] Specifically, the annotation of the vertices of different preset object parts during splicing can be correlated. For example, the annotation of the vertices of the eyebrow and eye parts is correlated. Based on this correlation, the target 3D materials of the eyebrow and eye parts can be spliced.
[0104] Optionally, in order to avoid obvious protrusions or corners during the splicing process, when annotating the preset 3D material, the annotated points can be extended outward by a target distance after splitting the preset 3D material, so as to ensure that the splicing process of the multiple target 3D materials is smoother.
[0105] In step S24, the target 3D virtual object is sent to the target terminal.
[0106] In the embodiments of this specification, the target 3D virtual object can be sent to the target terminal through the network, so that the target terminal can display the target 3D virtual object, or the target terminal can perform business processing on the received target 3D virtual object.
[0107] By performing 3D conversion processing on multiple first preset 2D virtual objects in advance, multiple first preset 3D virtual objects are obtained, and by performing segmentation processing on the multiple first preset 3D virtual objects, a first preset 3D material set including multiple first preset 3D materials can be obtained. For the 3D virtual object obtained by converting a complete 2D virtual object, in the case of using it for material segmentation processing to obtain 3D materials, it can ensure that the splicing process of the 3D materials is smoother and the connection at the splicing is more natural; moreover, by the method of sending a construction request by the target terminal to obtain the target 3D virtual object, users can achieve personalized customization of each object part of the 3D virtual object and obtain a target 3D virtual object with smooth splicing of each object part.
[0108] In an exemplary embodiment, as Figure 3 shown, the method may further include:
[0109] In step S31, multiple first preset 2D virtual objects are obtained.
[0110] In the embodiments of this specification, the multiple first preset 2D virtual objects refer to the 2D virtual objects corresponding to the preset object parts. Since the first preset 2D virtual object in the embodiments of this specification is a whole and the transition at the connection of different object parts is smooth, it can make the transition at the connection of different preset object parts of the preset 3D virtual object obtained by subsequent 3D conversion processing based on the preset 2D virtual object also smooth.
[0111] In the embodiments of this specification, multiple first preset two-dimensional virtual objects can be obtained by drawing. For example, the first preset two-dimensional virtual object can be a two-dimensional head picture, which can be drawn by a drawing engineer in a drawing application. Obtaining multiple preset two-dimensional virtual objects by drawing can reduce the defects of the preset two-dimensional virtual objects.
[0112] In step S32, three-dimensional conversion processing is performed on multiple first preset two-dimensional virtual objects to obtain multiple first preset three-dimensional virtual objects.
[0113] In the embodiments of this specification, when performing three-dimensional conversion processing on multiple first preset two-dimensional virtual objects, a three-dimensional general model can be preset. Texture mapping processing is performed on the three-dimensional general model according to multiple first preset two-dimensional virtual objects respectively to obtain multiple first preset three-dimensional virtual objects. Taking the texture mapping processing of the three-dimensional general model according to a first preset two-dimensional virtual object as an example, the preset object parts of the first preset two-dimensional virtual object can be corresponded to the preset object parts of the three-dimensional general model, and the texture map of the first preset two-dimensional virtual object is covered on the three-dimensional general model to simulate the concavity and convexity and shape and other characteristics of each preset object part of the first preset three-dimensional virtual object, so as to generate the corresponding preset three-dimensional virtual object of the first preset two-dimensional virtual object.
[0114] In step S33, based on the preset object parts, segmentation processing is performed on multiple first preset three-dimensional virtual objects to obtain a first preset three-dimensional material set.
[0115] In the embodiments of this specification, the topology and vertices of the three-dimensional general model can be set according to the preset object parts to obtain the corresponding annotations for the preset object parts, so that when performing segmentation processing on multiple first preset three-dimensional virtual objects, the corresponding multiple first preset three-dimensional materials can be directly split according to the annotations. Specifically, the topology of the three-dimensional general model represents the point-line-plane layout, structure, and connection situation of the three-dimensional general model in the form of a polygon mesh. After performing segmentation processing on multiple first preset three-dimensional virtual objects, the full amount of first preset three-dimensional materials corresponding to the multiple first preset three-dimensional virtual objects can be obtained, and the full amount of first preset three-dimensional materials is used as the first preset three-dimensional material set.
[0116] Optionally, the process of segmenting multiple preset three-dimensional virtual objects to obtain a preset three-dimensional material set may include: determining three-dimensional blend deformation materials corresponding to different preset object parts in the three-dimensional virtual object based on the preset object parts, and using the three-dimensional blend deformation materials as three-dimensional materials. In the embodiments of this specification, when segmenting each preset three-dimensional virtual object, each preset object part can be independently stored in a general model in the form of BS (Blend Shape, three-dimensional blend deformation). This enables the fusion of three-dimensional blend deformation files when combining preset three-dimensional materials of different preset object parts.
[0117] By determining three-dimensional blend deformation materials corresponding to different preset object parts in the three-dimensional virtual object based on the preset object parts, and using the three-dimensional blend deformation materials as three-dimensional materials, the convenience of subsequent combination of three-dimensional materials can be improved.
[0118] By obtaining multiple complete first preset two-dimensional virtual objects, performing three-dimensional conversion processing on the multiple first preset two-dimensional virtual objects to obtain multiple first preset three-dimensional virtual objects, and based on the preset object parts, performing segmentation processing on the multiple first preset three-dimensional virtual objects to obtain a first preset three-dimensional material set. Since the first preset two-dimensional virtual objects themselves are complete, the object parts of the obtained first preset three-dimensional virtual objects are smoothly and naturally connected. Splitting the different object parts of the first preset three-dimensional virtual object can obtain preset three-dimensional materials for users to make personalized selections.
[0119] In some exemplary embodiments, as Figure 4 shown, before obtaining multiple preset two-dimensional virtual objects, the method may further include:
[0120] In step S41, obtaining multiple first preset two-dimensional materials, where the multiple first preset two-dimensional materials are two-dimensional materials corresponding to the preset object parts.
[0121] In the embodiments of the present specification, multiple first preset two-dimensional materials may be layer files of a first preset two-dimensional virtual object drawn by a drawing engineer. During the drawing process, at least one object part may be drawn on one layer first, and then other object parts may be drawn on other layers. Subsequently, all the layers are superimposed to obtain a complete first preset two-dimensional virtual object. Based on this, the materials corresponding to different object parts are superimposed, and the obtained two-dimensional virtual objects can be smoothly connected without being obtrusive at the joints of different preset object parts. It should be noted that when all the layers are superimposed to obtain a complete first preset two-dimensional virtual object, the positions of the object parts in each layer are precisely adjusted, which can ensure that the first preset two-dimensional materials corresponding to the preset object parts on different layers are in the appropriate positions of the first preset two-dimensional virtual object, thereby ensuring the integrity of the first preset virtual object and the coordination of each object part.
[0122] In step S42, according to the object parts of multiple first preset two-dimensional materials, the multiple first preset two-dimensional materials are divided into multiple first material combinations, and each first material combination includes the first preset two-dimensional materials corresponding to the preset object parts.
[0123] In the embodiments of the present specification, each first material combination is a combination of the first preset two-dimensional materials corresponding to the preset object parts. For example Figure 5 as shown Figure 5 (a) are multiple face shape materials, Figure 5 (b) are multiple mouth materials, Figure 5 (c) are multiple eyebrow materials, Figure 5 (d) are multiple eye materials, that is, the multiple preset two-dimensional materials are face shape 1, face shape 2... face shape 6, mouth 1, mouth 2... mouth 6, eyebrow 1, eyebrow 2... eyebrow 6, eye 1, eye 2... eye 6. According to the preset object parts, multiple first material combinations are determined. The multiple first material combinations may be as shown in the following table:
[0124] Table 2
[0125]
[0126]
[0127] The above Table 2 only shows a possible example of multiple first material combinations provided by the embodiments of the present specification. The embodiments of the present application do not limit whether the first material combinations are unique or the expression methods of the content in the first material combination set.
[0128] In step S43, material combination processing is performed on the first preset two-dimensional materials in each first material combination to obtain multiple first preset two-dimensional virtual objects.
[0129] In the embodiments of this specification, the first preset two-dimensional materials in each first material combination can be stored in the form of layers. All the layers in each first material combination can be superimposed to obtain the first preset two-dimensional virtual object corresponding to each first material combination. Taking the head facial features as an example of the preset object part, each first material combination can include five layers corresponding to the head facial features, so that the five layers can be superimposed to obtain the first preset two-dimensional virtual object, such as Figure 6 shown.
[0130] By obtaining a plurality of first preset two-dimensional materials and dividing the plurality of first preset two-dimensional materials into a plurality of first material combinations according to the object parts of the plurality of first preset two-dimensional materials, it is possible to ensure that each first preset two-dimensional material is considered when constructing the first preset two-dimensional virtual object, and it is possible to avoid the repeated use of the first preset two-dimensional materials by random combination; and perform material combination processing on the first preset two-dimensional materials in each first material combination to obtain a plurality of first preset two-dimensional virtual objects, which improves the processing efficiency of the conversion process from the first preset two-dimensional materials to the first preset two-dimensional virtual objects and reduces the conversion processing amount.
[0131] In some exemplary embodiments, as Figure 7 shown, performing combination processing on the first preset two-dimensional materials in each first material combination to obtain a plurality of first preset two-dimensional virtual objects may include:
[0132] In step S71, determine the object part and position information corresponding to the first preset two-dimensional materials in each first material combination.
[0133] In the embodiments of this specification, the first preset two-dimensional materials can carry object part information and position information. For example, when the preset two-dimensional material is a layer file, the object part information and position information can be stored in the hierarchical file of the first preset two-dimensional material in advance by means of annotation, and the object part and position information corresponding to the first preset two-dimensional material can be determined by obtaining the annotation information.
[0134] In step S72, based on the object part and position information of the first preset two-dimensional materials in each first material combination, perform hierarchical superposition processing and position adjustment on the first preset two-dimensional materials in each first material combination to obtain the two-dimensional virtual object corresponding to each first material combination.
[0135] In the embodiments of this specification, the first preset two-dimensional materials in each first material combination can be subjected to hierarchical superposition processing according to the preset object part to ensure the integrity of the preset object part of the two-dimensional virtual object, and the position of the preset two-dimensional materials in each first material combination can be adjusted according to the position information, so that the overall two-dimensional virtual object composed of different preset object parts is natural and coordinated.
[0136] By determining the object parts and position information corresponding to the first preset two-dimensional materials in each first material combination, and based on the object parts and position information of the first preset two-dimensional materials in each first material combination, performing hierarchical superposition processing and position adjustment on the first preset two-dimensional materials in each material combination, a first preset two-dimensional virtual object corresponding to each material combination can be obtained, which can ensure the integrity and overall natural coordination of the first preset two-dimensional virtual object.
[0137] In some exemplary embodiments, the preset three-dimensional material set can be updated. Based on this, as Figure 8 shown, the method may further include:
[0138] In step S81, receive an update request for the preset three-dimensional material, where the update request includes a second preset two-dimensional material.
[0139] In the embodiments of this specification, there is a corresponding first preset two-dimensional material for each first preset three-dimensional material in the first preset three-dimensional material set, and the second preset two-dimensional material is a material other than the first preset two-dimensional material. The second preset two-dimensional material can be obtained from another terminal or automatically generated. It can be two-dimensional materials corresponding to all preset object parts that form an overall two-dimensional virtual object, or two-dimensional materials corresponding to some object parts in the preset object parts. The present disclosure does not limit this.
[0140] In step S82, based on the second preset two-dimensional material, construct a second preset two-dimensional virtual object.
[0141] In the embodiments of this specification, the two-dimensional materials that make up the second preset two-dimensional virtual object include at least one second preset two-dimensional material. Specifically, the second preset two-dimensional materials can be spliced to obtain the second preset two-dimensional virtual object.
[0142] In step S83, perform three-dimensional conversion processing on the second preset two-dimensional virtual object to obtain a second preset three-dimensional virtual object.
[0143] In the embodiments of this specification, the texture map of the second preset two-dimensional virtual object can be covered on a preset three-dimensional general model to simulate the concave-convex feeling and shape and other characteristics of each preset object part of the second preset three-dimensional virtual object, so as to obtain the second preset three-dimensional virtual object.
[0144] In step S84, based on the preset object parts, perform segmentation processing on the second preset three-dimensional virtual object to obtain a second preset three-dimensional material set.
[0145] In the embodiments of this specification, based on a preset object part, the topology and vertex semantics of the three-dimensional general model can be set to fixed semantics to obtain an annotation corresponding to the preset object part. In this way, when performing segmentation processing on the second preset three-dimensional virtual object, the second preset three-dimensional materials can be directly split according to the annotation, and thus the second preset three-dimensional material set can be obtained.
[0146] In step S85, the first preset three-dimensional material set is updated based on the second preset three-dimensional material set to obtain an updated preset three-dimensional material set.
[0147] In the embodiments of this specification, after obtaining the second preset three-dimensional material set, the first preset three-dimensional material set and the second preset three-dimensional material set can be merged, and the merged material set is the updated preset three-dimensional material set. It should be noted that after obtaining the updated preset three-dimensional material set, the target terminal will display the updated preset two-dimensional material set for the user to select. There is a one-to-one correspondence between the preset two-dimensional materials in the updated preset two-dimensional material set and the preset three-dimensional materials in the updated preset three-dimensional material set. The server can determine the target three-dimensional material corresponding to the target two-dimensional material selected by the user based on this correspondence relationship to construct the target three-dimensional virtual object.
[0148] By receiving an update request for the preset three-dimensional materials, the update request includes the second preset two-dimensional materials, constructing the second preset two-dimensional virtual object based on the second preset two-dimensional materials, performing three-dimensional conversion processing on the second preset two-dimensional virtual object to obtain the second preset three-dimensional virtual object, performing segmentation processing on the second preset three-dimensional virtual object based on the preset object part to obtain the second preset three-dimensional material set, and updating the first preset three-dimensional material set based on the second preset three-dimensional material set to obtain the updated preset three-dimensional material set, it is possible to update the preset three-dimensional material set based on the second preset two-dimensional materials, simplify the update processing flow of the preset three-dimensional material set, and improve the update efficiency.
[0149] In some exemplary embodiments, such as Figure 9 shown, constructing the second preset two-dimensional virtual object based on the second preset two-dimensional materials may include:
[0150] In step S91, when the object part corresponding to the second preset two-dimensional material is all the object parts of the preset object part, the second preset two-dimensional material is divided to obtain a plurality of second material combinations.
[0151] In the embodiments of this specification, the second preset two-dimensional materials can be combined and divided according to the preset object part. Specifically, a plurality of second preset two-dimensional materials corresponding to the preset object part that have not appeared in other combinations can be used as one combination. Based on this, the second preset two-dimensional materials in each of the obtained second material combinations do not repeat.
[0152] In step S92, perform a combination process on the second preset two-dimensional materials in each second material combination to obtain a second preset two-dimensional virtual object.
[0153] By dividing the second preset two-dimensional material to obtain a plurality of second material combinations when the object part corresponding to the second preset two-dimensional material is all the object parts of the preset object part, and performing a combination process on the second preset two-dimensional materials in each second material combination to obtain a second preset two-dimensional virtual object, the number of second material combinations can be minimized, the utilization rate of the second preset two-dimensional materials can be improved, and the combination efficiency can be improved.
[0154] In some exemplary embodiments, as Figure 10 shown, constructing a second preset two-dimensional virtual object based on the second preset two-dimensional material may include:
[0155] In step S101, when the object part corresponding to the second preset two-dimensional material is part of the preset object part, determine the first object part of the second preset two-dimensional material.
[0156] In the embodiments of this specification, when the second preset two-dimensional material is a layer file, the preset object part of the new two-dimensional material can be determined according to the layer where the second preset two-dimensional material is located. When some second preset two-dimensional materials carry annotation information, the first object part of the second preset two-dimensional material can be determined according to the annotation information.
[0157] In step S102, based on the first object part of the second preset two-dimensional material, determine a second object part, where the second object part is the object part of the preset object part other than the first object part.
[0158] In the embodiments of this specification, the second object part is an object part different from the first object part, and the second object part and the first object part can form the preset object part. Taking the head as an example, the preset object part is eyebrows, eyes, nose, mouth, ears. If the first object part includes eyebrows and eyes, then the second object part can be nose, mouth, ears.
[0159] In step S103, obtain the first preset two-dimensional material corresponding to the second object part from a plurality of first preset two-dimensional materials.
[0160] In the embodiments of this specification, obtaining the first preset two-dimensional material corresponding to the second object part from multiple first preset two-dimensional materials may be obtaining a fixed number of first preset two-dimensional materials or first preset two-dimensional materials with fixed material identifiers. Specifically, for each object part in the second object part, one corresponding first preset two-dimensional material can be obtained from multiple first preset two-dimensional materials. For example, among the second preset two-dimensional materials corresponding to the first object part, there are two eyebrow materials and two eye materials, and one nose material, one mouth material, and one ear material can be obtained from multiple first preset two-dimensional materials, so that the nose material, mouth material, and ear material can be combined with the second preset two-dimensional materials corresponding to the first object part subsequently.
[0161] In step S104, multiple third material combinations are determined according to the second preset two-dimensional materials corresponding to the first object part and the first preset two-dimensional materials corresponding to the second object part.
[0162] In the embodiments of this specification, the second preset two-dimensional materials corresponding to the first object part and the first preset two-dimensional materials corresponding to the second object part are combined according to the preset object parts to obtain multiple third material combinations.
[0163] In step S105, the second preset two-dimensional materials and the first preset two-dimensional materials corresponding to the second object part in each third material combination are combined to obtain a second preset two-dimensional virtual object.
[0164] By determining the first object part of the second preset two-dimensional material when the object part corresponding to the second preset two-dimensional material is a partial object part in the preset object parts, determining the second object part based on the first object part of the second preset two-dimensional material, obtaining the first preset two-dimensional material corresponding to the second object part from multiple first preset two-dimensional materials, and determining multiple third material combinations according to the second preset two-dimensional materials corresponding to the first object part and the first preset two-dimensional materials corresponding to the second object part, it is possible to quickly and efficiently determine the third material combinations when the object part corresponding to the second preset two-dimensional material is a partial object part in the preset object parts, so as to prepare for updating the first preset three-dimensional material set subsequently.
[0165] Figure 11 is a block diagram of a virtual object construction device proposed according to an exemplary embodiment. Refer to Figure 11 , the device may include:
[0166] A receiving module 111, configured to receive a construction request of a three-dimensional virtual object sent by a target terminal, where the construction request includes material identifiers of multiple target two-dimensional materials;
[0167] The three-dimensional material determination module 112 is configured to determine a target three-dimensional material corresponding to the material identifier from a first preset three-dimensional material set. The first preset three-dimensional materials in the first preset three-dimensional material set are obtained by performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects to obtain a plurality of first preset three-dimensional virtual objects and then performing segmentation processing on the plurality of first preset three-dimensional virtual objects;
[0168] The splicing module 113 is configured to perform splicing processing on the plurality of target three-dimensional materials to obtain a target three-dimensional virtual object;
[0169] The sending module 114 is configured to send the target three-dimensional virtual object to the target terminal.
[0170] By pre-performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects to obtain a plurality of first preset three-dimensional virtual objects and then performing segmentation processing on the plurality of first preset three-dimensional virtual objects, a first preset three-dimensional material set including a plurality of first preset three-dimensional materials can be obtained. For the case where the three-dimensional virtual objects obtained by converting complete two-dimensional virtual objects are used for material segmentation processing to obtain three-dimensional materials, it can ensure that the splicing processing of the three-dimensional materials is smoother and the connection at the splicing is more natural; moreover, by the method of triggering a construction request by the target terminal to obtain a target three-dimensional virtual object, personalized customization of each object part of the three-dimensional virtual object by the user can be realized, and a target three-dimensional virtual object with smooth splicing of each object part can be obtained.
[0171] In an exemplary embodiment, the device may further include:
[0172] The receiving module is configured to receive a construction request of a three-dimensional virtual object sent by the target terminal, and the construction request includes material identifiers of a plurality of target two-dimensional materials;
[0173] The three-dimensional material determination module is configured to determine a target three-dimensional material corresponding to the material identifier from a first preset three-dimensional material set. The first preset three-dimensional materials in the first preset three-dimensional material set are obtained by performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects to obtain a plurality of first preset three-dimensional virtual objects and then performing segmentation processing on the plurality of first preset three-dimensional virtual objects;
[0174] The splicing module is configured to perform splicing processing on the plurality of target three-dimensional materials to obtain a target three-dimensional virtual object;
[0175] The sending module is configured to send the target three-dimensional virtual object to the target terminal.
[0176] In an exemplary embodiment, the device may further include:
[0177] A two-dimensional virtual object acquisition module, configured to acquire the plurality of first preset two-dimensional virtual objects;
[0178] A first three-dimensional conversion module, configured to perform three-dimensional conversion processing on the plurality of first preset two-dimensional virtual objects to obtain the plurality of first preset three-dimensional virtual objects;
[0179] A first segmentation processing module, configured to perform segmentation processing on the plurality of first preset three-dimensional virtual objects based on a preset object part to obtain the first preset three-dimensional material set.
[0180] In an exemplary embodiment, the apparatus further includes:
[0181] A preset two-dimensional material acquisition module, configured to acquire a plurality of first preset two-dimensional materials, where the plurality of first preset two-dimensional materials are two-dimensional materials corresponding to the preset object part;
[0182] A combination determination module, configured to divide the plurality of first preset two-dimensional materials into a plurality of first material combinations according to the object parts of the plurality of first preset two-dimensional materials, and each first material combination includes the first preset two-dimensional materials corresponding to the preset object part;
[0183] A first combination processing module, configured to perform material combination processing on the first preset two-dimensional materials in each first material combination to obtain the plurality of first preset two-dimensional virtual objects.
[0184] In an exemplary embodiment, the first combination processing module includes:
[0185] An information determination unit, configured to determine the object part and position information corresponding to the first preset two-dimensional material in each first material combination;
[0186] A two-dimensional material processing unit, configured to perform hierarchical superposition processing and position adjustment on the first preset two-dimensional materials in each first material combination based on the object part and position information of the first preset two-dimensional materials in each first material combination to obtain the first preset two-dimensional virtual objects corresponding to each first material combination.
[0187] In an exemplary embodiment, the apparatus further includes:
[0188] An update request receiving module, configured to receive an update request for a preset three-dimensional material, where the update request includes a second preset two-dimensional material;
[0189] A two-dimensional construction module, configured to construct a second preset two-dimensional virtual object based on the second preset two-dimensional material;
[0190] A second three-dimensional conversion module, configured to perform three-dimensional conversion processing on the second preset two-dimensional virtual object to obtain a second preset three-dimensional virtual object;
[0191] A second segmentation processing module, configured to perform segmentation processing on the second preset three-dimensional virtual object based on the preset object part to obtain a second preset three-dimensional material set.
[0192] In an exemplary embodiment, the second two-dimensional construction module includes:
[0193] A material division unit, configured to divide the second preset two-dimensional material into a plurality of second material combinations when the object part corresponding to the second preset two-dimensional material is the entire object part of the preset object part;
[0194] A first combination processing unit, configured to perform combination processing on the second preset two-dimensional materials in each second material combination to obtain the second preset two-dimensional virtual object.
[0195] Figure 12 It is a block diagram of an electronic device for a virtual object construction method shown according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as Figure 12 shown. The electronic device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for a virtual object construction method.
[0196] Those skilled in the art can understand that Figure 12 the structure shown in
[0197] is only a block diagram of a part of the structure related to the solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0198] In an exemplary embodiment, a computer-readable storage medium is further provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the virtual object construction method in the embodiments of the present disclosure. The computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0199] In an exemplary embodiment, a computer program product containing instructions is further provided. When it runs on a computer, the computer is enabled to execute the virtual object construction method in the embodiments of the present disclosure.
[0200] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it may include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application may include non-volatile and / or volatile memories. Non-volatile memories may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0201] After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only to be regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0202] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A method for constructing a virtual object, characterized in that Including: Receiving a construction request for a three-dimensional virtual object sent by a target terminal, where the construction request includes material identifiers of a plurality of target two-dimensional materials; Determining a plurality of target three-dimensional materials corresponding to the material identifiers from a first preset three-dimensional material set, where the first preset three-dimensional materials in the first preset three-dimensional material set are obtained by performing three-dimensional conversion processing on a plurality of first preset two-dimensional virtual objects to obtain a plurality of first preset three-dimensional virtual objects, and then performing segmentation processing on the plurality of first preset three-dimensional virtual objects; the plurality of first preset two-dimensional virtual objects are obtained by the following method: Obtaining a plurality of first preset two-dimensional materials, where the plurality of first preset two-dimensional materials are two-dimensional materials corresponding to preset object parts; the preset object parts include a plurality of object parts; Dividing the plurality of first preset two-dimensional materials into a plurality of first material combinations according to the object parts of the plurality of first preset two-dimensional materials; Determining the object parts and position information corresponding to the first preset two-dimensional materials in each first material combination; Based on the object parts and the position information, performing hierarchical superposition processing and position adjustment on the first preset two-dimensional materials in each first material combination to obtain the first preset two-dimensional virtual object corresponding to each first material combination; Performing splicing processing on the plurality of target three-dimensional materials based on a plurality of vertices of each object part, where the plurality of vertices are points obtained by extending a target distance outward from a plurality of points on the edges of each object part, to obtain a target three-dimensional virtual object; Sending the target three-dimensional virtual object to the target terminal.
2. The method according to claim 1, characterized in that, The method further includes: Obtaining the plurality of first preset two-dimensional virtual objects; Performing three-dimensional conversion processing on the plurality of first preset two-dimensional virtual objects to obtain the plurality of first preset three-dimensional virtual objects; Performing segmentation processing on the plurality of first preset three-dimensional virtual objects based on the preset object parts to obtain the first preset three-dimensional material set.
3. The method according to claim 1, characterized in that, The method further includes: Receiving an update request for a preset three-dimensional material, where the update request includes a second preset two-dimensional material; Constructing a second preset two-dimensional virtual object based on the second preset two-dimensional material; Performing three-dimensional conversion processing on the second preset two-dimensional virtual object to obtain a second preset three-dimensional virtual object; Performing segmentation processing on the second preset three-dimensional virtual object based on the preset object parts to obtain a second preset three-dimensional material set; Performing update processing on the first preset three-dimensional material set based on the second preset three-dimensional material set to obtain an updated preset three-dimensional material set.
4. The method according to claim 3, wherein The constructing the second preset two-dimensional virtual object based on the second preset two-dimensional material includes: When the object parts corresponding to the second preset two-dimensional material are all the object parts of the preset object parts, dividing the second preset two-dimensional material to obtain a plurality of second material combinations; Performing combination processing on the second preset two-dimensional materials in each second material combination to obtain the second preset two-dimensional virtual object.
5. The method according to claim 3, wherein The constructing the second preset two-dimensional virtual object based on the second preset two-dimensional material includes: When the object part corresponding to the second preset two-dimensional material is a part of the preset object parts, determine the first object part of the second preset two-dimensional material; Based on the first object part of the second preset two-dimensional material, determine the second object part, where the second object part is the object part in the preset object parts other than the first object part; Obtain the first preset two-dimensional material corresponding to the second object part from the multiple first preset two-dimensional materials; Determine a plurality of third material combinations according to the second preset two-dimensional material corresponding to the first object part and the first preset two-dimensional material corresponding to the second object part; Perform a combination process on the second preset two-dimensional material and the first preset two-dimensional material corresponding to the second object part in each third material combination to obtain a second preset two-dimensional virtual object.
6. A virtual object construction device, characterized in that Including: A receiving module, configured to receive a construction request for a three-dimensional virtual object sent by a target terminal, where the construction request includes material identifiers of a plurality of target two-dimensional materials; A three-dimensional material determination module, configured to determine a plurality of target three-dimensional materials corresponding to the material identifiers from a first preset three-dimensional material set, where the first preset three-dimensional materials in the first preset three-dimensional material set are obtained by performing a three-dimensional conversion process on a plurality of first preset two-dimensional virtual objects to obtain a plurality of first preset three-dimensional virtual objects and then performing a segmentation process on the plurality of first preset three-dimensional virtual objects; the plurality of first preset two-dimensional virtual objects are obtained by using the following device: A preset two-dimensional material acquisition module, configured to acquire a plurality of first preset two-dimensional materials, where the plurality of first preset two-dimensional materials are two-dimensional materials corresponding to preset object parts; the preset object parts include a plurality of object parts; A combination determination module, configured to divide the plurality of first preset two-dimensional materials into a plurality of first material combinations according to the object parts of the plurality of first preset two-dimensional materials; A first combination processing module, where the first combination processing module includes an information determination unit and a two-dimensional material processing unit; The information determination unit is configured to determine the object part and position information corresponding to the first preset two-dimensional material in each first material combination; The two-dimensional material processing unit is configured to perform a hierarchical stacking process and position adjustment on the first preset two-dimensional materials in each first material combination based on the object part and the position information to obtain the first preset two-dimensional virtual object corresponding to each first material combination; A splicing module, configured to perform a splicing process on the plurality of target three-dimensional materials based on a plurality of vertices of each object part, where the plurality of vertices are a plurality of points obtained by extending a plurality of points on the edge of each object part outward by a target distance, to obtain a target three-dimensional virtual object; A sending module, configured to send the target three-dimensional virtual object to the target terminal.
7. The device according to claim 6, characterized in that, The device further includes: A two-dimensional virtual object acquisition module, configured to acquire the plurality of first preset two-dimensional virtual objects; A first three-dimensional conversion module, configured to perform a three-dimensional conversion process on the plurality of first preset two-dimensional virtual objects to obtain the plurality of first preset three-dimensional virtual objects; The first segmentation processing module is configured to perform segmentation processing on the multiple first preset three-dimensional virtual objects based on the preset object part to obtain the first preset three-dimensional material set.
8. The device according to claim 6, characterized in that, The device further includes: An update request receiving module configured to receive an update request for a preset three-dimensional material, where the update request includes a second preset two-dimensional material; A two-dimensional construction module configured to construct a second preset two-dimensional virtual object based on the second preset two-dimensional material; A second three-dimensional conversion module configured to perform three-dimensional conversion processing on the second preset two-dimensional virtual object to obtain a second preset three-dimensional virtual object; A second segmentation processing module configured to perform segmentation processing on the second preset three-dimensional virtual object based on the preset object part to obtain a second preset three-dimensional material set.
9. The device according to claim 8, characterized in that, The two-dimensional construction module includes: A material division unit configured to divide the second preset two-dimensional material to obtain a plurality of second material combinations when the object part corresponding to the second preset two-dimensional material is all object parts of the preset object part; A first combination processing unit configured to perform combination processing on the second preset two-dimensional materials in each second material combination to obtain the second preset two-dimensional virtual object.
10. The device according to claim 8, characterized in that, The two-dimensional construction module includes: A first object part determination unit configured to determine a first object part of the second preset two-dimensional material when the object part corresponding to the second preset two-dimensional material is a partial object part of the preset object part; A second object part determination unit configured to determine a second object part based on the first object part of the second preset two-dimensional material, where the second object part is the object part of the preset object part other than the first object part; A material acquisition unit configured to acquire the first preset two-dimensional material corresponding to the second object part from the multiple first preset two-dimensional materials; A combination determination unit configured to determine a plurality of third material combinations according to the second preset two-dimensional material corresponding to the first object part and the first preset two-dimensional material corresponding to the second object part; A second combination processing unit configured to perform combination processing on the second preset two-dimensional material and the first preset two-dimensional material corresponding to the second object part in each third material combination to obtain the second preset two-dimensional virtual object.
11. An electronic device, characterized in that, It includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the virtual object construction method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the virtual object construction method according to any one of claims 1 to 5.
13. A computer program product, comprising a computer program / instructions, characterized in that, The computer program / instructions, when executed by the processor, implement the virtual object construction method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Split three-dimensional object data extraction device, element image generation device, split three-dimensional object data extraction program and element image generation program
JP2011191645A
Image processing system, image processing method, and image processing program
JP2021018557A