Virtual object creating method and device, equipment and medium
By presenting the skeletal model of virtual objects in the virtual space and allowing users to bind target objects, it solves the problem that ordinary users need to learn 3D art software, simplifies the virtual object creation process, and improves users' freedom and enthusiasm.
Patent Information
- Application Number
- CN202310328232.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
When ordinary users customize virtual objects in virtual space, they need to learn and master 3D art software and professional knowledge, which makes creation difficult and affects enthusiasm.
By presenting the skeletal model of virtual objects in the virtual space and allowing users to bind target virtual objects to corresponding bones, the creation process of virtual objects is simplified, eliminating the need for users to master professional knowledge of 3D art software.
It reduces the difficulty of creating virtual objects, improves users' freedom and enthusiasm, and enables ordinary users to customize virtual objects more easily.
Smart Images

Figure CN118736103A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of computer technology, and in particular, to a method, apparatus, device, and medium for creating a virtual object. Background Art
[0002] With the continuous development of Extended Reality (XR) technology, people can use XR devices to interact with other people in virtual space through virtual objects, such as greeting, talking, and participating in various entertainment interactions together. This more immersive way of communication allows people to better connect with each other.
[0003] At present, the creation of virtual objects is usually completed by professional technicians. The creation process includes multiple steps, specifically: the first step is the concept design of the virtual object, drawing the original picture of the virtual object; the second step is modeling in 3D art software, making bones, binding bones and virtual objects, and applying skinning to the bones, fine-tuning some skinning weights, etc. After these steps, a virtual object is created.
[0004] However, the above-mentioned method of creating virtual objects requires ordinary users who have the need to customize virtual objects to learn and master 3D art software and the professional knowledge required for virtual object creation, which makes it difficult for ordinary users to create virtual objects and affects their enthusiasm for creating virtual objects. Summary of the invention
[0005] The present application provides a method, apparatus, device and medium for creating virtual objects, so that ordinary users can customize virtual objects without having to learn and master 3D art software and the professional knowledge required for virtual object creation, thereby reducing the difficulty for ordinary users to create virtual objects, simplifying the steps for ordinary users to customize virtual objects, allowing ordinary users to have a higher degree of freedom when creating virtual objects, and increasing the enthusiasm of ordinary users to create virtual objects.
[0006] In a first aspect, an embodiment of the present application provides a method for creating a virtual object, comprising:
[0007] In response to the virtual object creation instruction, presenting a skeleton model of the virtual object in a virtual space, wherein the skeleton model includes at least two skeletons;
[0008] determining at least one first target virtual object;
[0009] Bind each of the first target virtual objects to a corresponding bone to create a target virtual object.
[0010] In a second aspect, an embodiment of the present application provides a device for creating a virtual object, including:
[0011] A skeleton presentation module, for presenting a skeleton model of the virtual object in a virtual space in response to a virtual object creation instruction, wherein the skeleton model includes at least two skeletons;
[0012] An object determination module, used to determine at least one first target virtual object;
[0013] The object creation module is used to bind each of the first target virtual objects to the corresponding bones to create a target virtual object.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0015] A processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method for creating a virtual object as described in the first aspect embodiment or its various implementation methods.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the method for creating a virtual object as described in the embodiment of the first aspect or its various implementations.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product comprising program instructions, which, when executed on an electronic device, enables the electronic device to execute a method for creating a virtual object as described in the embodiment of the first aspect or its various implementations.
[0018] The technical solution disclosed in the embodiments of the present application has at least the following beneficial effects:
[0019] By presenting a skeleton model of a virtual object in a virtual space according to a virtual object creation instruction, and determining at least one first target virtual object, each first target virtual object is then bound to a corresponding bone in the skeleton model to create a target virtual object. The present application presents a skeleton model of a virtual object in a virtual space, so that ordinary users can customize virtual objects by mounting virtual objects on each bone on the skeleton model. This allows ordinary users to customize virtual objects without having to learn and master 3D art software and the professional knowledge that virtual object creation relies on, thereby reducing the difficulty of ordinary users creating virtual objects, simplifying the steps for ordinary users to customize virtual objects, and allowing ordinary users to have a higher degree of freedom when creating virtual objects, thereby increasing the enthusiasm of ordinary users to create virtual objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 This is a flow chart of a first method for creating a virtual object provided in an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of a humanoid skeleton model provided in an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of presenting a skeleton model and at least one candidate virtual object in a virtual space provided by an embodiment of the present application;
[0024] Figure 4 is a flow chart of a second method for creating a virtual object provided in an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of presenting various controls and panels in a virtual space provided by an embodiment of the present application;
[0026] Figure 6 It is a schematic diagram of presenting an object creation panel and a skeleton model in a virtual space provided by an embodiment of the present application;
[0027] Figure 7 is a schematic diagram of presenting a virtual object panel in a virtual space provided by an embodiment of the present application;
[0028] Figure 8a is a schematic diagram of selecting a candidate virtual object A from a virtual object panel and placing it at position X1, provided by an embodiment of the present application;
[0029] Figure 8b is a schematic diagram of selecting a candidate virtual object B from a virtual object panel and placing it at position X2, provided by an embodiment of the present application;
[0030] Figure 8c It is a schematic diagram of selecting candidate virtual objects A and B and opening a tool panel provided in an embodiment of the present application;
[0031] Figure 8d It is a schematic diagram of an embodiment of the present application for selecting candidate virtual objects A and B to form an object group.
[0032] Fig. 9 is a flow chart of a third method for creating a virtual object provided in an embodiment of the present application;
[0033] Fig.10 is a schematic diagram of establishing a binding relationship between a first target virtual object and a skeleton provided by an embodiment of the present application;
[0034] Fig.11 is a flow chart of a fourth method for creating a virtual object provided in an embodiment of the present application;
[0035] Fig.12 It is a schematic diagram of implementing an unbinding operation according to an unbinding instruction provided in an embodiment of the present application;
[0036] Fig.13 is a schematic diagram of adjusting the display position of a first target virtual object provided by an embodiment of the present application;
[0037] Fig.14 is a flow chart of a fifth method for creating a virtual object provided in an embodiment of the present application;
[0038] Fig.15a is a schematic diagram of placing a candidate virtual object D at a position X4 in a virtual space provided by an embodiment of the present application;
[0039] Fig.15b is a schematic diagram of generating a first target virtual object provided by an embodiment of the present application;
[0040] Fig.16 is a schematic block diagram of a device for creating a virtual object provided in an embodiment of the present application;
[0041] Fig.17 It is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. According to the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0044] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0045] Taking into account that currently ordinary users need to learn and master 3D art software and the professional knowledge relied on for virtual object creation when customizing virtual objects in a virtual space, which makes it difficult for ordinary users to create virtual objects and affects their enthusiasm for creating virtual objects, the present application provides a virtual object creation solution, which can reduce the difficulty for ordinary users to create virtual objects, simplify the steps for ordinary users to create virtual objects, and allow ordinary users to have a higher degree of freedom when creating virtual objects, thereby increasing their enthusiasm for creating virtual objects.
[0046] A method for creating a virtual object provided in an embodiment of the present application is described in detail below in conjunction with the accompanying drawings.
[0047] Figure 1 It is a flow chart of a method for creating a virtual object provided in an embodiment of the present application. The method for creating a virtual object provided in an embodiment of the present application can be performed by a device for creating a virtual object. The device for creating a virtual object can be composed of hardware and / or software and can be integrated into an electronic device. In the present application, the electronic device can be any hardware device that can provide a virtual space. Exemplarily, the electronic device can be selected as an XR device, a mobile phone (such as a folding screen mobile phone, a large screen mobile phone, etc.) or a tablet computer, etc., and the present application does not specifically limit the specific type of the electronic device. Among them, the XR device can be a VR device, an AR device, or an MR device, etc.
[0048] like Figure 1 As shown, the method comprises the following steps:
[0049] S101, in response to a virtual object creation instruction, presenting a skeleton model of a virtual object in a virtual space, wherein the skeleton model includes at least two skeletons.
[0050] It should be understood that the virtual space in the present application is to combine the real scene with the virtual scene through the electronic device to provide a virtual environment for human-computer interaction for the user (ordinary user or user). Moreover, the virtual space can be displayed in a three-dimensional image.
[0051] In an embodiment of the present application, the skeleton model can be determined according to the type of virtual object. For example, when the virtual object is a virtual character (Avatar), the skeleton model is a human skeleton model. For another example, when the virtual object is a virtual building (such as a virtual building), the skeleton model is a building skeleton model. For another example, when the virtual object is a virtual animal (such as a virtual cat or a virtual dog), the skeleton model is an animal skeleton model.
[0052] In other words, the skeleton model in the present application can be selected as a human skeleton model, an animal skeleton model, a skeleton model of other objects, etc., and there is no specific limitation on it here.
[0053] Moreover, the skeleton model in the present application can be obtained from the initial virtual object generated in advance. The specific acquisition process is: by peeling the initial virtual object model and other operations, a skeleton model with only skeleton elements is obtained. In addition to obtaining the skeleton model, the present application also retains Inverse Kinematic (IK) data. It should be understood that IK is a very important tool for improving animation quality and displaying animation details.
[0054] It should be noted that the above-mentioned initial virtual object model refers to a default virtual object model pre-created in the virtual space.
[0055] In order to clearly explain the present application, the present application is described in detail below by taking the skeleton model as a humanoid skeleton model as an example.
[0056] like Figure 2 As shown, the humanoid skeleton model includes at least two bones, which may include but are not limited to the following: skull bones, throat bones, shoulder bones, chest bones, spine bones, arm bones, hand bones, pelvic bones, thigh bones, calf bones and foot bones.
[0057] Optionally, when a user uses an electronic device in a working state, he or she may select any virtual space and enter the virtual space according to various virtual spaces provided by the electronic device to the user. Of course, when the electronic device is not started, the user first turns on the electronic device to put the electronic device in a working state. Then, according to various virtual spaces provided by the electronic device to the user, the corresponding virtual space is selected and entered. It can be understood that entering the virtual space means displaying the virtual content in the virtual space to the user, and the virtual content in the virtual space can also be displayed accordingly according to the position and posture of the user's electronic display device in the real environment.
[0058] The virtual space entered above can be a virtual space associated with an application that the user enters by triggering any application. For example, a user selects any XR application in the main interface of an electronic device in working state, so that the electronic device opens the XR application and enters the XR space according to the user's selection instruction. Of course, the virtual space can also be entered by other means such as voice, which is not specifically limited here.
[0059] After entering the virtual space, the user can send a virtual object creation instruction to the electronic device by triggering an object creation control in the virtual space or sending an object creation voice instruction. When the virtual object creation instruction is received, the present application can present a skeleton model of the virtual object and at least one candidate virtual object in the virtual space. Thus, the user can create the customized virtual object he wants based on the presented at least one candidate virtual object and skeleton model.
[0060] Exemplarily, the skeleton model of the virtual object and at least one candidate virtual object presented in the virtual space may be as follows: Figure 3 shown.
[0061] It should be understood that in the present application, the candidate virtual object can be understood as an element for creating a virtual object. For example, the element can be a geometric body of various shapes or a combination of multiple geometric bodies. Figure 3 Of course, in addition to geometric bodies, other elements may also be used, such as part models that symbolize different parts of a virtual object, etc. This application does not impose any specific restrictions on this.
[0062] In the present application, the display position of the above-mentioned skeleton model and at least one candidate virtual object also supports user adjustment operations, so that the user can adjust the display position of the skeleton model and / or at least one candidate virtual object according to creation requirements, so as to facilitate the user to view the skeleton model and / or at least one candidate virtual object from different angles.
[0063] It should be noted that the virtual objects or virtual objects in this application refer to objects that interact in virtual scenes, are controlled by users or robot programs (for example, robot programs based on artificial intelligence), and can be stationary, move, and perform various behaviors in virtual scenes, such as various characters in interactive scenes.
[0064] S102: Determine at least one first target virtual object.
[0065] The first target virtual object may be understood as an object constituting a body part of the virtual object.
[0066] Considering that in addition to the skeleton model, at least one candidate virtual object is also presented in the virtual space. Therefore, the user can use at least one candidate virtual object to determine the first target virtual object corresponding to each bone on the skeleton model. Among them, the first target virtual object corresponding to any bone on the skeleton model can be the same or different, and there is no specific limitation on it here.
[0067] In other words, in the present application, at least one first target virtual object can be determined based on at least one candidate virtual object presented in the virtual space.
[0068] In some implementations, when determining the first target virtual object of each bone on the skeleton model, the user can control the virtual handle to hover over any candidate virtual object in the virtual space by using a controller or the like, and press a confirmation button (such as a trigger button or any combination of keys, etc.) to select the candidate virtual object. Then, the selected candidate virtual object is dragged to a suitable position, and the confirmation button is released (i.e., the confirmation button is released) to place the selected candidate virtual object at the suitable position.
[0069] If the user wants to use the selected candidate virtual object as the first target virtual object, the selection operation of the candidate virtual object may be stopped at this time.
[0070] If the user wants to generate the first target virtual object based on multiple candidate virtual objects, the user can repeatedly use the controller or other methods to manipulate the virtual handle to select the candidate virtual object and place the selected candidate virtual object in a suitable position. The suitable positions of each selected candidate virtual object are different to avoid stacking of multiple candidate virtual objects and causing occlusion. In addition, in this application, multiple refers to two or more.
[0071] Furthermore, after the candidate virtual objects are selected, a first target virtual object may be generated based on the selected multiple candidate virtual objects.
[0072] It is understandable that, in addition to the above-mentioned method of determining the first target virtual object, the user can also interact with any candidate virtual object in other ways through the virtual object in the virtual space corresponding to the controller. The virtual object in the virtual space corresponding to the controller can be a virtual handle or a virtual hand, etc., which is not specifically limited here. The position and / or posture of the virtual object in the virtual space corresponding to the controller in the virtual space is determined according to the position and / or posture of the controller in the real space.
[0073] Among them, the virtual handle can be understood as a controller model that corresponds to the controller and is presented in the virtual space; the corresponding virtual hand is a hand model that corresponds to the user's real hand and is presented in the virtual space.
[0074] In some optional implementations, the present application generates a first target virtual object based on the selected multiple virtual objects, which is specifically implemented in the following manner: first, the user can manipulate the virtual handle by using a controller or the like to select multiple candidate virtual objects together. Secondly, press a preset button (such as a menu button, etc.) on the controller to present a menu interface associated with the menu button in the virtual space, and select a grouping option from the menu interface, and then the electronic device groups the selected multiple candidate virtual objects according to the grouping instruction triggered by the user to obtain a first object group. Then, the obtained first object group is determined as the first target virtual object.
[0075] In the embodiment of the present application, the controller may be selected as but not limited to: a handle, a hand controller, a bracelet, a finger ring, a wristband, a glove or other handheld devices with buttons, etc.
[0076] S103: Bind each first target virtual object to a corresponding skeleton to create a target virtual object.
[0077] Optionally, the present application can manipulate the virtual handle by means of a controller to bind each first target virtual object to a corresponding skeleton to create a target virtual object. Binding here can also be understood as mounting.
[0078] In some possible implementations, each first target virtual object is bound to a corresponding bone by manipulating a virtual handle through a controller or the like to create a target virtual object, as follows:
[0079] The virtual handle is manipulated by a controller or other means to be located on each first target virtual object, and the controller is moved while pressing the confirmation button to control the movement of the virtual handle, so that the electronic device responds to the movement control instruction of the virtual handle and controls each first target virtual object to move following the movement of the virtual handle. Thus, each first target virtual object is bound to the corresponding skeleton by manipulating the virtual handle to complete the customized creation of the target virtual object. Thus, the method of controlling the movement of the first target virtual object by manipulating the movement of the virtual handle makes the movement control of the first target virtual object more visible, so that the binding operation can be performed intuitively.
[0080] In the present application, binding the first target virtual object to the corresponding skeleton can be understood as establishing a corresponding relationship between the first target virtual object and the corresponding skeleton, and this corresponding relationship will be saved with the corresponding skeleton.
[0081] Moreover, after the first target virtual object moves, the present application will also record the relative position and posture of the first target virtual object, so that the user can intuitively and accurately bind the first target virtual object with the required position and posture to the corresponding skeleton without programming or setting the position and posture coordinates of the first target virtual object, thereby simplifying the binding operation. Among them, the relative position of the first target virtual object can be understood as the relative position and relative posture information between the first target virtual object and its corresponding skeleton.
[0082] Considering that the skeleton model includes multiple skeletons, the present application can optionally bind each first target virtual object to the corresponding skeleton after determining the first target virtual object, thereby ensuring the orderliness of creating the target virtual object, thereby improving the efficiency of creating the target virtual object.
[0083] In some optional implementations, after binding each first target virtual object to a corresponding skeleton, the present application can determine the relative posture information of the first target virtual object relative to the corresponding skeleton, wherein the corresponding skeleton refers to the skeleton that is bound to the first target virtual object. In addition, the posture information specifically includes position information and posture information, and the relative posture information includes the relative position and relative posture information between the first target virtual object and its corresponding skeleton.
[0084] In addition, the present application can also detect in real time whether the control input signal of the target virtual object is obtained. Among them, the control input signal can be understood as an input signal that controls the target virtual object to make an action. When the control input signal corresponding to the target virtual object is obtained, the posture of at least one bone in the skeletal model of the virtual object is determined according to the control input signal. Furthermore, according to the posture of at least one bone and the relative posture of the first target virtual object relative to the corresponding bone, the posture of each first target virtual object is determined, and the first target virtual object is displayed according to the posture.
[0085] Exemplarily, when the target virtual object is a virtual character, the control input signal may be a signal of the position and posture input by the user's head-mounted XR display device and the control handle. Based on the correspondence between the control input signal and the humanoid skeletal model, the position and posture of at least one bone in the humanoid skeletal model is determined, and then the virtual character based on user control is displayed.
[0086] That is to say, the present application determines the posture of the first target virtual object based on the posture and relative posture of at least one bone in the skeletal model, so that the movement of the bone can drive the bound first target virtual object to move together, so that the user end can intuitively see that the target virtual object makes actions corresponding to the control input signal.
[0087] The technical solution provided by the embodiment of the present application is to present a skeleton model of a virtual object in a virtual space according to a virtual object creation instruction, determine at least one first target virtual object, and then bind each first target virtual object to a corresponding bone in the skeleton model to create a target virtual object. The present application presents a skeleton model of a virtual object in a virtual space, so that ordinary users can customize virtual objects by mounting virtual objects for each bone on the skeleton model, thereby allowing ordinary users to customize virtual objects without having to learn and master 3D art software and the professional knowledge relied on for virtual object creation, thereby reducing the difficulty of ordinary users creating virtual objects, simplifying the steps for ordinary users to customize virtual objects, allowing ordinary users to have a higher degree of freedom when creating virtual objects, and increasing the enthusiasm of ordinary users to create virtual objects.
[0088] Based on the above embodiment, after creating the target virtual object, the present application may optionally further include: adjusting the posture and / or size of the first target virtual object bound to any bone in the skeleton model.
[0089] Considering that after the first target virtual object is bound to the corresponding skeleton, it may be necessary to adjust the first target virtual object due to personalized reasons such as the first target virtual object being too large, too small, or the binding position being inappropriate, so as to make the first target virtual object and the corresponding skeleton more adaptable or more in line with the user's personalized needs.
[0090] In some optional implementations, the user can manipulate the virtual handle by using a controller or other means to adjust the position and / or size of the first target virtual object bound to any bone. At the same time, while adjusting the position and / or size of the first target virtual object, the offset and rotation of the first target virtual object relative to the center point of the corresponding bone are recorded in real time, and the scaling of the first target virtual object itself can be recorded.
[0091] When the posture adjustment and / or size adjustment operation of the first target virtual object is completed, the present application can determine the final relative posture and / or final size information of the first target virtual object relative to the corresponding skeleton, so that when the user subsequently controls the target virtual object to make an action, the first target virtual object bound to the skeleton and the corresponding skeleton always maintain a fixed relative posture, and / or the first target virtual object bound to the skeleton and the corresponding skeleton are always in an adapted state, which better matches the user's personalized needs.
[0092] In the present application, when adjusting the posture and / or size of the first target virtual object, multiple adjustments can be made, and after each adjustment, the user can also switch the viewing angle to check whether the adjusted first target virtual object meets expectations, and stop the adjustment operation until the adjustment effect reaches the expected effect. Among them, the posture adjustment can be achieved by controlling the movement or rotation of the first target virtual object by manipulating the virtual handle, and the size adjustment can be achieved by manipulating the virtual handle to be located on the boundary of the first target virtual object, and controlling the boundary of the first target virtual object to expand or shrink by moving the virtual handle, or pressing a small compression key (such as the HOME key, etc.) to shrink the first target virtual object, and pressing an expansion key (such as a view key, etc.), which is not specifically limited here.
[0093] In another implementation scenario of the present application, in order to facilitate users to create customized target virtual objects in the virtual space, the present application can also present the skeleton model and object creation panel of the virtual object in the virtual space according to the virtual object creation instruction, so that users can customize the virtual object efficiently and conveniently by using the object creation panel, which is not only intuitive but also more interactive. Figure 4 , the process of creating a target virtual object based on an object creation panel and a skeleton model provided in an embodiment of the present application is specifically described.
[0094] like Figure 4 As shown, the method may include the following steps:
[0095] S201, in response to a virtual object creation instruction, presenting a character creation panel and a skeleton model in a virtual space, wherein the skeleton model includes at least two skeletons.
[0096] Optionally, when the user enters the virtual space, various functional controls, control panels, and background content will be presented in the virtual space. The background content is determined according to the media content presented in the virtual space. For example, if the media content is a video stream, the background content may be the background content of the video stream, or it may be a preset background content, etc. In addition, the various functional controls in the virtual space include, but are not limited to: object creation controls, object editing controls, setting controls, and menu controls, etc., so that the user can trigger any functional control to open the interactive interface or interactive function associated with the functional space. Different sub-panels can be set on the control panel, such as a space creation sub-interface, etc., so that the user can select the corresponding sub-panel to perform operations such as creation or interaction. Exemplarily, the various controls and panels presented in the virtual space can be as follows: Figure 5 shown.
[0097] Furthermore, the user can trigger any functional control or panel to perform interactive operations according to the operation requirements. For example, when the user needs to create a customized virtual object, the user can use the controller to manipulate the virtual handle to select the object creation control in the virtual space, so that the object creation panel and the skeleton model are presented in the virtual space. Figure 6 It should be understood that the method of manipulating the virtual handle in the present application can also be implemented by gestures and the like, which are not specifically limited here.
[0098] In addition, for the object creation panel and / or the skeleton model, the user can adjust the display position of the object creation panel and / or the skeleton model according to the interaction requirements to facilitate the user to view the skeleton model and / or the object creation panel from different angles.
[0099] The object creation panel may be provided with object controls, tool controls, material controls and operation controls, so that the user can select any control in the object creation panel to open the interaction panel associated with the control. Furthermore, based on the interaction panel, the skeleton model is decorated or mounted to realize the creation of the virtual object.
[0100] S202: In response to a selection instruction of an object control in an object creation panel, present a virtual object panel in a virtual space, wherein the virtual object panel includes at least one candidate virtual object.
[0101] When a user needs to create a customized virtual object based on the skeleton model presented in the virtual space, the user can manipulate the virtual handle to move to the object control in the object creation panel through a controller or the like, and press a confirmation button (such as a trigger key, etc.) to select the object control. When the electronic device detects the object control selection instruction, a virtual object panel can be presented in the display area on the object creation panel in the virtual space. Then, the user generates a target virtual object of each skeleton object in the skeleton model according to at least one candidate virtual object in the virtual object panel, so as to lay a foundation for creating a target virtual object.
[0102] For example, Figure 7 As shown, when the user controls the virtual handle through the handle to select the object control in the object creation panel, the display area of the object creation panel in the virtual space will present the virtual object panel.
[0103] S203: Generate a first target virtual object for each skeleton in the skeleton model according to the candidate virtual objects in the virtual object panel.
[0104] In some achievable embodiments, when generating the first target virtual object for each skeleton in the skeleton model, the user can control the virtual handle to hover over any candidate virtual object in the virtual object panel by using a controller or the like, and press a confirmation button to select the candidate virtual object. Then, the selected candidate virtual object is dragged to a suitable position in the virtual space, and the confirmation button is released (i.e., the confirmation button is released) to place the selected virtual object at the suitable position.
[0105] If the user wants to use the selected candidate virtual object as the first target virtual object, the user can stop selecting the virtual object from the virtual object panel. If the user wants to generate the first target virtual object based on multiple candidate virtual objects, the user can repeatedly select multiple candidate virtual objects from the virtual object panel using a controller or other methods, and place each selected candidate virtual object in a suitable position. The suitable positions of each selected candidate virtual object are different to avoid overlapping of multiple candidate virtual objects and causing occlusion.
[0106] Furthermore, after the selection of multiple candidate virtual objects is completed, the present application can generate a first target virtual object based on the multiple virtual objects.
[0107] Optionally, the present application generates a first target virtual object based on multiple candidate virtual objects, which is specifically implemented in the following manner: First, the user can manipulate the virtual handle through a controller or the like to select multiple candidate virtual objects together. Secondly, control the virtual handle to move to the tool control in the character creation panel, and press the OK button to send a selection instruction of the tool control to the electronic device. When the electronic device receives the selection instruction of the tool control, the tool panel is presented in the virtual space. Again, the user controls the virtual handle to move to the location of the grouping control on the tool panel, and then presses the OK button to send a selection instruction of the grouping control to the electronic device, so that the electronic device groups the selected multiple candidate virtual objects to obtain a first object group. Then, the obtained first object group can be determined as the first target virtual object of the skeleton in the skeleton model.
[0108] Considering that the skeleton model includes multiple skeletons, and the operation process of generating the first target virtual object for each skeleton is the same or similar, the present application takes generating the first target virtual object of a skeleton as an example for illustration.
[0109] like Figure 8a As shown, assuming that the bone is a thigh bone, the user can control the virtual handle through the handle to select candidate virtual object A from the virtual object panel. Drag the selected candidate virtual object A from the virtual object panel to position X1 in the virtual space, and release the trigger button to place the virtual object at position X1. If the user wants to use candidate virtual object A as the first target virtual object for the thigh bone, stop the virtual object selection operation and use candidate virtual object A as the first target virtual object for the thigh bone. If the user wants to set an object group consisting of multiple candidate virtual objects for the thigh bone, the user can control the virtual handle to select candidate virtual object B from the virtual object panel, and place candidate virtual object B at position X2 in the virtual space, as shown in FIG. Figure 8b Then, control the virtual handle to select candidate virtual object A and candidate virtual object B together, and then select the tool control in the character creation panel to present the tool panel in the virtual space, see Figure 8c Then, the user manipulates the virtual handle to select the grouping control in the tool panel to group the selected candidate virtual object A and candidate virtual object B into an object group, such as Figure 8d Then, the first target virtual object of the thigh bone is determined by the object group.
[0110] It should be understood that the candidate virtual object A and the candidate virtual object B may be the same virtual object or different virtual objects, and no specific limitation is made herein.
[0111] S204: Bind each first target virtual object to a corresponding skeleton to create a target virtual object.
[0112] The present application presents a skeleton model of a virtual object and an object creation panel in a virtual space, so that users can customize the virtual object efficiently and conveniently by using the object creation panel, which is not only intuitive but also more interactive.
[0113] It should be noted that when creating a virtual object based on the virtual object panel presented in the virtual space, the user may not be able to create a virtual object that meets his or her personalized needs because the shape or style of the candidate virtual object in the virtual object panel does not meet the user's personalized needs. To this end, in addition to presenting the virtual object panel in the virtual space, the present application can also optionally present tools such as a brush for generating virtual objects in the virtual space, so that the user can use the virtual object generation tool to generate a target virtual object that meets his or her personalized needs in the virtual space, thereby facilitating the user to use a brush or other generation tool to draw the first target virtual object he or she needs in the virtual space according to the customization needs of the virtual object, thereby meeting the user's personalized use needs.
[0114] Of course, in addition to presenting the virtual object panel and / or generation tool in the virtual space, the first target virtual object can optionally be drawn in the virtual space according to other methods such as the movement trajectory of the virtual handle manipulated by the user, so that the user can use different methods to generate a corresponding first target virtual object for each bone in the skeletal model, thereby providing the user with a variety of first target virtual object generation methods to enrich the user's implementation methods for generating the first target virtual object.
[0115] The technical solution provided by the embodiment of the present application, by creating an instruction according to a virtual object, presenting a skeleton model of a virtual object in a virtual space, and determining at least one first target virtual object, and then binding each first target virtual object to the corresponding skeleton in the skeleton model, to create a target virtual object. The present application, by presenting a skeleton model of a virtual object in a virtual space, enables ordinary users to mount virtual objects for each skeleton on the skeleton model to complete the customization of virtual objects, thereby enabling ordinary users to customize virtual objects without learning and mastering the professional knowledge relied on by 3D art software and virtual object creation, thereby reducing the difficulty of ordinary users to create virtual objects, simplifying the customization steps of ordinary users to virtual objects, enabling ordinary users to have a higher degree of freedom when creating virtual objects, and improving the enthusiasm of ordinary users to create virtual objects. In addition, by presenting an object creation panel in a virtual space, users can efficiently and conveniently realize the customization of virtual objects by using an object creation panel, which is not only intuitive but also more interactive.
[0116] Combine the following Fig. 9, further explaining how to bind each first target virtual object to a corresponding skeleton to create a target virtual object in this application. Fig. 9 As shown, the method comprises the following steps:
[0117] S301, in response to a virtual object creation instruction, presenting a skeleton model of a virtual object in a virtual space, wherein the skeleton model includes at least two skeletons.
[0118] S302: Determine at least one first target virtual object.
[0119] S303: In response to the movement control instruction for each first target virtual object, control each first target virtual object to move to a position where a corresponding skeleton is located.
[0120] S304: When the first target virtual object collides with the skeleton, the first target virtual object is bound to the corresponding skeleton, where the corresponding skeleton is the skeleton that the first target virtual object collides with, so as to create a target virtual object.
[0121] Optionally, each first target virtual object can be controlled to move toward the location of the corresponding bone by manipulating a virtual handle through a controller or the like in turn, so as to bind each first target virtual object to the corresponding bone.
[0122] In the process of the first target virtual object moving to the position of the corresponding skeleton, it is determined in real time whether the first target virtual object collides (touches) with the corresponding skeleton. If the first target virtual object collides with the corresponding skeleton, it is determined that the first target virtual object has established a binding relationship with the skeleton, that is, the first target virtual object has been successfully bound to the skeleton. The binding relationship established between the first target virtual object and the skeleton can be reflected by a binding connection line, see Fig.10 shown.
[0123] It should be noted that after the first target virtual object is bound to the skeleton that collides, the user can perform at least one adjustment operation on the relative posture of the first target virtual object and the skeleton that collides. For example, the first target virtual object is adjusted not to contact the skeleton that collides, and the binding connection line between the first target virtual object and the skeleton that collides is still displayed here. In other words, no matter whether the adjusted first target virtual object contacts the skeleton that collides, the binding relationship between the two is intuitively reflected to the user through the binding connection line. In addition, by displaying the binding connection line, when the first target virtual object is far away from the skeleton that collides, it can be clearly indicated which skeleton the first target virtual object is connected to, so that the user can clearly determine that there is a binding relationship between the first target virtual object and which skeleton.
[0124] In the present application, it is determined whether the first target virtual object collides with the corresponding skeleton, and the distance between a certain point on one side of the corresponding skeleton and the corresponding skeleton towards the first target virtual object and the corresponding skeleton towards the first target virtual object and the first target virtual object is closest to the distance between the point. Then, it is determined whether the distance is less than a preset distance. If the distance is less than a preset distance threshold, it is determined that the first target virtual object collides with the corresponding skeleton, otherwise it is determined that the first target virtual object does not collide with the skeleton. Wherein, the preset distance threshold can be flexibly set according to the judgment accuracy of the collision of the object, such as the preset distance threshold is 0 or 0.05, etc., which is not specifically limited herein.
[0125] Of course, in addition to the above-mentioned method of determining whether the first target virtual object collides with the skeleton, the present application can also be implemented by using other virtual object collision detection methods in the virtual space of the art, which will not be elaborated here.
[0126] It can be understood that when the present application determines that the first target virtual object collides with the skeleton, it can optionally output vibration feedback, visual feedback and / or sound feedback to the user, so that the user can perceive the collision between the first target virtual object and the skeleton through touch, vision and / or hearing, and thus know that the first target virtual object has been successfully bound to the collided skeleton, thereby enhancing the user's sense of reality in the virtual space.
[0127] Considering that some bones in the skeleton model are distributed relatively close, or the first target virtual object is relatively large, when the first target virtual object is controlled to move toward the position of the corresponding bone, the first target virtual object may collide with multiple bones.
[0128] In view of this situation, the present application determines the distance between the first target virtual object and each collided bone, and selects the minimum distance from all distances. Then, the bone corresponding to the minimum distance is determined as the target bone, so as to bind the first target virtual object to the target bone, so as to establish a binding relationship between the target bone and the first target virtual object.
[0129] The distance value between the first target virtual object and each collided bone is determined, specifically, the distance between the center point of the first target virtual object and the center point of each collided bone is determined.
[0130] In addition, in the present application, the distance between the center point of the first target virtual object and the center point of each bone that collides can be calculated using a two-point distance formula. For details, please refer to the prior art solution, which will not be described in detail here.
[0131] That is to say, in the present application, when the first target virtual object collides with a skeleton, the first target virtual object is bound to the corresponding skeleton, including: when the first target virtual object collides with multiple skeletons, determining the distance between the first target virtual object and each collided skeleton; binding the first target virtual object to the corresponding skeleton, the corresponding skeleton being the skeleton corresponding to the minimum distance among all distances.
[0132] The technical solution provided by the embodiment of the present application, by creating an instruction according to a virtual object, presenting a skeleton model of a virtual object in a virtual space, and determining at least one first target virtual object, and then binding each first target virtual object to the corresponding skeleton in the skeleton model, to create a target virtual object. The present application, by presenting a skeleton model of a virtual object in a virtual space, enables ordinary users to mount virtual objects for each skeleton on the skeleton model to complete the customization of virtual objects, thereby enabling ordinary users to customize virtual objects without learning and mastering the professional knowledge relied on by 3D art software and virtual object creation, thereby reducing the difficulty of ordinary users to create virtual objects, simplifying the customization steps of ordinary users to virtual objects, enabling ordinary users to have a higher degree of freedom when creating virtual objects, and improving the enthusiasm of ordinary users to create virtual objects. In addition, when the first target virtual object collides with a plurality of skeletons, by binding the first target virtual object to the minimum corresponding skeleton of the collision distance, it can be ensured that the first target virtual object can establish a binding relationship with the correct skeleton, thereby improving the accuracy and availability of the establishment of the binding relationship.
[0133] As an optional implementation of the present application, considering that after the first target virtual object is bound to the corresponding skeleton, the user may need to adjust the first target virtual object bound on the skeleton. Therefore, there is a demand for unbinding the first target virtual object bound on the skeleton and the skeleton. For this reason, the present application, on the basis of the aforementioned embodiment, optionally also includes the unbinding instruction sent by the user, and the binding relationship between the skeleton corresponding to the unbinding instruction and the first target virtual object on the skeleton is cut off, so that the user can bind the first target virtual object after unbinding to other skeletons, or bind a new first target virtual object to the skeleton after unbinding, to meet the creation needs of the user's personalized virtual object, and further enhance the flexibility and freedom when creating virtual objects.
[0134] Combine the following Fig.11 , the binding relationship between the unbinding skeleton and the first target virtual object on the skeleton according to the unbinding instruction sent by the user provided in the present application is specifically described. Fig.11 As shown, the method may include the following steps:
[0135] S401, in response to a virtual object creation instruction, presenting a skeleton model of a virtual object in a virtual space, wherein the skeleton model includes at least two skeletons.
[0136] S402: Determine at least one first target virtual object.
[0137] S403: Bind each first target virtual object to a corresponding skeleton.
[0138] S404, in response to an unbinding instruction between any first target virtual object and the corresponding skeleton, release the binding relationship between the first target virtual object and the corresponding skeleton.
[0139] Optionally, after binding the first target virtual object to any bone on the skeletal model, it may be necessary to adjust the first target virtual object bound to the bone. At this point, the user can manipulate the virtual handle to hover over the bone or the first target virtual object of the bone, and send an unbinding instruction to the electronic device by pressing an unbinding button on the controller (such as action button A or other combination buttons). Then, the electronic device displays the binding connection line between the bone and the first target virtual object bound to it according to the unbinding instruction. Then, according to the user triggering the cut-off button (such as a trigger button, etc.) on the controller, the displayed binding connection line is cut off (i.e., the binding connection line is disconnected), thereby releasing the binding relationship between the bone and the first target virtual object bound to it.
[0140] In another optional implementation, the user can also control the virtual handle to hover over the binding connection line between the skeleton and the first target virtual object through a controller. Then, press a preset button on the controller (such as a menu button or an action button X button, etc.) to send an unbinding instruction between the skeleton and the first target virtual object to the electronic device. After the electronic device receives the unbinding instruction, it cuts off the binding connection line between the skeleton and the first target virtual object to implement the unbinding operation.
[0141] For example, Fig.12 As shown, the user manipulates the virtual handle to move to the binding connection line between the skull bone and the first target virtual object on the skull bone. Then, the preset button on the controller is pressed to send an unbinding instruction between the skull bone and the first target virtual object on the skull bone. Then, the electronic device disconnects the binding connection line between the skull bone and the first target virtual object on the skull bone according to the unbinding instruction, completing the unbinding operation.
[0142] Considering that the skeleton and the first target virtual object bound to the skeleton may block the binding connection line due to the display position, the binding connection line cannot be displayed.
[0143] To this end, the present application first determines whether the binding connection line is blocked before cutting off the binding connection line between the skeleton to be untied and the first target virtual object on the skeleton according to the unbinding instruction. If it is determined that the binding connection line between the skeleton to be untied and the first target virtual object on the skeleton is blocked and not displayed normally, the display position of the first target virtual object on the skeleton to be untied is first adjusted so that the binding connection line between the skeleton to be untied and the first target virtual object on the skeleton can be displayed normally. Afterwards, in response to the cutting operation of the binding connection line, the binding relationship between the skeleton to be untied and the first target virtual object on the skeleton is released.
[0144] In the present application, adjusting the display position of the first target virtual object on the to-be-unbound bone may be to manipulate the virtual handle to select the first target virtual object, and then manipulate the virtual handle to control the first target virtual object to move from the first display position (the display position when the first target virtual object is bound to the to-be-unbound bone) to the second display position (any display position where the binding connection line can be normally displayed), so that the binding connection line between the to-be-unbound bone and the first target virtual object on the bone is normally displayed. For the specific implementation process, see Fig.13 .
[0145] S405, obtaining a new first target virtual object corresponding to the unbound skeleton, and binding the new first target virtual object to the unbound skeleton to create a target virtual object.
[0146] Optionally, after releasing the binding relationship between any bone and the first target virtual object bound to itself, the user can generate a new first target virtual object for the unbound bone based on at least one candidate virtual object, and bind the new first target virtual object to the unbound bone to complete the creation operation of the target virtual object.
[0147] The at least one candidate virtual object may be located in the virtual space, or in a virtual object panel in the virtual space, and no specific limitation is imposed on this.
[0148] Among them, the implementation process of generating a new first target virtual object and binding the new first target virtual object to the unbound skeleton is the same or similar to the implementation process of the aforementioned embodiment. For details, please refer to the aforementioned embodiment part, and no further details will be given here.
[0149] In some possible implementations, considering that there may be multiple unbound bones, the present application can also rebind the unbound first target virtual object to other unbound bones except the original corresponding bones in an exchange manner to complete the adjustment operation of the virtual object.
[0150] For example, assuming that the unbound skeleton is the first unbound skeleton and the second unbound skeleton, the user can use the first target virtual object unbound from the first unbound skeleton as the new first target virtual object of the second unbound skeleton, and bind the new first target virtual object to the second unbound skeleton. At the same time, the first target virtual object unbound from the second unbound skeleton can be used as the new first target virtual object of the first unbound skeleton, and the new first target virtual object can be bound to the first unbound skeleton.
[0151] The technical solution provided by the embodiment of the present application, by presenting the skeleton model of the virtual object in the virtual space according to the virtual object creation instruction, and determining at least one first target virtual object, and then binding each first target virtual object to the corresponding skeleton in the skeleton model to create the target virtual object. The present application presents the skeleton model of the virtual object in the virtual space, so that the ordinary user can complete the customization of the virtual object by mounting the virtual object for each skeleton on the skeleton model, thereby making it possible for the ordinary user to customize the virtual object without learning and mastering the 3D art software and the professional knowledge relied on by the virtual object creation, thereby reducing the difficulty of the ordinary user to create the virtual object, simplifying the customization steps of the ordinary user to the virtual object, so that the ordinary user has a higher degree of freedom when creating the virtual object, and improving the enthusiasm of the ordinary user to create the virtual object. In addition, the present application releases the binding relationship between the first target virtual object and the corresponding skeleton according to the unbinding instruction sent by the user, so that the user can bind the new first target virtual object to the unbinding skeleton to meet the creation needs of the user's personalized virtual object, and further improve the flexibility and degree of freedom when creating the virtual object.
[0152] As an optional implementation method of the present application, considering that each first target virtual object is bound to a corresponding skeleton, or after the target virtual object is created, the user may need to add operations to any virtual object bound to a skeleton model, such as adding another target virtual object (such as a second target virtual object) on the basis of the bound first target virtual object, so as to achieve the purpose of enriching virtual objects. Therefore, in order to satisfy the user's ability to add a third target virtual object to the skeleton bound to the original first target virtual object (i.e., the second target virtual object), when the present application detects a new binding instruction and the skeleton corresponding to the new binding instruction is bound to the second target virtual object, the second target virtual object and the third target virtual object are merged to obtain the first target virtual object, and then the first target virtual object is bound to the corresponding skeleton.
[0153] Combine the following Fig.14 , the process of adding a third target virtual object to any skeleton provided by this application is specifically described. Fig.14As shown, the method may include the following steps:
[0154] S501, in response to a virtual object creation instruction, presenting a skeleton model of a virtual object in a virtual space, wherein the skeleton model includes at least two skeletons.
[0155] S502: Determine at least one first target virtual object.
[0156] S503: Bind each first target virtual object to a corresponding skeleton.
[0157] S504, in response to a new binding instruction for any bone on the skeleton model, determining the first target virtual object according to the second target virtual object and the third target virtual object, the second target virtual object being the original first target virtual object bound to the skeleton, and the third target virtual object being the new target virtual object carried by the new binding instruction.
[0158] S505: Bind the first target virtual object to the corresponding skeleton to create a target virtual object.
[0159] In some implementations, after binding the original first target virtual object (second target virtual object) to the skeleton on the skeleton model, the user may find that the second target virtual object bound to any skeleton is too monotonous. Therefore, there will be a need to enrich the virtual objects bound to the skeleton.
[0160] Based on this, the user can generate a new target virtual object (third target virtual object) for the above-mentioned skeleton to be processed based on at least one candidate virtual object presented in the virtual space or in the virtual object panel. Then, the virtual handle is manipulated to control the third target virtual object to move to the position of the above-mentioned skeleton to be processed. During the movement of the third target virtual object, it is detected in real time whether the third target virtual object collides with the skeleton.
[0161] When the third target virtual object collides with the skeleton, the first target virtual object may be determined according to the second target virtual object and the third target virtual object, and the specific determination method includes the following:
[0162] Method 1
[0163] When a skeleton model and at least one candidate virtual object are presented in a virtual space, the user can firstly use a controller or the like to manipulate a virtual handle to select a second target virtual object and a third target virtual object on the skeleton, so as to frame the second target virtual object and the third target virtual object together. Secondly, a preset button (such as a menu button) on the controller is pressed to present a menu interface associated with the menu button in the virtual space, and a grouping option is selected from the menu interface, and then the electronic device groups the selected second target virtual object and the third target virtual object according to the grouping instruction triggered by the user, and obtains a second object group. Then, the obtained second object group is determined as the first target virtual object.
[0164] Method 2
[0165] When the skeleton model and the object creation panel are presented in the virtual space, the user can first control the virtual handle to move to the tool control in the object creation panel, and press the OK button to send the selection instruction of the tool control to the electronic device. When the electronic device receives the selection instruction of the tool control, the tool panel is presented in the virtual space. Again, the user controls the virtual handle to move to the position of the grouping control on the tool panel, and then presses the OK button to send the selection instruction of the grouping control to the electronic device, so that the electronic device groups the selected second target virtual object and the third target virtual object to obtain the second object group. Then, the obtained second object group can be used as the first target virtual object.
[0166] Then, the determined first target virtual object is bound to the corresponding skeleton to create a target virtual object.
[0167] Considering that a binding relationship has been established between the second target virtual object and the skeleton, before binding the first target virtual object to the skeleton, the binding relationship between the second target virtual object and the skeleton needs to be released first, and then the first target virtual object is bound to the skeleton.
[0168] The implementation process of unbinding and binding is specifically described in the aforementioned embodiment section, and will not be described in detail here.
[0169] For example, assuming that the user needs to add a third target virtual object to the calf bone, the user can use the handle to manipulate the virtual handle to select the candidate virtual object D from the virtual object panel. Drag the selected candidate virtual object D from the virtual object panel to position X4 in the virtual space, and release the trigger button to place the candidate virtual object at position X4. Fig.15aThen, the candidate virtual object D is used as the third target virtual object, and the candidate virtual object D is controlled to move toward the position of the calf bone. When the candidate virtual object D collides with the calf bone, the first target virtual object is generated according to the second target virtual object of the calf bone and the virtual object D, see Fig.15b Then, the binding relationship between the second target virtual object and the calf bone is released, and the first target virtual object is bound to the calf bone.
[0170] That is to say, when it is necessary to bind a new target virtual object to any bone, the present application only edits or adjusts the new target virtual object on the basis of keeping the target virtual object bound to the above bone unchanged, and then integrates the new target virtual object with the target virtual object as a newly added part and mounts them on the corresponding bone together, thereby facilitating users to incrementally modify the target virtual object bound to the bone, that is, to perform new operations on the target virtual object on the bone, making users' personalized adjustment of virtual objects more flexible.
[0171] The technical solution provided by the embodiment of the present application is to present a skeleton model of a virtual object in a virtual space according to a virtual object creation instruction, determine at least one first target virtual object, and then bind each first target virtual object to a corresponding bone in the skeleton model to create a target virtual object. The present application presents a skeleton model of a virtual object in a virtual space, so that ordinary users can customize virtual objects by mounting virtual objects for each bone on the skeleton model, thereby allowing ordinary users to customize virtual objects without having to learn and master 3D art software and the professional knowledge relied on for virtual object creation, thereby reducing the difficulty of ordinary users creating virtual objects, simplifying the steps for ordinary users to customize virtual objects, allowing ordinary users to have a higher degree of freedom when creating virtual objects, and increasing the enthusiasm of ordinary users to create virtual objects. In addition, when the present application binds a new target virtual object to any bone on the skeletal model based on the detection of a new binding instruction, if it is determined that the original first target virtual object, i.e., the second target virtual object, is bound to the bone, the second target virtual object and the third target virtual object are fused to obtain the first target virtual object, and then the first target virtual object is bound to the corresponding bone. This can satisfy the user's need to add a third target virtual object to the bone bound to the original first target virtual object to enrich the virtual objects bound to the bone, and the entire operation is more intuitive for the user, thereby improving the interactivity when the user creates virtual objects.
[0172] Please refer to the attached Fig.16 , a virtual object creation device proposed in an embodiment of the present application is described. Fig.16 It is a schematic block diagram of a device for creating a virtual object provided in an embodiment of the present application.
[0173] like Fig.16 As shown, the virtual object creation device 600 includes: a skeleton rendering module 610, an object determination module 620 and an object creation module 630.
[0174] The skeleton presentation module 610 is used to present a skeleton model of the virtual object in a virtual space in response to a virtual object creation instruction, wherein the skeleton model includes at least two skeletons;
[0175] An object determination module 620, configured to determine at least one first target virtual object;
[0176] The object creation module 630 is used to bind each of the first target virtual objects to the corresponding bones to create a target virtual object.
[0177] In an optional implementation manner of the embodiment of the present application, the first target virtual object is determined based on at least one candidate virtual object presented in the virtual space.
[0178] In an optional implementation of the embodiment of the present application, the object creation module 630 includes:
[0179] A binding unit is used to bind each of the first target virtual objects to a corresponding skeleton in response to a movement control instruction for each of the first target virtual objects.
[0180] In an optional implementation manner of the embodiment of the present application, the binding unit is specifically configured to:
[0181] In response to a movement control instruction for each of the first target virtual objects, controlling each of the first target virtual objects to move to a position where a corresponding bone is located;
[0182] When the first target virtual object collides with a skeleton, the first target virtual object is bound to the corresponding skeleton, where the corresponding skeleton is the skeleton with which the first target virtual object collides.
[0183] In an optional implementation manner of the embodiment of the present application, the binding unit is further configured to:
[0184] When the first target virtual object collides with a plurality of skeletons, determining a distance between the first target virtual object and each of the colliding skeletons;
[0185] Bind the first target virtual object to the corresponding bone, where the corresponding bone is the bone corresponding to the minimum distance among all the distances.
[0186] In an optional implementation manner of the embodiment of the present application, the binding unit is further configured to:
[0187] Determine the distance between the center point of the first target virtual object and the center point of each collided bone.
[0188] In an optional implementation of the embodiment of the present application, the apparatus 600 further includes:
[0189] The relative posture determination module is used to determine the relative posture of the first target virtual object relative to the corresponding skeleton.
[0190] In an optional implementation of the embodiment of the present application, the apparatus 600 further includes:
[0191] A posture determination module, used for acquiring an input signal corresponding to the virtual object, and determining the posture of at least one bone in the skeleton model of the virtual object according to the input signal;
[0192] A display module is used to determine the posture of each of the first target virtual objects according to the relative posture and the posture of the at least one skeleton, and display the first target virtual objects.
[0193] In an optional implementation of the embodiment of the present application, the apparatus 600 further includes:
[0194] The unbinding module is used to release the binding relationship between the first target virtual object and the corresponding skeleton in response to an unbinding instruction between any of the first target virtual objects and the corresponding skeleton.
[0195] In an optional implementation of the embodiment of the present application, the unbinding module includes:
[0196] A connection line display unit, used to display a binding connection line between the first target virtual object and the corresponding skeleton;
[0197] The connection line cutting unit is used to respond to the cutting operation of the binding connection line to release the binding relationship between the first target virtual object and the corresponding skeleton.
[0198] In an optional implementation of the embodiment of the present application, the apparatus 600 further includes:
[0199] A new binding detection module is used to respond to a new binding instruction for any bone on the skeleton model, and determine a first target virtual object according to a second target virtual object and a third target virtual object, wherein the second target virtual object is the original first target virtual object bound to the skeleton, and the third target virtual object is a new target virtual object carried by the new binding instruction;
[0200] A binding module is used to bind the first target virtual object to the corresponding skeleton.
[0201] An optional implementation of the embodiment of the present application, the new binding detection module is specifically used to:
[0202] The second target virtual object and the third target virtual object are grouped to obtain an object group, and the object group is determined as the first target virtual object.
[0203] An optional implementation of the embodiment of the present application, the unbinding module is specifically used to:
[0204] Release the binding relationship between the second target virtual object and the corresponding skeleton.
[0205] In an optional implementation manner of the embodiment of the present application, when the virtual object is a virtual character, the skeleton model of the virtual object is a skeleton model of the virtual character.
[0206] The technical solution provided by the embodiment of the present application is to present a skeleton model of a virtual object in a virtual space according to a virtual object creation instruction, determine at least one first target virtual object, and then bind each first target virtual object to a corresponding bone in the skeleton model to create a target virtual object. The present application presents a skeleton model of a virtual object in a virtual space, so that ordinary users can customize virtual objects by mounting virtual objects for each bone on the skeleton model, thereby allowing ordinary users to customize virtual objects without having to learn and master 3D art software and the professional knowledge relied on for virtual object creation, thereby reducing the difficulty of ordinary users creating virtual objects, simplifying the steps for ordinary users to customize virtual objects, allowing ordinary users to have a higher degree of freedom when creating virtual objects, and increasing the enthusiasm of ordinary users to create virtual objects.
[0207] It should be understood that the device embodiment and the aforementioned method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Fig.16 The device 600 shown may perform Figure 1 The corresponding method embodiments, and the aforementioned and other operations and / or functions of each module in the device 600 are respectively to implement Figure 1 For the sake of brevity, the corresponding processes in each method are not repeated here.
[0208] In the above, the device 600 of the embodiment of the present application is described from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the first aspect method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the first aspect method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above-mentioned first aspect method embodiment in conjunction with its hardware.
[0209] Fig.17 is a schematic block diagram of an electronic device provided in an embodiment of the present application. Fig.17 As shown, the electronic device 700 may include:
[0210] The memory 710 and the processor 720, the memory 710 is used to store the computer program and transmit the program code to the processor 720. In other words, the processor 720 can call and run the computer program from the memory 710 to implement the method for creating a virtual object in the embodiment of the present application.
[0211] For example, the processor 720 may be used to execute the above-mentioned virtual object creation method embodiment according to the instructions in the computer program.
[0212] In some embodiments of the present application, the processor 720 may include but is not limited to:
[0213] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0214] In some embodiments of the present application, the memory 710 includes but is not limited to:
[0215] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0216] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 710 and executed by the processor 720 to complete the method for creating a virtual object provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0217] like Fig.17 As shown, the electronic device 700 may further include:
[0218] The transceiver 730 may be connected to the processor 720 or the memory 710 .
[0219] The processor 720 may control the transceiver 730 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 730 may include a transmitter and a receiver. The transceiver 730 may further include an antenna, and the number of antennas may be one or more.
[0220] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0221] The present application also provides a computer storage medium on which a computer program is stored. When the computer program is executed by a computer, the computer is enabled to execute the method of the above method embodiment.
[0222] An embodiment of the present application further provides a computer program product including program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the method of the above method embodiment.
[0223] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0224] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0225] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0226] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0227] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for creating a virtual object, characterized in that: include: In response to the virtual object creation instruction, presenting a skeleton model of the virtual object in a virtual space, wherein the skeleton model includes at least two skeletons; determining at least one first target virtual object; Bind each of the first target virtual objects to a corresponding bone to create a target virtual object.
2. The method according to claim 1, characterized in that The first target virtual object is determined based on at least one candidate virtual object presented in the virtual space.
3. The method according to claim 1, characterized in that The step of binding each of the first target virtual objects to a corresponding bone comprises: In response to the movement control instruction for each of the first target virtual objects, each of the first target virtual objects is bound to a corresponding skeleton.
4. The method according to claim 3, characterized in that In response to the movement control instruction for each of the first target virtual objects, binding each of the first target virtual objects to a corresponding skeleton includes: In response to a movement control instruction for each of the first target virtual objects, controlling each of the first target virtual objects to move to a position where a corresponding bone is located; When the first target virtual object collides with a skeleton, the first target virtual object is bound to the corresponding skeleton, where the corresponding skeleton is the skeleton with which the first target virtual object collides.
5. The method according to claim 4, characterized in that When the first target virtual object collides with the skeleton, binding the first target virtual object to the corresponding skeleton comprises: When the first target virtual object collides with a plurality of skeletons, determining a distance between the first target virtual object and each of the colliding skeletons; Bind the first target virtual object to the corresponding bone, where the corresponding bone is the bone corresponding to the minimum distance among all the distances.
6. The method according to claim 5, characterized in that The determining the distance between the first target virtual object and each collided bone comprises: Determine the distance between the center point of the first target virtual object and the center point of each collided bone.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Determine a relative position and posture of the first target virtual object relative to the corresponding skeleton.
8. The method according to claim 7, characterized in that The method further comprises: Acquire an input signal corresponding to the virtual object, and determine the position and posture of at least one bone in the skeleton model of the virtual object according to the input signal; According to the relative posture and the posture of the at least one skeleton, the posture of each of the first target virtual objects is determined, and the first target virtual objects are displayed.
9. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to an unbinding instruction between any of the first target virtual objects and the corresponding bones, the binding relationship between the first target virtual object and the corresponding bones is released.
10. The method according to claim 9, characterized in that The step of releasing the binding relationship between the first target virtual object and the corresponding skeleton in response to any unbinding instruction between the first target virtual object and the corresponding skeleton comprises: Displaying a binding connection line between the first target virtual object and the corresponding skeleton; In response to the cutting operation of the binding connection line, the binding relationship between the first target virtual object and the corresponding skeleton is released.
11. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to a new binding instruction for any bone on the skeleton model, determining a first target virtual object according to a second target virtual object and a third target virtual object, wherein the second target virtual object is the original first target virtual object bound to the skeleton, and the third target virtual object is a new target virtual object carried by the new binding instruction; Bind the first target virtual object to the corresponding bone.
12. The method according to claim 11, characterized in that The determining the first target virtual object according to the second target virtual object and the third target virtual object comprises: The second target virtual object and the third target virtual object are grouped to obtain an object group, and the object group is determined as the first target virtual object.
13. The method according to claim 11, characterized in that Before binding the first target virtual object to the corresponding skeleton, the method further includes: Release the binding relationship between the second target virtual object and the corresponding skeleton.
14. The method according to any one of claims 1 to 6, characterized in that: When the virtual object is a virtual character, the skeleton model of the virtual object is a skeleton model of the virtual character.
15. A device for creating a virtual object, characterized in that: include: A skeleton presentation module, for presenting a skeleton model of the virtual object in a virtual space in response to a virtual object creation instruction, wherein the skeleton model includes at least two skeletons; An object determination module, used to determine at least one first target virtual object; The object creation module is used to bind each of the first target virtual objects to the corresponding bones to create a target virtual object.
16. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method for creating a virtual object as claimed in any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program enables a computer to execute the method for creating a virtual object according to any one of claims 1 to 14.
18. A computer program product comprising program instructions, characterized in that When the program instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 14.
