Rendering and production method, device, equipment and storage medium for three-dimensional model texture

By using adjustable parameters in the target file to enlarge and adjust the initial map during the production and rendering of the three-dimensional model map, a target map with the same pixel density but higher definition is generated as the initial map, solving the existing technology The problem of complex modification process, poor coordination and high hardware performance requirements.

CN117541696BActive Publication Date: 2025-02-14BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311337085.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-16
Publication Date
2025-02-14
Estimated Expiration
2043-10-16

AI Technical Summary

Technical Problem

In the prior art, the production and rendering process of three-dimensional model maps is complex, the modification process is cumbersome, the coordination is poor, and there is a contradiction between the texture clarity and hardware performance, making it difficult to present higher-definition maps with lower hardware performance.

Method used

By obtaining the target file, the file contains the initial map and adjustable parameters, including the scaling parameters and density adjustment parameters. Based on these parameters, the initial map is enlarged and density adjusted to generate a detailed map and a target map. The pixel density of the target map is the same as the initial map and rendered.

Benefits of technology

It realizes the generation of target maps with smaller size but higher clarity, simplifies the modification process, improves synergy, and solves the contradiction between map clarity and hardware performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117541696B_ABST
    Figure CN117541696B_ABST
Patent Text Reader

Abstract

The present disclosure provides a rendering and production method, device, equipment and storage medium for a three-dimensional model map, which relates to the field of artificial intelligence technology, specifically the technical fields of three-dimensional modeling, augmented reality, virtual reality, etc. The rendering method of a three-dimensional model map includes: obtaining a target file, the target file includes: an initial map and adjustable parameters of the initial map; the adjustable parameters include: a scaling parameter and a density adjustment parameter; based on the scaling parameter, the initial map is enlarged to generate a detail map; the pixel density of the detail map is less than the pixel density of the initial map; based on the density adjustment parameter, the pixel density of the detail map is increased to generate a target map; the pixel density of the target map is the same as the pixel density of the initial map; and the target map is rendered. The present disclosure can improve the map processing effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, specifically to the technical fields of three-dimensional modeling, augmented reality, virtual reality, etc., and in particular to a rendering and production method, device, equipment and storage medium for three-dimensional model mapping. Background Art

[0002] With the development of artificial intelligence technology, three-dimensional (3D) modeling has been widely used, such as in the game industry, animation industry, digital human industry, etc. Texture production and rendering are important steps in the 3D modeling process.

[0003] In the related art, a texture is usually firstly produced using texture production software, and then the texture is directly rendered using a rendering engine. Summary of the invention

[0004] The present invention provides a method, device, equipment and storage medium for rendering and making a three-dimensional model texture.

[0005] According to one aspect of the present disclosure, a method for rendering a three-dimensional model texture is provided, comprising: obtaining a target file, the target file comprising: an initial texture and adjustable parameters of the initial texture; the adjustable parameters comprising: a scaling parameter and a density adjustment parameter; based on the scaling parameter, enlarging the initial texture to generate a detail image; the pixel density of the detail image is less than the pixel density of the initial texture; based on the density adjustment parameter, increasing the pixel density of the detail image to generate a target texture; the pixel density of the target texture is the same as the pixel density of the initial texture; and rendering the target texture.

[0006] According to another aspect of the present disclosure, a method for making a three-dimensional model map is provided, including: generating an initial map; obtaining adjustable parameters of the initial map; the adjustable parameters including: scaling parameters and density adjustment parameters; generating a target file based on the initial map and the adjustable parameters; the target file is used to trigger a rendering module to render a target map, the target map is obtained by increasing the pixel density of a detail map based on the density adjustment parameters, the detail map is obtained by enlarging the initial map based on the scaling parameters, and the pixel density of the target map is the same as the pixel density of the initial map.

