CN112734894B - Virtual hair drawing method and device, storage medium and electronic equipment - Google Patents

Virtual hair drawing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112734894B
CN112734894B CN202110099865.8A CN202110099865A CN112734894B CN 112734894 B CN112734894 B CN 112734894B CN 202110099865 A CN202110099865 A CN 202110099865A CN 112734894 B CN112734894 B CN 112734894B
Authority
CN
China
Prior art keywords
target
patch
shape
virtual hair
guide curve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110099865.8A
Other languages
Chinese (zh)
Other versions
CN112734894A (en
Inventor
史启星
陈栋梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110099865.8A priority Critical patent/CN112734894B/en
Publication of CN112734894A publication Critical patent/CN112734894A/en
Application granted granted Critical
Publication of CN112734894B publication Critical patent/CN112734894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Abstract

The invention discloses a virtual hair drawing method and device, a storage medium and electronic equipment. Wherein the method comprises the following steps: displaying a target surface patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair; in the case that the guide curve is adjusted from the first shape to the second shape, synchronously adjusting the displayed target panel from the first panel shape to the second panel shape, wherein the first panel shape corresponds to the guide curve of the first shape and the second panel shape corresponds to the guide curve of the second shape; when the drawing instruction is acquired, the target virtual hair is drawn according to the target patch of the second patch shape. The virtual hair drawing method and device solve the technical problem that virtual hair drawing efficiency is low.

Description

Virtual hair drawing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for drawing virtual hair, a storage medium, and an electronic device.
Background
In recent years, the quality requirements of users on virtual representations are increasing, so that artists need to pay more production time and production heart when producing various elements in the virtual representations.
Further, among the various virtual element productions, the challenge faced by virtual hair production may be referred to as one of the biggest, as if one were to represent more realistic virtual hair, one may need an artist to do the relevant drawing operations on each group of virtual hair, and even each hair, to ensure that virtual hair consisting of thousands of individual hairs may represent sufficient realism and agility.
However, in the prior art, aiming at the virtual hair production, it is common to directly operate points, lines and surfaces of hair pieces in DCC tools to adjust the shape of the virtual hair, and a skilled artist may accelerate drawing by means of a deformer or other tools. However, this too fine granularity drawing method is too dependent on the drawing capability and the degree of detail of the artist, and is prone to failure in drawing virtual hair due to error of the artist. Even if the personal factors of the artist are not considered, the drawing period corresponding to the drawing mode is too long and the efficiency is low. That is, the prior art has a technical problem that the drawing efficiency of virtual hair is low.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a virtual hair drawing method and device, a storage medium and electronic equipment, and aims to at least solve the technical problem of low virtual hair drawing efficiency.
According to an aspect of an embodiment of the present invention, there is provided a method for drawing virtual hair, including: displaying a target surface patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair; when the guide curve is adjusted from a first shape to a second shape, the displayed target panel is synchronously adjusted from a first panel shape to a second panel shape, wherein the first panel shape corresponds to the guide curve of the first shape, and the second panel shape corresponds to the guide curve of the second shape; when a drawing instruction is acquired, the target virtual hair is drawn according to the target patch having the second patch shape.
According to another aspect of the embodiment of the present invention, there is also provided a virtual hair drawing apparatus, including: a display unit configured to display a target patch created according to a guide curve, wherein the guide curve is configured to guide and adjust a shape of the target patch, and the target patch is a drawing frame of target virtual hair; a first adjustment unit configured to adjust the displayed target panel from a first panel shape to a second panel shape in synchronization when the guide curve is adjusted from a first shape to a second shape, wherein the first panel shape corresponds to the guide curve of the first shape and the second panel shape corresponds to the guide curve of the second shape; and a drawing unit configured to draw the target virtual hair in accordance with the target patch of the second patch shape when a drawing instruction is acquired.
According to a further aspect of embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described virtual hair drawing method when run.
According to still another aspect of the embodiment of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the virtual hair drawing method described above through the computer program.
In the embodiment of the invention, a target surface patch created according to a guide curve is displayed, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair; when the guide curve is adjusted from a first shape to a second shape, the displayed target panel is synchronously adjusted from a first panel shape to a second panel shape, wherein the first panel shape corresponds to the guide curve of the first shape, and the second panel shape corresponds to the guide curve of the second shape; under the condition that a drawing instruction is obtained, the target virtual hair is drawn according to the target surface patch with the second surface patch shape, the guide curve is utilized to guide and adjust the surface patch shape of the target surface patch, redundant and complex operation in the adjusting process of the target surface patch is reduced by improving the adjusting granularity of the target surface patch, and the purpose of improving the manufacturing speed of a drawing frame of the virtual hair is achieved, so that the technical effect of improving the drawing efficiency of the virtual hair is achieved, and the technical problem that the drawing efficiency of the virtual hair is lower is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative virtual hair drawing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a flowchart of an alternative virtual hair drawing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative method of drawing virtual hair in accordance with an embodiment of the invention;
FIG. 4 is a schematic diagram of another alternative method of drawing virtual hair in accordance with an embodiment of the invention;
FIG. 5 is a schematic illustration of another alternative method of drawing virtual hair in accordance with an embodiment of the invention;
FIG. 6 is a schematic diagram of another alternative method of drawing virtual hair in accordance with an embodiment of the invention;
FIG. 7 is a schematic illustration of another alternative method of drawing virtual hair in accordance with an embodiment of the invention;
FIG. 8 is a schematic diagram of another alternative method of drawing virtual hair in accordance with an embodiment of the invention;
FIG. 9 is a schematic diagram of another alternative method of drawing virtual hair in accordance with an embodiment of the invention;
Fig. 10 is a schematic view of an alternative virtual hair drawing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, there is provided a method for drawing virtual hair, optionally, as an optional implementation manner, the above method for drawing virtual hair may be applied, but not limited to, in the environment shown in fig. 1. Including but not limited to a user device 102, a network 110, and a server 112, where the user device 102 may include but is not limited to a display 108, a processor 106, and a memory 104. The user device 102 may include, but is not limited to, a drawing client installed therein, wherein the drawing client is configured to draw virtual hair, and at least one of the following steps is included in the process of drawing the virtual hair by the drawing client: insert (patch), map, and render.
The specific process comprises the following steps:
step S102, the user equipment 102 recognizes and acquires an adjustment instruction triggered by an adjustment operation executed on the guide curve through the drawing client;
step S104-S106, the user equipment 102 sends an adjustment instruction to the server 112 through the network 110, where the adjustment instruction carries the shape of the guiding curve after the adjustment operation is performed (for example, the position coordinates of each endpoint on the guiding curve after the adjustment operation is performed);
Step S108, the server 112 searches the relevant history data of the guide curve (for example, the guide curve before the adjustment operation is performed and the position coordinates of the end points on the target curve) through the database 114, and processes the adjustment instruction through the processing engine 116, so as to generate an adjustment result, where the adjustment result may include, but is not limited to, a display screen of the guide curve after the adjustment operation is performed, and a display screen of the target curve after the adjustment operation is performed, and the target curve may be, but is not limited to, a linkage relationship with the guide curve in advance, and in the case that the position coordinates of the end points on the guide curve are adjusted, the position coordinates of the end points on the target curve will also be correspondingly adjusted;
in steps S110-S114, the server 112 sends the adjustment result to the user device 102 through the network 110, and the processor 106 in the user device 102 displays the display screen of the guide curve after the adjustment operation is performed and the display screen of the target curve after the adjustment operation is performed in the display 108 according to the adjustment result, and stores the position coordinates of each endpoint of the guide curve after the adjustment operation is performed and the position coordinates of each endpoint of the target curve after the adjustment operation is performed in the memory 104, wherein the virtual hair is continuously drawn according to the target curve after the adjustment operation is performed.
In addition to the example shown in fig. 1, the above steps may be performed independently by the user equipment 102, that is, the user equipment 102 performs the steps of processing the adjustment instruction to generate an adjustment result, and the like, so as to reduce the processing pressure of the server. The user device 102 includes, but is not limited to, a handheld device (e.g., a mobile phone), a notebook computer, a desktop computer, a vehicle-mounted device, etc., and the invention is not limited to a particular implementation of the user device 102.
Optionally, as an optional implementation manner, as shown in fig. 2, the drawing method of the virtual hair includes:
s202, displaying a target patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target patch, and the target patch is a drawing frame of target virtual hair;
s204, synchronously adjusting the displayed target surface piece from the first surface piece shape to the second surface piece shape when the guide curve is adjusted from the first shape to the second shape, wherein the first surface piece shape corresponds to the guide curve of the first shape, and the second surface piece shape corresponds to the guide curve of the second shape;
s206, when the drawing instruction is acquired, drawing the target virtual hair according to the target patch of the second patch shape.
Alternatively, in the present embodiment, the drawing method of virtual hair may be applied to, but not limited to, a hair-making scene of a three-dimensional (3D) virtual character. Specifically, in the process of inserting the virtual hair, the point, line and surface of the dough sheet are not required to be operated to adjust the styling of the virtual hair, but the dough sheet is adjusted or edited through a guiding curve, for example, a common CV curve is created in Maya, a target dough sheet which completely matches the trend of the CV curve is displayed, and then the target dough sheet can follow the shape adjustment of the CV curve to adjust the shape of the target dough sheet in a linkage manner when the CV curve is adjusted. The method for modeling the dough piece by using the curve is similar to the mode of operating the guide line in the XGen, and is more in line with the operation habit of an artist. Meanwhile, the dough sheet is guided and adjusted through the curve, compared with a direct operation point, a line and a plane, the dough sheet manufacturing efficiency is greatly improved, and artists can draw more complicated and flexible virtual hair in the same time.
Alternatively, in the present embodiment, the drawing method of the virtual hair may be implemented based on, but not limited to, a three-dimensional modeling application, which may include, but is not limited to, DCC tools, XGen, CAD, unity, MAYA, and the like.
Alternatively, in the present embodiment, the guiding curve may be, but is not limited to, a geometric curve allowing for shape adjustment, such as a CV curve, an EP curve, a Bezier curve, etc. The method of adjusting the guide curve may, but is not limited to, using one or more points on the guide curve as control points, and performing a drag operation on the control points, where the guide curve also automatically adjusts its shape according to the position change of the control points during the execution of the drag operation, and optionally, the number of times of the control points in the guide curve is proportional to the smoothness of the guide curve.
Alternatively, in the present embodiment, the drawing of the target virtual hair may be, but not limited to, a plurality of steps including a manufacturing step of the target patch, and may also be, but not limited to, including, for example, a inserting step, a mapping step, a rendering step, and the like. Drawing the target virtual hair in accordance with the target patch of the second patch shape may, but is not limited to, assuming that the step of manufacturing the target patch is completed, continuing to perform steps such as inserting sheets, mapping, rendering, etc. with the manufactured target patch of the second patch shape to draw the target virtual hair. In addition, it may be understood that, although the manufacturing steps of the target patch are not completed, the steps of inserting the patch, mapping, rendering, etc. may be performed without being affected, for example, when the drawing instruction is acquired, the steps of inserting the patch, mapping, rendering, etc. are continuously performed on the basis of the target patch of the second patch shape, but the patch shape of the target patch may be readjusted, and the steps of inserting the patch, mapping, rendering, etc. may be flexibly matched until the drawn virtual hair meets the drawing requirement, and the drawing of the target virtual hair may not be regarded as completed.
Alternatively, in the present embodiment, the guiding curve and the target patch may be, but not limited to, located in the same display area, so as to improve the fit of guiding and adjusting the target patch by using the guiding curve. The guide curve and the target patch may be, but not limited to, located in different display areas to enhance the resolution of the execution of the guide adjustment of the target patch with the guide curve.
Alternatively, in this embodiment, the correspondence of the first panel shape and the guide curve of the first shape may, but is not limited to, refer to a mapping relationship between the first panel shape and the first shape, and the correspondence of the second panel shape and the guide curve of the second shape may, but is not limited to, refer to a mapping relationship between the second panel shape and the second shape. For example, a mapping relationship between the shape of the guide curve and the patch shape of the target patch is established in advance, and further, in the case of the acquired first shape, the first patch shape having the mapping relationship with the first shape can be acquired quickly based on the above-mentioned mapping relationship.
The method comprises the steps of displaying a target surface patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair; in the case that the guide curve is adjusted from the first shape to the second shape, synchronously adjusting the displayed target panel from the first panel shape to the second panel shape, wherein the first panel shape corresponds to the guide curve of the first shape and the second panel shape corresponds to the guide curve of the second shape; when the drawing instruction is acquired, the target virtual hair is drawn according to the target patch of the second patch shape.
Further by way of example, as shown in fig. 3, an optional execution interface of the virtual hair drawing method is shown on a patch interface in the drawing client 302, where the guiding curve and the target patch have a linkage relationship, that is, the drawing frame of the target virtual hair is completed by adjusting the curve shape of the guiding curve to guide and adjust the patch shape of the target patch.
It should be noted that, compared with the conventional art in which the drawing frame of the target virtual hair is adjusted by directly manipulating the points, lines, and faces of the dough sheet, this means that the drawing frame directly intersects thousands of faces, and the workload is enormous. Later, there is adjustment of the drawing frame, and the repair cost is also huge. In this cumbersome editing mode, the work and tolerance of the producer are very examined to make complex drawing frames (such as curls and complex braids). In addition, thousands of dough sheets are difficult to avoid penetration, so that the upper is penetrated. And the repeated adjustment of the dot line and the line to repair the penetration is very time-consuming. In order to reduce the burden of manually adjusting the drawing frame of the target virtual hair, the guiding curve with linkage relation is utilized to quickly guide and adjust the target surface patch, so that the manufacture of the drawing frame of the target virtual hair is efficiently completed, and further, in the same time, the drawing center of gravity can be placed in the steps of mapping, rendering and the like to draw the target virtual hair with higher quality due to the fact that the drawing frame of the target virtual hair is manufactured.
By the embodiment provided by the application, the target surface patch created according to the guiding curve is displayed, wherein the guiding curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair; in the case that the guide curve is adjusted from the first shape to the second shape, synchronously adjusting the displayed target panel from the first panel shape to the second panel shape, wherein the first panel shape corresponds to the guide curve of the first shape and the second panel shape corresponds to the guide curve of the second shape; under the condition that a drawing instruction is obtained, drawing target virtual hair according to a target patch with a second patch shape, and guiding and adjusting the patch shape of the target patch by utilizing a guiding curve, wherein redundant and complex operation in the adjusting process of the target patch is reduced by improving the adjusting granularity of the target patch, so that the purpose of improving the manufacturing speed of a drawing frame of the virtual hair is achieved, and the technical effect of improving the drawing efficiency of the virtual hair is achieved.
As an alternative, displaying a target patch created from a guide curve includes:
s1, drawing a guide curve in a first display area;
And S2, displaying the target surface patch corresponding to the guide curve in a second display area.
Alternatively, in this embodiment, the first display area and the second display area may be, but not limited to, different display areas under the same interface, or may be, but not limited to, different display areas under different interfaces.
It should be noted that, a guide curve is drawn in the first display area; and displaying a target patch corresponding to the guide curve in the second display area. Alternatively, the first display area may be, but is not limited to, an area for creating, generating, and drawing a guide curve, and the second display area may be, but is not limited to, an area for generating, guiding adjustment, and autonomously adjusting a target curve, wherein guiding adjustment may be, but is not limited to, guiding adjustment based on the guide curve, and autonomously adjusting may be, but is not limited to, guiding adjustment based on the guide curve.
By way of further illustration, an alternative assumption is that the interface for displaying the target patch created according to the guide curve is based on the scenario shown in fig. 3, continuing to be shown in fig. 4, as shown in (a) in fig. 4, where the first display area on the patch interface in the drawing client 302 does not currently display the guide curve, and the same second display area does not currently display the target curve, but a virtual button "create" is provided on the first display area, and a create instruction may be triggered when a selection operation is received to perform the virtual button "create"; further, in the case where the triggered creation instruction is acquired, execution of a creation operation for triggering creation of a guide curve, the guide curve displayed in the first display area as shown in (b) of fig. 4, that is, a display screen assuming that the execution of the above creation operation is completed, is allowed; in addition, a virtual button "conversion" is also provided in the first display area shown in fig. 4 (b), and a conversion instruction may be triggered upon receiving a selection operation performed on the virtual button "conversion", to convert the guide curve currently displayed in the first display area into the target curve displayed in the second display area, as shown in fig. 4 (c).
By the embodiment provided by the application, a guide curve is drawn in a first display area; and displaying the target surface patch corresponding to the guide curve in the second display area, and guiding and adjusting the target surface patch by using the guide curves positioned in different display areas, so that the aim of improving the execution definition of guiding and adjusting the target surface patch by using the guide curves is fulfilled, and the effect of improving the adjustment efficiency of the target surface patch is realized.
As an alternative, before displaying the target patch corresponding to the guide curve in the second display area, the method further includes:
s1, creating an initial patch corresponding to a guide curve;
s2, dividing the initial dough sheet into N groups of dough sheets, wherein N is a positive integer greater than or equal to 1;
s3, respectively taking the patches in the same group in the N groups of patches as target patches.
Alternatively, in the present embodiment, after the guide curve is drawn in the first display area and the guide curve has been converted into the curve displayed in the second display area, the curve displayed in the second display area may be, but is not limited to, not first being the target curve, but first being the initial curve. Optionally, there may be multiple initial curves, so that adjusting and managing the multiple initial curves respectively may reduce the overall drawing efficiency of the virtual hair, and further, in this embodiment, the initial patches are managed in groups, so that the drawing thought of the virtual hair may be clarified, and the second important auxiliary effect is also played on the ordering of the patches.
Alternatively, in this embodiment, the guiding curve may be, but not limited to, one or more guiding sub-curves, and in the case that the guiding curve represents a plurality of guiding sub-curves, then the initial curve is used to represent initial sub-curves corresponding to the plurality of curves one by one, which is not limited in number.
It should be noted that, an initial patch corresponding to the guide curve is created; dividing the initial dough sheet into N groups of dough sheets, wherein N is a positive integer greater than or equal to 1; the patches in the same group in the N groups of patches are respectively used as target patches. Optionally, autonomous adjustment of patches of the same group may include, but is not limited to, creation, deletion, renaming, visibility settings, editability settings, inter-group ordering, texture selection operations, and may allow, but is not limited to, unified operations as well as selection operations.
Further by way of example, the optional grouping management interface for dividing the initial tiles into N groups of tiles is based on the scenario shown in fig. 3, continuing to e.g. fig. 5, on the grouping management interface in the rendering client 302, target tiles under the same group are displayed, and virtual buttons for performing related operations on all or part of the target tiles, for example, an effect preview may be performed on the target tiles, a tile is edited, a curve setting (e.g. adjusting a guide curve corresponding to a tile), a tile (tile) edit may be performed, where the effect preview may be but is not limited to displaying an effect representation after rendering the current target tile, the curve setting may be but is not limited to adjusting the guide curve again, and the tile edit may be but is not limited to adjusting the target tile in a finer granularity parameter adjustment manner, so as to adjust the target tile more finely.
By the embodiment provided by the application, an initial patch corresponding to the guiding curve is created; dividing the initial dough sheet into N groups of dough sheets, wherein N is a positive integer greater than or equal to 1; the patches in the same group in the N groups of patches are respectively used as target patches, and the purpose of efficiently adjusting and managing the patches is achieved by utilizing the mode of grouping and managing the patches and by clearly drawing ideas of virtual hair, so that the effect of improving the drawing efficiency of the virtual hair is achieved.
As an alternative, after drawing the target virtual hair in accordance with the target patch of the second patch shape, further comprising:
the target virtual hair is merged in the case where the target virtual hair is drawn sequentially for each of the N sets of patches.
Optionally, in this embodiment, under the condition that each group of target patches sequentially draw target virtual hair, each group of target patches or target virtual hair corresponding to each group of target patches is combined, so as to output a virtual hair model, where the target virtual hair is orderly combined according to groups, so that the ordering problem during semitransparent rendering can be better processed.
In the case where the target virtual hair is sequentially drawn for each of the N sets of patches, the target virtual hair is merged. Alternatively, the target virtual hair may be, but is not limited to being, used to construct the virtual hair model, or the target virtual hair may be, but is not limited to being, one of the completion output conditions of the virtual hair model. For example, the target virtual hair is a part of drawing elements of the virtual hair model, the output condition of the virtual hair model is met when all of the N groups of target virtual hair are drawn, and the complete virtual hair model can be output when the N groups of target virtual hair are combined, wherein the virtual hair model can be applied in a target application program but is not limited to the application program, and the combination result of the N groups of target virtual hair is displayed in a display screen corresponding to the target application program.
Further by way of example, continuing with the scenario shown in fig. 5, in the group management interface, overall visibility control, patch visibility control, curve visibility control, and material selection of target patches under the same group may be performed, while also enabling corresponding management of the groups, such as creating new groups, deleting groups, renaming groups, refreshing lists, moving up, down, etc., as shown in fig. 6. Further, in the case where all the sets of target patches have confirmed that the drawing of the target virtual hair is completed, all the sets of target patches may be selected to be merged to output a virtual hair model constructed from the target virtual hair completed by the drawing of all the sets of target patches.
According to the embodiment provided by the application, under the condition that the target virtual hair is sequentially drawn according to each group of target patches in the N groups of patches, the target virtual hair is combined, the aim of orderly combining according to the groups is fulfilled, the ordering problem during semitransparent rendering can be well processed, and the effect of reducing the probability that the output requirement of the virtual hair cannot be met due to the ordering problem in the drawing process of the virtual hair is realized.
As an alternative, before drawing the target virtual hair in accordance with the target patch of the second patch shape, it includes:
S1, acquiring an adjustment instruction triggered by performing adjustment operation on at least one performance parameter of a target surface patch in a displayed parameter configuration interface of the target surface patch, wherein the performance parameter is used for representing the surface patch shape of the target surface patch;
s2, responding to the adjustment instruction, and determining the adjusted performance parameters;
s3, adjusting the shape of the target dough sheet according to the adjusted performance parameters.
Alternatively, in the present embodiment, the patch shape of the target patch may be adjusted more finely by adjusting the performance parameters of the target patch, on the basis of guiding the adjustment of the patch shape of the target patch by the guide curve.
It should be noted that, in the displayed parameter configuration interface of the target patch, an adjustment instruction triggered by performing an adjustment operation on at least one performance parameter of the target patch is obtained, where the performance parameter is used to represent a patch shape of the target patch; responding to the adjustment instruction, and determining an adjusted performance parameter; and adjusting the shape of the target dough sheet according to the adjusted performance parameters.
Optionally, for the adjustment of the target patch, the embodiment also refers to the design thought of XGen, and achieves the functions of grouping management of patches, parameter management of patches, curve control of patches, shortcut key operation and the like, so that the mode of making the drawing frame of virtual hair is more reasonable, the flow is more standard, and compared with the making mode in the prior art, more than 80% of complicated operations can be saved.
Further by way of example, based on the scenario shown in fig. 3, an optional parameter configuration interface, such as that shown in fig. 7, on the parameter configuration interface in the drawing client 302, a plurality of virtual slide bars that can perform an adjustment operation to trigger the adjustment, for example, the virtual slide bars corresponding to the patch width can adjust the magnitude of the performance parameter that affects the patch width of the target patch, etc.; in addition, a plurality of virtual options capable of executing the adjustment operation to trigger the adjustment execution are displayed, and when the virtual options execute the selected operation, the corresponding adjustment interface is further triggered, for example, the virtual options corresponding to the curve rotation patch can adjust relevant performance parameters and the like in the process of influencing the curve rotation patch.
According to the embodiment provided by the application, an adjustment instruction triggered by performing an adjustment operation on at least one performance parameter of a target patch is acquired in a displayed parameter configuration interface of the target patch, wherein the performance parameter is used for representing the patch shape of the target patch; responding to the adjustment instruction, and determining an adjusted performance parameter; according to the adjusted performance parameters, the shape of the target surface patch is adjusted, the purpose of flexibly adjusting the target surface patch is achieved, and the effect of improving the adjustment flexibility of the target surface patch is achieved.
As an alternative, before drawing the target virtual hair in accordance with the target patch of the second patch shape, it includes:
s1, under the condition that the target map is acquired, acquiring initial configuration information of the target map, wherein the initial configuration comprises at least one of the following steps: texture configuration information, camera configuration information, background configuration information, rendering configuration information;
s2, filling the target mapping into the target surface patch with the second surface patch shape according to the initial configuration information.
It should be noted that, in domestic hand-tour projects, currently, hand-drawn alpha maps are commonly adopted, alpha is converted into normal maps, and then software conversion and PS modification are used to generate other auxiliary maps on the basis of the alpha maps, or more advanced methods are that XGen is used in maya to bake hairline maps, the method can produce highly-realistic maps, but the maps produced by the mode of generating other maps by hand-drawn alpha+ conversion have larger difference from the actual hairline effects, and the requirements of the realistic projects are difficult to deal with. However, the XGen method for baking hairline mapping can produce a highly realistic mapping, but the method requires complicated material, camera, background and rendering options, is not friendly to the artist, and has high upper threshold and lower efficiency.
Alternatively, in this embodiment, the method of baking with XGen may be used, but the method is responsible for managing materials, cameras, backgrounds, rendering settings, etc., so that the artist does not need to care about any additional setting work, and only needs to concentrate on modeling with XGen. Therefore, the manufacturing efficiency is greatly improved, and meanwhile, the use threshold of an artist is greatly reduced.
Although XGen is a mature tool for film-and-television-grade hair production and is sufficient for dealing with various types of hair in games, other hair production tools than XGen, for example, zbrush, maya, blender, etc., may be used in the present embodiment, and are not limited thereto.
In addition, when the target map is acquired, initial configuration information of the target map is acquired, wherein the initial configuration includes at least one of the following: texture configuration information, camera configuration information, background configuration information, rendering configuration information; and filling the target map into the target panel in the shape of the second panel according to the initial configuration information.
Further by way of example, it is assumed that, based on the scenario shown in fig. 3, the initial configuration information of the target map is obtained, for example, as shown in fig. 8, and the initial configuration information of the target map is obtained completely by the function of the drawing client 302 itself, and in addition, the initial configuration information such as materials, cameras, backgrounds, and rendering may be edited and managed secondarily in the map interface. Specifically, in the case that the target map is acquired, the drawing client 302 automatically completes the acquisition of initial configuration information such as materials, cameras, backgrounds, and renderings, and also supports the secondary editing and management of the initial configuration information such as materials, cameras, backgrounds, and renderings in the map interface, for example, as shown in fig. 8, the creation and deletion of hair bundles and the editing operations such as selecting the map type and size can be performed on the selected target map. In addition, after the target map confirms that editing is completed, one-key rendering can be performed, and a rendering result can be saved under the engineering catalog.
By the embodiment provided by the application, under the condition that the target map is acquired, acquiring initial configuration information of the target map, wherein the initial configuration comprises at least one of the following: texture configuration information, camera configuration information, background configuration information, rendering configuration information; the target mapping is filled into the target surface patch in the shape of the second surface patch according to the initial configuration information, so that the purpose of automatically acquiring the initial configuration information of the target mapping is achieved, and the effect of manufacturing efficiency of the target mapping is achieved.
As an alternative, drawing the target virtual hair in accordance with the target patch of the second patch shape includes:
s1, rendering a target surface patch with a second surface patch shape into virtual hair with target environment parameters, wherein the target environment parameters are application environment parameters of the target virtual hair;
s2, drawing target virtual hair according to the virtual hair of the target environment parameters.
In the process of producing the target virtual hair, the rendering effect of the target virtual hair can be generally observed only by means of the material built in the DCC tool, and the effect in the actual project is greatly different from the effect, so that the effect can not be obtained. In addition, when semitransparent rendering is performed, the whole effect can be easily destroyed by obvious sequencing errors, so that the sequence of combining the patches can be fully planned in the manufacturing process.
However, in this embodiment, optionally, a loader supporting anisotropic highlighting and multi-pass rendering may be provided, but not limited to, to help the user draw hair from the engine in practical use, and if the inserting or ordering disorder of the patches occurs, the user may observe and correct the patches at any time.
The target surface patch in the second surface patch shape is rendered into virtual hair with a target environment parameter, wherein the target environment parameter is an application environment parameter of the target virtual hair; and drawing the target virtual hair according to the virtual hair of the target environment parameter. Optionally, the rendering of the target patch may be performed, but is not limited to, at any step in the drawing process of the target virtual hair, so as to observe the real rendering performance of the rendering effect of the target patch under the application environment parameters in real time.
Further by way of example, the optional scenario shown in fig. 3 is based on the assumption that the rendering interface is as shown in fig. 9, and the rendering interface in the drawing client 302 is responsible for aligning the target virtual hair with the rendering effect of the actual application, so that the final effect can be observed during the manufacturing process. For example, using a loader supporting anisotropic highlight and dual pass rendering, rendering the target patch of the second patch shape as virtual hair of the target environmental parameter, so that the environmental parameter of the target virtual hair is consistent with the application environmental parameter in the actual application, and the rendering effect of aligning the target virtual hair with the actual application is achieved. Specifically, DX11 material is created in the rendering client 302, a matched loader is selected for the DX11 material, and the name of the material is changed to be a suffix "_pair_mat", so that the DX11 material can be identified by the rendering client 302, and the material can be identified for the target patch in the rendering interface.
By the embodiment provided by the application, rendering the target surface patch with the second surface patch shape into virtual hair with the target environment parameter, wherein the target environment parameter is the application environment parameter of the target virtual hair; the target virtual hair is drawn according to the virtual hair of the target environment parameters, the purpose of observing the real rendering performance of the rendering effect of the target surface patch under the application environment parameters in real time is achieved, and the effect of ensuring that the rendering effect in the target virtual hair manufacturing process is aligned with the actual rendering performance under the application environment parameters is achieved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a virtual hair drawing apparatus for implementing the above-described virtual hair drawing method. As shown in fig. 10, the apparatus includes:
A display unit 1002 configured to display a target patch created according to a guide curve, where the guide curve is used to guide and adjust a shape of the target patch, and the target patch is a drawing frame of target virtual hair;
a first adjustment unit 1004 for synchronously adjusting the displayed target panel from a first panel shape to a second panel shape when the guide curve is adjusted from the first shape to the second shape, wherein the first panel shape corresponds to the guide curve of the first shape and the second panel shape corresponds to the guide curve of the second shape;
and a drawing unit 1006 for drawing the target virtual hair in accordance with the target patch of the second patch shape when the drawing instruction is acquired.
Alternatively, in the present embodiment, the drawing device of virtual hair may be applied to, but not limited to, a hair-making scene of a three-dimensional (3D) virtual character. Specifically, in the process of inserting the virtual hair, the point, line and surface of the dough sheet are not required to be operated to adjust the styling of the virtual hair, but the dough sheet is adjusted or edited through a guiding curve, for example, a common CV curve is created in Maya, a target dough sheet which completely matches the trend of the CV curve is displayed, and then the target dough sheet can follow the shape adjustment of the CV curve to adjust the shape of the target dough sheet in a linkage manner when the CV curve is adjusted. The device for modeling the face piece by using the curve is similar to the mode of operating the guide line in the XGen, and is more in line with the operation habit of an artist. Meanwhile, the dough sheet is guided and adjusted through the curve, compared with a direct operation point, a line and a plane, the dough sheet manufacturing efficiency is greatly improved, and artists can draw more complicated and flexible virtual hair in the same time.
Alternatively, in the present embodiment, the virtual hair drawing apparatus may be implemented based on, but not limited to, a three-dimensional modeling application, which may include, but is not limited to, DCC tools, XGen, CAD, unity, MAYA, and the like.
Alternatively, in the present embodiment, the guiding curve may be, but is not limited to, a geometric curve allowing for shape adjustment, such as a CV curve, an EP curve, a Bezier curve, etc. The method of adjusting the guide curve may, but is not limited to, using one or more points on the guide curve as control points, and performing a drag operation on the control points, where the guide curve also automatically adjusts its shape according to the position change of the control points during the execution of the drag operation, and optionally, the number of times of the control points in the guide curve is proportional to the smoothness of the guide curve.
Alternatively, in the present embodiment, the drawing of the target virtual hair may be, but not limited to, a plurality of steps including a manufacturing step of the target patch, and may also be, but not limited to, including, for example, a inserting step, a mapping step, a rendering step, and the like. Drawing the target virtual hair in accordance with the target patch of the second patch shape may, but is not limited to, assuming that the step of manufacturing the target patch is completed, continuing to perform steps such as inserting sheets, mapping, rendering, etc. with the manufactured target patch of the second patch shape to draw the target virtual hair. In addition, it may be understood that, although the manufacturing steps of the target patch are not completed, the steps of inserting the patch, mapping, rendering, etc. may be performed without being affected, for example, when the drawing instruction is acquired, the steps of inserting the patch, mapping, rendering, etc. are continuously performed on the basis of the target patch of the second patch shape, but the patch shape of the target patch may be readjusted, and the steps of inserting the patch, mapping, rendering, etc. may be flexibly matched until the drawn virtual hair meets the drawing requirement, and the drawing of the target virtual hair may not be regarded as completed.
Alternatively, in the present embodiment, the guiding curve and the target patch may be, but not limited to, located in the same display area, so as to improve the fit of guiding and adjusting the target patch by using the guiding curve. The guide curve and the target patch may be, but not limited to, located in different display areas to enhance the resolution of the execution of the guide adjustment of the target patch with the guide curve.
Alternatively, in this embodiment, the correspondence of the first panel shape and the guide curve of the first shape may, but is not limited to, refer to a mapping relationship between the first panel shape and the first shape, and the correspondence of the second panel shape and the guide curve of the second shape may, but is not limited to, refer to a mapping relationship between the second panel shape and the second shape. For example, a mapping relationship between the shape of the guide curve and the patch shape of the target patch is established in advance, and further, in the case of the acquired first shape, the first patch shape having the mapping relationship with the first shape can be acquired quickly based on the above-mentioned mapping relationship.
The method comprises the steps of displaying a target surface patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair; in the case that the guide curve is adjusted from the first shape to the second shape, synchronously adjusting the displayed target panel from the first panel shape to the second panel shape, wherein the first panel shape corresponds to the guide curve of the first shape and the second panel shape corresponds to the guide curve of the second shape; when the drawing instruction is acquired, the target virtual hair is drawn according to the target patch of the second patch shape.
Specific embodiments may refer to examples shown in the above-mentioned virtual hair drawing method, and this example will not be described herein.
By the embodiment provided by the application, the target surface patch created according to the guiding curve is displayed, wherein the guiding curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair; in the case that the guide curve is adjusted from the first shape to the second shape, synchronously adjusting the displayed target panel from the first panel shape to the second panel shape, wherein the first panel shape corresponds to the guide curve of the first shape and the second panel shape corresponds to the guide curve of the second shape; under the condition that a drawing instruction is obtained, drawing target virtual hair according to a target patch with a second patch shape, and guiding and adjusting the patch shape of the target patch by utilizing a guiding curve, wherein redundant and complex operation in the adjusting process of the target patch is reduced by improving the adjusting granularity of the target patch, so that the purpose of improving the manufacturing speed of a drawing frame of the virtual hair is achieved, and the technical effect of improving the drawing efficiency of the virtual hair is achieved.
As an alternative, the display unit 1002 includes:
The first drawing module is used for drawing a guide curve in the first display area;
and the display module is used for displaying the target surface patch corresponding to the guide curve in the second display area.
Specific embodiments may refer to examples shown in the above-mentioned virtual hair drawing method, and this example will not be described herein.
As an alternative, the method further comprises:
the creation module is used for creating an initial patch corresponding to the guide curve before the target patch corresponding to the guide curve is displayed in the second display area;
the grouping module is used for dividing the initial patches into N groups of patches before the target patches corresponding to the guide curves are displayed in the second display area, wherein N is a positive integer greater than or equal to 1;
and the determining module is used for respectively taking the patches in the same group in the N groups of patches as target patches before the target patches corresponding to the guide curves are displayed in the second display area.
Specific embodiments may refer to examples shown in the above-mentioned virtual hair drawing method, and this example will not be described herein.
As an alternative, the method further comprises:
and a merging module for merging the target virtual hair in a case where the target virtual hair is sequentially drawn for each of the N sets of patches after the target virtual hair is drawn for the target patch in the second patch shape.
Specific embodiments may refer to examples shown in the above-mentioned virtual hair drawing method, and this example will not be described herein.
As an alternative, it includes:
a first obtaining unit, configured to obtain, in a parameter configuration interface of a displayed target patch, an adjustment instruction triggered by performing an adjustment operation on at least one performance parameter of the target patch, before drawing a target virtual hair according to the target patch having the second patch shape, where the performance parameter is used to represent a patch shape of the target patch;
a response unit for determining the adjusted performance parameters in response to the adjustment instruction before drawing the target virtual hair according to the target patch of the second patch shape;
and a second adjusting unit for adjusting the patch shape of the target patch according to the adjusted performance parameter before drawing the target virtual hair according to the target patch of the second patch shape.
Specific embodiments may refer to examples shown in the above-mentioned virtual hair drawing method, and this example will not be described herein.
As an alternative, it includes:
a second acquisition unit configured to acquire initial configuration information of the target map in a case where the target map is acquired before drawing the target virtual hair in accordance with the target patch of the second patch shape, wherein the initial configuration includes at least one of: texture configuration information, camera configuration information, background configuration information, rendering configuration information;
And a filling unit for filling the target patch in the second patch shape according to the initial configuration information before drawing the target virtual hair in the target patch in the second patch shape.
Specific embodiments may refer to examples shown in the above-mentioned virtual hair drawing method, and this example will not be described herein.
As an alternative, the drawing unit 1006 includes:
the rendering module is used for rendering the target surface patch with the second surface patch shape into virtual hair with target environment parameters, wherein the target environment parameters are application environment parameters of the target virtual hair;
and the second drawing module is used for drawing the target virtual hair according to the virtual hair of the target environment parameter.
Specific embodiments may refer to examples shown in the above-mentioned virtual hair drawing method, and this example will not be described herein.
According to a further aspect of embodiments of the present invention, there is also provided an electronic device for implementing the above-described virtual hair drawing method, as shown in fig. 11, the electronic device comprising a memory 1102 and a processor 1104, the memory 1102 having stored therein a computer program, the processor 1104 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, displaying a target surface patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair;
s2, synchronously adjusting the displayed target surface piece from the first surface piece shape to the second surface piece shape when the guide curve is adjusted from the first shape to the second shape, wherein the first surface piece shape corresponds to the guide curve of the first shape, and the second surface piece shape corresponds to the guide curve of the second shape;
and S3, when a drawing instruction is acquired, drawing the target virtual hair according to the target patch with the second patch shape.
Alternatively, it will be appreciated by those of ordinary skill in the art that the configuration shown in FIG. 11 is merely illustrative, and that the electronic device may be a smart phone (e.g., a tablet, a palm top, a mobile Internet device (Mobile Internet Devices, MID), a PAD, etc., the configuration of FIG. 11 is not limited to the configuration of the electronic device described above.
The memory 1102 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for drawing virtual hair in the embodiments of the present invention, and the processor 1104 executes the software programs and modules stored in the memory 1102, thereby performing various functional applications and data processing, that is, implementing the method for drawing virtual hair described above. Memory 1102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1102 may further include memory located remotely from processor 1104, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1102 may be used to store information such as a guidance curve, a target patch, and a target virtual hair, but is not limited to. As an example, as shown in fig. 11, the memory 1102 may include, but is not limited to, a display unit 1002, a first adjusting unit 1004, and a drawing unit 1006 in the drawing device including the virtual hair. In addition, other module units in the virtual hair drawing apparatus may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1106 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1106 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1106 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 1108 for displaying information such as the guide curve, the target patch, and the target virtual hair; and a connection bus 1110 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer readable storage medium by a processor of a computer device, which computer instructions are executed by the processor, causing the computer device to perform the method of drawing virtual hair described above, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a target surface patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair;
s2, synchronously adjusting the displayed target surface piece from the first surface piece shape to the second surface piece shape when the guide curve is adjusted from the first shape to the second shape, wherein the first surface piece shape corresponds to the guide curve of the first shape, and the second surface piece shape corresponds to the guide curve of the second shape;
And S3, when a drawing instruction is acquired, drawing the target virtual hair according to the target patch with the second patch shape.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (8)

1. A method of drawing virtual hair, comprising:
displaying a target surface patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair;
synchronously adjusting the displayed target panel from a first panel shape to a second panel shape when the guide curve is adjusted from a first shape to a second shape, wherein the first panel shape corresponds to the guide curve of the first shape and the second panel shape corresponds to the guide curve of the second shape;
Drawing the target virtual hair according to the target patch of the second patch shape under the condition that the drawing instruction is acquired;
the displaying the target patch created according to the guide curve includes:
drawing the guide curve in a first display area;
displaying the target patch corresponding to the guide curve in a second display area;
before displaying the target patch corresponding to the guide curve in the second display area, the method further includes:
creating an initial patch corresponding to the guide curve;
dividing the initial dough sheet into N groups of dough sheets, wherein N is a positive integer greater than or equal to 1;
and respectively taking the patches in the same group in the N groups of patches as the target patches.
2. The method of claim 1, further comprising, after drawing the target virtual hair in accordance with the target patch of the second patch shape:
and merging the target virtual hair under the condition that the target virtual hair is sequentially drawn according to each group of target patches in the N groups of patches.
3. The method according to any one of claims 1 to 2, comprising, before said drawing said target virtual hair in accordance with said target patch of said second patch shape:
Acquiring an adjustment instruction triggered by performing an adjustment operation on at least one performance parameter of the target patch in the displayed parameter configuration interface of the target patch, wherein the performance parameter is used for representing the patch shape of the target patch;
responding to the adjustment instruction, and determining an adjusted performance parameter;
and adjusting the shape of the target dough sheet according to the adjusted performance parameters.
4. The method according to any one of claims 1 to 2, comprising, before said drawing said target virtual hair in accordance with said target patch of said second patch shape:
in the case of acquiring a target map, acquiring initial configuration information of the target map, wherein the initial configuration comprises at least one of the following: texture configuration information, camera configuration information, background configuration information, rendering configuration information;
and filling the target mapping into the target panel of the second panel shape according to the initial configuration information.
5. The method according to any one of claims 1 to 2, wherein said drawing said target virtual hair in accordance with said second patch shaped target patch comprises:
Rendering the target patch of the second patch shape as virtual hair of a target environmental parameter, wherein the target environmental parameter is an application environmental parameter of the target virtual hair;
and drawing the target virtual hair according to the virtual hair of the target environment parameter.
6. A virtual hair drawing apparatus, comprising:
the display unit is used for displaying a target surface patch created according to a guide curve, wherein the guide curve is used for guiding and adjusting the shape of the target surface patch, and the target surface patch is a drawing frame of target virtual hair;
a first adjustment unit configured to adjust the displayed target panel from a first panel shape to a second panel shape in synchronization, in a case where the guide curve is adjusted from a first shape to a second shape, wherein the first panel shape corresponds to the guide curve of the first shape, and the second panel shape corresponds to the guide curve of the second shape;
a drawing unit configured to draw the target virtual hair in accordance with the target patch of the second patch shape, when a drawing instruction is acquired;
the display unit includes:
The first drawing module is used for drawing the guide curve in the first display area;
the display module is used for displaying the target surface patch corresponding to the guide curve in a second display area;
a creating module, configured to create an initial patch corresponding to the guide curve before the target patch corresponding to the guide curve is displayed in a second display area;
the grouping module is used for dividing the initial patches into N groups of patches before the target patches corresponding to the guide curves are displayed in a second display area, wherein N is a positive integer greater than or equal to 1;
and the determining module is used for respectively taking the patches in the same group in the N groups of patches as the target patches before the target patches corresponding to the guide curves are displayed in the second display area.
7. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 5.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 5 by means of the computer program.
CN202110099865.8A 2021-01-25 2021-01-25 Virtual hair drawing method and device, storage medium and electronic equipment Active CN112734894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110099865.8A CN112734894B (en) 2021-01-25 2021-01-25 Virtual hair drawing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110099865.8A CN112734894B (en) 2021-01-25 2021-01-25 Virtual hair drawing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112734894A CN112734894A (en) 2021-04-30
CN112734894B true CN112734894B (en) 2023-07-14

Family

ID=75593947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110099865.8A Active CN112734894B (en) 2021-01-25 2021-01-25 Virtual hair drawing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112734894B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010033253A (en) * 2008-07-28 2010-02-12 Namco Bandai Games Inc Program, information storage medium, and image generation system
WO2017092303A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Virtual reality scenario model establishing method and device
CN108509846A (en) * 2018-02-09 2018-09-07 腾讯科技(深圳)有限公司 Image processing method, device, computer equipment and storage medium
WO2019226549A1 (en) * 2018-05-22 2019-11-28 Magic Leap, Inc. Computer generated hair groom transfer tool
WO2019226494A1 (en) * 2018-05-21 2019-11-28 Magic Leap, Inc. Generating textured polygon strip hair from strand-based hair for a virtual character
CN110766799A (en) * 2018-07-27 2020-02-07 网易(杭州)网络有限公司 Method and device for processing hair of virtual object, electronic device and storage medium
WO2020119822A1 (en) * 2018-12-14 2020-06-18 深圳市中兴微电子技术有限公司 Virtual reality display method and device, apparatus, and computer storage medium
CN111429557A (en) * 2020-02-27 2020-07-17 网易(杭州)网络有限公司 Hair generating method, hair generating device and readable storage medium
CN111481936A (en) * 2020-05-18 2020-08-04 网易(杭州)网络有限公司 Virtual model generation method and device, storage medium and electronic device
CN111815746A (en) * 2020-09-10 2020-10-23 江苏原力数字科技股份有限公司 Method for generating hair data based on USD system
CN111862291A (en) * 2020-07-10 2020-10-30 完美世界(北京)软件科技发展有限公司 Aqueous baking method and apparatus, storage medium, and electronic apparatus
CN112184852A (en) * 2020-09-10 2021-01-05 珠海格力电器股份有限公司 Auxiliary drawing method and device based on virtual imaging, storage medium and electronic device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6733384B2 (en) * 2001-09-06 2004-05-11 Intel Corporation Creating a cutting template for a virtual jigsaw puzzle using guide points and a spline-fitting algorithm
JP5078712B2 (en) * 2008-04-01 2012-11-21 任天堂株式会社 Image processing program, image processing apparatus, image processing system, and image processing method
KR101199481B1 (en) * 2008-12-22 2012-11-09 한국전자통신연구원 Method for generating graphic hair motion and its apparatus

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010033253A (en) * 2008-07-28 2010-02-12 Namco Bandai Games Inc Program, information storage medium, and image generation system
WO2017092303A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Virtual reality scenario model establishing method and device
CN108509846A (en) * 2018-02-09 2018-09-07 腾讯科技(深圳)有限公司 Image processing method, device, computer equipment and storage medium
WO2019226494A1 (en) * 2018-05-21 2019-11-28 Magic Leap, Inc. Generating textured polygon strip hair from strand-based hair for a virtual character
WO2019226549A1 (en) * 2018-05-22 2019-11-28 Magic Leap, Inc. Computer generated hair groom transfer tool
CN110766799A (en) * 2018-07-27 2020-02-07 网易(杭州)网络有限公司 Method and device for processing hair of virtual object, electronic device and storage medium
WO2020119822A1 (en) * 2018-12-14 2020-06-18 深圳市中兴微电子技术有限公司 Virtual reality display method and device, apparatus, and computer storage medium
CN111429557A (en) * 2020-02-27 2020-07-17 网易(杭州)网络有限公司 Hair generating method, hair generating device and readable storage medium
CN111481936A (en) * 2020-05-18 2020-08-04 网易(杭州)网络有限公司 Virtual model generation method and device, storage medium and electronic device
CN111862291A (en) * 2020-07-10 2020-10-30 完美世界(北京)软件科技发展有限公司 Aqueous baking method and apparatus, storage medium, and electronic apparatus
CN111815746A (en) * 2020-09-10 2020-10-23 江苏原力数字科技股份有限公司 Method for generating hair data based on USD system
CN112184852A (en) * 2020-09-10 2021-01-05 珠海格力电器股份有限公司 Auxiliary drawing method and device based on virtual imaging, storage medium and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
写实三维角色的毛发制作研究;李曙光;;长春师范大学学报(第10期);全文 *
基于图像的头发建模技术综述;包永堂;齐越;;计算机研究与发展(第11期);全文 *

Also Published As

Publication number Publication date
CN112734894A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
WO2018076437A1 (en) Method and apparatus for human facial mapping
KR20210047283A (en) Method and apparatus for generating virtual avatar, device, storage medium and computer program
CN104008569B (en) A kind of 3D scene generating method based on deep video
US9177421B2 (en) Hair meshes
US20190318523A1 (en) Methods and Systems for Monitoring User Activity and Managing Controllers in 3-D Graphics
CN112927331B (en) Character model animation generation method and device, storage medium and electronic equipment
US20220375150A1 (en) Expression generation for animation object
CN105574914A (en) Manufacturing device and manufacturing method of 3D dynamic scene
CN110765518A (en) Indoor environment simulation method and related equipment
CN112221145A (en) Game face model generation method and device, storage medium and electronic equipment
JP2016122297A (en) Modeling system, modeling program, and modeling method
CN112734894B (en) Virtual hair drawing method and device, storage medium and electronic equipment
CN115146341A (en) Three-dimensional intelligent parameterized BIM model establishing software
KR102089473B1 (en) Method and device for editing facial model
CN104574480A (en) Rapid generation method of role hair style in three-dimensional animation
CN104102759B (en) Building model image display system and method thereof
CN115588065A (en) Method and device for generating hair model, computer equipment and storage medium
CN109859294A (en) A kind of VR cartoon character three-dimensional modeling optimization method
CN108268701A (en) Ceiling joist accessory moving method, system and electronic equipment
CN115115814A (en) Information processing method, information processing apparatus, readable storage medium, and electronic apparatus
CN105892787B (en) A kind of multimachine, multi-model and multiwindow synchronous browsing and analysis method
CN105096378B (en) A kind of method and computer aided design system for building three-dimensional body
CN114078179A (en) Method and device for reconstructing three-dimensional hair model, electronic equipment and storage medium
CN112866741A (en) Gift animation effect display method and system based on 3D face animation reconstruction
CN111481936A (en) Virtual model generation method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40042020

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant