Ink brush stroke processing method and device, storage medium, equipment and program product

By acquiring the target curve and performing 3D model conversion processing, configuring geometric nodes and rendering ink wash materials, and generating ink wash brushstrokes, the problems of high difficulty and long time consumption in manual drawing are solved, improving the efficiency of game projects and the realism of ink wash style.

CN122244372APending Publication Date: 2026-06-19NETEASE (HANGZHOU) NETWORK CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2026-01-30
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

In ink-wash style game projects, the difficulty and time-consuming nature of hand-drawing ink brushstrokes result in low production efficiency for virtual scene models in games.

Method used

By acquiring the target curve, performing 3D model conversion processing, configuring the target geometric nodes associated with the brushstroke backbone model, and using preset ink wash material to render the brushstroke backbone model, ink wash brushstrokes are generated.

Benefits of technology

It reduces the difficulty of generating ink brushstrokes, improves the efficiency of creating ink brushstrokes and virtual scene models in games, and achieves a more realistic ink style display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122244372A_ABST
    Figure CN122244372A_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, computer-readable storage medium, electronic device, and computer program product for processing ink brushstrokes. The method includes: acquiring a target curve, performing a three-dimensional model conversion process on the target curve to obtain a brushstroke backbone model, configuring target geometric nodes associated with the brushstroke backbone model, and rendering the brushstroke backbone model with a preset ink material when calling the target geometric nodes, thereby obtaining ink brushstrokes. This allows ink brushstrokes to be generated from the brushstroke backbone model converted from the target curve, thus avoiding the situation where the brushstroke backbone model needs to be manually created by the user, reducing the modeling difficulty. Furthermore, the method allows configuring and calling the target geometric nodes associated with the brushstroke backbone model, determining the display style of the preset ink material, and rendering the brushstroke backbone model with the preset ink material, thereby obtaining ink brushstrokes with an ink-wash style display effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of game technology, specifically to a method for processing ink brushstrokes, a device for processing ink brushstrokes, a computer-readable storage medium, an electronic device, and a computer program product. Background Technology

[0002] In game projects that primarily employ the ink-wash painting style, artists often need to manually draw different ink-wash brushstrokes according to business requirements in order to create virtual game scene models using these brushstrokes. However, drawing ink-wash brushstrokes by hand is difficult and time-consuming, resulting in low efficiency in both ink-wash brushstroke production and the creation of virtual game scene models, thus impacting the overall project efficiency. Summary of the Invention

[0003] This application provides a method for processing ink brushstrokes, an apparatus for processing ink brushstrokes, a computer-readable storage medium, an electronic device, and a computer program product. By generating ink brushstrokes through curves and geometric nodes, the generation difficulty of ink brushstrokes is reduced, thereby improving the production efficiency of ink brushstrokes and game virtual scene models, and thus enhancing the efficiency of game projects.

[0004] On one hand, embodiments of this application provide a method for processing ink brushstrokes, the method comprising: Obtain the target curve; The target curve is transformed into a three-dimensional model to obtain the brushstroke backbone model; Configure target geometric nodes associated with the brushstroke backbone model, wherein the target geometric nodes are used to determine the display style of the preset ink material in the brushstroke backbone model; When the target geometry node is invoked, the brushstroke backbone model is rendered using the preset ink wash material to obtain the ink wash brushstroke.

[0005] On the other hand, embodiments of this application provide an apparatus for processing ink brushstrokes, the apparatus comprising: The curve acquisition module is used to acquire the target curve; The curve conversion module is used to perform three-dimensional model conversion processing on the target curve to obtain the brushstroke backbone model; The model configuration module is used to configure the target geometric nodes associated with the brushstroke backbone model, wherein the target geometric nodes are used to determine the display style of the preset ink material in the brushstroke backbone model; The rendering module is used to render the brushstroke backbone model using the preset ink wash material when the target geometric node is invoked, thereby obtaining the ink wash brushstroke.

[0006] On the other hand, embodiments of this application provide a computer-readable storage medium storing a computer program adapted for loading by a processor to execute the ink brush stroke processing method as described in any of the above embodiments.

[0007] On the other hand, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores a computer program, and the processor executes the ink brush stroke processing method as described in any of the above embodiments by calling the computer program stored in the memory.

[0008] On the other hand, embodiments of this application provide a computer program product, including computer instructions, which, when executed by a processor, implement the ink brush stroke processing method as described in any of the above embodiments.

[0009] The ink brushstroke processing method, apparatus, computer-readable storage medium, electronic device, and computer program product provided in this application can acquire a target curve, perform 3D model conversion processing on the target curve to obtain a brushstroke backbone model, configure target geometric nodes associated with the brushstroke backbone model, and, when calling the target geometric nodes, render the brushstroke backbone model through a preset ink material to obtain ink brushstrokes. This allows ink brushstrokes to be generated from the brushstroke backbone model converted from the target curve, thereby avoiding the need for the brushstroke backbone model to be entirely manually created by the user and reducing the modeling difficulty. Furthermore, the target geometric nodes associated with the brushstroke backbone model can be configured and called, the display style of the preset ink material can be determined, and the brushstroke backbone model can be rendered through the preset ink material to obtain ink brushstrokes with an ink-wash style display effect, thus realizing the generation of ink brushstrokes. Attached Figure Description

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

[0011] Figure 1 This is a flowchart illustrating the method for processing ink brushstrokes provided in an embodiment of this application.

[0012] Figure 2 This is a schematic diagram of the first target curve in some embodiments of this application.

[0013] Figure 3 This is a schematic diagram of the second target curve in some embodiments of this application.

[0014] Figure 4 This is a schematic diagram of a combination curve of the first target curve and the second target curve in some embodiments of this application.

[0015] Figure 5 This is a schematic diagram of the brushstroke backbone model in some embodiments of this application.

[0016] Figure 6 This is a flowchart illustrating the method for processing ink brushstrokes provided in an embodiment of this application.

[0017] Figure 7 This is a flowchart illustrating the method for processing ink brushstrokes provided in an embodiment of this application.

[0018] Figure 8 This is a flowchart illustrating the method for processing ink brushstrokes provided in an embodiment of this application.

[0019] Figure 9 This is a flowchart illustrating the method for processing ink brushstrokes provided in an embodiment of this application.

[0020] Figure 10 This is a schematic diagram of the adjustment control in some embodiments of this application.

[0021] Figure 11 This is a schematic diagram illustrating application scenarios in some embodiments of this application.

[0022] Figure 12 This is a schematic diagram illustrating application scenarios in some embodiments of this application.

[0023] Figure 13 This is a schematic diagram illustrating application scenarios in some embodiments of this application.

[0024] Figure 14 This is a schematic diagram illustrating application scenarios in some embodiments of this application.

[0025] Figure 15 This is a schematic diagram illustrating application scenarios in some embodiments of this application.

[0026] Figure 16 This is a schematic diagram illustrating application scenarios in some embodiments of this application.

[0027] Figure 17 This is a schematic diagram of a brushstroke model in some embodiments of this application.

[0028] Figure 18 This is a schematic diagram of the structure of the ink brush stroke processing device provided in the embodiments of this application.

[0029] Figure 19 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

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

[0031] This application provides a method for processing ink strokes, a device for processing ink strokes, a computer-readable storage medium, an electronic device, and a computer program product. Specifically, the method for processing ink strokes in this application can be executed by an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, smart TV, wearable smart device, smart vehicle terminal, etc. The terminal can also include a client, which can be an application client, browser client, instant messaging client, or mini-program, etc. The server can be an independent physical server, a server cluster composed of multiple physical servers, or a distributed system. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0032] For example, when this ink brushstroke processing method is applied to a terminal device, the terminal device may include a display screen and a processor. The display screen is used to present a graphical user interface (GUI) and receive instructions generated by the user interacting with the GUI. The processor is used to store applications, generate the GUI, respond to instructions, and control the display of the GUI on the display screen. When the user operates the GUI through the display screen, the GUI can control the local content of the terminal device in response to the received operation instructions. The terminal device can provide the GUI to the user in various ways, such as rendering it on the terminal device's display screen or presenting the GUI through holographic projection.

[0033] For example, when the ink brushstroke processing method runs on a server, it can be implemented and executed based on a cloud system. The cloud system includes servers and client devices. The application's runtime and the graphical user interface (GUI) presentation are separate. The storage and execution of the ink brushstroke processing method are completed on the server. The GUI presentation, however, is completed on the client. The client is primarily used for data reception, transmission, and GUI presentation. For example, the client can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, PDA, personal digital assistant, or head-mounted display. However, the terminal device performing data processing is the cloud server. During gameplay, the user operates the client to send commands to the server. The server controls the game's operation based on these commands, encodes and compresses the GUI data, returns it to the client via the network, and finally, the client decodes and outputs the GUI.

[0034] It should be noted that, in this embodiment, the execution entity of the ink brush stroke processing method can be a terminal device or a server. The terminal device can be a local terminal device or a client device in the aforementioned cloud system. This embodiment does not limit the type of execution entity.

[0035] It should also be noted that the triggering operations mentioned in the subsequent detailed description of the ink pen stroke processing method provided in the embodiments of this application can all be regarded as triggering operations performed by the player through a finger or by controlling a medium such as a mouse, keyboard, or stylus. The specific medium used can be determined according to the type of electronic device. For example, when the electronic device is a touch screen device such as a mobile phone or tablet, the player can operate on the touch screen using any suitable object or accessory such as a finger or stylus. When the terminal device is a non-touch screen terminal device such as a desktop computer or laptop, the player can operate using an external device such as a mouse or keyboard.

[0036] The technical solution of this application will be described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0037] In game projects that primarily feature ink painting or traditional Chinese style, artists need to create virtual models in an ink painting style (hereinafter referred to as ink painting models). In traditional production methods, artists typically abstract and generalize ink painting brushstrokes in various ways to create different ink painting brushstrokes. These brushstrokes can then be used as texture maps for the models to give them an ink painting effect, thus completing the creation of virtual models in an ink painting style.

[0038] More specifically, the common method for creating ink wash brushstrokes in game projects is for artists to perform modeling and UV unwrapping operations in model editing software (such as 3ds Max), then manually draw ink wash textures in 3D (3-Dimensional) drawing software (such as Photoshop), then paste the created ink wash textures into the pre-made 3D model, and then continuously adjust the model and texture effects until the desired effect is achieved, finally obtaining the ink wash brushstrokes.

[0039] Understandably, the creation of this type of ink painting model is quite complex and tedious. To ensure the appropriate display effect of the ink brushstrokes, artists need to spend a significant amount of time and effort on various stages, including model creation, modification, topology adjustment, UV unwrapping, texture painting, and texture modification. This results in a substantial time commitment for creating the ink brushstrokes. Furthermore, in game projects primarily featuring ink painting or traditional Chinese style, artists may need to perform the ink brushstroke creation process multiple times, leading to lower project efficiency.

[0040] For the above explanation, please refer to Figure 1 , Figure 1 This is a flowchart illustrating a method for processing ink brushstrokes according to an embodiment of this application. It should be noted that the steps shown may be executed in a logical order different from that shown in the flowchart. The method for processing ink brushstrokes may include the following steps: 110: Obtain the target curve; 120: Perform 3D model conversion on the target curve to obtain the brushstroke backbone model; 130: Configure the target geometry node associated with the brushstroke backbone model, wherein the target geometry node is used to determine the display style of the preset ink material in the brushstroke backbone model; 140: When the target geometry node is invoked, the brushstroke backbone model is rendered using the preset ink wash material to obtain the ink wash brushstroke.

[0041] Specifically, in the embodiments provided in this application, the electronic device can convert the target curve into a three-dimensional model upon obtaining it, and use the converted three-dimensional model as the brushstroke backbone model. Furthermore, the electronic device can configure target geometric nodes associated with the brushstroke backbone model to determine the display style of the preset ink wash material in the brushstroke backbone model. After configuring the target geometric nodes, the target geometric nodes can be invoked to render the brushstroke backbone model using the preset ink wash material, resulting in a brushstroke backbone model with an ink wash style, i.e., an ink wash brushstroke.

[0042] In some embodiments, the target curve can be understood as a geometric curve used to define the spatial shape and extended trajectory of ink brushstrokes.

[0043] In some embodiments, the target curve can be obtained by manual drawing, parameter editing, or external import.

[0044] In some embodiments, the target curves are three intersecting curves.

[0045] In some embodiments provided in this application, users can adjust the curve path, curve position and other attributes of the target curve to change the direction, position, cross-section and other properties of the brush stroke backbone model.

[0046] In some embodiments, 3D model conversion processing refers to the process of converting a two-dimensional or one-dimensional target curve into a polygonal mesh model with three-dimensional dimensions such as length, width, and thickness.

[0047] In some embodiments, the brushstroke backbone model refers to the core three-dimensional carrier of ink brushstrokes, which is the basic grid structure that presents the main form of the brushstrokes (such as the direction of the brush tip and the overall thickness).

[0048] In some embodiments, geometry nodes refer to a set of rules for manipulating and generating geometry (such as meshes, curves, point clouds, etc.). By connecting different geometry nodes, a series of rules for manipulating and generating geometry (such as meshes, curves, point clouds, etc.) can be defined to create complex models, patterns, or animation effects.

[0049] In one example, a geometric node can be understood as a node-based procedural geometric editing tool built into the Blender modeling software. In other words, it is an integrated geometric processing tool that integrates modeling, animation, special effects and rendering. It uses a modular node network to create, modify, combine, deform, animate and digitize 3D geometric data (such as vertices, edges, faces, curves, point clouds, volumes, instances, etc.) with non-destructive characteristics as its core feature.

[0050] More specifically, each geometric node in the embodiments of this application can be understood as an independent geometric processing function unit, which can read, write, modify, and create specific attributes in the model, such as model position, normal direction, UV direction, vertex color, curvature, distance field, etc. It can also provide custom attributes, such as random values, indexes, weights, user-defined parameters, etc., thereby enabling functions such as subdividing surfaces according to curvature, scaling instances according to distance, and assigning colors according to index.

[0051] For example, input nodes such as Geometry Input, Mesh Primitive / Curve Primitive, and Point Cloud can be used to obtain existing models, basic geometric shapes, or custom data within the scene as initial geometry. Then, through geometry nodes such as Transform, Extrude, Boolean operations, Subdivide, Instance on Points, and SimulationNodes, the initial geometry can be edited, deformed, combined, instantiated, or dynamically adjusted. Complex logic can also be encapsulated through node groups composed of multiple geometry nodes to achieve modular reuse. Finally, the processed initial geometry is passed to the Blender scene, renderer, or other node systems, such as material nodes and animation nodes, through the GeometryOutput node, thereby realizing the rendering and generation of 3D models. In addition, real-time preview is supported, or in other words, changes to node parameters can be reflected instantly in terms of geometric changes without recalculation. Furthermore, geometric nodes only perform single or superimposed processing on geometric data, while the original geometric data is always preserved. Node parameters or topology can be backtracked and modified at any time without damaging the underlying model.

[0052] In one example, the 3D model conversion process can be achieved through the curve to mesh geometry node in the Blender modeling software.

[0053] In some embodiments, a target geometric node refers to one or more geometric nodes that have the functions of reading curve information, controlling mesh shape, and associating material parameters, and can be used to achieve the ink wash effect of brushstrokes.

[0054] In some embodiments, the target geometry node can be implemented using geometry nodes in the Blender modeling software.

[0055] In some embodiments, the preset ink material refers to a predefined set of material data used to simulate the visual characteristics of ink painting (such as ink density, brushstroke texture, and smudging effect), such as material maps for simulating ink dots, material maps for ink droplets, etc.

[0056] It is understood that, in the embodiments provided in this application, the electronic device can obtain the target curve through an interactive device or data import, which can represent the spatial trajectory information of ink brushstrokes. Subsequently, the target curve is transformed into a three-dimensional model, such as through geometric nodes or mesh generation algorithms, converting the target curve into a brushstroke backbone model. Next, target geometric nodes are configured for the brushstroke backbone model, allowing the target geometric nodes to determine the display style of the preset ink material on the brushstroke backbone model through node logic (such as parameter mapping and texture overlay), such as the number of ink droplets, the distribution position of ink droplets, the distribution density of ink droplets, the distribution of ink color depth, and the edge effect of the brushstrokes. Finally, the target geometric nodes can be invoked to render the brushstroke backbone model using the preset ink material with the determined style, thereby obtaining a brushstroke backbone model with an ink-wash style display effect, that is, an ink brushstroke, thus completing the generation of the ink brushstroke.

[0057] Thus, in the embodiments provided in this application, a target curve can be obtained, and a 3D model conversion process can be performed on the target curve to obtain a brushstroke backbone model. Target geometric nodes associated with the brushstroke backbone model can be configured, and when the target geometric nodes are invoked, the brushstroke backbone model is rendered using a preset ink wash material to obtain ink wash brushstrokes. This allows ink wash brushstrokes to be generated from the brushstroke backbone model converted from the target curve, thereby avoiding the need for the brushstroke backbone model to be entirely manually created by the user, reducing the modeling difficulty. Furthermore, the target geometric nodes associated with the brushstroke backbone model can be configured and invoked, the display style of the preset ink wash material can be determined, and the brushstroke backbone model can be rendered using the preset ink wash material to obtain ink wash brushstrokes with an ink wash style display effect, thereby realizing the generation of ink wash brushstrokes.

[0058] In some embodiments provided in this application, step 120 includes: Configure the first geometric node associated with the target curve so that the first geometric node converts the target curve into a three-dimensional model, resulting in the brushstroke backbone model.

[0059] Specifically, in this embodiment of the application, the electronic device can be configured with a first geometric node associated with the target curve, so that the first geometric node can convert the target curve into a three-dimensional model, thereby obtaining a brushstroke backbone model converted from the target curve.

[0060] In some embodiments, the first geometric node is a combination of one or more geometric nodes that have the function of converting curves to three-dimensional models, and has functions such as reading curve data, generating mesh structures, and UV construction.

[0061] In one example, the first geometry node is implemented using the curve to mesh geometry node in the Blender modeling software.

[0062] Thus, in this embodiment of the application, a first geometric node associated with the target curve can be configured so that the first geometric node converts the target curve into a three-dimensional model, thereby obtaining the brushstroke backbone model, thereby realizing the generation of the brushstroke backbone model.

[0063] In some embodiments of this application, the target curve includes a first target curve and a second target curve. The first target curve is used to determine the direction of the brushstroke backbone model, and the second target curve is used to determine the cross-section of the brushstroke backbone model.

[0064] Specifically, in some embodiments provided in this application, the target curve may consist of two curves, namely, a first target curve for determining the direction of the brushstroke backbone model and a second target curve for determining the cross-section of the brushstroke backbone model.

[0065] To more clearly illustrate the first target curve, the second target curve, and the brushstroke backbone model generated from the first target curve and the second target curve in the embodiments of this application, please refer to [link to relevant documentation]. Figure 2-5 , Figure 2 This is a schematic diagram of the first target curve in some embodiments of this application. Figure 3 This is a schematic diagram of the second target curve in some embodiments of this application. Figure 4 This is a schematic diagram of a combined curve of the first target curve and the second target curve in certain embodiments of this application. Figure 5 This is a schematic diagram of the brushstroke backbone model in some embodiments of this application. Specifically, in some embodiments provided in this application, users can generate brushstroke backbone models through drawing operations or parameter input, etc. Figure 2 and 3 The first and second target curves shown are then arranged as follows through parameter adjustments or expansion operations: Figure 4 The curve combination shown, and finally the curves as shown... Figure 4 The curve combination shown is converted to as follows Figure 5 The 3D model shown (i.e., the brushstroke backbone model) is as follows: Figure 4 The curve combination shown is associated with the first geometric node so that the first geometric node will Figure 4 The curve combination shown is converted to as follows Figure 5 The cross-shaped 3D model shown.

[0066] It is understandable that, such as Figure 5 The cross-shaped 3D model shown avoids looking flimsy from other angles and balances performance and aesthetics.

[0067] It is also understandable that, such as Figure 3-5 As shown, Figure 3 The first target curve shown can be used to determine Figure 5 The direction of the main brushstroke model shown. Figure 4 The second target curve shown can be used to determine Figure 5 The cross-section of the three-dimensional model shown. In some embodiments provided in this application, the user can adjust the curve path, curve position and other attributes of the first target curve to change the direction and position of the brush stroke backbone model, or adjust the curve path, curve position and other attributes of the second target curve to change the cross-sectional style of the brush stroke backbone model.

[0068] Thus, in this embodiment of the application, the target curve may include a first target curve for determining the direction of the brushstroke backbone model and a second target curve for determining the cross-section of the brushstroke backbone model. This ensures that the brushstroke backbone model can achieve a more realistic ink brush effect based on the setting of the direction and cross-section, thereby ensuring the display effect of the ink brushstroke.

[0069] Please see Figure 6 In some embodiments provided in this application, step 130 includes: 131: Configure the target geometric nodes according to the position and direction information of the target curve, so that the target geometric nodes can set the preset ink material in the brush stroke backbone model according to the position and direction information.

[0070] Specifically, in the creation of ink brushstrokes, if only general material configuration methods are relied upon, the preset ink materials are difficult to accurately match the shape of the brushstroke backbone model. Key visual features such as the dryness of ink, the flying white effect, and the position of ink dots cannot be dynamically adjusted according to the shape information such as the direction of the brushstroke and the start and end points, resulting in a stiff final effect that lacks realism.

[0071] Based on this, in the embodiments provided in this application, the electronic device can extract the position information (such as starting coordinates and path point coordinates) and direction information (such as the tangent direction of each path point) of the target curve after acquiring the target curve, and configure this information as the input parameters of the target geometric node, so that the target geometric node can set the ink material in the brush stroke backbone model through the rules and strategies inside the node. For example, the initial attachment area of ​​the ink dot is defined according to the curve starting position parameter, and the extension direction of the flying white texture is controlled according to the curve tangent direction parameter, thereby completing the bonding of the preset ink material with the brush stroke backbone model.

[0072] Thus, in this embodiment, the target geometric node can be configured according to the position and direction information of the target curve, so that the target geometric node can set a preset ink material in the brushstroke backbone model according to the position and direction information. By using the position and direction information of the curve, the setting method of the ink material in the brushstroke backbone model can be adapted to the brushstroke backbone model to a certain extent, so that the ink brushstroke can present a more natural effect that is closer to the real ink painting creation.