[0007] According to another aspect of the present disclosure, a rendering device for a three-dimensional model map is provided, including: an acquisition module, used to acquire a target file, wherein the target file includes: an initial map and adjustable parameters of the initial map; the adjustable parameters include: a scaling parameter and a density adjustment parameter; an enlargement module, used to enlarge the initial map based on the scaling parameter to generate a detail map; the pixel density of the detail map is less than the pixel density of the initial map; an adjustment module, used to increase the pixel density of the detail map based on the density adjustment parameter to generate a target map; the pixel density of the target map is the same as the pixel density of the initial map; and a rendering module, used to render the target map.

[0008] According to another aspect of the present disclosure, a device for making a three-dimensional model map is provided, including: a making module, used to generate an initial map; an acquisition module, used to obtain adjustable parameters of the initial map; the adjustable parameters include: a scaling parameter and a density adjustment parameter; a generating module, used to generate a target file based on the initial map and the adjustable parameters; the target file is used to trigger a rendering module to render a target map, the target map is obtained by increasing the pixel density of a detail map based on the density adjustment parameter, the detail map is obtained by enlarging the initial map based on the scaling parameter, and the pixel density of the target map is the same as the pixel density of the initial map.

[0009] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method as described in any of the above aspects.

[0010] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to any one of the above aspects.

[0011] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the methods described in any one of the above aspects.

[0012] According to the technical solution of the present disclosure, a target map with a smaller size but higher definition can be generated.

[0013] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0015] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;

[0016] Figure 2 is a schematic diagram according to a second embodiment of the present disclosure;

[0017] Figure 3 is a schematic diagram of an application scenario for implementing an embodiment of the present disclosure;

[0018] Figure 4 is a schematic diagram of a process of making an initial map according to an embodiment of the present disclosure;

[0019] Figure 5 is a schematic diagram comparing the magnification effect of the initial map provided according to the embodiment of the present disclosure and the magnification effect of the single-layer produced map provided by the traditional method;

[0020] Figure 6 is a schematic diagram comparing the clarity effect of a small-size image provided by an embodiment of the present disclosure with the clarity effect of a large-size image provided by a traditional method;

[0021] Figure 7 is a schematic diagram according to a third embodiment of the present disclosure;

[0022] Figure 8 is a schematic diagram according to a fourth embodiment of the present disclosure;

[0023] Fig. 9 is a schematic diagram according to a fifth embodiment of the present disclosure;

[0024] Fig.10 It is a schematic diagram of an electronic device used to implement the method for rendering a three-dimensional model texture or the method for making a three-dimensional model texture according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0026] In the related art, the methods of using texture making software to make textures and using a rendering engine to directly render the textures will have the following problems: the modification process is complicated. For example, when the effect presented by the rendering engine is not ideal, it is necessary to return to the texture making software to remake the texture, and then re-render it through the rendering engine. The above cycle process is executed multiple times during multiple modifications, which makes the implementation complicated; the coordination is poor. For example, when a user needs to modify other users' textures, he needs to communicate with other users; there is a contradiction between texture clarity and hardware performance. For example, in order to obtain clearer textures, the texture resolution is higher and the corresponding number of pixels is larger, which requires more hardware memory space, has high requirements on hardware performance, and is costly, that is, it is impossible to present higher-definition textures with lower hardware performance.

[0027] In order to improve the mapping effect, the present disclosure provides the following embodiments.

[0028] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure. This embodiment provides a method for rendering a three-dimensional model map, the method comprising:

[0029] 101. Obtain a target file, wherein the target file includes: an initial texture and adjustable parameters of the initial texture; the adjustable parameters include: a scaling parameter and a density adjustment parameter.

[0030] 102. Based on the scaling parameter, enlarge the initial map to generate a detail map; the pixel density of the detail map is smaller than the pixel density of the initial map.

[0031] 103. Based on the density adjustment parameter, increase the pixel density of the detail map to generate a target map; the pixel density of the target map is the same as the pixel density of the initial map.

[0032] 104. Render the target map.

[0033] The rendering method may be performed by rendering software, which may be texture making and rendering software, such as Substance Painter software, which is software capable of making textures and rendering the made textures. The rendering software may also be a rendering engine, such as Unity software, Unreal Engine (UE) software, etc. Unity software and UE software (specifically UE4 or UE5) are both real-time rendering engines capable of processing dynamic images in real time and performing three-dimensional rendering.

[0034] The target file is a pre-made file containing the initial texture. Specifically, it can be generated by a texture creation software, such as Substance Designer software. Substance Designer software is a texture creation software that can set adjustable parameters and easily modify the texture based on the adjustable parameters.

[0035] In the related art, a texture is generally created by texture creation software, and then the texture is directly rendered by a rendering engine. That is, the target file usually only contains the texture.

[0036] In this embodiment, the target file contains not only the texture but also the adjustable parameters so that the texture can be modified based on the adjustable parameters. For the purpose of distinction, the texture generated by the texture making software is called the initial texture, and the modified final texture is called the target texture.

[0037] Furthermore, in order to achieve the clarity of a small-size (low-resolution) image as that of a large-size (high-resolution) image, the small-size image (ie, the initial map) may be enlarged, and the enlarged image is called a detail map.

[0038] The zooming process can be performed through the zoom parameter. Specifically, the user can set a specific current zoom value according to the actual situation, and the initial map is zoomed in based on the current zoom value to obtain a detail map.

[0039] The detail map can reflect more detailed information of the object in the initial map.

[0040] Detail information refers to the detail information of the texture of an object in an image, which is the subtle structure and shape information of the texture. Based on the detail information, subtle differences in texture can be identified.

[0041] Texture refers to the characteristics of the surface of an object, which includes both the uneven grooves on the rough surface of an object and the colorful patterns (patterns) on the smooth surface of an object.

[0042] Taking the case where the object in the image is cloth as an example, the detail information may include the cloth structure (eg, composed of fibers), the color, width, density, etc. of the fibers that make up the cloth.

[0043] Furthermore, the detailed information can be multi-level. For example, for cloth, the first level is the information of a single fiber (such as the color and structure of a single fiber), and the second level is the information of a fiber bundle (including multiple fibers), such as the composition relationship between different fibers in the fiber bundle.

[0044] Pixel density refers to the number of pixels per unit distance, for example, expressed as x pixels / cm.

[0045] The pixel density of the enlarged detail map is less than that of the initial map. In order to maintain the consistency of the pixel density between the target map and the initial map, the pixel density of the detail map can be increased to obtain the target map, and the pixel density of the target map is the same as that of the initial map.

[0046] The pixel density can be increased by density adjustment parameters. Specifically, the user can set a specific current density adjustment value according to actual conditions, and increase the pixel density of the detail image based on the current density adjustment value to obtain a target map.

[0047] After obtaining the target texture, the target texture can be rendered, wherein the size of the target texture is the same as the size of the initial texture, for example, the size of the target texture and the initial texture are both 128*128.

[0048] In this embodiment, since the target file includes adjustable parameters, the user can modify the texture by modifying the adjustable parameters, so there is no need to cyclically switch the texture production software and the rendering engine, simplifying the modification process and improving coordination. In addition, the adjustable parameters specifically include scaling parameters and density adjustment parameters. The initial texture is enlarged by the scaling parameters to obtain a detail image, which can present more detail information and improve clarity. The detail image is increased in density by the density adjustment parameters to obtain a target texture with the same pixel density as the initial texture, which can ensure that the size of the target texture is consistent with the initial texture. Figure 1 The texture is similar to the original texture, but it renders more details, that is, it has higher clarity, so that the small-sized texture has the clarity of the large-sized texture. Since the small-sized texture has a small number of pixels, that is, the target texture has a small number of pixels, it occupies less hardware space, but has higher clarity, which solves the contradiction between texture clarity and hardware performance, and obtains a target texture with a smaller size but higher clarity. Since the modification process is simplified, the synergy is improved, and a target texture with a smaller size but higher clarity is obtained, the texture processing effect is improved.

[0049] The above describes a texture rendering method. The target file required by the rendering method can be generated by texture production software. Accordingly, the present disclosure can also provide a texture production method.

[0050] Figure 2 2 is a schematic diagram according to the second embodiment of the present disclosure. This embodiment provides a method for making a three-dimensional model map, the method comprising:

[0051] 201. Generate an initial map.

[0052] 202. Obtain adjustable parameters of the initial map; the adjustable parameters include: a scaling parameter and a density adjustment parameter.

[0053] 203. Generate a target file based on the initial map and the adjustable parameters; the target file is used to trigger a rendering module to render a target map, the target map is obtained by increasing the pixel density of the detail map based on the density adjustment parameters, the detail map is obtained by enlarging the initial map based on the scaling parameters, and the pixel density of the target map is the same as the pixel density of the initial map.

[0054] The production method can be performed by a texture production software, such as Substance Designer software. Substance Designer software is a texture production software that can set adjustable parameters and easily modify the texture based on the adjustable parameters.

[0055] The initial sticker refers to a sticker created by a user through sticker creation software. Specifically, the sticker creation software can generate a corresponding initial sticker based on the creation operation of the user.

[0056] Adjustable parameters refer to adjustable parameters about the initial map, such as fiber density, width, color, etc. There can be one or more adjustable parameters, and the adjustable parameters can form a parameter file.

[0057] Specifically, the texture making software may provide a parameter setting interface, based on which the user may set adjustable parameters.

[0058] After obtaining the map file and parameter file, you can package them into a target file. Taking Substance Designer software as an example, the target file can be a .sbsar file.

[0059] In addition, users can export target files (.sbsar files) from mapping software (such as Substance Designer software), which can then be imported into a rendering engine for rendering.

[0060] In this embodiment, by obtaining adjustable parameters, the user can adjust the initial texture based on the adjustable parameters in the rendering engine, so that there is no need to switch between the texture making software and the rendering engine, which can improve the modification efficiency and enhance the coordination; and, by processing the initial texture based on the scaling parameter and the density adjustment parameter, a small-sized but high-definition target texture can be obtained, avoiding the contradiction between the texture clarity and the hardware performance. Therefore, the texture processing effect can be improved.

[0061] In order to better understand the embodiments of the present disclosure, application scenarios to which the embodiments of the present disclosure can be applied are described.

[0062] Figure 330 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure. The scenario includes: texture making software 301 and a rendering engine 302. The texture making software 301 may specifically be the above-mentioned Substance Designer software; the rendering engine 302 may specifically be the above-mentioned UE4 software.

[0063] The target file is generated by the texture creation software. The rendering engine can import the target software, generate the target texture based on the initial texture in the target file, and render the target texture. Taking the texture creation software as Substance Designer and the rendering engine as UE4 as an example, the target file is specifically a .sbsar file. The .sbsar file is a file containing the initial texture generated by the SubstanceDesigner software. The .sbsar file can be exported from the Substance Designer software and then imported into the rendering engine for use.

[0064] The user creates an initial map in Substance Designer. To reduce storage space and improve processing efficiency, the resolution of the initial map can be low, such as 128*128. The map with high resolution effect finally rendered by the rendering engine is called the target map. The size of the target map is the same as that of the initial map. Figure 1 It has the same resolution as a texture such as 128*128, but has the clarity of a high-resolution texture, such as 4096*4096.

[0065] When making an initial map, the user may make it in layers according to the texture details of the material, that is, the initial map may be generated based on the detailed information of multiple levels of the initial map.

[0066] like Figure 4 As shown, taking cotton cloth as an example, we can start from one fiber and make it level by level according to the rules of cotton cloth until we get an initial map of a preset size (such as 128*128). Figure 4 As shown, it includes 6 levels of detailed information.

[0067] In this embodiment, by producing the initial texture in layers, the initial texture can be enlarged without distortion, thereby improving the clarity of the detail image.

[0068] like Figure 5 As shown on the upper side of , if only a single-layer image of the initial map is created, when it is enlarged, the pixel area is enlarged, and the image quality becomes blurred and lacks clarity.

[0069] In this embodiment, if Figure 5As shown in the bottom side of , by layering the texture details of each level, the texture details can be gradually enlarged to improve the clarity.

[0070] After making the initial texture in layers, the user also sets adjustable parameters, such as texture density, color, thickness, etc. These adjustable parameters make up the parameter file.

[0071] Specifically, the texture making software can display a parameter setting interface to the user, and receive adjustable parameters set by the user in the interface.

[0072] In this embodiment, by displaying a parameter setting interface to the user and obtaining the adjustable parameters based on the interface, the adjustable parameters can be obtained simply and efficiently.

[0073] Through the above mapping and setting adjustable parameters, Substance Designer software will generate a target file (.sbsar), which is exported for subsequent use. The target file includes the initial map (which can be represented by a map file) and parameter files, and can also include source files and material ball files.

[0074] Taking the target file being imported into the rendering engine as an example, a preset plug-in is pre-installed in the rendering engine. The preset plug-in corresponds to the texture making software, such as a plug-in corresponding to the Substance Designer software pre-installed. If the rendering engine is UE5 software, the plug-in can be Substance in UE5, and the target file (.sbsar file) is imported into the rendering engine through the plug-in.

[0075] In this embodiment, the target file is imported based on the preset plug-in, and the built-in plug-in function of the rendering software can be used to obtain the target file, thereby simplifying the acquisition process and improving the acquisition efficiency.

[0076] After the rendering engine obtains the target file, it can modify the adjustable parameters in the parameter file to modify the map.

[0077] In order to achieve the clarity effect of a large-sized map with a small-sized map, a target map can be generated based on the initial map through scaling parameters and density adjustment parameters (such as UVtilling parameters).

[0078] Specifically, the scaling parameter can be displayed to the user; the current scaling value set by the user for the scaling parameter is received; based on the current scaling value, the initial map is enlarged to generate a detail map; and / or, the density adjustment parameter can be displayed to the user; the current density adjustment value set by the user for the density adjustment parameter is received; based on the current density adjustment value, the pixel density of the detail map is increased to generate a target map.

[0079] In this embodiment, by displaying the zoom parameter to the user and receiving the current zoom value of the user for the zoom parameter, the current zoom value can be efficiently obtained, so that the initial map can be enlarged based on the current zoom value to obtain a detailed map, thereby improving processing efficiency.

[0080] In this embodiment, by displaying the density adjustment parameter to the user and receiving the user's current density adjustment value for the density adjustment parameter, the current density adjustment value can be efficiently obtained, so that the density of the detail image can be increased based on the current density adjustment value to obtain the target map, thereby improving processing efficiency.

[0081] The user can set the current zoom value and the current density adjustment value according to the actual situation. For example, when the material is a coarse fiber (such as jeans), the current zoom value is small. On the contrary, when the material is a fine fiber (such as silk), the current zoom value is large. Similarly, the current density adjustment value can also be set according to the fiber thickness, etc. Specifically, the rendering engine can provide optional values ​​corresponding to each material, and the user can choose from the optional values ​​according to the current material.

[0082] After the rendering engine obtains the current zoom value and the current density adjustment value, it enlarges the initial map based on the current zoom value to obtain a detail map after the details are enlarged; and restores the pixel density of the initial map through the current density adjustment value to obtain the target map.

[0083] like Figure 6 As shown, the size of the target texture is 128*128, which can achieve the clarity effect of a 4096*4096 texture produced in a traditional way, and in theory, a clearer target texture can be obtained by adjusting the scaling parameters.

[0084] In terms of hardware memory usage, the resource size occupied by a 128*128 texture is approximately 1 / 1000 of the resource size occupied by a 4096*4096 texture.

[0085] Therefore, it is possible to achieve a small-sized texture with the clarity of a large-sized texture, but using less hardware resources.

[0086] In combination with the above application scenarios, the present disclosure also provides a process flow for three-dimensional model mapping, which can be called a processing method for three-dimensional model mapping.

[0087] Figure 7 is a schematic diagram according to the third embodiment of the present disclosure, which provides a method for processing a three-dimensional model map, such as Figure 7 As shown, the method includes:

[0088] 701. Using texture making software, generate an initial texture, obtain adjustable parameters of the initial texture, and generate a target file according to the initial texture and the adjustable parameters.

[0089] The user may input an operation instruction into the sticker making software, for example, input the operation instruction in the form of a process node, and the sticker making software generates an initial sticker based on the operation instruction.

