Method and device for mapping three-dimensional model, computer equipment and storage medium

By unpacking and adjusting the UVs of the 3D model, the problem of texture accuracy caused by disassembling and rearranging UV data was solved, and high-precision texture restoration of the merged model was achieved.

CN114494551BActive Publication Date: 2026-02-10NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210033682.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-12
Publication Date
2026-02-10
Estimated Expiration
2042-01-12

AI Technical Summary

Technical Problem

After the UV data set before the 3D model was merged was broken up and rearranged, some textures could not correctly reproduce the model details, resulting in low texture accuracy.

Method used

The UV mapping of the multiple sub-models that make up the merged model is unfolded. The size of the UV map is adjusted according to the size of each sub-model, and the UV maps are arranged in the UV range to form a target UV map with equal length and width. The model texture of the merged model is generated based on the target UV map.

Benefits of technology

By arranging the UV maps of the sub-models within the overall UV range, the details of the merged model can be restored to a greater extent, and the accuracy of the textures on the merged model can be preserved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114494551B_ABST
    Figure CN114494551B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a three-dimensional model mapping processing method and device, computer equipment and a storage medium. The method comprises: performing UV unfolding on a plurality of sub-models constituting a merged model to obtain UV maps in a UV interval; adjusting the size of each UV map according to the size of each sub-model constituting the merged model to form an adjusted UV map; arranging the position of each adjusted UV map in the UV interval to obtain a target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal; and generating a model map corresponding to the merged model based on the target UV map. The corresponding UV map of each sub-model does not change after UV unfolding, which can restore the details of the merged model to a large extent and retain the accuracy of the map on the merged model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of 3D model technology, specifically to a method, apparatus, computer device, and storage medium for texturing 3D models. Background Technology

[0002] After merging the sub-models that need to be merged, the UV data set before the sub-models were merged will be broken down and rearranged. However, some textures generated based on the UV data set before the sub-models were merged will depend on the UV data set before the sub-models were merged. Therefore, when the UV data set before the sub-models were merged is broken down and rearranged, some textures will not be able to correctly reproduce the details of the model, resulting in low texture accuracy. Summary of the Invention

[0003] This application provides a method, apparatus, computer device, and storage medium for texture processing of a 3D model, which enables the textures generated from the sub-models before merging to largely reproduce the details of the merged model and retain the accuracy of the textures on the merged model.

[0004] This application provides a method for texturing a 3D model, including:

[0005] UV expansion is performed on multiple sub-models that make up the merged model to obtain the UV map in the UV interval;

[0006] Based on the size of each sub-model when the merged model is composed, the size of each UV map is adjusted to form an adjusted UV map;

[0007] The positions of each of the adjusted UV maps are arranged in the UV range to obtain a target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal.

[0008] The model texture map corresponding to the merged model is generated based on the target UV map.

[0009] Accordingly, embodiments of this application also provide a texture processing apparatus for a three-dimensional model, including:

[0010] The acquisition unit is used to perform UV expansion on multiple sub-models that make up the merged model to obtain the UV map in the UV interval;

[0011] An adjustment unit is used to adjust the size of each UV map according to the size of each sub-model when the merged model is composed, so as to form an adjusted UV map;

[0012] The arrangement unit is used to arrange the positions of each of the adjusted UV maps in the UV interval, and obtain a target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal.

[0013] The generation unit is used to generate a model texture map corresponding to the merged model based on the target UV map.

[0014] Optionally, the adjustment unit is further configured to:

[0015] The adjusted UV map within the UV range is displayed on the graphical user page;

[0016] In response to the size setting operation of the adjusted UV map in the UV range, update the size of the adjusted UV map corresponding to the size setting operation in the UV range;

[0017] The positions of each of the adjusted UV maps are arranged in the UV range to obtain the target UV map formed by the arranged adjusted UV maps.

[0018] Optionally, the arrangement unit is further used for:

[0019] Obtain a reference rectangle for each of the adjusted UV maps, wherein the reference rectangle is the smallest rectangle containing the adjusted UV map;

[0020] Arrange the aforementioned reference rectangles to form a reference diagram with the same length and width;

[0021] Based on the relative positional relationship of each of the reference rectangles in the arrangement referenced in the figure, the positions of each of the adjusted UV maps are arranged in the UV interval to obtain the target UV map formed by the arranged adjusted UV maps.

[0022] Optionally, the arrangement unit is further used for:

[0023] The reference rectangles are arranged side by side in the horizontal direction in order of height from high to low. During the arrangement process, one side of two adjacent reference rectangles overlaps. The height that the rectangle formed after the reference rectangles are arranged can occupy is the preset maximum height.

[0024] If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height, then the reference rectangles whose sum of heights does not exceed the preset maximum height are arranged side by side in the arranged reference rectangles to form an arrangement candidate diagram;

[0025] If the length and width of the candidate arrangement images are the same, then the candidate arrangement images will be used as the reference for the arrangement.

[0026] If the length and width of the candidate images are different, increase the preset maximum height, and return to execute the step of if the sum of the heights of at least two target reference rectangles in the reference rectangle does not exceed the preset maximum height, then arrange the reference rectangles whose sum of heights does not exceed the preset maximum height in the arranged reference rectangles side by side to form the candidate images.

[0027] Optionally, the acquisition unit is further configured to:

[0028] Obtain each of the aforementioned sub-models;

[0029] Each of the sub-models is UV unwrapped to obtain the initial unwrapped image corresponding to each of the sub-models;

[0030] The UV map is obtained by setting the size of the initial unfolded map within the UV range.

[0031] Optionally, the acquisition unit is further configured to:

[0032] The initial unfolded map is set to have the same length and width, and the length and width of the initial unfolded map are the same as the length and width of the UV region, to obtain the UV map; / or

[0033] The aspect ratio of the sub-model texture corresponding to the initial unfolded map is set according to the aspect ratio of the UV interval, and the aspect ratio of the UV interval is set to obtain the UV map, wherein the aspect ratio of the UV map does not exceed the aspect ratio of the UV interval.

[0034] Optionally, the generation unit is further configured to:

[0035] Obtain the initial texture type corresponding to each of the sub-models;

[0036] The initial texture type of each of the sub-models is displayed in the graphical user interface;

[0037] In response to a modification operation on the initial texture type in the graphical user interface, the modified texture type is determined;

[0038] Based on the modified texture type and the correspondence between each sub-model and the initial texture type, the modified texture type corresponding to each sub-model is determined;

[0039] The model texture corresponding to the merged model is generated based on the target UV map and the modified texture type corresponding to each of the sub-models.

[0040] Optionally, the arrangement unit is further used for:

[0041] The target UV map within the UV range is displayed in the graphical user interface;

[0042] Identify the background region within the UV range, excluding the target UV map;

[0043] In response to a color modification operation on the background area in the graphical user interface, the color of the background area corresponding to the color modification operation is updated.

[0044] Optionally, the adjustment unit is further configured to:

[0045] When the sub-models are combined to form the merged model, the bounding box size of each sub-model in the merged model is determined;

[0046] By comparing the bounding box sizes of each sub-model, the size ratio of the bounding box of each sub-model can be obtained;

[0047] The size of each UV map is adjusted according to the size ratio to form the adjusted UV map.

[0048] Similarly, embodiments of this application also provide a computer device, including:

[0049] Memory, used to store computer programs;

[0050] A processor for performing any one of the steps of the texturing method for the 3D model.

[0051] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements any one of the steps of the texture processing method for the three-dimensional model.

[0052] This application provides a method, apparatus, computer device, and storage medium for texture processing of 3D models. When multiple sub-models are merged into a merged model, it is not necessary to disassemble the UV maps obtained before merging the sub-models. The UV maps obtained from the unfolding of each sub-model can be arranged as a whole in the UV range, and then the model texture of the merged model can be obtained based on the arranged target UV map. Since the UV maps corresponding to each sub-model do not change after UV unfolding, the textures generated by the sub-models before merging can restore the details of the merged model to a large extent and retain the accuracy of the textures on the merged model. Attached Figure Description

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

[0054] Figure 1This is a schematic diagram of the texture processing device for a 3D model provided in the embodiments of this application;

[0055] Figure 2 This is a flowchart illustrating the texturing method for a 3D model provided in an embodiment of this application.

[0056] Figure 3 This is a schematic diagram of the merging model provided in the embodiments of this application;

[0057] Figure 4 This is a schematic diagram of the adjusted UV map provided in an embodiment of this application;

[0058] Figure 5 This is a schematic diagram of the adjusted UV map size setting provided in the embodiments of this application;

[0059] Figure 6 This is a schematic diagram of the formation of the candidate arrangement diagram provided in the embodiments of this application;

[0060] Figure 7 This is another schematic diagram illustrating the formation of the candidate arrangement diagram provided in the embodiments of this application;

[0061] Figure 8 This is another schematic diagram of the texture processing method for the three-dimensional model provided in the embodiments of this application;

[0062] Figure 9 This is a schematic diagram of the structure of the texture processing device for a three-dimensional model provided in the embodiments of this application;

[0063] Figure 10 This is a schematic diagram of the structure of a computer device based on a three-dimensional model provided in this application embodiment. Detailed Implementation

[0064] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0065] This application provides a method, apparatus, computer device, and storage medium for texture processing of 3D models. Specifically, the texture processing method for 3D models in this application can be executed by a computer device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. The terminal can also include a client, which can be a game application client, a front-end browser client carrying a game program, or an instant messaging client. The server can be an independent physical server, 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 communication, middleware services, domain name services, security services, content delivery network services, and big data and artificial intelligence platforms.

[0066] For example, when the texturing method for the 3D model runs on a terminal, the terminal device stores a 3D model creation application and can display the graphical user interface (GUI) within that application. The terminal device interacts with the user through the GUI, for example, by downloading, installing, and running the 3D model creation application. The terminal device can provide the GUI to the user in various ways, such as rendering it on the terminal device's screen or presenting it via holographic projection. For instance, the terminal device may include a touchscreen display and a processor. The touchscreen display is used to present the GUI and receive user commands applied to it. The GUI includes a screen showing the model creation process. The processor is used to run the 3D model creation application, generate the GUI, respond to commands, and control the display of the GUI on the touchscreen display.

[0067] Please see Figure 1 , Figure 1 This is a schematic diagram of a texture processing device for a 3D model provided in an embodiment of this application. The system may include at least one terminal. The terminal is used to perform UV unwrapping on multiple sub-models that make up the merged model to obtain UV maps in the UV interval; adjust the size of each UV map according to the size of each sub-model when forming the merged model to form an adjusted UV map; arrange the positions of each adjusted UV map in the UV interval to obtain a target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal; and generate a model texture map corresponding to the merged model based on the target UV map.