[0073] Please see Figure 7 In some embodiments provided in this application, the target geometric node includes a second geometric node and a third geometric node, and the preset ink material includes an ink dot material and a main body material. Therefore, step 131 includes: 1311: Configure the second geometric node according to the position information so that the second geometric node sets the ink dot material in the stroke backbone model according to the position information, wherein the second geometric node is used to determine the display style of the ink dot material in the stroke backbone model; 1312: Configure the third geometric node according to the direction information so that the second geometric node sets the main material in the stroke backbone model according to the direction information. The third geometric node is used to determine the display style of the main material in the stroke backbone model.

[0074] Specifically, configuring ink painting materials through a single geometric node may lead to a disconnect between details and the overall composition. For example, ink dots, as a hallmark detail of ink painting, need to be precisely attached to specific locations on the brushstroke (such as the starting point or random splash areas). If the ink dots are not controlled by positional information, the distribution of ink dots will be chaotic and mismatched with the shape of the brushstroke. On the other hand, the texture direction of the main body of the brushstroke (such as the direction of cracks in dry brushstrokes or the extension trend of dry brushstrokes) needs to conform to the drawing direction of the curve. Without directional guidance, the texture of the main body will be stiff and violate the visual rules of natural ink painting.

[0075] Based on this, in some embodiments provided in this application, the ink dot material and the main body material can be set in the brush stroke backbone model through the second geometric node corresponding to the ink dot material and the third geometric node corresponding to the backbone material.

[0076] In some embodiments, for the second geometric node, the location information such as the starting point and key inflection points of the curve is first read through the node to locate the area suitable for generating ink dots; then, the specific display style of the ink dot material is determined through the parameter module built into the node (such as the number, size, dispersion, and rotation angle of ink dots); finally, the ink dot material is accurately projected onto the target position of the brush stroke main model through node logic such as "instantiation" and "material attachment".

[0077] In some embodiments, for the third geometric node, the program texture direction of the main material (such as the gradient direction of GradientTexture and the noise distribution trend of NoiseTexture) is adjusted according to vector data such as the extension direction and tangent angle of the target curve, so that the texture is consistent with the curve direction. At the same time, combined with preset parameters such as "dryness" and "whitening intensity" in the node, the main material presents a texture that conforms to the laws of natural ink painting.

[0078] In some embodiments, the second geometric node is responsible for adjusting the ink dot material based on position information, including functions such as ink dot positioning and style parameter setting.

[0079] In some embodiments, the third geometric node can be configured with the main material based on the orientation information, and is responsible for controlling the direction of the main texture and the presentation of the texture.

[0080] In one example, the second geometric node is the Distribute Points onFaces geometric node in the Blender modeling software.

[0081] In some embodiments, the ink dot material refers to the material used to present local details such as "ink splashes" or "initial ink stains," which can be placed at specific locations on the brushstroke model to enhance the realism of the ink brushstrokes.

[0082] In some embodiments, the main material is the core material of the main form of ink brushstrokes, which can determine the overall visual characteristics such as the thickness, dryness, and dry brushstrokes.

[0083] In some embodiments, location information refers to coordinate data in three-dimensional space, including spatial location parameters such as curve start point, key inflection point, and endpoint, which can determine the distribution location of ink dot material.

[0084] In some embodiments, directional information refers to vector data such as the extension angle and direction of the target curve, which can reflect the drawing trend of the brushstroke. For example, UV direction information can determine the extension direction of the texture of the main material.

[0085] Thus, in this embodiment, a second geometric node can be configured according to position information, so that the second geometric node sets ink dot material in the brush stroke backbone model according to the position information, and a third geometric node can be configured according to direction information, so that the second geometric node sets the main material in the brush stroke backbone model according to the direction information. This allows the ink dot material to be adjusted based on position information, so that the ink dots can be accurately attached to reasonable positions such as the starting point of the brush stroke and random splash areas, avoiding messy ink dot distribution and improving the realism of the ink brush stroke. Furthermore, the texture direction of the main material can be guided according to the direction information, so that the texture details such as dry cracks and flying white marks are highly consistent with the curve drawing direction, thereby further enhancing the realism of the ink brush stroke.

[0086] Please see Figure 8 In some embodiments provided in this application, the location information includes starting point location information and preset location information; the ink dot material includes a first ink dot material and a second ink dot material; the second geometric node includes a first child node and a second child node; and therefore, step 1311 includes: 13111: Configure the first child node according to the starting position information, so that the first child node sets the first ink dot material in the brush stroke backbone model according to the starting position information, wherein the first child node determines the display style of the first ink dot material; 13112: Configure the second child node according to the preset position information so that the second child node sets the second ink dot material in the brush stroke backbone model according to the preset position information, wherein the second child node determines the display style of the second ink dot material.

[0087] Specifically, real ink painting (such as ink wash paintings and brushstrokes) exhibits a "heavy start and light finish" characteristic, characterized by "heavy ink stains" at the beginning and "light ink dots" in the middle. Therefore, if the same ink dot material is used in different locations of the brushstroke model, it may violate the characteristic of "heavy start and light finish," resulting in unrealistic ink wash brushstrokes.

[0088] Based on this, in this embodiment, the electronic device can configure the starting point position information of the target curve as the input of the first child node, so that the first child node attaches the first ink dot material to the starting area of ​​the brushstroke backbone model, and sets the display style of the first ink dot material, such as size and rotation angle, through preset or specified node parameters. Furthermore, the electronic device can configure the preset position information of the target curve as the input of the second child node, so that the second child node distributes the second ink dot material on the brushstroke backbone, and sets the display style of the second ink dot material (such as quantity, dispersion range, etc.) through preset or specified node parameters, which can be adjusted through independent parameters. Finally, the first ink dot material, the second ink dot material, and the brushstroke backbone model are integrated to form a layered and detailed effect.

[0089] In some embodiments, the starting point position information is the spatial coordinate parameter of the starting point for drawing the target curve, which can be used as the positioning basis for the first ink dot material when simulating the "starting stroke" ink stain through the first ink dot material.

[0090] In some embodiments, the preset position information refers to a set of position coordinates that are pre-set according to the visual requirements of ink brushstrokes and distributed in the non-starting area of ​​the main body of the brushstroke. It can be used as the positioning basis of the second ink dot material when simulating "ink dots splashing during brushstrokes" with the second ink dot material.

[0091] In some embodiments, the first ink dot material is an ink dot material that can adapt to the starting position of the curve, used to simulate the effect of "heavy ink at the beginning of the stroke" with a large area and dark color.

[0092] In some embodiments, the second ink dot material is an ink dot material adapted to preset position information, used to simulate the "ink splashing" effect of small area and scattered distribution.

[0093] In some embodiments, the first child node can receive the starting point position information and set the display style of the first ink dot material, and has functions such as position positioning, size scaling, and density control.

[0094] In some embodiments, the second child node can receive preset position information and set the display style of the second ink dot material, and has parameter configuration functions such as random distribution, quantity adjustment, and dispersion adjustment.

[0095] In one example, both the first and second child nodes are implemented using the Distribute Points on Faces geometric node in the Blender modeling software.

[0096] In some embodiments, the first child node may have multiple first ink dot materials set at the starting position of the brush stroke backbone model in a random distribution.

[0097] In some embodiments, the first child node can set the distribution density of the first ink dot material at the starting position of the brush stroke backbone model.

[0098] In some embodiments, the second child node may have multiple second ink dot materials set at a specified location (determined by preset location information) of the brush stroke backbone model in a randomly distributed manner.

[0099] In some embodiments, the second child node can set the distribution density of the second ink dot material at a specified location on the brushstroke backbone model (determined by preset position information).

[0100] Thus, in this embodiment, a first child node can be configured according to the starting point position information, so that the first child node sets the first ink dot material in the brush stroke backbone model according to the starting point position information. A second child node can be configured according to the preset position information, so that the second child node sets the second ink dot material in the brush stroke backbone model according to the preset position information. This allows the first ink dot material to be attached to the starting point area. The size, distribution density, and other display styles of the first ink dot material are determined through the first child node. The second ink dot material can be distributed on the brush stroke backbone, and the display style of the second ink dot material is set through the second child node. This achieves the fusion of the first ink dot material, the second ink dot material, and the brush stroke backbone model, forming a layered and detailed effect.

[0101] Please see Figure 9 In some embodiments of this application, step 1312 includes: 13121: Generate the main material based on the orientation information and preset program textures; 13122: Configure the third geometry node according to the main material so that the third geometry node sets the main material in the brush stroke backbone model.

[0102] Specifically, in traditional ink wash brushstroke generation schemes, the main material is mostly a fixed texture, making it difficult to link with the positional information of the curve (e.g., achieving a high density at the beginning of a stroke and a low density at the end is difficult). Furthermore, fixed textures cannot adjust their direction according to the curve, easily resulting in a stiff feeling of "texture disconnected from brushstrokes" (e.g., the direction of the dry brush strokes contradicts the direction of the brushstroke). In addition, manually drawing main material textures that fit different brushstrokes is extremely time-consuming, and modifications require redrawing, leading to low efficiency.

[0103] Based on this, in some embodiments provided in this application, a main material adapted to the brushstroke features can be generated according to the curve position information and the preset program texture, and then the material can be configured into the third geometric node, so that the third geometric node can accurately attach the material to the brushstroke backbone model according to the direction information, thereby ensuring the natural fit between the main material and the brushstroke backbone model.

[0104] In some embodiments, directional information can be understood as the extension trend data of the target curve in three-dimensional space, including vector information such as the tangent direction, curvature change, and overall direction of each point on the curve, which determines the extension angle and connection logic of the main material texture.

[0105] In some embodiments, the third geometric node can be responsible for the parameter control and model attachment of the main material, and has functions such as material binding, texture direction alignment, and effect parameter adjustment.

[0106] In some embodiments, the preset program texture refers to a predefined, parameterizable digital texture template that can simulate the natural textures of ink painting, such as dryness, white strokes, and trailing.

[0107] In one example, the preset procedural textures include at least gradient textures and noise textures. Gradient textures can be understood as a basic procedural texture type that generates continuous color / numerical transitions and regular transitions based on spatial coordinate interpolation algorithms. They provide regularized color transitions, brightness distributions, and blending weights for complex textures. Noise textures, on the other hand, can be understood as irregular, naturally randomized texture data generated based on fractal mathematics and gradient noise algorithms (Perlin / Simplex / Voronoi, etc.). They are core procedural textures used to simulate natural textures, organic forms, and random distribution effects. Unlike the regularity of gradient textures, noise textures endow materials with natural randomness, multi-layered details, and organic textures, thus reproducing texture effects from the real world.

[0108] Furthermore, in the process of gradient texture processing, electronic devices can take texture coordinates (such as UV coordinates, generation coordinates, object coordinates, world coordinates, etc.) as input and use mathematical algorithms such as linear interpolation, spherical interpolation, and exponential interpolation to calculate the color / grayscale value of each sampling point on the brush stroke backbone model, thereby achieving a continuous transition from the starting point to the ending point.

[0109] Conversely, in the process of processing noise textures, electronic devices can generate corresponding textures through preset noise algorithms. For example, Perlin Noise or Simplex Noise algorithms can be used to generate soft, continuous random textures to simulate soft and natural effects such as clouds, mountains, and wood grain. As another example, Voronoi Noise algorithms can be used to generate blocky or granular random textures to simulate blocky / granular effects such as marble, cells, gravel, and rust.

[0110] In some embodiments, the electronic device can invoke a preset program texture and generate a main material based on the direction information of the target curve (such as UV direction information). This allows the main material to reduce the intensity of noise texture at the beginning of the stroke (high-density area) to present a sense of weight, increase the noise intensity in the middle of the stroke (dry area) to simulate dry brush, and combine this with gradient textures to match the density variations of the main material with those of real ink brushstrokes. Furthermore, the electronic device can import the generated main material into a third geometric node to bind the main material to the brushstroke backbone model. This allows the third geometric node to adjust the display style of the material texture through node parameters, such as adjusting details like dry brush and trailing effects of the main material within the brushstroke backbone model.

[0111] Thus, in this embodiment, the main material can be generated based on the direction information and the preset program texture, and the third geometric node can be configured based on the main material, so that the third geometric node sets the main material in the brush stroke backbone model, so that the main material can be generated based on the program texture and direction information, avoiding the situation where the main material needs to be manufactured by pure manual means, and ensuring the matching between the main material and the brush ink backbone model, so that the ink brush strokes can present a natural display effect.

[0112] In some embodiments provided in this application, the method for processing ink brushstrokes further includes: Input the target curve into the fourth geometry node so that the fourth geometry node stores the curve position information.

[0113] Therefore, step 131 includes: Based on the position and orientation information stored in the fourth geometric node, the target geometric node is configured so that the target geometric node sets a preset ink material in the brush stroke backbone model according to the position and orientation information.

[0114] Specifically, if position and direction information is directly extracted from the target curve for use by the target geometry nodes, this information is easily lost or corrupted during curve editing. This can lead to details such as ink dots becoming disconnected from the brushstroke position, or the direction of the main material differing from the brushstroke model. Furthermore, when the target geometry node calls position information multiple times, the information needs to be extracted repeatedly, and parallel calls from multiple nodes can easily cause data conflicts. Additionally, when the target curve is modified, the position information cannot be synchronized to the target geometry nodes in real time and must be manually extracted again.

[0115] Based on this, in some embodiments provided in this application, a fourth geometric node can be set to store the position and direction information of the target curve. That is, the position and direction information of the target curve are stored in the fourth geometric node, and then the target geometric node reads the stored position and direction information from the fourth geometric node to complete the ink material configuration.

[0116] In some embodiments, the fourth geometric node can extract and cache the position information and location information of the target curve, and has data update and read functions to provide stable basic data support for other nodes.

[0117] In some embodiments, the fourth geometry node can be implemented through two geometry nodes in Blender: Spline Parameter and StoneNamed Attribute. These two geometry nodes can construct the U and V directions of the target curve.

[0118] In some embodiments, the Stone Named Attribute may store the position of the Spline Parameter in the X direction.

[0119] In some embodiments, the Stone Named Attribute can store the results on the curve as an attribute with a specified name. It can store the beginning and end information of the spline parameter curve and name it A. Then, the target geometric nodes such as the third geometric node can call A through the attribute node, thereby realizing the gradient overlay of the main material, etc.

[0120] In some embodiments, the U direction and V direction, namely the UV direction, are constructed respectively.

[0121] In some embodiments, after the electronic device acquires the target curve (such as a curve drawn by the user), it can input the curve's position and direction information into the fourth geometric node. The fourth geometric node can store the position and direction information. Furthermore, when configuring the target geometric node, the electronic device can enable the target geometric node to read the position and direction information stored in the fourth geometric node, thereby setting a preset ink material in the brushstroke backbone model.

[0122] In some embodiments, when the position and orientation information of the target curve changes, the fourth geometric node can update the stored position and orientation information. Correspondingly, the target geometric node synchronously calls the updated position and orientation information to readjust the position and orientation of the ink material.

[0123] Thus, in this embodiment, the target curve can be input to the fourth geometric node so that the fourth geometric node stores the curve position information. Based on the position and direction information stored in the fourth geometric node, the target geometric node is configured so that the target geometric node sets a preset ink material in the brush stroke backbone model according to the position and direction information. This reduces the probability of position and direction information being lost or disordered, and ensures that the target geometric node can reliably obtain position and direction information through the fourth geometric node.

[0124] In some embodiments provided in this application, the method for processing ink brushstrokes further includes: Adjust the display style of the ink brushstrokes in response to adjustments made to the target curve or target geometric node.

[0125] Specifically, after the ink strokes are generated, users may want to modify their display style. If modifying the ink strokes requires re-executing the entire process of "drawing curves - converting models - configuring nodes," then for complex strokes, this repetitive operation is extremely time-consuming. Furthermore, this modification method is destructive, requiring the overwriting of existing curves or node configurations, making it impossible to revert to previous effects.

[0126] Based on this, in some embodiments provided in this application, the electronic device provides a convenient pen stroke adjustment function, so that after the user performs adjustment operation on the target curve (pen stroke shape core) or the target geometric node (material effect core), it can respond to the user's adjustment operation to adjust the display style of the pen stroke, without having to repeat the complete process of "drawing curve - converting model - configuring node".

[0127] In some embodiments, the adjustment operation includes parameter modification operations of the target geometric node, such as adjusting the number / size of ink dots, adjusting the dryness / whitening intensity of the main material, and changing the color depth.

[0128] In some embodiments, the adjustment operation includes dragging control points in the target curve to change the curve direction, stretching the endpoints of the target curve to adjust the length, modifying the curvature of the target curve to adjust the profile, etc.

[0129] Thus, in this embodiment of the application, the display style of the ink strokes can be adjusted in response to the adjustment operation of the target curve or the target geometric node, thereby realizing convenient adjustment of the ink strokes.

[0130] In some embodiments provided in this application, the method for processing ink brushstrokes further includes: Extract the node parameters of the target geometric nodes, where the node parameters are used to determine the display style of the preset ink wash material in the brushstroke backbone model.

[0131] Furthermore, the steps described above for adjusting the display style of the ink brushstrokes in response to adjustments to the target curve or target geometric nodes include: In response to an adjustment operation triggered by the adjustment controls of the ink brush stroke, the display style of the ink brush stroke is adjusted, wherein the adjustment controls include node parameters and sub-controls for adjusting the target curve.

[0132] Specifically, to further reduce the difficulty for users to adjust (or modify) ink strokes, in some embodiments provided in this application, the electronic device can extract node parameters from the target geometric node, and then integrate the extracted node parameters with the sub-controls used for the target curve into a unified adjustment control, so that users can trigger the adjustment operation of ink strokes through the adjustment control.

[0133] In some embodiments, node parameters refer to specific numerical parameters in the target geometric node used to define the ink wash display style, which may include brush stroke thickness, dryness, fly white intensity, number / size / position of ink dots, color value, etc.

[0134] In some embodiments, adjustment controls refer to visual interactive elements integrated into the authoring software interface, serving as the direct entry point for users to trigger adjustment operations.

[0135] In some embodiments, a sub-control refers to a control specifically designed for adjusting the target curve, which may include function buttons or sliders for curve stretching, bending, adding / subtracting points, etc., or include an interface jump button for adjusting to the drawing interface of the target curve.

[0136] To more clearly illustrate the node parameters, adjustment controls, and the process of adjusting the ink brush strokes using the adjustment controls in the embodiments of this application, please refer to [link to relevant documentation]. Figure 10-16 , Figure 10 This is a schematic diagram of the adjustment control in some embodiments of this application. Figure 11-16 This is a schematic diagram illustrating application scenarios in some embodiments of this application.