[0090] The texture making software may also provide a parameter setting interface, based on which adjustable parameters set by the user are received.

[0091] In order to achieve the effect that a small-sized image has the clarity of a large-sized image, the adjustable parameters include: a scaling parameter and a density adjustment parameter.

[0092] In addition, users can also set other parameters as adjustable parameters according to actual needs, such as fiber density, width, etc.

[0093] After the texture making software obtains the initial texture and adjustable parameters, it can package them into a target file.

[0094] 702. Export the target file from the texture making software.

[0095] Among them, users can export the target file for subsequent use.

[0096] 703. Use a preset plug-in pre-installed in the rendering engine to import the target file.

[0097] Among them, the preset plug-in is the plug-in corresponding to the texture making software.

[0098] 704. Using the rendering engine, generate a target texture based on the initial texture in the target file, and render the target texture.

[0099] Specifically, the initial map can be enlarged based on the scaling parameter to generate a detail map; and the pixel density of the detail map can be increased based on the density adjustment parameter to generate a target map; the pixel density of the target map is the same as the pixel density of the initial map.

[0100] In the related art, the initial texture is directly rendered, while in this embodiment, the target texture is rendered. Since the target texture has the same pixel density as the initial texture and has the detail information of the detail image, a target texture with a smaller size but higher definition can be obtained, thereby improving the rendering effect.

[0101] Figure 8 is a schematic diagram according to the fourth embodiment of the present disclosure. This embodiment provides a rendering device for a three-dimensional model map, such as Figure 8As shown, the device 800 includes: an acquisition module 801 , an amplification module 802 , an adjustment module 803 and a rendering module 804 .

[0102] The acquisition module 801 is used to acquire a target file, which includes: an initial map and adjustable parameters of the initial map; the adjustable parameters include: a scaling parameter and a density adjustment parameter; the enlargement module 802 is used to enlarge the initial map based on the scaling parameter to generate a detail map; the pixel density of the detail map is less than the pixel density of the initial map; the adjustment module 803 is used to increase the pixel density of the detail map based on the density adjustment parameter to generate a target map; the pixel density of the target map is the same as the pixel density of the initial map; the rendering module 804 is used to render the target map.

[0103] In this embodiment, since the target file includes adjustable parameters, the user can modify the texture by modifying the adjustable parameters, so there is no need to cyclically switch the texture production software and the rendering engine, simplifying the modification process and improving coordination. In addition, the adjustable parameters specifically include scaling parameters and density adjustment parameters. The initial texture is enlarged by the scaling parameters to obtain a detail image, which can present more detail information and improve clarity. The detail image is increased in density by the density adjustment parameters to obtain a target texture with the same pixel density as the initial texture, which can ensure that the size of the target texture is consistent with the initial texture. Figure 1 The texture is similar to the original texture, but it renders more details, that is, it has higher clarity, so that the small-sized texture has the clarity of the large-sized texture. Since the small-sized texture has a small number of pixels, that is, the target texture has a small number of pixels, it occupies less hardware space, but has higher clarity, which solves the contradiction between texture clarity and hardware performance, and obtains a target texture with a smaller size but higher clarity. Since the modification process is simplified, the synergy is improved, and a target texture with a smaller size but higher clarity is obtained, the texture processing effect is improved.

[0104] In some embodiments, the acquisition module 801 is further used to: use a pre-installed preset plug-in to import the target file, where the target file is generated by the texture production software corresponding to the preset plug-in.

[0105] In this embodiment, the target file is imported based on the preset plug-in, and the built-in plug-in function of the rendering software can be used to obtain the target file, thereby simplifying the acquisition process and improving the acquisition efficiency.

[0106] In some embodiments, the zoom module 802 is further used to: display the zoom parameter to the user; receive the current zoom value set by the user for the zoom parameter; and based on the current zoom value, zoom in on the initial map to generate a detail map.

[0107] In this embodiment, by displaying the zoom parameter to the user and receiving the current zoom value of the user for the zoom parameter, the current zoom value can be efficiently obtained, so that the initial map can be enlarged based on the current zoom value to obtain a detailed map, thereby improving processing efficiency.

[0108] In some embodiments, the adjustment module 803 is further used to: display the density adjustment parameters to the user; receive the current density adjustment value set by the user for the density adjustment parameters; and increase the pixel density of the detail image based on the current density adjustment value to generate a target map.

[0109] In this embodiment, by displaying the density adjustment parameter to the user and receiving the user's current density adjustment value for the density adjustment parameter, the current density adjustment value can be efficiently obtained, so that the density of the detail image can be increased based on the current density adjustment value to obtain the target map, thereby improving processing efficiency.

[0110] In some embodiments, the initial map is generated based on multiple levels of detail information.

[0111] In this embodiment, by producing the initial texture in layers, the initial texture can be enlarged without distortion, thereby improving the clarity of the detail image.

[0112] Fig. 9 is a schematic diagram according to the fifth embodiment of the present disclosure. This embodiment provides a device for making a three-dimensional model map, such as Fig. 9 As shown, the device 900 includes: a making module 901 , an acquiring module 902 and a generating module 903 .

[0113] The production module 901 is used to generate an initial map; the acquisition module 902 is used to obtain the adjustable parameters of the initial map; the adjustable parameters include: scaling parameters and density adjustment parameters; the generation module 903 is used to generate a target file based on the initial map and the adjustable parameters; the target file is used to trigger the rendering module to render the target map, the target map is obtained by increasing the pixel density of the detail map based on the density adjustment parameters, the detail map is obtained by enlarging the initial map based on the scaling parameters, and the pixel density of the target map is the same as the pixel density of the initial map.

[0114] In this embodiment, by obtaining adjustable parameters, the user can adjust the initial texture based on the adjustable parameters in the rendering engine, so that there is no need to switch between the texture making software and the rendering engine, which can improve the modification efficiency and enhance the coordination; and, by processing the initial texture based on the scaling parameter and the density adjustment parameter, a small-sized but high-definition target texture can be obtained, avoiding the contradiction between the texture clarity and the hardware performance. Therefore, the texture processing effect can be improved.

[0115] In some embodiments, the production module 901 is further used to: generate the initial texture based on multiple levels of detail information of the initial texture.

[0116] In this embodiment, by producing the initial texture in layers, the initial texture can be enlarged without distortion, thereby improving the clarity of the detail image.

[0117] In some embodiments, the acquisition module 902 is further used to: display a parameter setting interface to the user; and receive adjustable parameters set by the user in the interface.

[0118] In this embodiment, by displaying a parameter setting interface to the user and obtaining the adjustable parameters based on the interface, the adjustable parameters can be obtained simply and efficiently.

[0119] It can be understood that in the embodiments of the present disclosure, the same or similar contents in different embodiments can be referenced to each other.

[0120] It can be understood that the “first”, “second”, etc. in the embodiments of the present disclosure are only used for distinction and do not indicate the degree of importance, time sequence, etc.

[0121] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0122] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0123] Fig.10A schematic block diagram of an example electronic device 1000 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 1000 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0124] like Fig.10 As shown, the electronic device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0125] Multiple components in the electronic device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of renderers, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the electronic device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0126] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as a rendering method for a three-dimensional model map or a method for making a three-dimensional model map. For example, in some embodiments, a rendering method for a three-dimensional model map or a method for making a three-dimensional model map may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the rendering method for the three-dimensional model map or the method for making the three-dimensional model map described above may be executed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute a rendering method of a three-dimensional model map or a production method of a three-dimensional model map in any other appropriate manner (for example, by means of firmware).

[0127] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0128] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0129] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0130] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a rendering device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal renderer) monitor) for rendering information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0131] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0132] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0133] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0134] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for rendering a three-dimensional model map, comprising: Obtaining a target file generated by a texture making software, wherein the target file includes: an initial texture and adjustable parameters of the initial texture; the adjustable parameters include: a scaling parameter and a density adjustment parameter; the initial texture is generated based on multiple levels of detail information; Based on the scaling parameter, the initial map is enlarged step by step to generate a detail map; the pixel density of the detail map is less than the pixel density of the initial map; Based on the density adjustment parameter, the pixel density of the detail map is increased to generate a target map; the pixel density of the target map is the same as the pixel density of the initial map; Render the target texture.

