Virtual costume editing method and device, electronic equipment and storage medium
By loading the opposite-sex garment template in the virtual clothing editing system and restricting operation permissions, the problem of users being unable to use the opposite-sex garment is solved, personalized editing and display are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202311758164.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-01-10
AI Technical Summary
In the existing virtual clothing editing system, users cannot use the opposite sex garment template, resulting in the inability to meet personalized needs and may lead to adverse experiences.
By loading the corresponding garment templates on the garment page according to the gender selected by the user and adapting to the operation permissions of virtual clothing, users are allowed to edit virtual clothing of the opposite sex, but restricting their wearing and using permissions, providing display of models of the opposite sex to meet personalization need.
It realizes personalized editing and display of virtual clothing by users, avoids the bad experience caused by improper use of clothing of the opposite sex, and improves user experience and satisfaction.
Smart Images

Figure CN119280820A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for editing virtual clothing. Background Art
[0002] Many products that provide virtual social interaction or games provide related functions for virtual clothing, such as character dressing, fashion dyeing / decals. Some recent products also provide user-generated content (UGC) clothing design and publishing functions. Designers or players in the virtual world can design, produce or display virtual clothing according to their personalized design needs.
[0003] In current products, a set of clothing templates is generally provided to users based on their gender. Moreover, the parameters of clothing templates vary greatly due to gender differences, and clothing templates cannot be used interchangeably by men and women. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present application provide a method, device, electronic device and storage medium for editing virtual clothing.
[0005] According to one aspect of an embodiment of the present application, a method for editing a virtual costume is provided, comprising:
[0006] On the clothing page, according to the user's first operation on the gender selection control, determining the clothing gender selected by the user;
[0007] When the clothing-making gender is inconsistent with the gender of the virtual image corresponding to the user, a clothing-making template corresponding to the clothing-making gender is loaded, and a first operation permission corresponding to the virtual clothing is adapted, where the first operation permission is the processing permission of the user on the virtual clothing;
[0008] Acquire the virtual clothing edited by the user based on the clothing template;
[0009] The virtual clothing is rendered.
[0010] According to another aspect of an embodiment of the present application, a virtual clothing editing device is provided, comprising:
[0011] A gender determination module, used to determine the clothing gender selected by the user according to the user's first operation on the gender selection control on the clothing page;
[0012] A loading adaptation module is used to load a clothing template corresponding to the clothing gender and adapt the first operation permission corresponding to the virtual clothing when the clothing gender is inconsistent with the gender of the virtual image corresponding to the user, and the first operation permission is the processing permission of the user on the virtual clothing;
[0013] An editing module, used for obtaining the virtual clothing edited by the user based on the clothing template;
[0014] A rendering module is used to render the virtual clothing.
[0015] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.
[0016] According to another aspect of the embodiment of the present application, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0017] The memory is used to store computer programs;
[0018] The processor is used to implement the above method steps when executing a computer program.
[0019] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method steps are implemented.
[0020] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0021] During the clothing making process, if the user chooses to make clothing for the opposite sex, a clothing making template for the opposite sex can be provided to the user, so that the user can make virtual clothing for the opposite sex, and the user can be restricted from some operations or uses of the virtual clothing by configuring permissions for the created virtual clothing for the opposite sex. This solution not only meets the user's demand for personalized production of virtual clothing, but also avoids the bad experience caused by improper use of virtual clothing for the opposite sex. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 A flowchart of a method for editing virtual clothing provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of a clothing-making page provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of a pop-up window for making clothes for the opposite sex provided in an embodiment of the present application;
[0027] Figure 4 A flowchart of a method for editing virtual clothing provided by another embodiment of the present application;
[0028] Figure 5 A schematic diagram of a clothing-making page provided for another embodiment of the present application;
[0029] Figure 6 A flowchart of a method for editing virtual clothing provided by another embodiment of the present application;
[0030] Figures 7a-7d A schematic diagram of a virtual clothing publishing and editing page provided in an embodiment of the present application;
[0031] Figure 8 A flowchart of a method for editing virtual clothing provided by another embodiment of the present application;
[0032] Fig. 9 A flowchart of a method for editing virtual clothing provided by another embodiment of the present application;
[0033] Fig.10 A schematic diagram of the structure of a virtual clothing editing device provided in an embodiment of the present application;
[0034] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0036] The embodiment of the present application not only provides users with the function of making clothes for the opposite sex, but also further provides users with customized settings for publishing virtual clothing, thereby meeting users' needs for personalization of virtual clothing and improving user experience.
[0037] First, a method for editing virtual clothing provided by an embodiment of the present invention is introduced below.
[0038] Figure 1 A flowchart of a method for editing virtual clothing provided in an embodiment of the present application is shown below. Figure 1 As shown, the method comprises the following steps:
[0039] Step S11, on the clothing making page, according to the user's first operation on the gender selection control, determining the clothing making gender selected by the user;
[0040] Step S12, when the clothing-making gender is inconsistent with the gender of the virtual image corresponding to the user, loading the clothing-making template corresponding to the clothing-making gender, and adapting the first operation authority corresponding to the virtual clothing, the first operation authority being the processing authority of the user on the virtual clothing;
[0041] Step S13, obtaining the virtual clothing edited by the user based on the clothing template;
[0042] Step S14, rendering the virtual clothing.
[0043] In this embodiment, during the clothing making process, if the user chooses to make clothing for the opposite sex, a clothing making template for the opposite sex can be provided to the user, so that the user can make virtual clothing for the opposite sex, and the user can be restricted from some operations or uses of the virtual clothing for the opposite sex by configuring permissions for the virtual clothing made for the opposite sex. This solution not only meets the user's demand for personalized production of virtual clothing, but also avoids the bad experience caused by improper use of virtual clothing for the opposite sex.
[0044] Optionally, when the clothing gender selected by the user is the same as the gender of his or her own virtual image, the user's existing clothing template can be directly loaded; when the clothing gender selected by the user is different from the gender of his or her own virtual image, the default clothing template can be selected from all clothing models corresponding to the clothing gender for loading.
[0045] The clothing template may include clothing skeletons and animations corresponding to the clothing gender. When loading the clothing template, the rotation and scaling states of the clothing skeletons may be remade to their initial states.
[0046] Optionally, for virtual clothing of the opposite sex edited by the user, the corresponding operation permissions may include whether the user can perform the following operations on the virtual clothing, such as wearing, publishing, displaying, giving away, selling, etc.
[0047] like Figure 2As shown, on the clothing page, a gender selection control 21 is added, and the user can select the clothing gender. When selecting the gender, only one gender can be selected. When the clothing gender selected by the user is inconsistent with the gender of the virtual image, the user can be prompted that the virtual clothing of the opposite sex can be displayed in the user's own cloakroom and can also be published, but cannot be worn by his own virtual image.
[0048] For example, if the user's avatar gender is male, when selecting the clothing gender as female, a pop-up window will appear on the clothing page. Figure 3 As shown, the pop-up window reads "Fashion pieces designed for the opposite sex cannot be worn by your avatar and can only be given away, sold, or hung. Do you want to continue?" If the user selects "Yes", the pop-up window will be closed; if the user selects "No", the avatar gender will be automatically switched back.
[0049] In an optional embodiment, in order to better display virtual clothing of the opposite sex, a model for displaying the virtual clothing may also be provided. The method further includes:
[0050] Step A1, obtaining a model corresponding to the clothing-making gender;
[0051] Step A2: matching the virtual clothing with the model, and rendering the model wearing the virtual clothing.
[0052] Among them, a default model model or a random model model can be selected from all model models corresponding to the clothing-making gender for clothing display; a list of model models corresponding to the clothing-making gender can also be provided to the user, and the user can select the model model for the user to display the clothing.
[0053] In this embodiment, virtual clothing of the opposite sex is displayed by matching models of the opposite sex, so that users can observe the virtual clothing of the opposite sex more clearly after making clothes, so that user clothing editing can better meet personalized needs, improve clothing editing effects, and improve user satisfaction with clothing editing.
[0054] In the related art, in a game or virtual community, after a user designs a virtual fashion, he or she hopes to publish or sell the virtual fashion. In the related art, when publishing fashion, a fixed display effect template is generally used. Fashion publishing not only involves the display method of fashion, such as models, display actions, etc., but also involves the background, lighting, camera parameters, and cover pictures of the waterfall flow in the fashion display. In the existing fashion publishing technology, users cannot adjust the fashion publishing effect in a personalized way, resulting in a single fashion publishing display effect.
[0055] The release of virtual clothing not only involves the way of displaying fashion, such as models, display movements, etc., but also involves the background, lighting, camera parameters when the fashion is released, and the cover image of the waterfall flow in the fashion display, etc. The embodiment of the present application optimizes the fashion release process and optimizes the waterfall flow display effect, so that a more beautiful cover image is generated when the virtual clothing is released, and the user can personalize the waterfall flow background.
[0056] Figure 4 FIG. 1 is a flow chart of a method for editing virtual clothing provided in another embodiment of the present application. Figure 4 As shown, the method further comprises the following steps:
[0057] Step S21, obtaining the clothing type corresponding to the virtual clothing;
[0058] Step S22, matching the first publishing configuration information corresponding to the virtual clothing according to the clothing type;
[0059] Step S23: On the publishing and editing page of the virtual clothing, a screen including the virtual clothing is rendered according to the first publishing configuration information.
[0060] The clothing type may include the gender, age, wearer, material, purpose, style, season, country, ethnicity, design, style, etc. of the clothing. Optionally, in the above steps, the information may be matched and published according to multiple types of characteristics of the virtual clothing. For example, the type characteristics of a virtual clothing include: female, silk, dress, spring, Chinese, Han nationality, and flowing. Configuration information may be matched and published for the virtual clothing according to these type characteristics.
[0061] Optionally, the published configuration information may include at least one item of information such as models, actions, expressions, scenes, etc. According to the type characteristics of the virtual clothing, the corresponding models, model actions, expressions, and scene information such as backgrounds may be matched.
[0062] In this embodiment, according to various types of features of virtual clothing designed by the user, the virtual clothing can be automatically matched with publishing configuration information, so that a screen including the virtual clothing can be rendered according to the publishing configuration information, thereby generating a more personalized and more beautiful cover picture when the virtual clothing is published.
[0063] Optionally, clothing types, such as styles, can be selected by the user on the clothing page, such as Figure 5 As shown, a plurality of fashion style tags can be pre-set on the clothing page, and the user can select the corresponding style tag for the virtual clothing edited by the user. In this way, the corresponding publishing configuration information can be matched for the virtual clothing according to the style tag selected by the user.
[0064] In an optional embodiment, on the basis of automatically matching the virtual clothing with the published configuration information, the user can also make personalized adjustments to the published configuration of the virtual clothing. Figure 6 As shown, the method also includes:
[0065] Step S31, on the publishing and editing page of the virtual clothing, determining second publishing configuration information corresponding to the virtual clothing according to the second operation of the user on the publishing and editing control;
[0066] Step S32: Rendering a screen including the virtual clothing according to the second publishing configuration information.
[0067] Optionally, the published configuration information includes at least one of the following: scene resource information corresponding to the virtual clothing when it is published, model model information, model action information or model action combination information, model expression information or model expression combination information, and camera parameters.
[0068] like Figure 7a , 7b As shown in 7c and 7d, the user can select the model, the model's actions, the background image and the model's expression to be displayed when the virtual clothing is released.
[0069] When the gender of the clothing maker is consistent with the user's avatar, the model list can include the user's own avatar, and the user's own avatar is used as the model when the default clothing is released. When the gender of the clothing maker is inconsistent with the user's avatar, the default model can be used, a model can be randomly selected from the model list, or a model with matching clothing type can be selected as the initial model for clothing display. Similarly, actions, backgrounds, and expressions can also use the default options or clothing type matching options as the initial options for clothing display. Subsequent users can choose models, actions, backgrounds, and expressions by themselves.
[0070] Optionally, users can choose not to use models to display clothing, such as Figure 7a As shown, when the user selects the option of leaving the model empty, the action and expression tabs are grayed out and cannot be clicked, or the action and expression option page is canceled. Without using models, only the clothing is displayed, and the virtual clothing release pictures displayed in the waterfall flow can be horizontal. When using models to display virtual clothing, the release pictures in the waterfall flow are vertical.
[0071] Optionally, the rationality of the configuration information selected by the user for publishing can be judged based on the type of clothing. For example, if the virtual clothing is formal clothing, the action combination selected by the user cannot include actions such as cuteness and covering the face.
[0072] Optionally, the method further includes: acquiring a clothing type corresponding to the virtual clothing; and displaying a publishing editing control corresponding to the clothing type on the publishing editing page.
[0073] On the clothing publishing and editing interface, the publishing and editing controls provided to users, such as models, actions, backgrounds, expressions, etc., can be controls corresponding to clothing types. For example, if the clothing type is men's formal wear, the model is a standard male model; the actions include: classical, blockbuster, chic, and trendy; the backgrounds include: office, conference room, solid color background, etc.; the expressions include: expressionless, smiling.
[0074] In an optional embodiment, the release of virtual clothing also supports model action combinations (such as multiple consecutive different POSE combinations) or expression combinations (such as continuous expression changes), etc. The user can select multiple action or expression options and arrange them in sequence, and control the model to perform the selected actions or expressions in sequence, thereby achieving a more personalized, beautiful and interesting release of virtual clothing.
[0075] Optionally, before the clothing is released, the rationality of the action combination or expression combination edited by the user can also be judged. The rationality of the action combination or expression combination can be judged based on factors such as the matching degree between the clothing type and the action / expression, the coherence and matching between adjacent actions, adjacent expressions, or actions and expressions. For example, if the virtual clothing is formal, the action combination selected by the user cannot contain actions such as cuteness and covering the face; if the previous action is looking back and the next action is rolling forward, the action is incoherent and unreasonable; if the previous expression is smiling and the next expression is angry, the two expressions are also incoherent; if the model's action is charming and the expression is angry, the action and expression do not match; and so on.
[0076] The published configuration information may also include camera parameters, such as camera distance, angle, viewing angle, depth, projection mode, etc. Similarly, the camera parameters may be automatically assigned by the program according to the clothing type, and the user may also manually adjust the camera parameters.
[0077] Optionally, different model libraries, action libraries, background libraries or expression libraries may be called according to clothing type, clothing maker's gender and / or camera parameters, so that the user can make publishing configurations according to clothing type, gender, camera parameters, etc.
[0078] In an optional embodiment, the scene resource information includes at least one of the following: lighting parameters, background material parameters, background image information, and mask information. In the above step S23 or step S32, rendering a screen including the virtual clothing includes: when the virtual clothing is published, determining the scene resource corresponding to the virtual clothing according to the scene resource information; and rendering the screen including the virtual clothing according to the scene resource on the publishing page.
[0079] When publishing and editing virtual clothing, you can also set the scene resource information of the scene where the virtual clothing is located. For example, for different types of clothing, you can set different lighting parameters, such as lighting color, lighting intensity, lighting angle, lighting type, number of lights, etc.; you can also set different background material parameters, such as different clothing types corresponding to different material texture parameters, such as background metalness, roughness, reflection, shadow shielding and other parameters; you can also provide background pictures for users to choose, or support users to upload custom background pictures; for masks, you can set it to have a mask or no mask, and the mask can be set above or below the model image; and so on.
[0080] Based on the set scene resource information, the scene when the virtual clothing is released can be freely adjusted in a personalized way, which improves the user's demand for personalized release of virtual clothing and can also further improve the freedom and aesthetics of clothing release.
[0081] Optionally, when releasing clothing, it involves the first-level waterfall page, that is, the page containing multiple virtual clothing release pictures, and the second-level waterfall page, that is, the release page corresponding to a certain virtual clothing. On different pages, the rendering of the virtual clothing pictures is different. Figure 8 As shown, the above-mentioned rendering of the screen including the virtual clothing according to the scene resources on the publishing page includes:
[0082] Step S41, determining a first scene resource corresponding to the virtual clothing according to the lighting parameters, background image information and / or mask information;
[0083] Step S42, on the primary publishing page of the publishing page, rendering a picture including the virtual clothing according to the first scene resource;
[0084] Step S43, when entering the secondary publishing page corresponding to the virtual clothing, calling the background material corresponding to the virtual clothing according to the background material parameter, and rendering the picture including the virtual clothing.
[0085] In this embodiment, the scene resources corresponding to the virtual clothing on the first-level page and the second-level page of the waterfall flow can be different. Since there are many virtual clothing displayed on the first-level page, the detailed display of scene resources may cause a large amount of resource occupation, affecting the smoothness of the waterfall flow page display. Therefore, on the first-level page, the scene is rendered only according to the lighting parameters, background image information and / or mask information to reduce the amount of rendering calculations and reduce the resource occupation of the virtual clothing display. When a certain virtual clothing is displayed separately on the second-level page, the scene is rendered more carefully and realistically according to the background material to meet the exquisite display effect of the virtual clothing.
[0086] Optionally, only pictures of virtual clothing can be displayed on the first-level page of the waterfall flow. The pictures can be set by the user, or automatically generated according to the pictures rendered by the user's published configuration information. On the second-level page of the waterfall flow, the pictures containing the virtual clothing can be rendered according to the published configuration information corresponding to the virtual clothing. The pictures can be dynamic, including model movements, expression combinations, and even dynamic backgrounds, so as to provide a more exquisite and personalized display of the virtual clothing.
[0087] Optionally, a scene resource ID may be pre-configured for the virtual clothing, and the scene resource information includes a scene resource ID corresponding to the clothing type, and the scene ID corresponds to the scene resource when the virtual clothing is released. The method further includes:
[0088] On the publishing and editing page of the virtual clothing, calling the scene resource corresponding to the scene resource ID according to the clothing type of the virtual clothing;
[0089] Initializing rendering of a picture including the virtual clothing is performed according to the scene resources.
[0090] The scene resource ID is associated with lighting parameters, background material parameters, background image information, and mask information. When publishing virtual clothing, the corresponding scene resource is called through the scene resource ID.
[0091] In an alternative embodiment, if Fig. 9 As shown, the method also includes:
[0092] Step S51, on the publishing page of the virtual clothing, when detecting the third operation of the user on the virtual clothing, determining the clothing area of the virtual clothing corresponding to the third operation;
[0093] Step S52, obtaining a local enlarged image corresponding to the clothing area, wherein the resolution of the local enlarged image is greater than the resolution of the virtual clothing on the publishing page;
[0094] Step S53: rendering the local enlarged image on the publishing page.
[0095] On the first or second level page of the waterfall flow, the user can zoom in on the virtual clothing so that the user can observe the details of the virtual clothing. Specifically, a high-resolution image of the virtual clothing can be pre-stored and divided into regions; according to the clothing region selected by the user, the corresponding region of the high-resolution image of the virtual clothing is displayed.
[0096] Optionally, on the first level page of the waterfall flow, when a fourth operation of the user on the virtual clothing image is detected, such as moving the mouse to the clothing image, the introduction information of the clothing or a high-resolution image of the virtual clothing can also be displayed.
[0097] The following are device embodiments of the present application, which can be used to execute method embodiments of the present application.
[0098] Fig.10 This is a schematic diagram of the structure of a virtual clothing editing device provided in an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig.10 As shown, the virtual clothing editing device includes:
[0099] A gender determination module 101 is used to determine the clothing gender selected by the user according to a first operation of the user on the gender selection control on the clothing page;
[0100] A loading adaptation module 102 is used to load a clothing template corresponding to the clothing gender and adapt the first operation authority corresponding to the virtual clothing when the clothing gender is inconsistent with the gender of the virtual image corresponding to the user, wherein the first operation authority is the processing authority of the user on the virtual clothing;
[0101] An editing module 103, used for obtaining the virtual clothing edited by the user based on the clothing template;
[0102] The rendering module 104 is used to render the virtual clothing.
[0103] Optionally, the device further comprises:
[0104] A model acquisition module 105 is used to acquire a model of a mannequin corresponding to the clothing-making gender;
[0105] The rendering module 104 is used to match the virtual clothing with the model and render the model wearing the virtual clothing.
[0106] Optionally, the device further comprises:
[0107] A clothing type acquisition module 106 is used to acquire the clothing type corresponding to the virtual clothing;
[0108] A matching module 107, configured to match the first published configuration information corresponding to the virtual clothing according to the clothing type;
[0109] The rendering module 104 is configured to render a screen including the virtual clothing according to the first publishing configuration information on the publishing and editing page of the virtual clothing.
[0110] Optionally, the device further comprises:
[0111] A publishing configuration determining module 108, configured to determine, on the publishing editing page of the virtual clothing, second publishing configuration information corresponding to the virtual clothing according to the second operation of the user on the publishing editing control;
[0112] The rendering module 104 is configured to render a screen including the virtual clothing according to the second publishing configuration information.
[0113] Optionally, the device further comprises
[0114] A clothing type acquisition module 106 is used to acquire the clothing type corresponding to the virtual clothing;
[0115] The display module 109 is used to display the publishing editing controls corresponding to the clothing type on the publishing editing page.
[0116] Optionally, the publishing configuration information includes at least one of the following: scene resource information corresponding to the virtual clothing when it is published, model model information, model action information or model action combination information, model expression information or model expression combination information, and camera parameters.
[0117] Optionally, the scene resource information includes at least one of the following: lighting parameters, background material parameters, background image information, and mask information; a rendering module 104 is used to determine the scene resources corresponding to the virtual clothing according to the scene resource information when the virtual clothing is published; and render a picture including the virtual clothing according to the scene resources on a publishing page.
[0118] Optionally, the rendering module 104 is used to determine a first scene resource corresponding to the virtual clothing according to the lighting parameters, background image information and / or mask information; on a first-level publishing page of the publishing page, render a screen including the virtual clothing according to the first scene resource; and when entering a second-level publishing page corresponding to the virtual clothing, call the background material corresponding to the virtual clothing according to the background material parameters, and render the screen including the virtual clothing.
[0119] Optionally, the device further comprises:
[0120] A clothing area determination module 110 is used to determine the clothing area of the virtual clothing corresponding to the third operation when detecting the third operation of the user on the virtual clothing on the publishing page of the virtual clothing;
[0121] The enlarged image acquisition module 111 is used to acquire a local enlarged image corresponding to the clothing area, wherein the resolution of the local enlarged image is greater than the resolution of the virtual clothing on the publishing page;
[0122] The rendering module 104 is used to render the local enlarged image on the publishing page.
[0123] The present application also provides an electronic device, such as Fig.11 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .
[0124] Memory 1503, used for storing computer programs;
[0125] The processor 1501 is used to implement the steps of the above method embodiment when executing the computer program stored in the memory 1503.
[0126] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0127] The communication interface is used for communication between the above electronic device and other devices.
[0128] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0129] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be 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, discrete hardware components.
[0130] The present application also provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method embodiment when executed by a processor.
[0131] It should be noted that, for the above-mentioned device, electronic device and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0132] It should be further noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0133] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for editing virtual clothing, characterized in that: include: On the clothing page, according to the user's first operation on the gender selection control, determining the clothing gender selected by the user; When the clothing-making gender is inconsistent with the gender of the virtual image corresponding to the user, a clothing-making template corresponding to the clothing-making gender is loaded, and a first operation permission corresponding to the virtual clothing is adapted, where the first operation permission is the processing permission of the user on the virtual clothing; Acquire the virtual clothing edited by the user based on the clothing template; The virtual clothing is rendered.
2. The method according to claim 1, characterized in that The method further comprises: Obtain a model of a mannequin corresponding to the clothing-making gender; The virtual clothing is matched with the model, and the model wearing the virtual clothing is rendered.
3. The method according to claim 1, characterized in that The method further comprises: Obtaining a clothing type corresponding to the virtual clothing; Matching first publishing configuration information corresponding to the virtual clothing according to the clothing type; On the publishing and editing page of the virtual clothing, a screen including the virtual clothing is rendered according to the first publishing configuration information.
4. The method according to claim 3, characterized in that The method further comprises: On the publishing and editing page of the virtual clothing, determining second publishing configuration information corresponding to the virtual clothing according to a second operation of the user on the publishing and editing control; A screen including the virtual clothing is rendered according to the second publishing configuration information.
5. The method according to claim 4, characterized in that The method further comprises Obtaining a clothing type corresponding to the virtual clothing; On the publishing editing page, the publishing editing controls corresponding to the clothing type are displayed.
6. The method according to any one of claims 3 to 5, characterized in that: The publishing configuration information includes at least one of the following: scene resource information corresponding to the virtual clothing when it is published, model information, model action information or model action combination information, model expression information or model expression combination information, and camera parameters.
7. The method according to claim 6, characterized in that The scene resource information includes at least one of the following: lighting parameters, background material parameters, background image information, and mask information; The rendering includes a picture of the virtual clothing, including: When the virtual clothing is released, determining the scene resource corresponding to the virtual clothing according to the scene resource information; A screen including the virtual clothing is rendered on a publishing page according to the scene resources.
8. The method according to claim 7, characterized in that The rendering of a screen including the virtual clothing according to the scene resources on the publishing page includes: Determine a first scene resource corresponding to the virtual costume according to the lighting parameter, background image information and / or mask information; On the first-level publishing page of the publishing page, rendering a picture including the virtual clothing according to the first scene resource; When entering the secondary publishing page corresponding to the virtual clothing, the background material corresponding to the virtual clothing is called according to the background material parameter, and the picture including the virtual clothing is rendered.
9. The method according to claim 1, characterized in that The method further comprises: On the publishing page of the virtual clothing, when a third operation of the user on the virtual clothing is detected, determining a clothing area of the virtual clothing corresponding to the third operation; Acquire a local enlarged image corresponding to the clothing area, wherein the resolution of the local enlarged image is greater than the resolution of the virtual clothing on the publishing page; The local enlarged image is rendered on the publishing page.
10. A virtual clothing editing device, characterized in that: include: A gender determination module, used to determine the clothing gender selected by the user according to the user's first operation on the gender selection control on the clothing page; A loading adaptation module is used to load a clothing template corresponding to the clothing gender and adapt the first operation permission corresponding to the virtual clothing when the clothing gender is inconsistent with the gender of the virtual image corresponding to the user, and the first operation permission is the processing permission of the user on the virtual clothing; An editing module, used for obtaining the virtual clothing edited by the user based on the clothing template; A rendering module is used to render the virtual clothing.
11. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to implement the virtual clothing editing method according to any one of claims 1 to 9 when executing the computer program.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for editing virtual clothing described in any one of claims 1 to 9 is implemented.