[0137] Specifically, such as Figure 10 As shown, Figure 10 The adjustment controls 200 shown include multiple controls for adjusting the target curve (i.e. Figure 10 The "main stroke" and "main stroke segment" in the text) and multiple node parameters (i.e. Figure 10 Multiple sub-controls (such as thickness, flyback, and main material) in the text.

[0138] In one example, by Figure 10 If the "thickness" is set to 0.48 and the "dryness" is set to 0, then the following result can be obtained: Figure 11 The ink wash brushstrokes shown on the left. (By...) Figure 10 If you set "coarseness" to 1 and "dryness" to 1, you will get something like this. Figure 11 The ink wash brushstrokes shown on the right. And, by... Figure 10 If the "thickness" is set to 0.48 and the "dryness" is set to 0, then the following result can be obtained: Figure 11 The ink wash brushstrokes shown on the left. By... Figure 10 If you set "coarseness" to 1 and "dryness" to 1, you will get something like this. Figure 11 The ink brushstrokes shown on the right.

[0139] In one example, by Figure 10 If the "thickness" is set to 0.48 and the "dryness" is set to 0, then the following result can be obtained: Figure 11 The ink wash brushstrokes shown on the left. (By...) Figure 10 If you set "coarseness" to 1 and "dryness" to 1, you will get something like this. Figure 11 The ink wash brushstrokes shown on the right. And, by... Figure 10 If the "thickness" is set to 0.48 and the "dryness" is set to 0, then the following result can be obtained: Figure 11 The ink wash brushstrokes shown on the left. By... Figure 10 If you set "coarseness" to 1 and "dryness" to 1, you will get something like this. Figure 11 The ink brushstrokes shown on the right.

[0140] In one example, by Figure 10 If the "flying white" value is set to 0.1, then the following result can be obtained: Figure 12 The ink wash brushstrokes shown on the left. (By...) Figure 10 If the "flying white" value is set to 0.5, then the following result can be obtained: Figure 12 The ink wash brushstrokes shown on the right. Among them, according to... Figure 12 As can be seen from the two white dotted lines on the left and right sides, the dry brush effect of the ink strokes on the right is more obvious.

[0141] In one example, by Figure 10 If the "trailing" value is set to 0, then the following will be obtained: Figure 13The ink wash brushstrokes shown on the left. (By...) Figure 10 If the "trailing" setting is set to 1, then the following will be obtained: Figure 13 The ink wash brushstrokes shown on the right. Among them, according to... Figure 13 As can be seen from the two white dotted lines on the left and right sides, the trailing effect of the ink brushstrokes on the right is more obvious.

[0142] In one example, by Figure 10 Setting the "Depth" value to 0.1 will produce the following result: Figure 14 The ink wash brushstrokes shown on the left. (By...) Figure 10 Setting the "Depth" value to 1.02 will yield the following result: Figure 14 The ink wash brushstrokes shown on the right. Among them, according to... Figure 14 As can be seen from the two white dotted lines on the left and right sides, the ink brushstrokes on the right side have a more pronounced effect in terms of depth.

[0143] In one example, by Figure 10 If you set the "Number of Small Ink Dots" to 10, the "Small Ink Dot Size" to 0.21, and the "Small Ink Dot Dispersion" to 3, you can get the following result: Figure 15 The ink wash brushstrokes shown on the left. (By...) Figure 10 If the "Number of Small Ink Dots" is set to 8.36, the "Small Ink Dot Size" to 0.47, and the "Small Ink Dot Dispersion" to 0.29, then the following can be obtained: Figure 15 The ink wash brushstrokes shown on the right. Among them, according to... Figure 15 As can be seen from the two white dotted boxes on the left and right sides, the ink dots on the left side are fewer in number, larger in size, and more densely distributed.

[0144] In one example, by Figure 10 If the "Number of Ink Droplets" is set to 10, the "Ink Droplet Position" to 0.4, and the "Ink Droplet Size" to 0.78, then the following can be obtained: Figure 16 The ink wash brushstrokes shown on the left. (By...) Figure 10 By setting the "Number of Ink Droplets" to 0.42, the "Ink Droplet Position" to 0.29, and the "Ink Droplet Size" to 2.36, the following result can be obtained: Figure 16 The ink wash brushstrokes shown on the right. Among them, according to... Figure 16 As can be seen from the two white dotted boxes on the left and right sides, the ink droplets in the ink brushstrokes on the left are more obvious.

[0145] Thus, in this embodiment of the application, the node parameters of the target geometric node can be extracted, and then the display style of the ink brush stroke can be adjusted in response to the adjustment operation triggered by the adjustment control of the ink brush stroke, so that the user can quickly complete the adjustment of the ink brush stroke through the adjustment control.

[0146] To more clearly illustrate the process of generating ink brushstrokes in the embodiments of this application, please refer to... Figure 2-4 , Figure 10 , Figure 17 And the following exemplary description. Wherein, Figure 17 This is a schematic diagram of an ink painting model in some embodiments of this application.

[0147] First, create in Blender as follows Figure 4 The combined curve shown (i.e., the target curve) is composed of... Figure 2 The curved line segment shown and Figure 3 The cross-shaped line segments shown form a combined curve used to guide the model path and cross-section of the brushstroke backbone model.

[0148] Configure and in Blender Figure 4 The curve to mesh node (i.e., the first geometric node) associated with the combined curve is used to generate a cross-shaped model (i.e., a stroke backbone model) based on the configured curve.

[0149] Next, create and use two nodes (Spline Parameter and Stone Named Attribute, i.e., the fourth geometry node) in Blender, and read the position and direction information of the composite curve through the Spline Parameter and Stone Named Attribute nodes to obtain and store the U and V directions of the cross-shaped model, and use the Stone Named Attribute to store the starting position of the X direction of the Spline Parameter.

[0150] Next, in Blender, create and configure the first ink dot (i.e., the first ink dot material) with a randomly distributed style using the "Distribute Points on Faces" node (the first child node), and extract the parameters of this node for output. Figure 10 The panel shown (i.e., the adjustment controls) allows for subsequent secondary configuration of the display style of the initial ink dots.

[0151] Similarly, for the two types of ink dot materials (small ink dots and ink droplets, i.e., the second ink dot materials), corresponding Distribute Points on Faces nodes (second child nodes) are created in Blender. These nodes configure the position, size, dimensions, and other display styles of these two ink dot materials within the cross-shaped model, allowing for the generation of randomly scattered small ink dots and droplets at specified locations within the cross-shaped model during subsequent rendering. Furthermore, the parameters of the Distribute Points on Faces nodes corresponding to the small ink dot and ink droplet materials are extracted and output to... Figure 10 The panel shown (i.e., the adjustment controls) allows for convenient secondary configuration of the display styles of small ink dots and ink droplets.

[0152] By using attributes to read and store UV direction information, and combining procedural textures like GradientTexture and NoiseTexture, dynamic textures are created, thus completing the creation of the ink wash material map (i.e., the backbone material). Furthermore, after attaching the ink wash material map to a geometry node (the third geometry node), the adjustable parameters from that node are extracted for output. Figure 10 The panel shown (i.e., the adjustment controls) allows for subsequent secondary configuration of the display style of the ink-wash texture map.

[0153] Finally, the various geometric nodes are called and loaded to render the cross-shaped model using materials such as the initial ink dot, small ink dots, ink droplets, and ink wash texture maps, thus achieving the desired effect. Figure 17 The ink brushstrokes shown.

[0154] In addition, users can access such as Figure 10 The panel shown allows for secondary configuration of materials such as the initial ink dot, small ink dots, ink droplets, and ink wash texture, thereby changing... Figure 17 The effect of the ink brushstrokes shown.

[0155] In some embodiments, the user can achieve the desired effect by arranging multiple different ink brushstrokes. Figure 17 The ink painting model shown.

[0156] To facilitate better implementation of the ink brushstroke processing method of this application embodiment, this application embodiment also provides an ink brushstroke processing apparatus. Please refer to... Figure 18 , Figure 18 This is a schematic diagram of the structure of the ink brushstroke processing device provided in an embodiment of this application. The ink brushstroke processing device 300 may include: Curve acquisition module 310 is used to acquire the target curve; The curve conversion module 320 is used to perform three-dimensional model conversion processing on the target curve to obtain the brushstroke backbone model; The model configuration module 330 is used to configure the target geometric nodes associated with the brushstroke backbone model, wherein the target geometric nodes are used to determine the display style of the preset ink material in the brushstroke backbone model; The rendering module 340 is used to render the brushstroke backbone model using a preset ink wash material when the target geometry node is called, so as to obtain the ink wash brushstroke.

[0157] In some embodiments, the curve conversion module 320 is further configured to configure a first geometric node associated with the target curve so that the first geometric node converts the target curve into a three-dimensional model to obtain a brushstroke backbone model.

[0158] In some embodiments, the target curve includes a first target curve and a second target curve, wherein the first target curve is used to determine the direction of the brushstroke backbone model and the second target curve is used to determine the cross-section of the brushstroke backbone model.

[0159] In some embodiments, the model configuration module 330 is further configured to configure target geometric nodes according to the position and direction information of the target curve, so that the target geometric nodes can set a preset ink material in the brush stroke backbone model according to the position and direction information.

[0160] In some embodiments, the target geometric node includes a second geometric node and a third geometric node, the preset ink material includes an ink dot material and a main body material, and the model configuration module 330 is further configured to configure the second geometric node according to the position information so that the second geometric node sets the ink dot material in the brush stroke backbone model according to the position information, and configure the third geometric node according to the direction information so that the second geometric node sets the main body material in the brush stroke backbone model according to the direction information, wherein the second geometric node is used to determine the display style of the ink dot material in the brush stroke backbone model, and the third geometric node is used to determine the display style of the main body material in the brush stroke backbone model.

[0161] In some embodiments, the position information includes starting position information and preset position information, the ink dot material includes a first ink dot material and a second ink dot material, the second geometric node includes a first child node and a second child node, and the model configuration module 330 is further configured to configure the first child node according to the starting position information so that the first child node sets the first ink dot material in the stroke backbone model according to the starting position information, and configure the second child node according to the preset position information so that the second child node sets the second ink dot material in the stroke backbone model according to the preset position information, wherein the first child node determines the display style of the first ink dot material, and the second child node determines the display style of the second ink dot material.

[0162] In some embodiments, the model configuration module 330 is further configured to generate a main material based on the orientation information and a preset program texture, and to configure a third geometric node based on the main material, so that the third geometric node sets the main material in the brush stroke backbone model.

[0163] In some embodiments, the processing apparatus further includes a storage module. The storage module is also configured to input the target curve to the fourth geometric node, so that the fourth geometric node stores the curve position information. The model configuration module 330 is also configured to configure the target geometric node according to the position information and orientation information stored in the fourth geometric node, so that the target geometric node sets a preset ink material in the brush stroke backbone model according to the position information and orientation information.

[0164] In some embodiments, the processing apparatus further includes an adjustment module. The adjustment module is used to adjust the display style of the ink brushstrokes in response to an adjustment operation on the target curve or target geometric node.

[0165] In some embodiments, the processing apparatus further includes an extraction module. The extraction module is used to extract node parameters of the target geometric nodes, wherein the node parameters are used to determine the display style of the preset ink texture in the brushstroke backbone model. The adjustment module is also used to adjust the display style of the ink stroke in response to an adjustment operation triggered by an adjustment control of the ink stroke, wherein the adjustment control includes node parameters and sub-controls for adjusting the target curve.

[0166] Each unit in the aforementioned ink brushstroke processing device 300 can be implemented entirely or partially through software, hardware, or a combination thereof. Each unit can be embedded in or independent of the processor in the electronic device in hardware form, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each unit.

[0167] The ink pen stroke processing device 300 can be integrated into a terminal or server that has memory and a processor and thus computing power, or the ink pen stroke processing device 300 can be the terminal or server.

[0168] Optionally, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0169] Figure 19 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may be a terminal or a server. Figure 19As shown, the electronic device 400 includes a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 and the memory 402 are electrically connected. Those skilled in the art will understand that the structure shown in the figures does not constitute a limitation on the electronic device 400, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0170] The processor 401 is the control center of the electronic device 400. It connects various parts of the electronic device 400 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, it executes various functions of the electronic device 400 and processes data, thereby performing overall processing of the electronic device 400.