[0068] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0069] This embodiment will describe the texturing process of a 3D model from the perspective of the texturing method. The texturing method of the 3D model can be integrated into a terminal device, which may include devices such as smartphones, laptops, tablets and personal computers.

[0070] This application provides a method for texturing a 3D model, which can be executed by a terminal processor, such as... Figure 2 As shown, the specific process of the texture processing method for this 3D model mainly includes steps 201 to 204, which are explained in detail below:

[0071] Step 201: Perform UV expansion on the multiple sub-models that make up the merged model to obtain the UV map in the UV interval.

[0072] In this embodiment of the application, the merged model is formed by connecting multiple sub-models at their respective connection points, for example, such as Figure 3 In the schematic diagram of the merged model shown, the merged model is a game character model. The sub-models that make up the game character model can be the glove model 302, the forearm sub-model 303, and the decorative sub-model 304 on the forearm, etc.

[0073] In this embodiment, when rendering textures on the surface of a 3D model, UV coordinates need to be set for the vertices on the 3D model. This allows each point on the UV map to be precisely mapped to a vertex on the model's surface based on the UV coordinates. UV stands for U and V texture mapping coordinates, also known as texture mapping coordinates. In a virtual model, UV can precisely map each point on an image to the surface of the virtual model, enabling the virtual model to exhibit corresponding visual effects. UV unwrapping refers to converting the virtual model's surface into a planar representation. Furthermore, the process of creating a UV map from a sub-model involves determining the boundaries of each plane of the sub-model, cutting the sub-model according to these boundaries to obtain multiple cut planes, and then forming the UV map based on these cut planes.

[0074] In this embodiment of the application, the UV interval is the interval occupied by the UV map generated by each sub-model. The UV interval can be determined according to the value range of U and the value range of V. The value range of U is 0 to 1, and the value range of V is 0 to 1. The value range of the UV coordinates formed according to the value range of U and V is the UV interval.

[0075] In this embodiment of the application, after the terminal obtains the UV map in the UV range obtained after UV unwrapping of each sub-model, the UV map of each sub-model can be displayed in the graphical user interface of the terminal, so that the user can easily see the UV map of each sub-model from the graphical user interface.

[0076] In this embodiment, after the boundaries of the sub-model are cut, the initial unfolded map obtained after cutting needs to be processed to obtain a UV unfolded map that better matches the surface of the sub-model. Specifically, step 201 above, "performing UV unfolding on multiple sub-models constituting the merged model to obtain a UV map in the UV range," can specifically be:

[0077] Obtain each sub-model;

[0078] Each sub-model is UV unwrapped to obtain the initial unwrapped image corresponding to each sub-model;

[0079] The UV map is obtained by setting the initial unfolded map size in the UV range.

[0080] In this embodiment of the application, the above step "setting the initial unfolded pattern size in the UV range to obtain a UV map" can be:

[0081] Set the initial unfolded map to have the same length and width, and ensure that the length and width of the initial unfolded map are the same as the length and width of the UV region to obtain the UV map; / or

[0082] The dimensions of the initial unfolded map are set according to the aspect ratio of the sub-model texture corresponding to the initial unfolded map, as well as the dimensions of the UV interval, to obtain the UV map. The dimensions of the UV map do not exceed the dimensions of the UV interval.

[0083] Step 202: Adjust the size of each UV map according to the size of each sub-model when forming the merged model to form the adjusted UV map.

[0084] In this embodiment of the application, in order to match the size of the sub-model's texture map with the sub-model's size in the merged model, the size of the UV map corresponding to each sub-model can be set according to the size ratio of each sub-model in the merged model. Specifically, step 202 above, "adjusting the size of each UV map according to the size of each sub-model when forming the merged model to form an adjusted UV map," can be:

[0085] When the sub-models are combined into a merged model, determine the bounding box size of each sub-model in the merged model;

[0086] Compare the bounding box sizes of each sub-model to obtain the size ratio of the bounding box of each sub-model;

[0087] Adjust the size of each UV map according to the size ratio to form the adjusted UV map.

[0088] In the embodiments of this application, the method for adjusting the size of each UV map according to the size ratio is not limited. The bounding box size ratio of the same sub-model to other sub-models can be set to be the same as the adjusted UV map size ratio, or the bounding box size ratio of the same sub-model to other sub-models can be set to have a multiple relationship with the adjusted UV map size ratio. For example, if the size ratio of the bounding box of sub-model A to the bounding box of sub-model B is m:n, then the size ratio of the adjusted UV map corresponding to sub-model A to the adjusted UV map corresponding to sub-model B is also m:n. Alternatively, if the size ratio of the bounding box of sub-model A to the bounding box of sub-model B is m:n, then the size ratio of the adjusted UV map corresponding to sub-model A to the adjusted UV map corresponding to sub-model B can be 2m:2n.

[0089] In this embodiment of the application, after the adjusted UV map is generated, in order to allow the user to understand the size of the adjusted UV map, the adjusted UV map of each sub-model can be displayed in the graphical user interface of the terminal. For example, such as Figure 4 In the schematic diagram of the adjusted UV map shown, the graphical user interface may include a subpage 401 that displays the UV range, and the subpage 401 displays... Figure 3 The adjusted UV maps corresponding to the glove model 302, forearm sub-model 303, and decorative sub-model 304 on the forearm are shown in the image. Each sub-model corresponds to one adjusted UV map. For example, the decorative sub-model 304 on the forearm corresponds to the adjusted UV map 402 in subpage 401.

[0090] In this embodiment, after the adjusted UV maps of each sub-model are displayed in the graphical user interface of the terminal, the user can adjust the overall size of the adjusted UV maps of the sub-models to highlight the details of the sub-model corresponding to the resized adjusted UV map in the composite model, making the sub-model appear more detailed and less blurry when viewed up close. Specifically, after step 202 "adjusting the size of each UV map according to the size of each sub-model when composing the merged model to form an adjusted UV map", the method further includes:

[0091] The adjusted UV map is displayed in the UV range on the graphical user page;

[0092] In response to an operation that sets the size of the adjusted UV map within the UV range, update the size of the adjusted UV map corresponding to the size setting operation within the UV range;

[0093] Arrange the positions of each adjusted UV map in the UV range to obtain the target UV map formed by the arranged adjusted UV maps.

[0094] In this embodiment, the size setting operation is not limited. It can be that the user selects the adjusted UV map of a sub-model, performs a zoom operation on the selected adjusted UV map, and thus updates the size of the selected adjusted UV map.

[0095] For example, such as Figure 5 In the diagram showing the adjusted UV map size settings, you can... Figure 4 The adjusted UV map 402 corresponding to the decorative sub-model on the forearm in subpage 401 is enlarged to form... Figure 5 Adjusted UV map 502 in subpage 501.

[0096] In this embodiment, when the overall size of the adjusted UV map of a sub-model is changed, the model texture corresponding to the sub-model generated based on the adjusted UV map will also become smaller or larger accordingly. Since the size of the sub-model remains unchanged, the accuracy of the model texture will change when the adjusted model texture is rendered onto the sub-model. For example, if the adjusted UV map of the sub-model becomes smaller, the model texture corresponding to that sub-model also becomes smaller. When the model texture corresponding to that sub-model is rendered onto the sub-model in the merged model, the accuracy of the model texture corresponding to that sub-model will be lower.

[0097] Step 203: Arrange the positions of each adjusted UV map in the UV interval to obtain the target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal.

[0098] In this embodiment, when arranging the positions of each adjusted UV map within the UV interval, a container algorithm can be used for arrangement. In this case, a reference rectangle needs to be selected to replace the adjusted UV maps for arrangement. Since the target UV map formed after arrangement needs to be a square, i.e., each adjusted UV map is located within a large square, after replacing the reference rectangle with the adjusted UV map, to prevent the target UV map formed by the adjusted UV maps from exceeding the arrangement reference map formed by the reference rectangle, the size of the reference rectangle can be set to be larger than the adjusted UV map, and the reference rectangle can contain the adjusted UV map. Furthermore, to reduce the invalid UV area in the UV interval other than the target UV map, the area of ​​the reference rectangle can be set to be as close as possible to the area of ​​the adjusted UV map, i.e., the reference rectangle can be set as the smallest rectangle containing the adjusted UV map. In this case, step 203 above, "arranging the positions of each adjusted UV map within the UV interval and obtaining the target UV map formed by the arranged adjusted UV maps," can be:

[0099] Obtain the reference rectangle for each adjusted UV map. The reference rectangle is the smallest rectangle that contains the adjusted UV map.

[0100] Arrange the reference rectangles to form a reference diagram with the same length and width;

[0101] Based on the relative positions of the reference rectangles in the arrangement reference, the positions of each adjusted UV map are arranged in the UV interval to obtain the target UV map formed by the arranged adjusted UV maps.

[0102] In this embodiment of the application, after obtaining the arrangement reference reference rectangles, the adjusted UV maps corresponding to each reference rectangle can be arranged according to the same relative positional relationship as the reference rectangles, thereby generating the target UV map.

[0103] In this embodiment of the application, the reference rectangles can be arranged using a container algorithm. Specifically, the above step of "arranging the reference rectangles to form a reference frame with the same length and width" can be:

[0104] Arrange the reference rectangles side by side in the horizontal direction according to their height from high to low. During the arrangement process, one side of two adjacent reference rectangles on the left and right overlaps. The height that the rectangle formed after the reference rectangles are arranged can occupy is the preset maximum height.

[0105] If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height, then in the arranged reference rectangles, the reference rectangles whose sum of heights does not exceed the preset maximum height are arranged side by side vertically to form an arrangement candidate image;

[0106] If the length and width of the candidate images are the same, then the candidate images will be used as the reference for the arrangement.

[0107] If the length and width of the candidate images are different, increase the preset maximum height, and return to execute the step of "If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height", then arrange the reference rectangles whose sum of heights does not exceed the preset maximum height side by side in the arranged reference rectangles to form the candidate images.

[0108] For example, such as Figure 6In the schematic diagram of the formation of the candidate image arrangement shown, if there are 5 adjusted UV images corresponding to the sub-models, the reference rectangles corresponding to the 5 adjusted UV images are obtained as reference rectangle 601, reference rectangle 602, reference rectangle 603, reference rectangle 604 and reference rectangle 605 respectively. Starting from the rectangle with the highest height (reference rectangle 601), the reference rectangles 602, reference rectangle 603 and reference rectangle 604 with gradually decreasing heights are arranged from left to right. It can be determined that the height that the rectangle formed after the arrangement of each reference rectangle can occupy (i.e. the preset maximum height) is the height of reference rectangle 601. When arranging the rectangles from left to right, it can be seen that the sum of the heights of reference rectangle 605 and reference rectangle 604 does not exceed the height of reference rectangle 601. Therefore, reference rectangle 605 can be placed below reference rectangle 604 to form candidate image arrangement 606.