2. The method according to claim 1, wherein: The obtaining of the target file comprises: The target file is imported by using a pre-installed preset plug-in, wherein the target file is generated by the texture making software corresponding to the preset plug-in.

3. The method according to claim 1, wherein: The enlarging the initial map based on the scaling parameter to generate a detail map includes: displaying the scaling parameter to a user; receiving a current zoom value set by the user for the zoom parameter; Based on the current zoom value, the initial map is enlarged to generate a detail map.

4. The method according to claim 1, wherein: The increasing the pixel density of the detail image based on the density adjustment parameter to generate a target map includes: displaying the density adjustment parameter to a user; receiving a current density adjustment value set by the user for the density adjustment parameter; Based on the current density adjustment value, the pixel density of the detail map is increased to generate a target map.

5. A method for making a three-dimensional model map, comprising: Generate initial texture; The initial map is generated based on multiple levels of detail information; Obtaining adjustable parameters of the initial map; The adjustable parameters include: scaling parameters and density adjustment parameters; Based on the initial texture and the adjustable parameters, a target file is generated; the target file is generated by the texture production software and is used to trigger the rendering module to render the target texture, the target texture is obtained by increasing the pixel density of the detail image based on the density adjustment parameters, the detail image is obtained by gradually enlarging the initial texture based on the scaling parameters, and the pixel density of the target texture is the same as the pixel density of the initial texture.

6. The method according to claim 5, wherein: The step of obtaining the adjustable parameters of the initial map includes: Displaying the parameter setting interface to the user; The adjustable parameters set by the user in the interface are received.

7. A rendering device for a three-dimensional model map, comprising: An acquisition module is used to acquire a target file generated by a texture making software, wherein the target file includes: an initial texture and adjustable parameters of the initial texture; the adjustable parameters include: a scaling parameter and a density adjustment parameter; the initial texture is generated based on multiple levels of detail information; An enlargement module, used for performing a step-by-step enlargement process on the initial map based on the scaling parameter to generate a detail map; the pixel density of the detail map is less than the pixel density of the initial map; An adjustment module, configured to increase the pixel density of the detail map based on the density adjustment parameter to generate a target map; the pixel density of the target map is the same as the pixel density of the initial map; A rendering module is used to render the target map.

8. The device according to claim 7, wherein: The acquisition module is further used for: The target file is imported by using a pre-installed preset plug-in, wherein the target file is generated by the texture making software corresponding to the preset plug-in.

9. The device according to claim 7, wherein: The amplification module is further used for: displaying the scaling parameter to a user; receiving a current zoom value set by the user for the zoom parameter; Based on the current zoom value, the initial map is enlarged to generate a detail map.

10. The device according to claim 7, wherein: The adjustment module is further used for: displaying the density adjustment parameter to a user; receiving a current density adjustment value set by the user for the density adjustment parameter; Based on the current density adjustment value, the pixel density of the detail map is increased to generate a target map.

11. A device for making a three-dimensional model map, comprising: Production module, used to generate initial textures; The initial map is generated based on multiple levels of detail information; An acquisition module, used for acquiring adjustable parameters of the initial map; the adjustable parameters include: a scaling parameter and a density adjustment parameter; A generation module is used to generate a target file based on the initial texture and the adjustable parameters; the target file is generated by the texture production software and is used to trigger the rendering module to render the target texture, the target texture is obtained by increasing the pixel density of the detail image based on the density adjustment parameters, the detail image is obtained by gradually enlarging the initial texture based on the scaling parameters, and the pixel density of the target texture is the same as the pixel density of the initial texture.

12. The device according to claim 11, wherein The acquisition module is further used for: Displaying the parameter setting interface to the user; The adjustable parameters set by the user in the interface are received.

13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Model rendering method and device, storage medium and electronic device

    CN116468839A