[0171] In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions: Obtain the target curve; The target curve is converted into a 3D model to obtain the brushstroke backbone model; Configure the target geometry node associated with the brushstroke backbone model, wherein the target geometry node is used to determine the display style of the preset ink material in the brushstroke backbone model; When the target geometry node is invoked, the brushstroke backbone model is rendered using a preset ink wash material to obtain the ink wash brushstroke.

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

[0173] Optional, such as Figure 19 As shown, the electronic device 400 also includes: a display screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407. Those skilled in the art will understand that... Figure 19 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

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

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

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

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

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

[0179] although Figure 19 As not shown in the diagram, the electronic device 400 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0180] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to an electronic device, and the computer program causes the electronic device to execute the corresponding processes in the ink pen stroke processing method of the embodiments of this application; for the sake of brevity, these will not be elaborated further here.

[0181] This application also provides a computer program product including computer instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the corresponding flow in the ink pen stroke processing method of the embodiments of this application. For simplicity, further details are omitted here.

[0182] This application also provides a computer program comprising computer instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the corresponding flow in the ink brush stroke processing method of this application; for brevity, this will not be elaborated further.

[0183] It should be understood that the processor in this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0184] It should be understood that the processor in this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0185] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0186] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0187] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0188] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0189] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0190] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0191] In addition, the functional units in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0192] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer or a server) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0193] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for processing ink wash brushstrokes, characterized in that, include: Obtain the target curve; The target curve is transformed into a three-dimensional model to obtain the brushstroke backbone model; Configure target geometric nodes associated with the brushstroke backbone model, wherein the target geometric nodes are used to determine the display style of the preset ink material in the brushstroke backbone model; When the target geometric node is invoked, the brushstroke backbone model is rendered using the preset ink wash material to obtain the ink wash brushstroke.

2. The method according to claim 1, characterized in that, The process of performing a three-dimensional model conversion on the target curve to obtain the brushstroke backbone model includes: Configure a first geometric node associated with the target curve so that the first geometric node converts the target curve into a three-dimensional model, thereby obtaining the brushstroke backbone model.

3. The method according to claim 1, characterized in that, The target curves include a first target curve and a second target curve. The first target curve is used to determine the direction of the brushstroke backbone model, and the second target curve is used to determine the cross-section of the brushstroke backbone model.

4. The method according to claim 1, characterized in that, The configuration of the target geometric nodes associated with the brushstroke backbone model includes: Configure the target geometric node according to the position and direction information of the target curve, so that the target geometric node sets the preset ink material in the brush stroke backbone model according to the position and direction information.

5. The method according to claim 4, characterized in that, The target geometric node includes a second geometric node and a third geometric node. The preset ink material includes an ink dot material and a main body material. The step of configuring the target geometric node according to the position and direction information of the target curve, so that the target geometric node sets the preset ink material in the brushstroke backbone model according to the position and direction information, includes: Configure the second geometric node according to the location information, so that the second geometric node sets the ink dot material in the brush stroke backbone model according to the location information, wherein the second geometric node is used to determine the display style of the ink dot material in the brush stroke backbone model; Configure the third geometric node according to the direction information, so that the second geometric node sets the main material in the brush stroke backbone model according to the direction information, wherein the third geometric node is used to determine the display style of the main material in the brush stroke backbone model.

6. The method according to claim 5, characterized in that, The position information includes starting position information and preset position information; the ink dot material includes a first ink dot material and a second ink dot material; the second geometric node includes a first child node and a second child node; configuring the second geometric node according to the position information, so that the second geometric node sets the ink dot material in the brush stroke backbone model according to the position information, includes: Configure the first child node according to the starting position information, so that the first child node sets the first ink dot material in the brush stroke backbone model according to the starting position information, wherein the first child node determines the display style of the first ink dot material; Configure the second child node according to the preset position information, so that the second child node sets the second ink dot material in the brush stroke backbone model according to the preset position information, wherein the second child node determines the display style of the second ink dot material.

7. The method according to claim 5, characterized in that, The step of configuring the third geometric node according to the direction information, so that the second geometric node sets the main material in the brushstroke backbone model according to the direction information, includes: The main material is generated based on the directional information and the preset program texture; Configure the third geometric node according to the main material so that the third geometric node sets the main material in the brush stroke backbone model.

8. The method according to claim 4, characterized in that, The method further includes: The target curve is input to the fourth geometric node so that the fourth geometric node stores the curve position information; The step of configuring the target geometric nodes according to the position and direction information of the target curve, so that the target geometric nodes set the preset ink material in the brushstroke backbone model according to the position and direction information, includes: Based on the position information and direction information stored in the fourth geometric node, the target geometric node is configured so that the target geometric node sets the preset ink material in the brushstroke backbone model according to the position information and direction information.

9. The method according to claim 1, characterized in that, The method further includes: In response to the adjustment operation on the target curve or the target geometric node, the display style of the ink brushstroke is adjusted.

10. The method according to claim 9, characterized in that, The method further includes: Extract the node parameters of the target geometric node, wherein the node parameters are used to determine the display style of the preset ink material in the brushstroke backbone model; The adjustment of the display style of the ink brushstroke in response to the adjustment operation on the target curve or the target geometric node includes: In response to the adjustment operation triggered by the adjustment control of the ink brush stroke, the display style of the ink brush stroke is adjusted, wherein the adjustment control includes the node parameters and a sub-control for adjusting the target curve.

11. A device for processing ink brushstrokes, characterized in that, The device includes: The curve acquisition module is used to acquire the target curve; The curve conversion module is used to perform three-dimensional model conversion processing on the target curve to obtain the brushstroke backbone model; The model configuration module is used to configure the target geometric nodes associated with the brushstroke backbone model, wherein the target geometric nodes are used to determine the display style of the preset ink material in the brushstroke backbone model; The rendering module is used to call the target geometric node to render the brushstroke backbone model through the preset ink wash material, thereby obtaining the ink wash brushstroke.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the ink brushstroke processing method according to any one of claims 1-10.

13. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing a computer program, and the processor executing the ink brush stroke processing method according to any one of claims 1-10 by calling the computer program stored in the memory.

14. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the ink brushstroke processing method according to any one of claims 1-10.