[0109] For example, such as Figure 7 In another schematic diagram of the formation of the candidate arrangement shown, since the length and width of the candidate arrangement 606 are different, the preset maximum height is increased until the preset maximum height is reached. Figure 7 The heights shown indicate that the sum of the heights of reference rectangles 601 and 603 does not exceed the preset maximum height, and the sum of the heights of reference rectangles 602 and 604 also does not exceed the preset maximum height. Thus, reference rectangles 601, 602, 603, 604, and 605 form an arrangement candidate diagram 701.

[0110] Step 204: Generate the model texture corresponding to the merged model based on the target UV map.

[0111] In this embodiment of the application, the color of the model texture set in the sub-model can be obtained. After the target UV map is generated, the color of the model texture corresponding to the merged model is determined according to the color of the model texture corresponding to each sub-model.

[0112] In this embodiment, before step 204, "generating the model texture corresponding to the merged model based on the target UV map," the method further includes: obtaining the initial texture type corresponding to each sub-model; displaying the initial texture type of each sub-model in the graphical user interface; determining the modified texture type in response to a modification operation on the initial texture type in the graphical user interface; and determining the modified texture type corresponding to each sub-model based on the modified texture type and the correspondence between each sub-model and the initial texture type. Once the modified texture type corresponding to each sub-model is determined, the model texture corresponding to the merged model can be generated based on the modified texture type corresponding to each sub-model. That is, step 204, "generating the model texture corresponding to the merged model based on the target UV map," can be: generating the model texture corresponding to the merged model based on the target UV map and the modified texture type corresponding to each sub-model.

[0113] For example, the initial texture types for all sub-models can be normal maps, specular maps, and base maps. The graphical user interface displays the identifiers for normal maps, specular maps, and base maps, and obtains the texture types that each sub-model needs to generate when generating sub-models. If the user deletes the base map identifier, the sub-models that need to generate base maps will avoid generating base maps when generating model textures.

[0114] In this embodiment, the UV range and the target UV map within the UV range can be displayed in the graphical user interface. In model-making application software, the background of the UV range is generally composed of alternating black and white squares. To allow users to clearly identify the target UV map within the UV range, the background within the UV range can be modified. Specifically, after step 204 "Generate model texture map corresponding to the merged model based on the target UV map" mentioned above, the following can be included:

[0115] Display the target UV map within the UV range in the graphical user interface;

[0116] Identify the background region within the UV range, excluding the target UV map;

[0117] In response to a color modification operation on the background area in the graphical user interface, update the color of the background area corresponding to the color modification operation.

[0118] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0119] The texture processing method for 3D models provided in this application embodiment does not require disassembling the UV maps obtained before merging the sub-models when multiple sub-models are merged into a merged model. Instead, the UV maps obtained from the unfolding of each sub-model can be arranged as a whole in the UV range, and then the model texture of the merged model can be obtained based on the arranged target UV map. Since the UV maps corresponding to each sub-model do not change after UV unfolding, the textures generated by the sub-models before merging can restore the details of the merged model to a large extent and retain the accuracy of the textures on the merged model.

[0120] Please see Figure 8 , Figure 8 Another flowchart illustrating the texture processing method for a 3D model provided in this application embodiment is shown below. The specific flow of this method can be as follows:

[0121] Step 801: Perform UV expansion on the multiple sub-models that make up the merged model to obtain the initial expanded diagram in the UV interval.

[0122] Step 802: Set the initial unfolded pattern size in the UV range to obtain the UV pattern.

[0123] Specifically, there are two ways to set the size of the initial unfolded map to obtain the UV map. One way is to set the length and width of the initial unfolded map to be the same, and the length and width of the initial unfolded map to be the same as the length and width of the UV interval, to obtain the UV map. The other way is to set the length and width of the initial unfolded map according to the aspect ratio of the sub-model texture corresponding to the initial unfolded map, as well as the length and width of the UV interval, to obtain the UV map. In this case, the length and width of the UV map shall not exceed the length and width of the UV interval.

[0124] Step 803: Adjust the size of each UV map according to the size of each sub-model when forming the merged model to form the adjusted UV map.

[0125] Step 804: Obtain the reference rectangle for each adjusted UV map. The reference rectangle is the smallest rectangle containing the adjusted UV map.

[0126] Step 805: Arrange the reference rectangles side by side in the horizontal direction according to their height from high to low. During the arrangement process, one side of two adjacent reference rectangles on the left and right overlaps. The height that the rectangle formed after the reference rectangles are arranged can occupy is the preset maximum height.

[0127] Step 806: If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height, then in the arranged reference rectangles, the reference rectangles whose sum of heights does not exceed the preset maximum height are arranged side by side to form an arrangement candidate diagram.

[0128] Step 807: If the length and width of the candidate images are the same, then the arrangement reference image will be formed based on the candidate images as the reference rectangle.

[0129] Step 808: If the length and width of the candidate images are different, increase the preset maximum height and return to the previous step. If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height, then in the arranged reference rectangles, the reference rectangles whose sum of heights does not exceed the preset maximum height are arranged side by side to form the candidate images.

[0130] Step 809: Based on the relative positional relationship of each reference rectangle in the arrangement reference, arrange the positions of each adjusted UV map in the UV interval to obtain the target UV map formed by the arranged adjusted UV maps.

[0131] Step 810: Generate the model texture corresponding to the merged model based on the target UV map.

[0132] Specifically, model textures can be generated for each sub-model based on the texture type corresponding to each sub-model, and the model textures for each sub-model are combined to form the model texture of the merged model.

