Virtual model and skin editing method, program product and electronic device
By responding to editing operations in the virtual model editing interface, virtual models and skin resources can be created separately, solving the problem of independent management of virtual model and skin data, and simplifying operations and improving resource creation efficiency.
Patent Information
- Application Number
- CN202611486911.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-22
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, virtual models and skin data cannot be created and used independently. Users need to perform cumbersome skin editing operations in addition to editing virtual models, resulting in inconvenient resource management and lengthy operation processes.
In the virtual model editing interface, respond to editing operations, determine the model and skin editing information respectively, and create corresponding resources through confirmation operations to realize the association and independent management of model and skin editing.
It simplifies the user operation process, improves the convenience and flexibility of resource management and use, reduces repetitive operations, and improves resource creation efficiency.
Smart Images

Figure CN123160845A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically, to virtual models and skin editing methods, program products, and electronic devices. Background Technology
[0002] With the development of computer graphics and UGC (User Generated Content) technology, more and more applications are providing users with virtual world editing capabilities. Users can edit virtual models through UGC editors and apply them to game scenes or other virtual spaces. Virtual models generally include geometric structure data, skin data, etc.
[0003] In related technologies, after creating a virtual model, the virtual model and its skin data are usually saved together as a model resource. This makes it impossible to create and use skin resources separately, which is inconvenient for resource utilization. If you want to create separate skin resources, you usually need to perform additional skin editing and uploading operations outside of the virtual model editing process, which is quite cumbersome. Summary of the Invention
[0004] This disclosure provides virtual models and skin editing methods, program products, and electronic devices to at least partially solve related technical problems.
[0005] According to a first aspect of this disclosure, a method for editing a virtual model and its skin is provided, the method comprising: displaying a virtual model editing interface in a graphical user interface provided by a terminal; determining model editing information in response to a first editing operation in the model editing interface; determining skin editing information in response to a second editing operation associated with the first editing operation; and creating a first virtual model resource and a first virtual skin resource based on the model editing information in response to a first confirmation operation.
[0006] According to a second aspect of this disclosure, a virtual model and skin editing apparatus is provided, the apparatus comprising: an interface display module configured to display a virtual model editing interface in a graphical user interface provided by a terminal; a model editing module configured to determine model editing information in response to a first editing operation in the model editing interface; a skin editing module configured to determine skin editing information in response to a second editing operation associated with the first editing operation; and a resource creation module configured to create a first virtual model resource based on the model editing information and a first virtual skin resource based on the skin editing information in response to a first confirmation operation.
[0007] According to a third aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method of the first aspect.
[0008] According to a fourth aspect of this disclosure, an electronic device is provided, including a processor and a memory; wherein the memory is used to store executable instructions of the processor; and the processor is configured to implement the method of the first aspect by executing the executable instructions.
[0009] The technical solution disclosed herein has the following beneficial effects: By responding to the first editing operation in the virtual model editing interface to determine model editing information, and responding to the second editing operation associated with the first editing operation to determine skin editing information, skin editing related to the virtual model can be completed simultaneously during the editing of the virtual model. This links the model editing process with the skin editing process, eliminating the need for the user to initiate a separate skin editing process after completing the model editing. Furthermore, in response to the first confirmation operation, a first virtual model resource is created based on the model editing information, and a first virtual skin resource is created based on the skin editing information. This allows the model editing information and skin editing information generated by a single linked editing process to form corresponding resources. Thus, on the one hand, the virtual model's own data and the skin data used to determine its appearance can be separately formed into virtual model resources and virtual skin resources. Users can flexibly use virtual model resources or virtual skin resources according to their needs, reducing resource management limitations caused by the coupling of model data and skin data, and improving the convenience and flexibility of resource management and use. On the other hand, the creation process of the two types of resources can be connected through the associated editing operation and the first confirmation operation, reducing the repetitive operations performed to create model resources and skin resources separately, making the editing and resource creation process of virtual models and their skins more coherent, simplifying the user operation process, and improving the processing efficiency of the model resource and skin resource creation process. Attached Figure Description
[0010] Figure 1 A schematic diagram of a system architecture according to one embodiment of this disclosure is shown; Figure 2 A flowchart illustrating a virtual model and skin editing method in one embodiment of this disclosure is shown; Figure 3 A schematic diagram showing a virtual model editing interface in one embodiment of this disclosure is provided. Figure 4 A schematic diagram of a virtual skin editing interface according to one embodiment of the present disclosure is shown; Figure 5 A schematic flowchart illustrating the creation of resources in one embodiment of this disclosure is shown; Figure 6 This diagram illustrates a virtual model in one embodiment of the present disclosure. Figure 7This diagram illustrates a virtual skin in one embodiment of the present disclosure. Figure 8 This diagram illustrates a virtual model and skin editing device according to one embodiment of the present disclosure; Figure 9 A schematic diagram of an electronic device according to one embodiment of the present disclosure is shown. Detailed Implementation
[0011] Exemplary embodiments of this disclosure will be described more fully below with reference to the accompanying drawings.
[0012] The accompanying drawings are schematic illustrations of this disclosure and are not necessarily drawn to scale. Some block diagrams shown in the drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in hardware modules or integrated circuits, or in networks, processors, or microcontrollers. Implementations can be carried out in various forms and should not be construed as limited to the examples set forth herein. The features, structures, or characteristics described in this disclosure can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a full description of the technical solutions of this disclosure. However, those skilled in the art will recognize that one or more specific details may be omitted in implementing the technical solutions of this disclosure, or other methods, components, apparatuses, steps, etc., may be used to replace one or more specific details.
[0013] In related technologies, when creating or uploading virtual model resources, the mesh data, collision information, material information, and textures of the virtual model can be processed as data of the same model resource. In this method, the data used to determine the appearance of the model, such as materials and textures, are managed together with the virtual model's own data as part of the virtual model resource, and cannot form a virtual skin resource that can be used independently.
[0014] To create a separate skin resource, you typically need to first create a virtual model resource. After successful creation and obtaining the corresponding model resource identifier, you then enter the skin creation process separately. This involves selecting materials, setting textures, and adjusting relevant skin parameters to create the virtual skin resource. This virtual skin resource is then further associated with the virtual model resource. While virtual model resources and virtual skin resources can be managed separately, users need to perform multiple operations between different resource creation processes. Furthermore, the system needs to handle the independent virtual model creation process, virtual skin creation process, and resource association process separately, making the entire process cumbersome and increasing the user's operational and time costs.
[0015] In view of the above problems, this disclosure provides a method for editing virtual models and skins, which can efficiently create virtual model resources and virtual skin resources separately, simplifying the user operation process and the system's creation process for these two types of resources. The virtual model resources and virtual skin resources created by this disclosure can be applied to various digital scenarios such as games, animations, engineering simulations, and virtual reality.
[0016] In one implementation, the system architecture for implementing the above method can be referred to Figure 1 As shown, the system includes a terminal 110 and a server 120. The terminal 110 is a device used by the user, such as a mobile phone, tablet, personal computer, smart wearable device, game console, etc. The terminal 110 can install and run various applications, including related programs for a UGC editor (the UGC editor can be a standalone application or part of a game client program. Therefore, the program mentioned in this embodiment can refer to a game program or an editor program). The terminal 110 provides a graphical user interface to achieve interactive display functions. The graphical user interface can be used to display the operating system interface, application interface, etc. The server 120 refers to the backend system providing the game or editing services in this embodiment. It can be a single server or a cluster of multiple servers. The server 120 deploys the server-side program corresponding to the UGC editor (such as a game server-side program) to perform server-side data processing, storage, and other functions. For example, model editing information and skin editing information edited by the user through the terminal 110 can be uploaded to the server 120. The server creates a first virtual model resource and a first virtual skin resource. Other users download the first virtual model resource and the first virtual skin resource from the server 120, thereby realizing convenient UGC functions.
[0017] In one implementation, the above method can be implemented and executed based on a cloud interaction system. The cloud interaction system can be based on the aforementioned system architecture. Various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program's execution and the game screen presentation are separated. The storage and execution of in-game control and interaction methods are completed on the cloud gaming server (such as the aforementioned server 120). The cloud gaming client (such as the aforementioned terminal 110) handles data reception, transmission, and game screen presentation. For example, the cloud gaming client can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; while the cloud gaming server in the cloud performs information processing. When playing or editing, the player operates the cloud gaming client to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses game screen data, returns it to the cloud gaming client via the network, and finally decodes and outputs the game screen through the cloud gaming client.
[0018] In one implementation, the above method can be performed by any one or more of the terminal 110 and the server 120.
[0019] In one implementation, the server 120 may not be deployed, and the above method may be implemented through the terminal 110. For example, the terminal 110 may execute the above method alone to create virtual model resources and virtual skin resources in a single-player game.
[0020] In one implementation, the virtual model and skin editing method flow reference Figure 2 As shown, it includes the following steps: S210, the virtual model editing interface is displayed in the graphical user interface provided by the terminal; S220, in response to the first editing operation in the model editing interface, determines the model editing information; S230, in response to a second editing operation associated with the first editing operation, determines skin editing information; S240, in response to the first confirmation operation, create a first virtual model resource based on the model editing information, and create a first virtual skin resource based on the skin editing information.
[0021] based on Figure 2This method, by determining model editing information in response to a first editing operation in the virtual model editing interface, and determining skin editing information in response to a second editing operation associated with the first editing operation, allows for simultaneous skin editing of the virtual model during the editing process. This links the model editing and skin editing processes, eliminating the need for the user to initiate separate skin editing processes after completing the model editing. Furthermore, in response to a first confirmation operation, a first virtual model resource is created based on the model editing information, and a first virtual skin resource is created based on the skin editing information. This ensures that the model editing information and skin editing information generated in a single, linked editing process can each form corresponding resources. Thus, on the one hand, the virtual model's own data and the skin data used to determine its appearance can be separately formed into virtual model resources and virtual skin resources. Users can flexibly use either virtual model resources or virtual skin resources according to their needs, reducing resource management limitations caused by the coupling of model data and skin data, and improving the convenience and flexibility of resource management and use. On the other hand, the creation process of the two types of resources can be connected through the associated editing operation and the first confirmation operation, reducing the repetitive operations performed to create model resources and skin resources separately, making the editing and resource creation process of virtual models and their skins more coherent, simplifying the user operation process, and improving the processing efficiency of the model resource and skin resource creation process.
[0022] The following describes, in conjunction with one or more embodiments and related accompanying drawings, [the following is a description of...]. Figure 2 Each step is explained in detail.
[0023] refer to Figure 2 In step S210, the virtual model editing interface is displayed in the graphical user interface provided by the terminal.
[0024] The graphical user interface provided by the terminal can be an interactive interface displayed on the terminal's screen (such as the interface displayed on a mobile phone screen), or an interactive interface output by the terminal to a connected display device. The virtual model editing interface is an interactive interface used to create, import, modify, or configure virtual models. It can be an independent model editing window, or it can be the resource creation interface, resource attribute interface, or other interface areas that include virtual model editing functions in a UGC editor.
[0025] In this embodiment, the virtual model currently being edited in the virtual model editing interface is referred to as the first virtual model. The first virtual model can originate from a local model file imported by the user, or from existing model data in a UGC editor. For example, the user can select a model file generated by 3D modeling software, or a 3D model file obtained through other means. The terminal responds to the import operation of the model file, reads the model file, and displays the corresponding model editing content in the virtual model editing interface.
[0026] For example, after reading a local model file, the terminal can perform format checks and data parsing to obtain the mesh, sub-mesh, materials, and other model data from the model file. If the data format used by the local model file differs from the data format used by the application at runtime, a format conversion can be performed on the local model file to obtain model data that the application can recognize or load. The terminal can also determine collision information based on the model's mesh. For example, it can generate bounding boxes, bounding spheres, or other forms of colliders based on the spatial extent of the mesh. The aforementioned collision information can also originate from existing collision data in the local model file.
[0027] The virtual model editing interface displays a preview of the first virtual model and corresponding model parameter editing areas. Model parameters can include the model name, model file, model dimensions, scaling parameters, collision parameters, or other parameters related to the first virtual model itself. If the model has multiple sub-meshes, the number of sub-meshes can be determined based on the sub-mesh information recorded in the model file. Sub-meshes can be individual mesh portions of the first virtual model that can have their materials or skins set.
[0028] It should be noted that the specific layout of the virtual model editing interface does not constitute a limitation of this disclosure. For example, the model preview area and the model parameter editing area can be displayed side by side, or they can be displayed through different pages, tabs, or floating windows. The key is that editing operations on the first virtual model can be received through the corresponding interface.
[0029] Continue to refer to Figure 2 In step S220, in response to the first editing operation in the model editing interface, model editing information is determined.
[0030] The first editing operation refers to the editing operation performed by the user on the first virtual model in the virtual model editing interface. It can include creating a new model or modifying an existing model. For example, the first editing operation may include one or more operations such as importing a local model file, setting the model name, adjusting the model size, setting collision parameters, or confirming the model's configuration.
[0031] Model editing information is virtual model information determined based on the first editing operation, including relevant information describing the first virtual model or used to create the first virtual model resource. For example, model editing information may include model file information, mesh information, sub-mesh information, collision information, and model name of the first virtual model, and may also include other information required according to the specific model resource format. Model editing information may directly contain the corresponding data, or it may contain references to the local storage location, cache location, or other data. For example, after a user imports a local model file through the first editing operation, the terminal can parse the local model file and record the parsed mesh data, the number of sub-mesh elements, and the storage location of the model file in the model editing information. If the user further modifies the model name or collision parameters, the modified parameters can be used to update the model editing information. Therefore, the model editing information can be updated as the first editing operation progresses and reflects the model configuration in the current editing state when the user performs the first confirmation operation.
[0032] In one implementation, the first editing operation includes a new model operation. A new model operation refers to the process of bringing a virtual model, which does not yet exist as an independent model resource, into the model resource creation process. For example, when a user imports a local model file into the UGC editor, this can be considered as performing a new model operation on that model. Alternatively, the user can select to create a new virtual model in the UGC editor and can edit the virtual model from scratch or based on a virtual model template provided by the system. In this case, the model editing information can be used to subsequently create a new first virtual model resource.
[0033] In another implementation, the first editing operation can be performed on existing virtual model resources. The terminal can first read the data corresponding to the existing virtual model resources, form the current editing state in the virtual model editing interface, and then determine the model editing information based on the user's modification of some parameters.
[0034] Figure 3 A schematic diagram of the virtual model editing interface is shown. In this interface, users can create new virtual models or select existing ones for editing. Editable content includes: virtual model name, whether to generate physics objects, the method for previewing physics objects, collider type, correction parameters, material or skin parameters, etc. The model editing information is determined based on the information edited by the user in this interface. It should be noted that the model editing information may not include skin editing information. Alternatively, if the user edits the skin of the first virtual model during the first editing operation, the model editing information may include some or all of the skin editing information.
[0035] Continue to refer to Figure 2In step S230, in response to a second editing operation associated with the first editing operation, skin editing information is determined.
[0036] The second editing operation is an editing operation performed on the skin of the first virtual model. The association between the second and first editing operations means that they are in a related editing process targeting the same first virtual model. This disclosure does not limit the way the first and second editing operations are associated; for example, the first and second editing operations can be on the same interface (e.g., ...). Figure 3 The second editing operation can be completed in the virtual model editing interface shown, or it can be a derivative or continuation of the first editing operation. In one embodiment, during the process of the user importing the first virtual model and editing the model parameters, the skin used by the first virtual model can be further selected or edited. At this time, the operation on the skin can be regarded as the second editing operation associated with the first editing operation.
[0037] Skin is used to define at least a portion of the appearance of a virtual model. Skin may include one or more of material templates, colors, texture references, and material parameters. Material templates may be used to define the basic rendering method of the model's surface; colors may include overall color or shading parameters for different areas; textures may include base color maps, normal maps, and other textures used to render the model's surface; material parameters may include one or more parameters adapted to the material template used.
[0038] Skin editing information is information determined based on the second editing operation. It describes the skin corresponding to the first virtual model or is used to create the first virtual skin resource. Skin editing information may include one or more of the following: material template, texture parameters, color parameters, staining parameters, and other material parameters used by the skin. If the user uses a local texture that has not yet been uploaded when editing the skin, the skin editing information may also include the local texture itself or its storage path, so that the corresponding texture data can be obtained in the subsequent resource creation process.
[0039] For example, after a user imports the first virtual model, the virtual model editing interface can provide a skin editing entry. The user can select a base skin through this entry and modify its textures, colors, or material parameters. The terminal can record the modified parameters as skin editing information and update the preview effect of the first virtual model in real time based on this information. In this way, before creating resources, the user can determine the desired appearance of the first virtual model during the editing process.
[0040] Skin editing information and model editing information can be saved separately. Model editing information is mainly used to determine the model data of the first virtual model itself, while skin editing information is mainly used to determine the appearance data of the first virtual model. By saving the two types of editing information separately, a data foundation can be provided for the subsequent creation of the first virtual model resource and the first virtual skin resource.
[0041] In one implementation, the virtual model editing interface displays one or more skin slots for the currently edited first virtual model. A skin slot is used to record the configuration location of the skin used for a specific part of the first virtual model. A skin slot can correspond to a part of the first virtual model whose appearance can be independently set, and saves or associates the skin editing information for that part.
[0042] In one implementation, the first virtual model has one or more sub-meshes; each skin slot corresponds to one sub-mesh, and the skin editing information for each skin slot is used to determine the virtual skin of the corresponding sub-mesh. Here, a sub-mesh is a portion of the first virtual model's mesh data that can be configured with materials or skins. A 3D model may include only one sub-mesh or may consist of multiple sub-meshes. The number of sub-meshes and the division relationships between them can be recorded in the imported local model file and determined when the terminal parses the local model file.
[0043] After determining the sub-mesh, a one-to-one correspondence can be established between the sub-mesh and the skin slot. For example, if the first virtual model includes three sub-mesh, then three skin slots can be created: the first skin slot corresponds to the first sub-mesh, the second skin slot corresponds to the second sub-mesh, and the third skin slot corresponds to the third sub-mesh. The skin editing information for each skin slot is used to determine the virtual skin used by its corresponding sub-mesh.
[0044] During the editing process, the terminal can preview and render the corresponding sub-mesh based on the current skin editing information of each skin slot. For example, when the user modifies the texture parameters of the second skin slot, the modified texture can be applied to the sub-mesh corresponding to the second skin slot, while the sub-meshes corresponding to the first and third skin slots can retain their current skin states. In this way, the user can determine the appearance of each part of the first virtual model with multiple material components one by one.
[0045] By mapping skin slots to sub-mesh, a skin configuration structure can be established based on the existing mesh structure of the first virtual model, allowing different sub-mesh to use their respective virtual skins. For models with multiple sub-mesh, it is not necessary to fix and merge the appearance of multiple sub-mesh into a single overall skin data, thereby improving the flexibility of skin configuration for different parts of the model.
[0046] In one implementation, in response to a second editing operation associated with a first editing operation, skin editing information is determined, including: In response to the second editing operation on each skin slot, determine the skin editing information for each skin slot; Create the first virtual skin resource based on the skin editing information, including: Create a first virtual skin resource corresponding to the first skin slot based on the skin editing information of the first skin slot in one or more skin slots.
[0047] Each skin slot can have independent editing states. For example, one skin slot can be set to use an existing virtual skin, another can be set to create a new virtual skin, and yet another can be set to not configure a virtual skin. The terminal can record the skin editing information corresponding to each skin slot, allowing different parts of the first virtual model to have their appearance determined separately. Skin slots can be represented through lists, attribute items, or other interactive controls in the virtual model editing interface. The skin slot itself is not limited to a specific graphical control; its main purpose is to establish the relationship between the model parts of the first virtual model and the corresponding skin editing information.
[0048] Each skin slot can receive a second editing operation. These second editing operations can include selecting an existing virtual skin, creating a new virtual skin, modifying the skin parameters of a virtual skin, or setting the skin slot to have no skin. The terminal can maintain corresponding skin editing information based on the second editing operations performed on each skin slot.
[0049] The first skin slot is one of one or more skin slots from which a first virtual skin resource needs to be created based on its skin editing information; it does not necessarily refer to the skin slot that is listed first. For example, if a first virtual model has three skin slots, and the user has performed a new skin operation on the second skin slot, then that second skin slot can be used as the first skin slot.
[0050] When the first skin slot corresponds to a newly edited skin, a corresponding first virtual skin resource can be created based on the skin editing information of that first skin slot. For other skin slots, corresponding virtual skin resources can be created in the same way. If an existing virtual skin resource has already been selected for a skin slot, the skin resource identifier of the existing virtual skin resource can be directly recorded, without needing to create the same virtual skin resource again for that skin slot.
[0051] For example, the first virtual model has three skin slots. The first skin slot has an existing virtual skin, the second skin slot has a newly created virtual skin, and the third skin slot is left empty. In this case, the skin resource identifier of the existing virtual skin can be recorded in the first skin slot. A new first virtual skin resource can be created based on the skin editing information in the second skin slot, and the third skin slot can remain empty. Thus, appropriate resource processing methods can be adopted for the actual editing status of different skin slots.
[0052] By determining the skin editing information according to the skin slots and creating corresponding virtual skin resources for the skin slots where new skins need to be created, it is possible to adapt to the first virtual model containing multiple sub-mesh and avoid repeatedly creating resources for existing virtual skins, thereby reducing unnecessary resource creation processing.
[0053] In one implementation, in response to a second editing operation on each skin slot, determining skin editing information for each skin slot includes at least one of the following steps: In response to the absence of a skin operation for setting the second skin slot in one or more skin slots, it is determined that the skin editing information for the second skin slot is empty; In response to the creation of a new skin and the editing of skin parameters for the second skin slot, the skin editing information for the second skin slot is determined based on the edited skin parameters; In response to a skin selection operation for the second skin slot, the skin editing information for the second skin slot is determined based on the skin parameters of the selected virtual skin. In response to the skin selection operation for the second skin slot and the skin parameter modification operation for the selected virtual skin, the skin editing information for the second skin slot is determined based on the modified skin parameters.
[0054] The second skin slot can be any one of one or more skin slots. The term "second skin slot" is used here to illustrate different editing methods for a single skin slot and does not imply that the second skin slot must be distinct from the aforementioned first skin slot. In different implementations or different editing states, the same skin slot can serve as either the first or second skin slot.
[0055] Setting the "No Skin" operation indicates that the corresponding skin slot should not be configured with a separate virtual skin. In response to this operation, the skin editing information for the second skin slot can be set to empty. Empty skin editing information can be achieved using null, zero, or other state values that indicate no separate virtual skin is configured. When using the first virtual model subsequently, for skin slots with empty skin editing information, the corresponding sub-mesh can be displayed according to the system's default processing method, such as using the model's own skin data or using a generic default appearance.
[0056] The "Create New Skin" operation is used to create a new virtual skin for the second skin slot. This can include clicking the "Create New Skin" control or selecting a basic skin template. After creating a new skin, the user can further edit the skin parameters. Skin parameters can include one or more of the following: material template, color, texture, coloring parameters, and material parameters. The terminal can generate editable temporary skin data based on the initial skin data or the basic skin template, and update this temporary skin data according to the user's skin parameter editing operations. After the user completes the editing, the skin editing information for the second skin slot is determined based on the edited skin parameters.
[0057] The skin selection operation is used to select the virtual skin for a second skin slot from one or more existing virtual skins. For example, a skin resource selection interface can be displayed in response to a user triggering a skin resource selection entry, and the selected virtual skin can be determined in response to the user's selection of one of the virtual skins. Skin parameters of the selected virtual skin can be obtained, and skin editing information for the second skin slot can be determined based on these parameters. In one implementation, the skin resource identifier of the selected virtual skin can also be directly recorded as data corresponding to the second skin slot to establish an association when creating or updating model resources subsequently.
[0058] After selecting an existing virtual skin, users can further modify its parameters. For example, the selected skin parameters can be used as initial values to create editable skin data, and then textures, colors, or material parameters can be modified. At this point, the skin editing information for the second skin slot is determined based on the modified skin parameters. Subsequently, new virtual skin resources can be created based on the modified skin editing information without modifying the original virtual skin resources.
[0059] Therefore, the same skin slot can support different editing methods such as no skin, creating a new skin, directly selecting an existing skin, and modifying based on an existing skin. This allows users to complete skin configurations from different sources during the editing process of the first virtual model and determine the corresponding skin editing information according to different editing states.
[0060] In one implementation, in response to a second editing operation associated with a first editing operation, skin editing information is determined, including: In response to skin editing trigger information in the virtual model editing interface, display the virtual skin editing interface; In response to the second editing operation in the virtual skin editing interface, determine the skin editing information.
[0061] The skin editing trigger information is used to trigger the display of the virtual skin editing interface, and it is generated based on the user's operations in the virtual model editing interface. For example, the virtual model editing interface can set skin editing entrances at the corresponding positions of each skin slot, and skin editing trigger information is generated when the user clicks or long-presses the entrance. Skin editing trigger information can also be generated by the user's selection of creating a new skin or modifying the current skin. The virtual skin editing interface is an interactive interface used to edit virtual skins. The virtual skin editing interface can be displayed as an independent window, or as a sub-interface, overlay, panel, or page in the virtual model editing interface. This disclosure does not limit the specific interface hierarchy relationship between the virtual skin editing interface and the virtual model editing interface. When displaying the virtual skin editing interface, the skin data corresponding to the current skin slot can be read as the initial editing data. For example, if the current skin slot selects a basic skin template, the initial skin data can be formed based on the basic skin template; if the skin slot has been edited before and a local skin draft has been saved, the previous editing state can be restored based on the local skin draft. The virtual skin editing interface can provide interactive controls for setting textures, material parameters, and color parameters. Users can replace textures, adjust material parameters, or modify color settings through the second editing operation. The terminal responds to the second editing operation by updating the current skin data and determines the skin editing information based on the updated skin data.
[0062] During the editing process, the preview of the first virtual model can be updated based on the current skin editing information. For example, when the user changes the base color map in the virtual skin editing interface, the new base color map can be applied to the sub-mesh corresponding to the current skin slot; when the user adjusts the coloring parameters, the corresponding sub-mesh can be re-rendered according to the adjusted parameters. Thus, the user can view the results of skin editing on the appearance of the first virtual model before completing resource creation.
[0063] After completing the editing in the virtual skin editing interface, users can return to the virtual model editing interface, where the finalized skin editing information will be saved in the corresponding skin slot. If the user triggers skin editing in that slot again, the edited content can be restored based on the saved skin editing information.
[0064] By triggering the virtual skin editing interface from the virtual model editing interface, the skin editing process is invoked as part of the current first virtual model editing process. This allows for the establishment of an operational association between the two while maintaining the separate interface organization of the model editing function and the skin parameter editing function, so that users do not need to leave the current model editing process to create skin resources separately.
[0065] Figure 4 A schematic diagram of the virtual skin editing interface is shown. Figure 3In the virtual model editing interface shown, users can select any skin slot to edit, thus triggering the display of the virtual skin editing interface. The editable content in the virtual skin editing interface includes: skin name, skin preview image, colors of each stained area, material parameters, texture transformation, roughness, etc. The skin editing information is determined based on the information edited by the user in the virtual skin editing interface.
[0066] Continue to refer to Figure 2 In step S240, in response to the first confirmation operation, a first virtual model resource is created based on the model editing information, and a first virtual skin resource is created based on the skin editing information.
[0067] The first confirmation operation is used to confirm the current editing of the first virtual model and its skin. For example, the virtual model editing interface may display a confirmation control, an upload control, or other controls to end the current editing and submit a resource creation request. When the user clicks, touches, or performs other triggering operations on these controls, it confirms that the first confirmation operation has been received. The first confirmation operation can also be generated via a shortcut key or other interactive methods. (Refer to the above.) Figure 3 As shown, in the virtual model editing interface, when the user clicks the confirmation control in the lower right corner, the first confirmation operation is triggered.
[0068] The first virtual model resource is a resource created based on model editing information to represent the first virtual model. The first virtual model resource may include data of the model itself, such as the mesh and collision information, and has a model resource identifier that can identify the resource during resource management, scene editing, or operation.
[0069] The first virtual skin resource is a resource created based on skin editing information to represent the skin of the first virtual model. The first virtual skin resource may include skin data such as material templates, colors, texture references, and material parameters, and has a skin resource identifier that can independently identify the resource. Therefore, the first virtual model resource and the first virtual skin resource are different resources, and they can have independent resource identifiers.
[0070] The creation of the first virtual model resource and the first virtual skin resource does not require the two creation operations to be completed at the same time. For example, the first virtual model resource can be created first, and then the first virtual skin resource can be created based on the creation result of the first virtual model resource; alternatively, the first virtual skin resource can be created first, and then the first virtual model resource, provided that data dependencies are satisfied; or the corresponding resource creation data can be submitted to the server separately. The first confirmation operation is used to trigger the creation process of the two types of resources being related, and does not restrict the order in which the two types of resources are executed.
[0071] For example, when importing the first virtual model for the first time, the user can complete model editing and skin editing in the virtual model editing interface, and then perform only one first confirmation operation. In response to this first confirmation operation, the system can sequentially complete model data processing and skin data processing, and finally form independent first virtual model resources and first virtual skin resources. For the user, there is no need to enter another resource creation portal to recreate the skin after the first virtual model resource is successfully created.
[0072] This method allows for the creation of model resources and skin resources to be linked by an associated editing process and a first confirmation operation, while maintaining the independence of the two types of resources. This reduces the need for users to perform repeated confirmations and process switching operations in order to create the two types of resources.
[0073] In one implementation, a first virtual model resource is created based on model editing information, and a first virtual skin resource is created based on skin editing information, including: If the first editing operation includes creating a new model, then create the first virtual model resource based on the model editing information; If the second editing operation includes creating a new skin, then a first virtual skin resource is created based on the skin editing information.
[0074] The "Create New Model" operation indicates that the current first virtual model needs to be transformed into a new virtual model resource. For example, if the first virtual model comes from a local model file imported by the user for the first time, and a corresponding model resource does not yet exist, then the operation of importing and editing this model can include the "Create New Model" operation. In response to the first confirmation operation, a new first virtual model resource can be created based on the model editing information.
[0075] The "Create New Skin" operation indicates that the currently edited skin needs to be transformed into a new virtual skin resource. For example, a user can modify textures, colors, or material parameters based on a base skin template and choose to use the modified result as a new virtual skin. In this case, the second editing operation includes the "Create New Skin" operation, which can create a first virtual skin resource based on the corresponding skin editing information.
[0076] If the first editing operation does not include creating a new model, for example, if the current edit is of an existing virtual model resource, then a new first virtual model resource does not need to be created again; instead, the existing virtual model resource is updated according to the actual editing status. Similarly, if the second editing operation only selects an existing virtual skin and does not include creating a new skin, then the skin resource identifier of the existing virtual skin can be used directly without creating a first virtual skin resource with the same content again.
[0077] For example, when a user creates a new skin for a newly imported virtual model, the first editing operation includes creating a new model, and the second editing operation includes creating a new skin. This allows for the creation of both the first virtual model resource and the first virtual skin resource. If the first virtual model already exists and only a new skin is needed, the existing model resource identifier can be used to directly create a new first virtual skin resource. If both the model and the skin are existing resources, the configuration can be completed by updating the association between them.
[0078] By selecting the resource creation method based on whether the first and second editing operations include the corresponding new creation operation, it is possible to avoid repeatedly creating resources when existing resources can be used directly. It also enables the same editing process to adapt to different situations such as first-time creation, adding skins to existing models, and selecting existing skins, thereby improving the processing efficiency of the resource creation process.
[0079] In one implementation, if the model editing information differs from the model information of an existing virtual model, a first virtual model resource is created based on the model editing information. Similarly, if the skin editing information differs from the skin information of an existing virtual skin, a first virtual skin resource is created based on the skin editing information. The difference between the model editing information and the model information of an existing virtual model indicates that the user's currently edited first virtual model is different from any existing virtual model, thus triggering the creation of a new first virtual model resource. For example, after the user creates a new virtual model and performs the first editing operation, or after selecting an existing virtual model and modifying its model parameters, the system checks whether the model editing information differs from the model information of an existing virtual model; if they differ, a first virtual model resource is created. Likewise, the difference between the skin editing information and the skin information of an existing virtual skin indicates that the user's currently edited first virtual skin is different from any existing virtual skin, thus triggering the creation of a new first virtual skin resource. For example, after the user creates a new virtual skin and performs the first editing operation, or after selecting an existing virtual skin and modifying its skin parameters, the system checks whether the skin editing information differs from the skin information of an existing virtual skin; if they differ, a first virtual skin resource is created. This avoids the creation of duplicate virtual model resources or virtual skin resources.
[0080] In one implementation, in response to a first confirmation operation, a first virtual model resource is created based on model editing information, and a first virtual skin resource is created based on skin editing information, including: In response to the first confirmation operation, a first virtual model resource is created based on the model editing information, and the model resource identifier of the first virtual model resource is determined; A first virtual skin resource is created based on skin editing information and model resource identifiers; the applicable model identifiers for the first virtual skin resource include the model resource identifiers.
[0081] The model resource identifier is an identification information used to uniquely identify or distinguish the first virtual model resource. The model resource identifier can be generated by the terminal or server that created the first virtual model resource, and can be, for example, a resource number, a string identifier, or a resource path formed based on the resource number.
[0082] The applicable model identifier of the first virtual skin resource indicates which virtual model resources the first virtual skin resource can be applied to. It can include only one model resource identifier (indicating that the first virtual skin resource is a skin exclusive to the corresponding virtual model resource), or it can include multiple model resource identifiers (indicating that the first virtual skin resource can be applied to multiple virtual model resources). The applicable model identifier of the first virtual skin resource includes the model resource identifier of the first virtual model resource, indicating that the first virtual skin resource is applicable to that first virtual model resource. When the first virtual skin resource is a model-specific skin, the applicable model identifier can be used to restrict the application of the first virtual skin resource to the corresponding first virtual model resource, thereby reducing the possibility of the skin being applied to other virtual models with incompatible model structures.
[0083] For the first virtual model created for the first time, the first virtual model resource does not yet have a formal model resource identifier when the first confirmation operation occurs. Therefore, the first virtual model resource can be created first based on the model editing information. During the creation process, the main model file and related sub-files can be uploaded, and model editing information such as model name, number of sub-mesh, and collision information can be submitted. After the first virtual model resource is successfully created, its model resource identifier is obtained. Subsequently, the skin data required for the first virtual skin resource can be formed based on the skin editing information, and the obtained model resource identifier is written into the skin data as the applicable model identifier. The first virtual skin resource is created after the skin data is complete. Thus, the first virtual skin resource can record the applicable first virtual model resource when it is created. For example, if the model resource identifier M1 is obtained after the first virtual model resource is created, then M1 can be recorded as the applicable model identifier for the skin data obtained from editing the first virtual model, and then the first virtual skin resource P1 can be created based on this skin data. When selecting P1 later, it can be determined whether the skin can be applied to the current model based on the recorded M1.
[0084] By first creating a first virtual model resource to obtain the model resource identifier, and then using the model resource identifier to create the first virtual skin resource, the problem that the skin resource needs to reference the model resource identifier when the model is first created, but the identifier has not yet been generated, can be solved. This allows the model-specific skin to establish a clear applicable model relationship when it is created, and reduces the possibility of misuse of skin resources between different models.
[0085] In one implementation, a first virtual skin resource is created based on skin editing information and a model resource identifier, including: When creating the first virtual model resource based on the model editing information, the skin editing information is saved as a local skin draft; After creating the first virtual model resource and determining the model resource identifier of the first virtual model resource, the first virtual skin resource is created based on the local skin draft and the model resource identifier.
[0086] The local skin draft is data used to temporarily save skin editing results before the first virtual skin resource is officially created. This local skin draft can be stored in the terminal's memory, cache files, local database, or other local storage areas. The local skin draft does not need to have a formal skin resource identifier, nor does it need to include the formal model resource identifier of the first virtual model resource when saved. The local skin draft can save skin editing information determined by the user in the second editing operation. For example, it can save material templates, color parameters, material parameters, shading parameters, local texture data, or local texture paths. If the user enters the skin editing interface multiple times before the first confirmation operation, they can also restore the previous editing state based on the local skin draft to continue editing.
[0087] When creating the first virtual model resource for the first time, since the first virtual model resource has not yet obtained a model resource identifier, the current skin editing information can be saved as a local skin draft instead of immediately creating the first virtual skin resource. At the same time, the creation of the first virtual model resource is performed based on the model editing information.
[0088] After the first virtual model resource is successfully created, a model resource identifier can be obtained. At this point, the local skin draft is retrieved again, the model resource identifier is added to the data used to create the first virtual skin resource, and then the creation of the first virtual skin resource is executed. If the first virtual model has multiple skin slots that require new skins, the local skin drafts for each skin slot can be saved separately, and virtual skin resources can be created separately according to the local skin drafts corresponding to each skin slot after obtaining the model resource identifier.
[0089] For example, if a user completes skin editing for two skin slots before the first confirmation operation, they can save a first local skin draft and a second local skin draft respectively. After the first virtual model resource is successfully created and its model resource identifier is obtained, the model resource identifier is combined with the first local skin draft and the second local skin draft respectively, thereby creating two corresponding virtual skin resources.
[0090] By temporarily saving the skin editing results that do not yet have complete resource association information in the local skin draft, users can complete the skin editing before the model resource identifier is generated, without having to wait for the model resource to be created and then re-edit the skin. After the model resource identifier is generated, the already saved local skin draft can be used to continue to complete the skin resource creation, thereby reducing repeated editing operations while maintaining the correct resource creation dependencies.
[0091] In one implementation, a first virtual skin resource is created based on skin editing information and a model resource identifier, including: Create skin data based on skin editing information; If the skin editing information includes local textures, then create texture resources based on the local textures and determine the corresponding texture resource identifier, and write the texture resource identifier into the texture parameters of the skin data; Write the model resource identifier into the applicable model identifier of the skin data; Create the first virtual skin resource based on the skin data that has been written with texture resource identifiers and model resource identifiers.
[0092] Skin data is a data set used to form the first virtual skin resource, and may include one or more of the following: material templates, texture parameters, material parameters, color parameters, shading parameters, and applicable model identifiers. Skin data can be initially formed based on skin editing information, and further supplemented with corresponding resource identifiers during resource creation. Local textures are textures that do not yet exist as independently referenceable resources and are stored locally on the terminal or in the current editing environment. During skin editing, users can select local images as base color textures, normal textures, or other textures; thus, the skin editing information can record local texture data or the storage location of local textures. Texture resources are resources created based on local textures and can be independently identified through texture resource identifiers. If the skin editing information includes local textures, the corresponding local textures can be read first, and texture resources can be created. When creating texture resources on the server side, local textures can be uploaded to the server, which will then generate texture resources and return texture resource identifiers.
[0093] After obtaining the texture resource identifier, it can be used to replace the temporary reference to local textures in the skin data. For example, the texture parameters during the skin editing stage can record the local file path. Before officially creating the first virtual skin resource, the corresponding texture parameters can be modified to the texture resource identifier of the already created texture resource. Therefore, when the first virtual skin resource is subsequently loaded by other devices, it does not need to access the local file on the terminal where the resource was created, but can obtain the corresponding texture resource based on the texture resource identifier.
[0094] Furthermore, the model resource identifier of the first virtual model resource is written into the applicable model identifier of the skin data, thus establishing an applicable relationship between the skin data and the first virtual model resource. After the local reference in the texture parameters has been converted into a texture resource identifier and the applicable model identifier has been written into the model resource identifier, the first virtual skin resource can be created based on this skin data.
[0095] If the skin editing information includes multiple local textures, multiple texture resources can be created individually or in batches, and the identifier of each texture resource can be written into the corresponding texture parameters. If some textures are already remote texture resources, their original texture resource identifiers can be retained, and resource creation can be performed only for local textures.
[0096] Therefore, before the creation of the first virtual skin resource, the local textures are converted into texture resources that can be referenced independently, and the model resource identifier of the first virtual model resource is supplemented. This allows the textures and applicable models that the first virtual skin resource depends on to be identified through formal resource identifiers, which is beneficial for subsequent loading, transmission and management of skin resources, while maintaining an accurate applicability relationship between skin resources and the first virtual model resource.
[0097] In one implementation, after creating a first virtual skin resource based on skin editing information and model resource identifiers, the method further includes: Determine the skin resource identifier for the first virtual skin resource; Write the skin resource identifier into the associated skin set of the first virtual model resource.
[0098] The skin resource identifier is a unique identifier used to identify or distinguish the first virtual skin resource. The skin resource identifier can be generated by the terminal or server when the first virtual skin resource is successfully created and returned to the module executing the resource creation process. The associated skin set is a collection of information within the first virtual model resource used to record one or more virtual skin resources associated with it. The associated skin set can include one or more skin resource identifiers. For a first virtual model with multiple skin slots, the associated skin set can also save each skin resource identifier in the order of the skin slots, thus maintaining a definite correspondence between the skin resource identifier and the corresponding model part.
[0099] For example, if the first virtual model resource has three skin slots, the associated skin set can contain three data locations corresponding to the skin slots. If the first skin slot uses the first virtual skin resource P1, the second skin slot uses the first virtual skin resource P2, and the third skin slot is not configured with an independent skin, then the skin resource identifier of P1, the skin resource identifier of P2, and a null value can be recorded in the corresponding locations.
[0100] After the first virtual skin resource is successfully created, its skin resource identifier can be obtained. Then, using the model resource identifier of the already created first virtual model resource, the first virtual model resource can be located, and its associated skin set can be updated. This update process can update only the metadata of the first virtual model resource without re-uploading the model file of the first virtual model.
[0101] With the first virtual model resource stored on the server side, an update request containing the model resource identifier and the updated set of associated skins can be sent to the server, causing the server to update the first virtual model resource based on the same model resource identifier. Therefore, it is unnecessary to create a new model resource to write back the skin resource identifier.
[0102] The associated skin set can also be used to record the default skin for the first virtual model resource. When the first virtual model resource is previewed or added to the virtual scene, the associated skin set can be read, and the corresponding first virtual skin resource can be automatically determined to present the appearance determined by the user when uploading or editing the first virtual model.
[0103] By writing the skin resource identifier back to the first virtual model resource after the first virtual skin resource is created, a relationship between the model resource and the skin resource can be formed. This allows the corresponding virtual skin resource to be directly determined when using the first virtual model resource in the future, reducing the need for users to manually assign a skin to the model again after the resource is created.
[0104] In one implementation, the method further includes: When using the second virtual model resource, if the second virtual model resource is configured with an associated skin set, the skin data used by the second virtual model resource is determined according to the skin resource identifier in the associated skin set; if the second virtual model resource is not configured with an associated skin set, the skin data in the second virtual model resource is obtained.
[0105] The second virtual model resource can be any virtual model resource to be loaded, previewed, or used in a virtual scene. The second virtual model resource can be the first virtual model resource created according to the aforementioned method, or it can be a previously existing virtual model resource. In this embodiment, the data structure of the virtual model resource includes two types: The original data structure, representing the data structure of the virtual model resource used before creating and managing virtual model resources and virtual skin resources using the method of this disclosure, includes built-in skin data since the original resource management scheme treats skin data as part of the model data. The new data structure, representing the data structure of the virtual model resource used after creating and managing virtual model resources and virtual skin resources using the method of this disclosure, does not include complete skin data, but only includes necessary skin association information such as associated skin sets. The complete skin data is managed and maintained as a separate virtual skin resource.
[0106] The associated skin set can serve as a basis for distinguishing between a new data structure that uses independent skin resources and the original data structure that contains built-in skin data. When reading a second virtual model resource, it can first be determined whether the second virtual model resource is configured with an associated skin set. Having an associated skin set means that there exists a field for recording the associated skin set, and this field has a corresponding skin resource identifier. If the second virtual model resource is configured with an associated skin set, the skin resource identifier in the associated skin set can be read, the corresponding virtual skin resource can be loaded according to the skin resource identifier, and skin data can be obtained from the virtual skin resource. For a second virtual model resource with multiple skin slots, the corresponding skin data can be obtained according to the skin resource identifier at different positions in the associated skin set, and applied to the corresponding sub-mesh. If the second virtual model resource is not configured with an associated skin set, the skin data in the second virtual model resource can be obtained. For example, in the processing method of independent skin resources, the model file itself can contain skin data such as materials and textures. For such model resources, the skin data stored internally can be read, thereby displaying the model appearance in the original way. For example, the corresponding position in the associated skin set can also be empty or a preset zero value. When the entire associated skin set exists, but the data corresponding to a certain skin slot is empty, the model's built-in skin or the general default skin can be used for that skin slot to provide corresponding rollback processing.
[0107] By selecting different skin data acquisition methods based on whether the associated skin set is configured, both new model data using independent virtual skin resources and existing model data containing built-in skin data can be used. This maintains compatibility with existing model resources when introducing a data structure that separates model resources and skin resources, and reduces the impact of data structure updates on existing content.
[0108] In one implementation, in response to a first confirmation operation, a first virtual model resource is created based on model editing information, and a first virtual skin resource is created based on skin editing information, including: In response to the first confirmation operation, a first virtual skin resource is created based on the skin editing information, and the skin resource identifier of the first virtual skin resource is determined. A first virtual model resource is created based on the model editing information and skin resource identifiers; the associated skin set of the first virtual model resource includes the skin resource identifiers.
[0109] This implementation provides an alternative resource creation order. When the creation of the first virtual skin resource does not depend on the model resource identifier of a first virtual model resource that has not yet been created, the first virtual skin resource can be created first. For example, the first virtual skin resource can be a universal skin applicable to multiple virtual models, or the applicable model information required to create the first virtual skin resource can already be determined; in this case, there is no need to wait for the first virtual model resource to be successfully created.
[0110] In response to the first confirmation operation, skin data can be generated first based on the skin editing information. If the skin editing information includes local textures that need to be created independently, the corresponding texture resources can also be created first, and the texture resource identifier can be written into the skin data. After the skin data meets the resource creation conditions, a first virtual skin resource is created based on the skin data, and the skin resource identifier of the first virtual skin resource is obtained. Subsequently, a first virtual model resource is created based on the model editing information and the obtained skin resource identifier. Specifically, model data for creating the first virtual model resource can be generated based on the model editing information, and the skin resource identifier can be written into the associated skin set of the first virtual model resource before the creation of the first virtual model resource is executed. In this way, when the first virtual model resource is created for the first time, its associated skin set already contains the skin resource identifier of the first virtual skin resource.
[0111] When there are multiple skin slots, the skin resource identifiers required for each skin slot can be obtained first. For example, a new virtual skin resource can be created, and its skin resource identifier can be obtained; for skin slots where an existing virtual skin is selected, the existing skin resource identifier can be obtained directly. Subsequently, an associated skin set is formed according to the correspondence between the skin slots, and then the first virtual model resource is created based on the associated skin set and the model editing information.
[0112] By obtaining the skin resource identifier in advance when the skin resource can be created first, and directly writing the skin resource identifier into the associated skin set when creating the first virtual model resource, the processing of updating the model data again after the first virtual model resource is created can be reduced, so that the model resource has the association relationship with the skin resource when it is created.
[0113] In one implementation, in response to a first confirmation operation, a first virtual model resource is created based on model editing information, and a first virtual skin resource is created based on skin editing information, including: In response to the first confirmation operation, the model editing information is uploaded to the server so that the server can create the first virtual model resource based on the model editing information, and the skin editing information is uploaded to the server so that the server can create the first virtual skin resource based on the skin editing information.
[0114] The server can be a server used to manage UGC resources, game resources, or other virtual content resources. The server can be a single server, or it can be implemented by multiple servers or multiple service modules. The first virtual model resource and the first virtual skin resource can be stored separately as different resource types managed by the server. In response to the first confirmation operation, the terminal can generate a model resource creation request based on the model editing information and upload the model editing information or the model file pointed to by the model editing information to the server. After receiving the corresponding data, the server can create the first virtual model resource and generate a model resource identifier when needed. Similarly, the terminal can generate a skin resource creation request based on the skin editing information and upload the skin editing information to the server. The server can create the first virtual skin resource based on the skin editing information and generate a corresponding skin resource identifier.
[0115] The uploading of model editing information and skin editing information can be performed in the appropriate order based on the data dependencies between the two types of resources. For example, if the first virtual skin resource requires the model resource identifier of the first virtual model resource, the model editing information can be uploaded first, and the model resource identifier can be waited for the server to return. Then, the model resource identifier can be added to the skin editing information and uploaded. If the two types of resources do not have this dependency relationship, corresponding resource creation requests can be sent to the server separately.
[0116] When the skin editing information includes local textures, these textures can be uploaded to the server. The server then creates texture resources and uses these texture resource identifiers to create the first virtual skin resource. Therefore, the first virtual model resource, the first virtual skin resource, and the texture resources referenced by the first virtual skin resource can all be uniformly saved and managed by the server.
[0117] The first confirmation operation can serve as the user-side trigger for the entire upload process. In other words, even if the terminal and server actually need to exchange multiple resource creation requests, the user can still trigger the entire resource creation process with just one first confirmation operation, without having to confirm each resource creation separately.
[0118] By uploading model editing information and skin editing information to the server to create the first virtual model resource and the first virtual skin resource respectively, the server can independently store and uniformly manage the two types of resources. The editing results generated by the terminal confirmation can form independent resources on the server, which is convenient for subsequent resource download, sharing and use.
[0119] Figure 5 This illustrates a schematic flow for user editing and creation of two types of resources. Users can select and upload local model files within the virtual model editing interface (or the model upload window provided by this interface). The program parses the file, generates a preview, and creates skin slots. Users can perform the first editing operation in the virtual model editing interface, confirming the model editing information. Users can select a basic skin in the current skin slot and click "Edit Skin," triggering a pop-up virtual skin editing interface. The current virtual model, skin slot, and basic skin are then imported, and a preview is displayed. Users perform a second editing operation in the virtual skin editing interface. The program applies and previews the current skin effect in real time. If the user confirms the skin editing, such as by clicking the confirmation control in the virtual skin editing interface, the program returns to the virtual model editing interface. If the user clicks "Confirm" in the virtual model editing interface, and if this is the first time importing a model, the skin is saved as a local skin draft. The model editing information, skin slot configuration, and local skin draft are submitted to the upload orchestration module (which can be a program module set on the terminal or server). The upload orchestration module requests the creation of the virtual model resource from the cloud resource system (the server-side system used to manage resources). After successful creation, a model resource identifier is returned to the upload orchestration module. Next, the upload orchestration module processes each skin slot in a loop, requesting the creation of the corresponding virtual skin resource from the cloud resource system. Upon successful creation, it returns a skin resource identifier. The upload orchestration module then requests the cloud resource system to associate the virtual model resource and the virtual skin resource. For example, it requests adding the skin resource identifier of the virtual skin resource to the associated skin set of the virtual model resource, and adding the model resource identifier of the virtual model resource to the applicable model identifier of the virtual skin resource. Successful association ensures that duplicate resources are not created. The upload orchestration module then returns the overall upload result, thus completing one model and skin upload process.
[0120] In one implementation, the data of the virtual model resource includes, but is not limited to: model resource identifier, model name, number of sub-mesh, and associated skin set. The associated skin set may include skin resource identifiers corresponding to each slot; therefore, the number of skin resource identifiers in this set can be equal to the number of sub-mesh. The associated skin set does not directly contain any performance-related data, such as textures or color configurations.
[0121] In one implementation, the data of the virtual skin resource includes, but is not limited to, skin type, applicable model identifier, material template, texture parameters, material parameters, and color configuration. If a virtual skin resource is a skin exclusive to a virtual model resource, then the applicable model identifier of the virtual skin resource includes the model resource identifier of the virtual model resource.
[0122] In one implementation, the method further includes: When a virtual scene containing a first virtual model is loaded in running mode, a first virtual model with the skin of the first virtual skin is generated in the virtual scene based on the first virtual model resource and the first virtual skin resource; the first virtual model is the virtual model corresponding to the first virtual model resource, and the first virtual skin is the virtual skin corresponding to the first virtual skin resource.
[0123] The running mode can be a mode for actually running a completed virtual scene. For example, in a game application, the running mode can be a mode where the player actually enters and plays the corresponding virtual scene; in a UGC editor, it can also be a mode used to run, test, or preview a virtual scene. The virtual scene can store the model resource identifier corresponding to the first virtual model, or other resource references that can be used to identify the first virtual model resource. When the running mode loads the virtual scene, it can obtain the first virtual model resource based on the corresponding resource references, and generate the first virtual model based on the mesh and other model data in the first virtual model resource. The first virtual model resource can also be used to determine the first virtual skin resource by associating with a skin set or other associated data. For example, it can read the associated skin set of the first virtual model resource, load the first virtual skin resource based on the skin resource identifier, and obtain the skin data such as the material template, texture, color, and material parameters corresponding to the first virtual skin from the first virtual skin resource.
[0124] When the first virtual model has only one corresponding skin, the first virtual skin can be applied to the first virtual model. If the first virtual model has multiple sub-mesh and multiple skin slots, the corresponding virtual skin resources can be obtained according to the skin resource identifier recorded in each skin slot, and each virtual skin can be applied to the corresponding sub-mesh. The first virtual skin can be the virtual skin corresponding to any of the skin slots.
[0125] For example, when editing the first virtual model, the user has already created and associated a first virtual skin resource with the corresponding skin slot. After the first virtual model is added to the virtual scene, the virtual scene can save a resource reference to the first virtual model resource. When loading the virtual scene in runtime mode, the system loads the first virtual model resource according to this resource reference, and further loads the first virtual skin resource according to the skin resource identifier associated with the first virtual model resource, and finally renders the first virtual model according to the skin data in the first virtual skin resource.
[0126] In this way, the skin determined during the model upload or editing stage can continue to be applied to the runtime stage through the association between resources. There is no need to re-execute skin editing or manually select skins when the virtual scene is actually running. This allows the model appearance determined during the editing stage to be reproduced in the runtime stage according to the corresponding model resources and skin resources, while maintaining the independent loading relationship between model resources and skin resources.
[0127] In one implementation, the virtual model generated in the virtual scene includes, but is not limited to, the following data: model resource identifier, skin data (a virtual model with only one skin, skin data including the default skin; a virtual model with multiple skin slots, skin data including a skin slot list). The model resource identifier and skin resource identifier are set separately and will not be confused.
[0128] Figure 6 The diagram shows the attribute panel of the first virtual model in running mode, which shows the position, rotation, scaling, size and other attributes of the first virtual model, as well as the virtual model identifier (i.e., "0gu22xxxx" in the figure). Figure 7 The diagram illustrates information about the first virtual skin in runtime mode. It can be viewed by dropping down the properties panel of the first virtual model or in a separate interface. This interface displays information such as the skin name and color of the stained areas of the first virtual skin currently configured on the first virtual model.
[0129] Furthermore, in one implementation, when creating a first virtual model resource for the first time and simultaneously creating one or more first virtual skin resources, the resource creation process can be divided into a sequential process of model resource creation, skin resource creation, and model resource association information update.
[0130] For example, upon receiving the first confirmation operation, the current model editing information and the skin editing information of each skin slot can be read first. For skin slots where an existing virtual skin is selected, the skin resource identifier of the existing virtual skin can be recorded; for skin slots set to have no skin, it can be recorded as empty; for skin slots where a new virtual skin needs to be created, the corresponding skin editing information can be saved as a local skin draft. Subsequently, the first virtual model resource is created based on the model editing information. At this stage, data such as the model file, model name, number of sub-mesh, and collision information of the first virtual model can be submitted. Since the first virtual skin resource to be created has not yet obtained a skin resource identifier, the skin resource identifier can be temporarily not written to the corresponding skin slot. After the first virtual model resource is successfully created, the model resource identifier of the first virtual model resource is obtained. After obtaining the model resource identifier, each skin slot that needs to create a new virtual skin can be processed sequentially. For each skin slot, its local skin draft is read. If a local texture exists in the local skin draft, a texture resource is first created based on the local texture, and the texture resource identifier is obtained. The texture resource identifier is then written into the corresponding texture parameters. Next, the model resource identifier of the first virtual model resource is written into the applicable model identifier. After that, the corresponding virtual skin resource is created based on the formed complete skin data, and the skin resource identifier is obtained. When multiple skin slots need to create new virtual skin resources, the correspondence between skin slots and skin resource identifiers can be recorded. For example, a skin resource identifier sequence can be formed according to the order of the skin slots, so that the position of each skin resource identifier corresponds to the position of each sub-mesh. After the creation of each new virtual skin resource is completed, the skin resource identifiers of existing virtual skins, the skin resource identifiers of newly created virtual skins, and null values corresponding to no skin slots can be combined to form the final associated skin set of the first virtual model resource. Then, the model resource identifier of the first virtual model resource is used to update the first virtual model resource, and the associated skin set is written into the first virtual model resource.
[0131] The above updates can be performed only on the metadata of the first virtual model resource. For example, if the model file has already been uploaded in the previous stage, it is not necessary to upload the model file again when updating the associated skin set; only the model resource identifier and the associated skin set that needs to be updated need to be submitted. This reduces redundant data transmission.
[0132] The execution results of each stage can be saved during the current resource creation process. For example, it can record whether the model resource was created successfully, whether the texture resource was created successfully, whether the virtual skin resources for each skin slot were created successfully, and whether the associated skin set has been written back. If a stage fails, subsequent processing that depends on the results of that stage can be stopped, and the identifiers of the successfully acquired resources can be retained so that the failed stage can be re-executed or appropriate processing can be performed as needed.
[0133] It should be noted that the above processing method is used to further illustrate a specific implementation when there is a resource identifier dependency between model resources and skin resources, and does not limit step S240 to adopt a unique resource creation order. Depending on the resource type and the actual data dependency relationship, the aforementioned method of creating the first virtual skin resource first and then creating the first virtual model resource can also be adopted.
[0134] Furthermore, for existing virtual model resources, since they already possess model resource identifiers, the process of obtaining these identifiers through initial model resource creation can be omitted. For example, when a user opens an existing virtual model resource and performs a new skin operation for one of its skin slots, the model resource identifier of the existing virtual model resource can be directly written into the applicable model identifier of the new skin. A new virtual skin resource is then created based on the corresponding skin editing information, and upon successful creation, the new skin resource identifier is written into the associated skin set of that virtual model resource. Thus, the resource identifier dependency processing generated during the initial model creation and the skin editing processing of existing models can employ different execution paths.
[0135] In one implementation, the first virtual model resource can store the model name, the number of sub-meshes, and the associated skin set, while the textures, shading configurations, and material parameters used to determine the specific appearance are stored in the corresponding virtual skin resource. The first virtual skin resource can store skin type, applicable model identifier, material template, texture parameters, material parameters, and shading configuration, etc. Thus, the first virtual model resource is mainly used to describe the model itself and its associated skins, while the specific appearance data is stored independently by the first virtual skin resource.
[0136] For a model-specific first virtual skin resource, its applicable first virtual model resource can be recorded using the applicable model identifier. When selecting a skin resource, the model resource identifier of the current model can be matched with the applicable model identifier of the candidate skin resource. If they match, the corresponding skin resource can be applied to the current model; if they do not match, the corresponding skin resource can be excluded from selection, or a corresponding verification can be performed before application. This allows the use of existing model resource identifiers in the resource data to limit the scope of application of model-specific skins.
[0137] In one implementation, the associated skin set of the first virtual model resource can also be used to determine resource dependencies. For example, when the first virtual model resource needs to be shared, downloaded, or copied to another storage location, the skin resource identifier in the associated skin set can be read to determine one or more virtual skin resources that the first virtual model resource depends on; furthermore, the dependent texture resources can be determined based on the texture parameters of each virtual skin resource. Thus, when processing the first virtual model resource, the relevant resources required for its normal display can be determined simultaneously.
[0138] In one implementation, the preview in the virtual model editing interface, the resource preview after resource creation, and the model display in runtime mode can use corresponding skin data. During the editing phase, the preview of the first virtual model can be updated based on the current skin editing information or a local skin draft; after resource creation, the corresponding virtual skin resource can be loaded for previewing based on the associated skin set of the first virtual model resource; in runtime mode, the model resources and corresponding skin resources recorded in the virtual scene can be loaded. By reading data adapted to the current stage at different stages, the appearance determined by the user during the editing phase can be ultimately presented in the runtime phase through independent model resources and skin resources.
[0139] In one implementation, for skin slots with no skin, a null value can be recorded at the corresponding position in the associated skin set. When running or previewing the second virtual model resource, if no valid skin resource identifier exists at the corresponding position, the subsequent processing method can be determined based on the data structure of the second virtual model resource itself. For example, for existing virtual model resources with built-in skin data, the built-in skin data in the model resource can continue to be used; for virtual model resources that do not contain built-in skin data, a preset general default skin can be used. Thus, the skinless state can serve as a valid skin slot configuration state, without the need to create additional virtual skin resources for each skin slot.
[0140] This disclosure also provides a virtual model and skin editing device. (See reference) Figure 8 As shown, the virtual model and skin editing device 800 includes: The interface display module 810 is configured to display a virtual model editing interface in the graphical user interface provided by the terminal; The model editing module 820 is configured to determine model editing information in response to a first editing operation in the model editing interface; The skin editing module 830 is configured to determine skin editing information in response to a second editing operation associated with the first editing operation; The resource creation module 840 is configured to, in response to a first confirmation operation, create a first virtual model resource based on the model editing information and create a first virtual skin resource based on the skin editing information.
[0141] The specific details of each part of the above-mentioned device have been described in detail in the method section of the implementation plan. For any undisclosed details, please refer to the implementation plan of the method section, and therefore will not be repeated here.
[0142] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to exemplary embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0143] This disclosure also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the method steps of various embodiments of this disclosure.
[0144] In one implementation, the computer program product can be a tangible product, such as a computer-readable storage medium storing a computer program. The readable storage medium can be based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, and includes, but is not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory, hard disk drive (HDD), solid-state drive (SSD), etc. For example, the computer program product can be a non-volatile storage medium storing a computer program, such as read-only memory, NAND flash memory, etc.
[0145] In one implementation, the computer program product can be an intangible product. For example, the computer program product can be a virtual digital product, such as an executable file or installation package containing a computer program.
[0146] Computer program code can be written in one or more programming languages. Examples of programming languages include C, Java, and C++. Program code can execute entirely on the user's computing device, partially on the user's computing device, or as a standalone software package. It can also execute partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, such as a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via an internet connection provided by a mobile network operator).
[0147] Computer programs can be carried or transmitted via signals such as electrical, magnetic, optical, electromagnetic, and infrared rays. Electronic devices can convert the signals carrying computer programs into digital signals, thereby running the computer programs. When a computer program runs on an electronic device, its code is used to cause the electronic device to execute (more specifically, to be executed by the processor of the electronic device) the method steps of various embodiments of this disclosure, such as... Figure 2 The method and steps.
[0148] Implementing the above method steps through a computer program achieves the following technical effects: By determining model editing information in response to the first editing operation in the virtual model editing interface, and determining skin editing information in response to the second editing operation associated with the first editing operation, skin editing related to the virtual model can be completed simultaneously during the editing of the virtual model. This links the model editing process with the skin editing process, eliminating the need for the user to initiate independent skin editing processes again after completing model editing. Furthermore, in response to the first confirmation operation, a first virtual model resource is created based on the model editing information, and a first virtual skin resource is created based on the skin editing information. This allows the model editing information and skin editing information generated by a single linked editing process to form corresponding resources. Thus, on the one hand, the virtual model's own data and the skin data used to determine its appearance can be separately formed into virtual model resources and virtual skin resources. Users can flexibly use virtual model resources or virtual skin resources according to their needs, reducing resource management limitations caused by the coupling of model data and skin data, and improving the convenience and flexibility of resource management and use. On the other hand, the creation process of the two types of resources can be connected through the associated editing operation and the first confirmation operation, reducing the repetitive operations performed to create model resources and skin resources separately, making the editing and resource creation process of virtual models and their skins more coherent, simplifying the user operation process, and improving the processing efficiency of the model resource and skin resource creation process.
[0149] In one embodiment, creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information includes: if the first editing operation includes a new model operation, then creating a first virtual model resource based on the model editing information; if the second editing operation includes a new skin operation, then creating a first virtual skin resource based on the skin editing information.
[0150] In one implementation, the step of creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information in response to the first confirmation operation includes: creating a first virtual model resource based on the model editing information and determining a model resource identifier for the first virtual model resource in response to the first confirmation operation; creating a first virtual skin resource based on the skin editing information and the model resource identifier; wherein the applicable model identifier for the first virtual skin resource includes the model resource identifier.
[0151] In one embodiment, creating a first virtual skin resource based on the skin editing information and the model resource identifier includes: saving the skin editing information as a local skin draft when creating the first virtual model resource based on the model editing information; and creating the first virtual skin resource based on the local skin draft and the model resource identifier after creating the first virtual model resource and determining the model resource identifier of the first virtual model resource.
[0152] In one embodiment, creating a first virtual skin resource based on the skin editing information and the model resource identifier includes: creating skin data based on the skin editing information; if the skin editing information includes local textures, creating texture resources based on the local textures and determining the corresponding texture resource identifier, and writing the texture resource identifier into the texture parameters of the skin data; writing the model resource identifier into the applicable model identifier of the skin data; and creating a first virtual skin resource based on the skin data with the texture resource identifier and the model resource identifier written in it.
[0153] In one implementation, after creating a first virtual skin resource based on the skin editing information and the model resource identifier, the method further includes: determining the skin resource identifier of the first virtual skin resource; and writing the skin resource identifier into the associated skin set of the first virtual model resource.
[0154] In one embodiment, the method further includes: when using the second virtual model resource, if the second virtual model resource is configured with an associated skin set, then determining the skin data used by the second virtual model resource based on the skin resource identifier in the associated skin set; if the second virtual model resource is not configured with an associated skin set, then obtaining the skin data in the second virtual model resource.
[0155] In one implementation, the step of creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information in response to a first confirmation operation includes: creating a first virtual skin resource based on the skin editing information and determining a skin resource identifier for the first virtual skin resource in response to a first confirmation operation; creating a first virtual model resource based on the model editing information and the skin resource identifier; and the associated skin set of the first virtual model resource includes the skin resource identifier.
[0156] In one implementation, the step of creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information in response to the first confirmation operation includes: uploading the model editing information to the server in response to the first confirmation operation, so that the server creates the first virtual model resource based on the model editing information; and uploading the skin editing information to the server, so that the server creates the first virtual skin resource based on the skin editing information.
[0157] In one implementation, the virtual model editing interface displays one or more skin slots for the currently edited first virtual model; determining skin editing information in response to a second editing operation associated with the first editing operation includes: determining skin editing information for each skin slot in response to a second editing operation on each skin slot; creating a first virtual skin resource based on the skin editing information includes: creating a first virtual skin resource corresponding to the first skin slot based on the skin editing information of the first skin slot among the one or more skin slots.
[0158] In one embodiment, determining the skin editing information of each skin slot in response to a second editing operation on each skin slot includes at least one of the following steps: in response to a setting no skin operation for a second skin slot among the one or more skin slots, determining that the skin editing information of the second skin slot is empty; in response to a new skin operation and a skin parameter editing operation for the second skin slot, determining the skin editing information of the second skin slot based on the edited skin parameters; in response to a skin selection operation for the second skin slot, determining the skin editing information of the second skin slot based on the skin parameters of the selected virtual skin; in response to a skin selection operation for the second skin slot and a modification operation on the skin parameters of the selected virtual skin, determining the skin editing information of the second skin slot based on the modified skin parameters.
[0159] In one implementation, the first virtual model has one or more sub-mesh; each skin slot corresponds to one sub-mesh, and the skin editing information of each skin slot is used to determine the virtual skin of the corresponding sub-mesh.
[0160] In one implementation, determining skin editing information in response to a second editing operation associated with the first editing operation includes: displaying a virtual skin editing interface in response to skin editing trigger information in the virtual model editing interface; and determining skin editing information in response to a second editing operation in the virtual skin editing interface.
[0161] In one embodiment, the method further includes: when loading a virtual scene containing a first virtual model in a running mode, generating a first virtual model in the virtual scene with the skin of the first virtual skin according to the first virtual model resource and the first virtual skin resource; the first virtual model is the virtual model corresponding to the first virtual model resource, and the first virtual skin is the virtual skin corresponding to the first virtual skin resource.
[0162] This disclosure also provides an electronic device. The electronic device includes a processor and a memory, the memory being used to store executable instructions of the processor; the processor is configured to implement the method steps of various embodiments of this disclosure by executing the executable instructions.
[0163] The following is for reference. Figure 9 The electronic device is illustrated by way of a general-purpose computing device. It should be understood that... Figure 9 The electronic device 900 shown is merely an example and should not be construed as limiting the functionality or scope of this disclosure.
[0164] like Figure 9 As shown, the electronic device 900 may include: a processor 910, a memory 920, a bus 930, an I / O (input / output) interface 940, and a network adapter 950.
[0165] The memory 920 may include volatile memory, such as RAM 921 and cache unit 922, and may also include non-volatile memory, such as ROM 923. The memory 920 may also include one or more program modules 924, including but not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. For example, program module 924 may include the modules described above.
[0166] The processor 910 may include one or more processing units, such as an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor, and / or an NPU (Neural-Network Processing Unit).
[0167] The processor 910 can execute executable instructions stored in the memory 920 to implement the method steps of various embodiments of this disclosure, such as... Figure 2 The method and steps.
[0168] Implementing the above method steps using processor 910 achieves the following technical effects: By determining model editing information in response to the first editing operation in the virtual model editing interface, and determining skin editing information in response to the second editing operation associated with the first editing operation, skin editing related to the virtual model can be completed simultaneously during the editing of the virtual model. This links the model editing process with the skin editing process, eliminating the need for the user to initiate independent skin editing processes again after completing model editing. Furthermore, in response to the first confirmation operation, a first virtual model resource is created based on the model editing information, and a first virtual skin resource is created based on the skin editing information. This allows the model editing information and skin editing information generated by a single linked editing process to form corresponding resources. Thus, on the one hand, the virtual model's own data and the skin data used to determine its appearance can be separately formed into virtual model resources and virtual skin resources. Users can flexibly use virtual model resources or virtual skin resources according to their needs, reducing resource management limitations caused by the coupling of model data and skin data, and improving the convenience and flexibility of resource management and use. On the other hand, the creation process of the two types of resources can be connected through the associated editing operation and the first confirmation operation, reducing the repetitive operations performed to create model resources and skin resources separately, making the editing and resource creation process of virtual models and their skins more coherent, simplifying the user operation process, and improving the processing efficiency of the model resource and skin resource creation process.
[0169] In one embodiment, creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information includes: if the first editing operation includes a new model operation, then creating a first virtual model resource based on the model editing information; if the second editing operation includes a new skin operation, then creating a first virtual skin resource based on the skin editing information.
[0170] In one implementation, the step of creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information in response to the first confirmation operation includes: creating a first virtual model resource based on the model editing information and determining a model resource identifier for the first virtual model resource in response to the first confirmation operation; creating a first virtual skin resource based on the skin editing information and the model resource identifier; wherein the applicable model identifier for the first virtual skin resource includes the model resource identifier.
[0171] In one embodiment, creating a first virtual skin resource based on the skin editing information and the model resource identifier includes: saving the skin editing information as a local skin draft when creating the first virtual model resource based on the model editing information; and creating the first virtual skin resource based on the local skin draft and the model resource identifier after creating the first virtual model resource and determining the model resource identifier of the first virtual model resource.
[0172] In one embodiment, creating a first virtual skin resource based on the skin editing information and the model resource identifier includes: creating skin data based on the skin editing information; if the skin editing information includes local textures, creating texture resources based on the local textures and determining the corresponding texture resource identifier, and writing the texture resource identifier into the texture parameters of the skin data; writing the model resource identifier into the applicable model identifier of the skin data; and creating a first virtual skin resource based on the skin data with the texture resource identifier and the model resource identifier written in it.
[0173] In one implementation, after creating a first virtual skin resource based on the skin editing information and the model resource identifier, the method further includes: determining the skin resource identifier of the first virtual skin resource; and writing the skin resource identifier into the associated skin set of the first virtual model resource.
[0174] In one embodiment, the method further includes: when using the second virtual model resource, if the second virtual model resource is configured with an associated skin set, then determining the skin data used by the second virtual model resource based on the skin resource identifier in the associated skin set; if the second virtual model resource is not configured with an associated skin set, then obtaining the skin data in the second virtual model resource.
[0175] In one implementation, the step of creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information in response to a first confirmation operation includes: creating a first virtual skin resource based on the skin editing information and determining a skin resource identifier for the first virtual skin resource in response to a first confirmation operation; creating a first virtual model resource based on the model editing information and the skin resource identifier; and the associated skin set of the first virtual model resource includes the skin resource identifier.
[0176] In one implementation, the step of creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information in response to the first confirmation operation includes: uploading the model editing information to the server in response to the first confirmation operation, so that the server creates the first virtual model resource based on the model editing information; and uploading the skin editing information to the server, so that the server creates the first virtual skin resource based on the skin editing information.
[0177] In one implementation, the virtual model editing interface displays one or more skin slots for the currently edited first virtual model; determining skin editing information in response to a second editing operation associated with the first editing operation includes: determining skin editing information for each skin slot in response to a second editing operation on each skin slot; creating a first virtual skin resource based on the skin editing information includes: creating a first virtual skin resource corresponding to the first skin slot based on the skin editing information of the first skin slot among the one or more skin slots.
[0178] In one embodiment, determining the skin editing information of each skin slot in response to a second editing operation on each skin slot includes at least one of the following steps: in response to a setting no skin operation for a second skin slot among the one or more skin slots, determining that the skin editing information of the second skin slot is empty; in response to a new skin operation and a skin parameter editing operation for the second skin slot, determining the skin editing information of the second skin slot based on the edited skin parameters; in response to a skin selection operation for the second skin slot, determining the skin editing information of the second skin slot based on the skin parameters of the selected virtual skin; in response to a skin selection operation for the second skin slot and a modification operation on the skin parameters of the selected virtual skin, determining the skin editing information of the second skin slot based on the modified skin parameters.
[0179] In one implementation, the first virtual model has one or more sub-mesh; each skin slot corresponds to one sub-mesh, and the skin editing information of each skin slot is used to determine the virtual skin of the corresponding sub-mesh.
[0180] In one implementation, determining skin editing information in response to a second editing operation associated with the first editing operation includes: displaying a virtual skin editing interface in response to skin editing trigger information in the virtual model editing interface; and determining skin editing information in response to a second editing operation in the virtual skin editing interface.
[0181] In one embodiment, the method further includes: when loading a virtual scene containing a first virtual model in a running mode, generating a first virtual model in the virtual scene with the skin of the first virtual skin according to the first virtual model resource and the first virtual skin resource; the first virtual model is the virtual model corresponding to the first virtual model resource, and the first virtual skin is the virtual skin corresponding to the first virtual skin resource.
[0182] Bus 930 is used to connect different components of electronic device 900 and may include data bus, address bus and control bus.
[0183] Electronic device 900 can communicate with one or more external devices 1000 (such as keyboard, mouse, external controller, etc.) through I / O interface 940.
[0184] The network adapter 950 can communicate with other modules of the electronic device 900 via the bus 930.
[0185] In one embodiment, the electronic device 900 further includes a display for displaying a graphical user interface.
[0186] although Figure 9 As not shown in the diagram, other hardware and / or software modules may also be configured in the electronic device 900, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems.
[0187] As can be seen from the above, the technical solutions disclosed herein can be implemented as methods, apparatus, systems, computer program products, storage media, electronic devices, etc. Those skilled in the art will understand that various aspects of this disclosure can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be referred to as "circuit," "module," or "system," respectively.
[0188] It should be understood that this disclosure is not limited to the specific methods, steps, or structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. Those skilled in the art will readily conceive of other embodiments based on the specific implementations provided in this disclosure. Therefore, the specific implementations provided in this disclosure are merely exemplary, and the scope and spirit of this disclosure are indicated by the claims, and should cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary technical means in the art not disclosed in this disclosure.
Claims
1. A virtual model and skin editing method, characterized by, The method includes: The virtual model editing interface is displayed in the graphical user interface provided by the terminal; In response to the first editing operation in the model editing interface, model editing information is determined; In response to a second editing operation associated with the first editing operation, skin editing information is determined; In response to the first confirmation operation, a first virtual model resource is created based on the model editing information, and a first virtual skin resource is created based on the skin editing information.
2. The method of claim 1, wherein, The step of creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information includes: If the first editing operation includes a new model operation, then a first virtual model resource is created based on the model editing information; If the second editing operation includes creating a new skin, then a first virtual skin resource is created based on the skin editing information.
3. The method of claim 1, wherein, The step of responding to the first confirmation operation by creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information includes: In response to the first confirmation operation, a first virtual model resource is created based on the model editing information, and the model resource identifier of the first virtual model resource is determined; A first virtual skin resource is created based on the skin editing information and the model resource identifier; the applicable model identifier of the first virtual skin resource includes the model resource identifier.
4. The method of claim 3, wherein, The step of creating a first virtual skin resource based on the skin editing information and the model resource identifier includes: When creating the first virtual model resource based on the model editing information, the skin editing information is saved as a local skin draft; After creating the first virtual model resource and determining the model resource identifier of the first virtual model resource, the first virtual skin resource is created based on the local skin draft and the model resource identifier.
5. The method of claim 3, wherein, The step of creating a first virtual skin resource based on the skin editing information and the model resource identifier includes: Skin data is created based on the skin editing information; If the skin editing information includes local textures, then a texture resource is created based on the local texture and the corresponding texture resource identifier is determined. The texture resource identifier is then written into the texture parameters of the skin data. Write the model resource identifier into the applicable model identifier of the skin data; A first virtual skin resource is created based on the skin data that has been written into the texture resource identifier and the model resource identifier.
6. The method of claim 3, wherein, After creating a first virtual skin resource based on the skin editing information and the model resource identifier, the method further includes: Determine the skin resource identifier of the first virtual skin resource; Write the skin resource identifier into the associated skin set of the first virtual model resource.
7. The method of claim 6, wherein, The method further includes: When using the second virtual model resource, if the second virtual model resource is configured with an associated skin set, the skin data used by the second virtual model resource is determined according to the skin resource identifier in the associated skin set; if the second virtual model resource is not configured with an associated skin set, the skin data in the second virtual model resource is obtained.
8. The method of claim 1, wherein, The step of responding to the first confirmation operation by creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information includes: In response to the first confirmation operation, a first virtual skin resource is created based on the skin editing information, and a skin resource identifier for the first virtual skin resource is determined. A first virtual model resource is created based on the model editing information and the skin resource identifier; the associated skin set of the first virtual model resource includes the skin resource identifier.
9. The method of claim 1, wherein, The step of responding to the first confirmation operation by creating a first virtual model resource based on the model editing information and creating a first virtual skin resource based on the skin editing information includes: In response to the first confirmation operation, the model editing information is uploaded to the server so that the server can create a first virtual model resource based on the model editing information, and the skin editing information is uploaded to the server so that the server can create a first virtual skin resource based on the skin editing information.
10. The method of claim 1, wherein, The virtual model editing interface displays one or more skin slots for the currently edited first virtual model; The step of determining skin editing information in response to a second editing operation associated with the first editing operation includes: In response to the second editing operation on each skin slot, determine the skin editing information for each skin slot; The step of creating a first virtual skin resource based on the skin editing information includes: A first virtual skin resource corresponding to the first skin slot is created based on the skin editing information of the first skin slot in one or more skin slots.
11. The method of claim 10, wherein, The step of determining the skin editing information for each skin slot in response to a second editing operation on each skin slot includes at least one of the following steps: In response to the absence of a skin operation for setting the second skin slot in the one or more skin slots, it is determined that the skin editing information of the second skin slot is empty; In response to the new skin operation and skin parameter editing operation of the second skin slot, the skin editing information of the second skin slot is determined according to the edited skin parameters; In response to a skin selection operation on the second skin slot, skin editing information for the second skin slot is determined based on the skin parameters of the selected virtual skin; In response to the skin selection operation for the second skin slot and the skin parameter modification operation for the selected virtual skin, the skin editing information for the second skin slot is determined based on the modified skin parameters.
12. The method of claim 10, wherein, The first virtual model has one or more sub-mesh; each skin slot corresponds to one sub-mesh, and the skin editing information of each skin slot is used to determine the virtual skin of the corresponding sub-mesh.
13. The method of claim 1, wherein, The step of determining skin editing information in response to a second editing operation associated with the first editing operation includes: In response to skin editing trigger information in the virtual model editing interface, the virtual skin editing interface is displayed; In response to a second editing operation in the virtual skin editing interface, skin editing information is determined.
14. The method of claim 1, wherein, The method further includes: When a virtual scene containing a first virtual model is loaded in running mode, a first virtual model with the first virtual skin is generated in the virtual scene based on the first virtual model resource and the first virtual skin resource; the first virtual model is the virtual model corresponding to the first virtual model resource, and the first virtual skin is the virtual skin corresponding to the first virtual skin resource.
15. A computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 14.
16. An electronic device, comprising: The method includes a processor and a memory; wherein the memory is used to store executable instructions of the processor; and the processor is configured to implement the method of any one of claims 1 to 14 by executing the executable instructions.
