Method, apparatus, electronic device and storage medium for generating dynamic texture

By acquiring the parameter information and texture map of the target model, the texture map is dynamically displayed on the target model, which solves the problem of poor dynamic texture display effect in the existing technology and improves the user experience.

CN117745918BActive Publication Date: 2026-11-20BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211124494.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-15
Publication Date
2026-11-20
Estimated Expiration
2042-09-15

AI Technical Summary

Technical Problem

Existing technologies do not take into account the characteristics of 3D models when generating dynamic textures, resulting in poor display of dynamic textures on the model.

Method used

By acquiring the parameter information and texture map of the target model, the texture map is dynamically displayed on the target model based on the parameter information of the model, thereby enhancing the correlation between the texture map and the model by utilizing the parameter information of the target model.

Benefits of technology

The display of dynamic textures has been improved, enhancing the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117745918B_ABST
    Figure CN117745918B_ABST
Patent Text Reader

Abstract

The method, device, electronic equipment and storage medium for generating dynamic texture are provided, and the method comprises the following steps: obtaining a target model, and determining parameter information of the target model; obtaining a texture map; and based on the parameter information of the target model and the texture map, the texture map is controlled to be dynamically displayed on the target model. The technical solution provided by the embodiments of the present disclosure can realize the dynamic display effect of the texture video, and improve the richness and interest of the texture video content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and in particular to a method, apparatus, electronic device, and storage medium for generating dynamic textures. Background Technology

[0002] With the development of network technology, texture mapping can be used to enrich the visual effects of 3D models and enhance the user's viewing experience. Dynamic textures, as a special form of texture mapping, possess spatial stability and temporal random periodicity, and are used to present 3D models to users with dynamic visual effects. However, the methods used to generate dynamic textures in related technologies do not consider the characteristics of the 3D model itself, resulting in poor display effects of dynamic textures on the model. Summary of the Invention

[0003] This disclosure provides a method, apparatus, electronic device, and storage medium for generating dynamic textures.

[0004] In a first aspect, embodiments of this disclosure provide a method for generating dynamic textures, the method comprising:

[0005] Obtain the target model and determine the parameter information of the target model;

[0006] Get the texture map;

[0007] Based on the parameter information of the target model and the texture map, the texture map is dynamically displayed on the target model.

[0008] Secondly, embodiments of this disclosure provide an apparatus for generating dynamic textures, the apparatus comprising:

[0009] The target model acquisition module is used to acquire the target model and determine the parameter information of the target model;

[0010] The texture map acquisition module is used to acquire texture maps;

[0011] The texture map display module is used to control the dynamic display of the texture map on the target model based on the parameter information of the target model and the texture map.

[0012] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:

[0013] One or more processors;

[0014] Storage device for storing one or more programs.

[0015] When one or more programs are executed by one or more processors, the one or more processors implement the method for generating dynamic textures as described in any embodiment of this disclosure.

[0016] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a method for generating dynamic textures as described in any of the embodiments of this disclosure.

[0017] The technical solution of this disclosure obtains a target model, determines the parameter information of the target model, and obtains a texture map. Based on the parameter information of the target model and the texture map, it controls the dynamic display of the texture map on the target model. Since this solution utilizes the parameter information of the target model, the dynamic display effect of the texture map on the target model is more closely related to the model itself, weakening the sense of separation between the texture map and the target model during dynamic display, effectively improving the dynamic texture display effect and enhancing the user viewing experience. Attached Figure Description

[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0019] Figure 1 This is a flowchart illustrating a method for generating dynamic textures according to an embodiment of the present disclosure.

[0020] Figure 2 This is a flowchart illustrating another method for generating dynamic textures provided in an embodiment of this disclosure;

[0021] Figure 3 This is a flowchart illustrating another method for generating dynamic textures provided in an embodiment of this disclosure;

[0022] Figure 4 This is a flowchart illustrating another method for generating dynamic textures provided in an embodiment of this disclosure;

[0023] Figure 5 This is a structural block diagram of an apparatus for generating dynamic textures provided in an embodiment of the present disclosure;