[0133] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0134] The texture processing method for 3D models provided in this application embodiment does not require disassembling the UV maps obtained before merging the sub-models when multiple sub-models are merged into a merged model. Instead, the UV maps obtained from the unfolding of each sub-model can be arranged as a whole in the UV range, and then the model texture of the merged model can be obtained based on the arranged target UV map. Since the UV maps corresponding to each sub-model do not change after UV unfolding, the textures generated by the sub-models before merging can restore the details of the merged model to a large extent and retain the accuracy of the textures on the merged model.

[0135] To facilitate better implementation of the texture processing method for 3D models according to the embodiments of this application, the embodiments of this application also provide a texture processing apparatus for 3D models. Please refer to... Figure 9 , Figure 9 This is a schematic diagram of the structure of a texture processing device for a three-dimensional model provided in an embodiment of this application. The texture processing device for the three-dimensional model may include an acquisition unit 901, an adjustment unit 902, an arrangement unit 903, and a generation unit 904.

[0136] Among them, the acquisition unit 901 is used to perform UV expansion on multiple sub-models that make up the merged model to obtain the UV map in the UV interval;

[0137] The adjustment unit 902 is used to adjust the size of each UV map according to the size of each sub-model when forming the merged model, so as to form an adjusted UV map;

[0138] The arrangement unit 903 is used to arrange the positions of each adjusted UV map in the UV range and obtain the target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal.

[0139] Generation unit 904 is used to generate model textures corresponding to the merged model based on the target UV map.

[0140] Optionally, the adjustment unit 902 is also used for:

[0141] The adjusted UV map is displayed in the UV range on the graphical user page;

[0142] In response to an operation that sets the size of the adjusted UV map within the UV range, update the size of the adjusted UV map corresponding to the size setting operation within the UV range;

[0143] Arrange the positions of each adjusted UV map in the UV range to obtain the target UV map formed by the arranged adjusted UV maps.

[0144] Optionally, the arrangement unit 903 is also used for:

[0145] Obtain the reference rectangle for each adjusted UV map. The reference rectangle is the smallest rectangle that contains the adjusted UV map.

[0146] Arrange the reference rectangles to form a reference diagram with the same length and width;

[0147] Based on the relative positions of the reference rectangles in the arrangement reference, the positions of each adjusted UV map are arranged in the UV interval to obtain the target UV map formed by the arranged adjusted UV maps.

[0148] Optionally, the arrangement unit 903 is also used for:

[0149] Arrange the reference rectangles side by side in the horizontal direction according to their height from high to low. During the arrangement process, one side of two adjacent reference rectangles on the left and right overlaps. The height that the rectangle formed after the reference rectangles are arranged can occupy is the preset maximum height.

[0150] If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height, then in the arranged reference rectangles, the reference rectangles whose sum of heights does not exceed the preset maximum height are arranged side by side vertically to form an arrangement candidate image;

[0151] If the length and width of the candidate images are the same, then the candidate images will be used as the reference for the arrangement.

[0152] If the length and width of the candidate images are different, increase the preset maximum height, and return to execute the step of "If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height", then arrange the reference rectangles whose sum of heights does not exceed the preset maximum height side by side in the arranged reference rectangles to form the candidate images.

[0153] Optionally, the acquisition unit 901 is also used for:

[0154] Obtain each sub-model;

[0155] Each sub-model is UV unwrapped to obtain the initial unwrapped image corresponding to each sub-model;

[0156] The UV map is obtained by setting the initial unfolded map size in the UV range.

[0157] Optionally, the acquisition unit 901 is also used for:

[0158] Set the initial unfolded map to have the same length and width, and ensure that the length and width of the initial unfolded map are the same as the length and width of the UV region to obtain the UV map; / or

[0159] The dimensions of the initial unfolded map are set according to the aspect ratio of the sub-model texture corresponding to the initial unfolded map, as well as the dimensions of the UV interval, to obtain the UV map. The dimensions of the UV map do not exceed the dimensions of the UV interval.

[0160] Optionally, the generating unit 904 is also used for:

[0161] Obtain the initial texture type corresponding to each sub-model;

[0162] The initial texture type of each sub-model is displayed in the graphical user interface;

[0163] In response to a modification operation on the initial texture type in the graphical user interface, determine the modified texture type;

[0164] Based on the modified texture type and the correspondence between each sub-model and the initial texture type, determine the modified texture type corresponding to each sub-model;

[0165] Generate the model texture corresponding to the merged model based on the target UV map and the modified texture types corresponding to each sub-model.

[0166] Optionally, the arrangement unit 903 is also used for:

[0167] Display the target UV map within the UV range in the graphical user interface;

[0168] Identify the background region within the UV range, excluding the target UV map;

[0169] In response to a color modification operation on the background area in the graphical user interface, update the color of the background area corresponding to the color modification operation.

[0170] Optionally, the adjustment unit 902 is also used for:

[0171] When the sub-models are combined into a merged model, determine the bounding box size of each sub-model in the merged model;

[0172] Compare the bounding box sizes of each sub-model to obtain the size ratio of the bounding box of each sub-model;

[0173] Adjust the size of each UV map according to the size ratio to form the adjusted UV map.