[0024] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0025] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0026] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0027] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0028] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0029] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0030] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0031] Before introducing this technical solution, we can first illustrate the application scenarios. This disclosed technical solution can be applied to any scenario where dynamic textures are generated. For example, it can be used to add corresponding texture maps to a 3D model and generate dynamic textures based on the texture maps. It can also be applied to video shooting scenarios, such as when the video frame includes a 3D model, and a dynamic texture corresponding to the 3D model can be generated.

[0032] Figure 1This is a flowchart illustrating a method for generating dynamic textures according to an embodiment of this disclosure. This embodiment is applicable to situations where dynamic textures are added to a target model. The method can be executed by a device for generating dynamic textures, which can be implemented in software and / or hardware. The hardware can be an electronic device, such as a mobile terminal, a PC, or a server. Scenes displaying dynamic textures of arbitrary models are typically implemented through cooperation between a client and a server. The method provided in this embodiment can be executed by the server, the client, or through cooperation between the client and the server.

[0033] like Figure 1 The method of this disclosure includes:

[0034] S110. Obtain the target model and determine the parameter information of the target model.

[0035] The target model can refer to a 3D model from which the dynamic texture is to be generated. The parameter information of the target model includes the target vector field information of multiple pixels in the target model.

[0036] The target model can be displayed in the interface. Correspondingly, the 3D model corresponds to multiple pixels in the display interface, and the vector field information of these pixels corresponding to the target model can be determined. The vector field information of multiple pixels of this type is used as the target vector field information. Furthermore, the vector field information of each pixel in this type can also be used as the target vector field information. The target vector field information can include the motion direction and motion rate of the corresponding pixel. The motion direction represents the orientation of the pixel's motion in the next moment, and the motion rate represents the speed at which the texture corresponding to the pixel needs to move in the next moment. Based on the motion direction and motion rate of a pixel, the display position of the texture corresponding to that pixel in the next moment can be determined. That is, the target vector field information is used to represent the motion direction and motion rate of each pixel in the texture map in the next moment.

[0037] It should be noted that a 3D model can be constructed for each subject that needs to generate dynamic texture videos, and this model can serve as the target model. Determining the target vector field information for each pixel in the target model image is crucial for determining the texture map information for the next moment when adding texture maps to the target model. The objects for which dynamic textures need to be generated can be 3D models of people, plants, buildings, etc.

[0038] Those skilled in the art should understand that as long as a three-dimensional model can be constructed, the specific construction method is not limited in this technical solution.

[0039] Typically, the target vector field information of each pixel in a target model is determined based on curvature. In this embodiment of the disclosure, the target model comprises at least one mesh, and the at least one mesh comprises at least three vertices. Determining the target vector field information of each pixel in the target model can be achieved by: for each vertex, determining at least one candidate curvature associated with the current vertex, and using the smallest candidate curvature as the candidate curvature of the current vertex; and determining the target vector field information of each pixel located on the mesh by interpolating the candidate curvatures of at least three vertices belonging to the same mesh.

[0040] In this model, a mesh can be the basic unit for constructing the target model; for example, a mesh can be a facet. The number of meshes can be one or more, depending on the structure of the target model. For instance, if the 3D model has a relatively simple structure, the number of meshes used to construct the target model can be one. If the 3D model has a complex hierarchical structure, different meshes are needed to construct the corresponding parts of the target model, in which case the number of meshes can be multiple. Meshes are often triangular, and each triangle consists of a front and a back face. The front face includes three vertices, and the back face also includes three vertices. Typically, the back face corresponds to the interior of the 3D model; therefore, only the front face of the mesh needs to be processed. The front face of the mesh includes three vertices, and the target vector field information of the corresponding pixel can be determined based on the curvature information of these three vertices.

[0041] It should be noted that the vector field information is determined based on the curvature information of the corresponding pixel, and the curvature information is determined based on the vertex information of the corresponding mesh. That is, it is necessary to determine the vector field information of each vertex on the mesh, and then, based on the vector field information of each vertex, determine the vector field information of each pixel on the mesh. The curvature of a vertex can be determined as follows: the curvature of a vertex is the rate of rotation of the tangent direction angle of that vertex with respect to the arc length. In other words, the curvature of a vertex is the reciprocal of the radius of the arc closest to the curve at that vertex, i.e., curvature = 1 / r. Due to the characteristics of the surface, the same vertex has different curvatures in different tangent directions. Specifically, by connecting each vertex with a straight line, and taking this straight line as the arc length of the surface, the radius of the surface can be calculated using the formula: radius of a circle = arc length / angle corresponding to the arc length. The curvature of the vertex can then be obtained. Multiple curvature results calculated for each vertex are determined as candidate curvatures; that is, each vertex has multiple candidate curvatures. The candidate curvature with the smallest value among all candidate curvatures is selected as the curvature to be used. After determining the curvature to be used for each vertex, the curvature of the corresponding pixel on the grid can be determined based on the curvature to be used. For each grid, interpolation is performed on the curvature to be used for the three vertices of the grid to obtain the target vector field information of each pixel on the grid. For example, if three vertices belonging to the same grid are A, B, and C, after connecting vertices A and B and determining the curvatures of A and B, interpolation can be performed based on the points on the AB line segment to obtain the interpolation values ​​of each pixel on the line. Correspondingly, the curvature values ​​of each pixel on the BC and AC line segments can be determined. For pixels in the same row or column, the curvature values ​​of each pixel in the grid can be determined based on the curvature values ​​of the two endpoints of the same row or column.

[0042] In some examples, determining the corresponding target vector field information based on the curvature value of each pixel on the target model can be achieved by taking the curvature direction of each pixel as the motion direction of the corresponding pixel, and making the motion rate of the corresponding pixel negatively correlated with the curvature of the pixel, that is, the larger the curvature of the pixel, the smaller its motion rate.

[0043] S120, Obtain texture map.

[0044] Here, texture mapping can refer to stylized texture maps used to generate dynamic textures. In the embodiments of this disclosure, texture maps include particle maps or rainbow maps, etc., and users can set specific map patterns and forms according to actual needs.

[0045] In this embodiment of the disclosure, the texture mapping database stores various texture maps. Users can obtain texture maps selected for the target model according to their personal preferences or actual needs, or obtain corresponding texture maps according to the application software or application's default operation. The texture maps selected by the user or by default need to match the target model and be able to be mapped to the target model; alternatively, users can design corresponding texture maps according to their actual needs.

[0046] S130. Based on the parameter information of the target model and the texture map, control the texture map to be dynamically displayed on the target model.

[0047] Specifically, based on the parameter information of the target model, the display sequence of the texture map is determined, and the texture map is dynamically displayed on the target model according to the determined display sequence.

[0048] In this embodiment of the invention, controlling the dynamic display of the texture map on the target model based on the parameter information of the target model and the texture map includes: determining a texture image sequence according to the target vector field information and the texture map; wherein the texture image sequence includes multiple frames of texture images, and controlling the display of the multiple frames of texture images in the texture image sequence on the target model.

[0049] The texture image sequence can include multiple frames of texture images. These multiple frames of texture images can be used to display on the target model. It should be noted that the first and last frames of the texture image sequence are the same.

[0050] Specifically, a texture image can be determined based on the acquired texture map, and this texture image is designated as the first and last frame texture image of the texture image sequence for display. Based on the target vector field information of multiple pixels in the target model and the determined first and last frame texture images, a texture image sequence is determined, and the display of multiple frames of texture images in the texture image sequence on the target model is controlled.

[0051] The technical solution of this disclosure acquires a target model, determines the parameter information of the target model, and acquires a texture map. Based on the parameter information and texture map of the target model, the texture map is dynamically displayed on the target model, enriching the visual effect of the target model. Furthermore, the technical solution of this disclosure utilizes the geometric information of the target model surface to determine the target vector field information of the corresponding pixel points, and generates a texture image sequence based on this. The final dynamic effect is related to the shape change of the target model surface, effectively improving the user experience.

[0052] Figure 2This is a flowchart illustrating another method for generating dynamic textures provided in this embodiment. Based on the foregoing embodiments, the pixel gradient of each pixel in the initial texture map of the target model can be determined, and the target vector field information of the corresponding pixel can be updated based on the pixel gradient. For detailed implementation methods, please refer to the detailed description of the technical solution in this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0053] like Figure 2 As shown, the method specifically includes the following steps:

[0054] S210. Based on the initial texture map of the target model, determine the pixel gradient of multiple pixels in the initial texture map.

[0055] The initial texture map can refer to an existing texture map in the target model. Since each pixel in the initial texture map has normal information (e.g., a normal vector), to accurately determine the target vector field information of each pixel in the target model, it is necessary to determine the pixel gradients of multiple pixels corresponding to the initial texture map, and update the target vector field information of each pixel based on the pixel gradients to obtain the updated target vector field information. This improves the accuracy of determining the target vector field information of each pixel, thereby enhancing the dynamic effect of the dynamic texture. For example, the initial texture map can be a texture image matching human skin or a texture image of any cartoon pattern; this embodiment does not limit this, as long as it can be mapped onto the target model. The initial texture map is processed into a two-dimensional discrete function. The gradient of each pixel can refer to the derivative of this two-dimensional discrete function, based on which the pixel gradient corresponding to each pixel can be determined. The pixel gradient corresponds to the normal map of the initial texture map.

[0056] S220. Update the target vector field information of the corresponding pixel based on the pixel gradient and the target vector field information determined based on the pixel curvature.

[0057] Specifically, the updated target vector field information for each pixel can be determined based on the pixel gradients of each pixel in the initial texture map and the target vector field information determined by the curvature of each pixel. This updated target vector field information can then be used as the basis for determining the display of the looping dynamic texture. The method for determining the target vector field information is detailed in S110 and will not be explained further here. At this point, the updated target vector field information for each pixel is a vector field information jointly determined by the curvature and pixel gradient of each pixel.

[0058] Furthermore, the target vector field information of the corresponding pixel can be updated based on the gradient of each pixel. This can be achieved by weighting the pixel gradient and the target vector field information of the same pixel.

[0059] This allows setting weight values ​​for the pixel gradient and the target vector field information separately. Based on these weight values, the pixel gradient and target vector information of the same pixel can be weighted to update the target vector field information of that pixel. It should be noted that the method for updating the target vector field information of each pixel is the same; therefore, we will use one pixel as an example for explanation.

[0060] Specifically, for each pixel, the pixel gradient and target vector field information of the same pixel are weighted based on pre-set weight coefficients. The target vector field information is determined based on the curvature of that pixel. Optionally, the pixel gradient and target vector field information of that pixel are multiplied by their respective weight coefficients and then summed. This summation can be understood as using the existing triangle rule or parallelogram rule to determine the final target vector field information. The reason for using the triangle rule or parallelogram rule is that the magnitude and direction of the pixel gradient of each pixel differ from the magnitude and direction of the target vector field obtained based on the curvature of that pixel. To determine the final target vector field information, the above method can be used to update the target vector field information of that pixel.

[0061] S230. Based on the parameter information of the target model and the texture map, control the texture map to be dynamically displayed on the target model.

[0062] The technical solution of this embodiment determines the pixel gradients of multiple pixels in the initial texture map based on the target model, thereby redetermining the vector field information of each pixel. Then, based on the pixel gradients of each pixel and the target vector field information determined based on the curvature of each pixel, the target vector field information of the corresponding pixel is updated to present the texture map in the target model. This enables the rendering of texture maps in a 3D model, enriching the content of dynamic textures and enhancing their dynamism.

[0063] Figure 3 This is a flowchart illustrating another method for generating dynamic textures provided in this embodiment. Based on the foregoing embodiments, the determination of the texture image sequence can be further refined. Specific implementation methods can be found in the technical solutions of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0064] like Figure 3 As shown, the method specifically includes the following steps:

[0065] S310. Obtain the target model and determine the parameter information of the target model.

[0066] S320, Get texture map.

[0067] S330. Use the texture map as the first and last frame texture images within the loop display duration.

[0068] The loop display duration can be a pre-set display cycle for the texture image sequence. For example, this cycle can be 5 seconds, 7 seconds, 10 seconds, etc. The first frame texture image can refer to the first texture image within the loop display duration. The last frame texture image refers to the last texture image within the loop display duration. By using the current state of the texture map as the first and last texture images within the loop display duration for loop display, the effect of consecutive first and last frames in the loop can be achieved, thus achieving a "seamless" display effect for each looped texture image.

[0069] Specifically, the acquired texture maps can be used as the first and last texture images in each loop display time to improve the user's viewing experience.

[0070] S340. Based on the first frame texture image, the last frame texture image, the motion direction, and the motion rate, determine each frame texture image in the texture image sequence.

[0071] Each frame of texture image corresponds to a display moment within the loop display duration. A loop display moment can refer to each display time point within the loop display duration. For example, when the display period is 5 seconds, there can be 5 loop display moments, meaning the texture map content scrolls once per second. The purpose of determining the loop display moments is to identify the corresponding frame of texture image for each loop display time point, allowing the frames to be stitched together to obtain a texture image sequence. Furthermore, to improve the display effect of dynamic textures, the loop display duration can be divided into multiple loop time slices, with each loop time slice corresponding to one frame of texture image.

[0072] Specifically, the texture images in the texture image sequence can be determined based on the motion direction and speed of each pixel in the target model, the first frame texture image, the last frame texture image, and the duration of texture image loop display.

[0073] S350. Control the texture map to be dynamically displayed on the target model.

[0074] The technical solution of this embodiment uses the texture map as the first and last frame texture images within the loop display time. Based on the first and last frame texture images, the motion direction and motion speed, the texture images of each frame in the texture image sequence can be determined, thereby enabling multiple texture images to be connected end to end, so as to achieve the technical effect of "seamless connection" when displaying dynamic textures.

[0075] In this embodiment of the disclosure, determining the texture images of each frame in the texture image sequence based on the first frame texture image, the last frame texture image, the motion direction, and the motion rate can be as follows: taking the first frame texture image as the starting frame, determining the forward fused texture image corresponding to each cyclic display moment according to the motion direction and motion rate of multiple pixels; taking the last frame texture image as the starting frame, determining the reverse fused texture image corresponding to each cyclic display moment according to the opposite direction of the motion direction and motion rate of multiple pixels; and determining the texture image of each cyclic display moment by fusing the forward fused texture image and the reverse fused texture image of the same cyclic display moment.

[0076] In this embodiment, a forward-fused texture image can refer to the static texture image corresponding to each loop display moment when the first texture image is displayed forward. A reverse-fused texture image can refer to the static texture image corresponding to each loop display moment when the last texture image is displayed in reverse order. For example, when the loop display duration is 2 seconds, the loop display moments can include 20 display moments (T1-T20). A forward-fused texture image can be displayed with the texture image corresponding to moment T1 as the first texture image, and the texture image corresponding to moment T2 is determined based on the motion direction and motion rate of each pixel in the target model, and the texture images corresponding to the remaining moments are determined in the same way. A reverse-fused texture image can be displayed with the texture image corresponding to moment T20 as the first texture image, and the texture image corresponding to moment T19 is determined based on the reverse motion direction and motion rate of each pixel in the target model, and the texture images corresponding to the remaining moments are determined in the same way. This allows us to determine the forward-fused texture images for times T1-T20 and the reverse-fused texture images for times T20-T1. By fusing the forward-fused and reverse-fused texture images for the same time, we can obtain the texture image for that time. The texture images for each cyclic display time can be determined using the same method.

[0077] Understandably, determining the texture image corresponding to each cyclic display moment can be achieved by, for the forward and reverse fused texture images of the same cyclic display moment, determining the position points corresponding to each texture point in the forward and reverse fused texture images, and performing fusion processing based on these corresponding position points to obtain the position of each texture point within that cyclic display moment. Using the same method, the texture image corresponding to each cyclic display moment can be determined.

[0078] Figure 4 This is a flowchart illustrating another method for generating dynamic textures provided in Embodiment 4 of this disclosure. Based on the foregoing embodiments, before dynamically displaying the texture map on the target model, hole filling can be performed. For specific display methods, please refer to the details of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0079] like Figure 4 As shown, the method specifically includes the following steps:

[0080] S410. Obtain the target model and determine the parameter information of the target model.

[0081] S420, Get texture map.

[0082] S430. Based on the parameter information of the target model and the texture map, determine the texture image sequence.

[0083] S440. Input the texture image corresponding to each cycle display time into the hole filling model to obtain the target texture image to be used, and update the texture image based on the target texture image to be used.

[0084] The target texture image to be used can refer to the texture image after being processed by the hole-filling model. It should be noted that texture holes may be generated after the forward and reverse fused texture images are merged and connected. To avoid the generation of texture holes, the hole-filling model can be used to process them, so as to obtain a target texture image to be used without texture holes, and update it with the texture image at the corresponding loop display time.

[0085] It's important to note that the hole-filling model is a pre-trained model. It can be trained using a neural network structure, such as a CNN (Convolutional Neural Network). Before training the hole-filling model, a large number of texture images containing texture holes and texture images after hole filling are collected as training samples. During training, the texture images containing texture holes are input into the hole-filling model, which outputs a trained texture image. The output texture image and the hole-filled texture image are then subjected to loss processing to determine the loss result. Based on the loss processing result, the parameters in the hole-filling model are adjusted. When the loss function in the hole-filling model converges, the training is complete, and the hole-filling model is obtained.

[0086] S450. Control the texture map to be dynamically displayed on the target model.

[0087] The technical solution of this embodiment, by inputting the texture image corresponding to each cycle display moment into the hole filling model, obtains the target texture image to be used after hole filling, and updates it to the texture image, can avoid the appearance of hole images in the texture image, enhance the dynamism of the dynamic texture of the 3D model, enrich the display content of the dynamic texture image, and improve the user experience.

[0088] Figure 5 This is a structural block diagram of an apparatus for generating dynamic textures according to an embodiment of the present disclosure. It can execute the method for generating dynamic textures provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the method. For example... Figure 5 As shown, the device specifically includes: a target model acquisition module 510, a texture map acquisition module 520, and a texture map display module 530.

[0089] The target model acquisition module 510 is used to acquire a target model and determine the parameter information of the target model; the texture map acquisition module 520 is used to acquire a texture map; the texture map display module 530 is used to control the dynamic display of the texture map on the target model based on the parameter information of the target model and the texture map.

[0090] Based on the above technical solutions, the parameter information of the target model includes target vector field information of multiple pixels in the target model. Accordingly, the texture map display module 530 can also be specifically used to: determine a texture image sequence based on the target vector field information and the texture map; wherein the texture image sequence includes multiple frames of texture images, and control the display of the multiple frames of texture images in the texture image sequence on the target model.

[0091] Based on the above technical solutions, the first frame texture image and the last frame texture image in the texture image sequence are the same.

[0092] Based on the above technical solutions, the target model is composed of at least one mesh, and the at least one mesh includes at least three vertices. Accordingly, the target model acquisition module 510 is specifically used for: for a vertex, determining at least one selectable curvature associated with the current vertex, and taking the smallest selectable curvature as the curvature to be used for the current vertex; and determining the target vector field information of multiple pixels located on the mesh by interpolating the selectable curvatures of at least three vertices belonging to the same mesh.

[0093] Based on the above technical solutions, the device for generating dynamic textures further includes a pixel gradient determination module.

[0094] The pixel gradient determination module includes: a pixel gradient determination unit, used to determine the pixel gradient of multiple pixels in the initial texture map based on the initial texture map of the target model; and a target vector field information update unit, used to update the target vector field information of the corresponding pixels based on the pixel gradient.

[0095] Based on the above technical solutions, the target vector field information update unit further includes:

[0096] The target vector field information update subunit is specifically used to update the target vector field information of the corresponding pixel by weighting the pixel gradient and the target vector field information of the same pixel.

[0097] Based on the above technical solutions, the target vector field information includes the motion direction and motion speed. The texture mapping display module 530 further includes:

[0098] The texture mapping determination unit is used to use the texture mapping as the first frame texture image and the last frame texture image within the loop display duration; and to determine each frame texture image in the texture image sequence based on the first frame texture image, the last frame texture image, the motion direction, and the motion speed; wherein each frame texture image corresponds to each display moment within the loop display duration.

[0099] Based on the above technical solutions, the texture image determination unit is specifically used for:

[0100] Using the first frame texture image as the starting frame, the forward fused texture image corresponding to each cyclic display moment is determined according to the movement direction and movement rate of multiple pixels;

[0101] Using the final frame texture image as the starting frame, the reverse fused texture image corresponding to each cyclic display moment is determined based on the opposite direction and speed of the movement of multiple pixels.

[0102] The texture image for each cycle display time is determined by fusing the forward and reverse fused texture images at the same display time point.

[0103] Based on the above technical solutions, the apparatus for generating dynamic textures further includes:

[0104] The hole filling module is used to input the texture image corresponding to each cycle display time into the hole filling model to obtain the target texture image to be used, and update the texture image based on the target texture image to be used.

[0105] The technical solution of this disclosure obtains a target model, determines the parameter information of the target model, and obtains a texture map. Based on the parameter information of the target model and the texture map, it controls the dynamic display of the texture map on the target model. Since this solution utilizes the parameter information of the target model, the dynamic display effect of the texture map on the target model is more closely related to the model itself, weakening the sense of separation between the texture map and the target model during dynamic display, effectively improving the dynamic texture display effect and enhancing the user viewing experience.

[0106] The apparatus for generating dynamic textures provided in this disclosure can execute the method for generating dynamic textures provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.

[0107] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0108] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 6 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 6 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 6The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0109] like Figure 6 As shown, the electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

[0110] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0111] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.

[0112] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0113] The electronic device provided in this embodiment and the image processing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0114] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0115] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0116] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0117] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire a target model and determine parameter information of the target model; acquire a texture map; and, based on the parameter information of the target model and the texture map, control the dynamic display of the texture map on the target model. Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or combinations thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0118] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0119] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0120] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

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

[0122] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0123] Obtain the target model and determine the parameter information of the target model;

[0124] Get the texture map;

[0125] Based on the parameter information of the target model and the texture map, the texture map is dynamically displayed on the target model.

[0126] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0127] Optionally, the parameter information of the target model includes target vector field information of multiple pixels in the target model; the step of controlling the dynamic display of the texture map on the target model based on the parameter information of the target model and the texture map includes:

[0128] Based on the target vector field information and the texture map, a texture image sequence is determined; wherein, the texture image sequence includes multiple texture images, and the multiple texture images in the texture image sequence are controlled to be displayed on the target model.

[0129] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0130] Optionally, the first frame texture image in the texture image sequence is the same as the last frame texture image.

[0131] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0132] Optionally, the target model consists of at least one mesh, the at least one mesh including at least three vertices, and determining the target vector field information of multiple pixels in the target model includes:

[0133] For the vertex, determine at least one candidate curvature associated with the current vertex, and take the smallest candidate curvature as the candidate curvature of the current vertex;

[0134] The target vector field information of multiple pixels located on the grid is determined by interpolating the curvature of at least three vertices belonging to the same grid.

[0135] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0136] Optionally, based on the initial texture map of the target model, determine the pixel gradient of multiple pixels in the initial texture map;

[0137] The target vector field information of the corresponding pixel is updated based on the pixel gradient.

[0138] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0139] Optionally, updating the target vector field information of the corresponding pixel based on the pixel gradient includes:

[0140] The target vector field information of the corresponding pixel is updated by weighting the pixel gradient and the target vector field information of the same pixel.

[0141] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0142] Optionally, the target vector field information includes the direction of motion and the speed of motion, and determining the texture image sequence based on the target vector field information and the texture map includes:

[0143] The texture map is used as the first and last frame texture images within the loop display duration;

[0144] Based on the first frame texture image, the last frame texture image, the motion direction, and the motion rate, determine each frame texture image in the texture image sequence;

[0145] Each frame of texture image corresponds to a display moment within the loop display duration.

[0146] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0147] Optionally, determining the texture images of each frame in the texture image sequence based on the first frame texture image, the last frame texture image, the motion direction, and the motion rate includes:

[0148] Using the first frame texture image as the starting frame, the forward fused texture image corresponding to each cyclic display moment is determined according to the movement direction and movement rate of multiple pixels;

[0149] Using the final frame texture image as the starting frame, the reverse fused texture image corresponding to each cyclic display moment is determined according to the opposite direction and speed of the movement direction of each pixel.

[0150] The texture image for each cycle display time is determined by fusing the forward and reverse fused texture images at the same display time point.

[0151] According to one or more embodiments of this disclosure, a method for generating dynamic textures is provided, the method comprising:

[0152] Optionally, the texture image corresponding to each cycle display time is input into the hole filling model to obtain the target texture image to be used, and the texture image is updated based on the target texture image to be used.

[0153] According to one or more embodiments of the present disclosure, an apparatus for generating dynamic textures is provided, the apparatus comprising:

[0154] The target model acquisition module is used to acquire the target model and determine the parameter information of the target model;

[0155] The texture map acquisition module is used to acquire texture maps;

[0156] The texture map display module is used to control the dynamic display of the texture map on the target model based on the parameter information of the target model and the texture map.

[0157] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0158] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0159] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for generating dynamic textures, characterized in that, include: Obtain the target model and determine the parameter information of the target model, wherein the parameter information of the target model includes the target vector field information of multiple pixels in the target model; Get the texture map; Based on the parameter information of the target model and the texture map, the texture map is dynamically displayed on the target model. The target model is composed of at least one mesh, and the at least one mesh includes at least three vertices. Determining the target vector field information of multiple pixels in the target model includes: For the vertex, determine at least one candidate curvature associated with the current vertex, and take the smallest candidate curvature as the candidate curvature of the current vertex; The target vector field information of multiple pixels located on the grid is determined by interpolating the curvature of at least three vertices belonging to the same grid.

2. The method according to claim 1, characterized in that, The step of controlling the dynamic display of the texture map on the target model based on the parameter information of the target model and the texture map includes: Based on the target vector field information and the texture map, a texture image sequence is determined; wherein, the texture image sequence includes multiple texture images, and the multiple texture images in the texture image sequence are controlled to be displayed on the target model.

3. The method according to claim 2, characterized in that... The first and last texture images in the texture image sequence are the same.

4. The method according to claim 2, characterized in that, Also includes: Based on the initial texture map of the target model, determine the pixel gradient of multiple pixels in the initial texture map; The target vector field information of the corresponding pixel is updated based on the pixel gradient.

5. The method according to claim 4, characterized in that, The step of updating the target vector field information of the corresponding pixel based on the pixel gradient includes: The target vector field information of the corresponding pixel is updated by weighting the pixel gradient and the target vector field information of the same pixel.

6. The method according to claim 2, characterized in that, The target vector field information includes the direction of motion and the speed of motion. Determining the texture image sequence based on the target vector field information and the texture map includes: The texture map is used as the first and last frame texture images within the loop display duration; Based on the first frame texture image, the last frame texture image, the motion direction, and the motion rate, determine each frame texture image in the texture image sequence; Each frame of texture image corresponds to a display moment within the loop display duration.

7. The method according to claim 6, characterized in that, The step of determining each frame texture image in the texture image sequence based on the first frame texture image, the last frame texture image, the motion direction, and the motion rate includes: Using the first frame texture image as the starting frame, the forward fused texture image corresponding to each cyclic display moment is determined according to the movement direction and movement rate of multiple pixels; Using the final frame texture image as the starting frame, the reverse fused texture image corresponding to each cyclic display moment is determined based on the opposite direction and speed of the movement of multiple pixels. The texture image for each cycle display time is determined by fusing the forward and reverse fused texture images at the same display time point.

8. The method according to claim 6, characterized in that, Also includes: The texture image corresponding to each cycle display time is input into the hole filling model to obtain the target texture image to be used, and the texture image is updated based on the target texture image to be used.

9. An apparatus for generating dynamic textures, characterized in that, include: The target model acquisition module is used to acquire a target model and determine the parameter information of the target model, wherein the parameter information of the target model includes the target vector field information of multiple pixels in the target model; The texture map acquisition module is used to acquire texture maps; The texture map display module is used to control the dynamic display of the texture map on the target model based on the parameter information of the target model and the texture map; The target model is composed of at least one mesh, and the at least one mesh includes at least three vertices; the target model acquisition module is specifically used for: For the vertex, determine at least one candidate curvature associated with the current vertex, and take the smallest candidate curvature as the candidate curvature of the current vertex; The target vector field information of multiple pixels located on the grid is determined by interpolating the curvature of at least three vertices belonging to the same grid.

10. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating dynamic textures as described in any one of claims 1-8.

11. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the method for generating dynamic textures as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Image processing method and device, electronic equipment and storage medium

    CN114782593A