[0174] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0175] The texture processing apparatus for a 3D model provided in this application embodiment involves obtaining UV maps in the UV region by UV unwrapping of multiple sub-models constituting the merged model using an acquisition unit 901. Then, an adjustment unit 902 adjusts the size of each UV map according to the size of each sub-model when assembling the merged model, forming adjusted UV maps. Next, an arrangement unit 903 arranges the adjusted UV maps in the UV region to obtain a target UV map formed by the arranged adjusted UV maps, wherein the target UV map has equal length and width. Finally, a generation unit 904 generates a model texture map corresponding to the merged model based on the target UV map. This method eliminates the need to disassemble the UV maps obtained before merging the sub-models, and the UV maps corresponding to each sub-model remain unchanged after UV unwrapping. This allows the texture maps generated from the sub-models before merging to largely reproduce the details of the merged model, preserving the accuracy of the texture maps on the merged model.

[0176] Accordingly, this application also provides a computer device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer, personal digital assistant, etc. Figure 10 As shown, Figure 10 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 1000 includes a processor 1001 with one or more processing cores, a memory 1002 with one or more computer-readable storage media, and a computer program stored on the memory 1002 and executable on the processor. The processor 1001 and the memory 1002 are electrically connected. Those skilled in the art will understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0177] The processor 1001 is the control center of the computer device 1000. It connects various parts of the computer device 1000 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 1002, and calling data stored in the memory 1002, it performs various functions of the computer device 1000 and processes data, thereby monitoring the computer device 1000 as a whole.

[0178] In this embodiment, the processor 1001 in the computer device 1000 loads the instructions corresponding to the processes of one or more applications into the memory 1002 according to the following steps, and the processor 1001 runs the applications stored in the memory 1002 to achieve various functions:

[0179] UV expansion is performed on multiple sub-models that make up the merged model to obtain the UV map in the UV interval;

[0180] Based on the size of each sub-model when forming the merged model, adjust the size of each UV map to form the adjusted UV map;

[0181] Arrange the positions of each adjusted UV map in the UV range to obtain the target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal.

[0182] Generate model textures corresponding to the merged model based on the target UV map.

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

[0184] Optional, such as Figure 10 As shown, the computer device 1000 also includes: a touch screen display 1003, a radio frequency circuit 1004, an audio circuit 1005, an input unit 1006, and a power supply 1007. The processor 1001 is electrically connected to the touch screen display 1003, the radio frequency circuit 1004, the audio circuit 1005, the input unit 1006, and the power supply 1007. Those skilled in the art will understand that... Figure 10 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

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

[0186] In this embodiment of the application, the processor 1001 executes a 3D model making application to generate a graphical user interface on the touch screen 1003. The graphical user interface can display the sub-models to be merged, the merged model after merging the sub-models, the adjusted UV map corresponding to the sub-models, the target UV map formed after the adjusted UV map is arranged, etc. The user can perform interactive operations in the graphical user interface.

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

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

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

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

[0191] although Figure 10 As not shown in the diagram, the computer device 1000 may also include a camera, sensors, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

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

[0193] As can be seen from the above, the computer device provided in this embodiment, when multiple sub-models are merged into a merged model, does not need to disassemble the UV map obtained before the sub-models are merged. It can arrange the UV maps obtained by each sub-model in the UV range as a whole, and then obtain the model texture of the merged model based on the arranged target UV map. Since the UV map corresponding to each sub-model does not change after UV unwrapping, the texture generated by the sub-models before merging can restore the details of the merged model to a large extent and retain the accuracy of the texture on the merged model.

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

[0195] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute the steps in any of the texture processing methods for three-dimensional models provided in embodiments of this application. For example, the computer program can execute the following steps:

[0196] UV expansion is performed on multiple sub-models that make up the merged model to obtain the UV map in the UV interval;

[0197] Based on the size of each sub-model when forming the merged model, adjust the size of each UV map to form the adjusted UV map;

[0198] Arrange the positions of each adjusted UV map in the UV range to obtain the target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal.

[0199] Generate model textures corresponding to the merged model based on the target UV map.

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

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

[0202] Since the computer program stored in the storage medium can execute the steps in any of the three-dimensional model texturing methods provided in the embodiments of this application, the beneficial effects that any of the three-dimensional model texturing methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

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

[0204] The foregoing has provided a detailed description of a three-dimensional model texture processing method, apparatus, computer device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of the present invention. Those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for texturing a three-dimensional model, characterized in that, include: UV expansion is performed on multiple sub-models that make up the merged model to obtain the UV map in the UV interval; Based on the size of each sub-model when the merged model is composed, the size of each UV map is adjusted to form an adjusted UV map; The positions of each of the adjusted UV maps are arranged in the UV range to obtain a target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal. Generate the model texture map corresponding to the merged model based on the target UV map; The step of arranging the positions of each adjusted UV map in the UV region to obtain the target UV map formed by the arranged adjusted UV maps includes: Obtain a reference rectangle for each of the adjusted UV maps, wherein the reference rectangle is the smallest rectangle containing the adjusted UV map; Arrange the aforementioned reference rectangles to form a reference diagram with the same length and width; Based on the relative positional relationship of each of the reference rectangles in the arrangement referenced in the UV region, the positions of each of the adjusted UV maps are arranged to obtain the target UV map formed by the arranged adjusted UV maps; The arrangement of the reference rectangles forms a reference diagram with the same length and width, including: The reference rectangles are arranged side by side in the horizontal direction in order of height from high to low. During the arrangement process, one side of two adjacent reference rectangles overlaps. The height that the rectangle formed after the reference rectangles are arranged can occupy is the preset maximum height. If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height, then the reference rectangles whose sum of heights does not exceed the preset maximum height are arranged side by side in the arranged reference rectangles to form an arrangement candidate diagram; If the length and width of the candidate arrangement images are the same, then the candidate arrangement images will be used as the reference for the arrangement. If the length and width of the candidate images are different, increase the preset maximum height, and return to execute the step of if the sum of the heights of at least two target reference rectangles in the reference rectangle does not exceed the preset maximum height, then arrange the reference rectangles whose sum of heights does not exceed the preset maximum height in the arranged reference rectangles side by side to form the candidate images.

2. The method according to claim 1, characterized in that, After adjusting the size of each UV map according to the size of each sub-model when composing the merged model to form the adjusted UV map, the process further includes: The adjusted UV map within the UV range is displayed on the graphical user page; In response to the size setting operation of the adjusted UV map in the UV range, update the size of the adjusted UV map corresponding to the size setting operation in the UV range; The positions of each of the adjusted UV maps are arranged in the UV range to obtain the target UV map formed by the arranged adjusted UV maps.

3. The method according to claim 1, characterized in that, The process of expanding the UV map of multiple sub-models constituting the merged model to obtain the UV map within the UV interval includes: Obtain each of the aforementioned sub-models; Each of the sub-models is UV unwrapped to obtain the initial unwrapped image corresponding to each of the sub-models; The UV map is obtained by setting the size of the initial unfolded map within the UV range.

4. The method according to claim 3, characterized in that, The step of setting the initial unfolded pattern size within the UV range to obtain the UV pattern includes: The initial unfolded map is set to have the same length and width, and the length and width of the initial unfolded map are the same as the length and width of the UV region, to obtain the UV map; / or The aspect ratio of the sub-model texture corresponding to the initial unfolded map is set according to the aspect ratio of the UV interval, and the aspect ratio of the UV interval is set to obtain the UV map, wherein the aspect ratio of the UV map does not exceed the aspect ratio of the UV interval.

5. The method according to claim 1, characterized in that, Before generating the model texture corresponding to the merged model based on the target UV map, the process also includes: Obtain the initial texture type corresponding to each of the sub-models; The initial texture type of each of the sub-models is displayed in the graphical user interface; In response to a modification operation on the initial texture type in the graphical user interface, the modified texture type is determined; Based on the modified texture type and the correspondence between each sub-model and the initial texture type, the modified texture type corresponding to each sub-model is determined; The step of generating the model texture map corresponding to the merged model based on the target UV map includes: The model texture corresponding to the merged model is generated based on the target UV map and the modified texture type corresponding to each of the sub-models.

6. The method according to claim 1, characterized in that, After arranging the positions of each adjusted UV map in the UV range and obtaining the target UV map formed by the arranged adjusted UV maps, the method further includes: The target UV map within the UV range is displayed in the graphical user interface; Identify the background region within the UV range, excluding the target UV map; In response to a color modification operation on the background area in the graphical user interface, the color of the background area corresponding to the color modification operation is updated.

7. The method according to claim 1, characterized in that, The step of adjusting the size of each UV map according to the size of each sub-model when composing the merged model to form an adjusted UV map includes: When the sub-models are combined to form the merged model, the bounding box size of each sub-model in the merged model is determined; By comparing the bounding box sizes of each sub-model, the size ratio of the bounding box of each sub-model can be obtained; The size of each UV map is adjusted according to the size ratio to form the adjusted UV map.

8. A texture processing device for a three-dimensional model, characterized in that, include: The acquisition unit is used to perform UV expansion on multiple sub-models that make up the merged model to obtain the UV map in the UV interval; An adjustment unit is used to adjust the size of each UV map according to the size of each sub-model when the merged model is composed, so as to form an adjusted UV map; The arrangement unit is used to arrange the positions of each of the adjusted UV maps in the UV interval, and obtain a target UV map formed by the arranged adjusted UV maps, wherein the length and width of the target UV map are equal. The generation unit is used to generate a model texture map corresponding to the merged model based on the target UV map; The arrangement unit is also used for: Obtain a reference rectangle for each of the adjusted UV maps, wherein the reference rectangle is the smallest rectangle containing the adjusted UV map; Arrange the aforementioned reference rectangles to form a reference diagram with the same length and width; Based on the relative positional relationship of each of the reference rectangles in the arrangement referenced in the UV region, the positions of each of the adjusted UV maps are arranged to obtain the target UV map formed by the arranged adjusted UV maps; The arrangement of the reference rectangles to form an arrangement of reference rectangles with the same length and width includes: The reference rectangles are arranged side by side in the horizontal direction in order of height from high to low. During the arrangement process, one side of two adjacent reference rectangles overlaps. The height that the rectangle formed after the reference rectangles are arranged can occupy is the preset maximum height. If the sum of the heights of at least two reference rectangles in the reference rectangle does not exceed the preset maximum height, then the reference rectangles whose sum of heights does not exceed the preset maximum height are arranged side by side in the arranged reference rectangles to form an arrangement candidate diagram; If the length and width of the candidate arrangement images are the same, then the candidate arrangement images will be used as the reference for the arrangement. If the length and width of the candidate images are different, increase the preset maximum height, and return to execute the step of if the sum of the heights of at least two target reference rectangles in the reference rectangle does not exceed the preset maximum height, then arrange the reference rectangles whose sum of heights does not exceed the preset maximum height in the arranged reference rectangles side by side to form the candidate images.

9. A computer device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the texturing method for a three-dimensional model as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the texturing method for the three-dimensional model as described in any one of claims 1 to 7.