Method and apparatus for editing virtual object, device, medium and program

By using editing controls to associate and display information with virtual objects in XR scenes, the problem of inflexible logical creation of virtual objects is solved, editing efficiency and user experience are improved, and intuitive management of virtual objects is achieved.

WO2024193544A1PCT designated stage expired Publication Date: 2024-09-26BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082457
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-03-19
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In extended reality (XR) scenarios, the creation of user-defined virtual object logic is inflexible, resulting in low creation efficiency and difficulty for users to intuitively perceive and manage the logical settings of virtual objects.

Method used

Through the association between editing controls and virtual objects, an intuitive editing interface and operation method are provided, allowing users to associate editing controls with virtual objects through moving and overlapping operations, display information about editing controls, and edit the logic of virtual objects based on the content of editing controls. and parameters.

Benefits of technology

It improves the editing efficiency and user experience of virtual objects, enables users to intuitively understand and manage the logical settings of virtual objects, and simplifies the creation and modification process of virtual objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082457_26092024_PF_FP
    Figure CN2024082457_26092024_PF_FP
Patent Text Reader

Abstract

A method and apparatus for editing a virtual object, a device, a medium and a program. The method comprises: displaying an editing control and a virtual object; in response to a connection instruction for the editing control and the virtual object, associating the editing control with the virtual object; and editing the virtual object according to editing content corresponding to the editing control. In the described method, the editing control and the virtual object are displayed, so that a user only needs to connect the editing control with the virtual object to complete editing of the virtual object, such that editing of the virtual object is simple editing, thus improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Virtual object editing method, device, equipment, medium and program

[0001] This application claims priority to Chinese Patent Application No. 202310281193.1 filed on March 20, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] Embodiments of the present application relate to a method, apparatus, device, medium, and program for editing a virtual object. Background Art

[0003] Extended Reality (XR) combines the real and virtual worlds through computers to create a virtual environment where humans and machines can interact. XR is also a general term for various technologies, including Virtual Reality (VR), Augmented Reality (AR), and Mixed Reality (MR). By integrating the visual interaction technologies of these three, XR creates an immersive experience, allowing users to seamlessly transition between the virtual and real worlds.

[0004] In XR scenarios, to meet user needs for personalization, a user-generated content (UGC) feature has been added. This allows users to customize a virtual object using assets and other elements within the provided editor. User-defined virtual objects require logic (i.e., code) to be assigned to them before they can behave accordingly. In some examples, after creating a virtual object, the logic for the virtual object is defined in the object's properties panel.

[0005] However, the aforementioned example logic creation is inflexible and has low creation efficiency.

[0006] Summary of the Invention

[0007] Embodiments of the present application provide a method, apparatus, device, medium, and program for editing a virtual object.

[0008] In a first aspect, an embodiment of the present application provides a method for editing a virtual object, the method comprising:

[0009] Display edit controls and dummy objects;

[0010] In response to a connection instruction for the editing control and the virtual object, associating the editing control with the virtual object;

[0011] Edit the virtual object according to the editing content corresponding to the editing control.

[0012] In some embodiments, after the virtual object is associated with the editing control, the method further includes:

[0013] The information of the editing control is displayed at the virtual object.

[0014] In some embodiments, the information of the edit control includes at least one of the following information: the edit control, a thumbnail of the edit control, a name of the edit control, and identification information of the edit control.

[0015] In some embodiments, displaying the information of the editing control at the virtual object includes:

[0016] Determining the position or posture of the information of the editing control according to the position or posture of the virtual object;

[0017] The information of the editing control is displayed according to the position or posture of the information of the editing control.

[0018] In some embodiments, in response to a connection instruction for the editing control and the virtual object, associating the editing control with the virtual object comprises:

[0019] In response to a movement instruction for the editing control, controlling the editing control to move;

[0020] In response to detecting that the editing control overlaps the virtual object, the editing control is associated with the virtual object.

[0021] In some embodiments, the editing control has a connection portion, and the connection portion is used to connect with the virtual object;

[0022] In response to detecting that the editing control overlaps with the virtual object, associating the editing control with the virtual object includes:

[0023] In response to detecting that the connection portion of the editing control overlaps the virtual object, the editing control is associated with the virtual object.

[0024] In some embodiments, the editing control and the virtual object each have a connection portion;

[0025] The associating the editing control with the virtual object in response to a connection instruction for the editing control and the virtual object comprises:

[0026] Connecting the connection portion of the editing control to the connection portion of the virtual object through a connecting line;

[0027] In response to the connection being completed, the connection line is hidden.

[0028] In some embodiments, the method further comprises:

[0029] In response to a disconnection instruction for the editing control and the virtual object, the association relationship between the editing control and the virtual object is cancelled.

[0030] In some embodiments, after the editing control is associated with the virtual object, when the editing control is displayed at the virtual object, in response to an instruction to disconnect the editing control from the virtual object, cancelling the association between the editing control and the virtual object includes:

[0031] In response to a movement instruction for the editing control, controlling the editing control to move;

[0032] In response to detecting that the editing control and the virtual object no longer overlap, the association between the editing control and the virtual object is cancelled.

[0033] In some embodiments, the editing control has a connecting portion, and when the editing control is associated with the virtual object, the connecting portion overlaps with the virtual object;

[0034] In response to detecting that the editing control and the virtual object no longer overlap, canceling the association between the editing control and the virtual object includes:

[0035] In response to detecting that the connection portion of the editing control no longer overlaps with the virtual object, the association relationship between the editing control and the virtual object is cancelled.

[0036] In some embodiments, the method further comprises:

[0037] In response to a first operation on the editing control, displaying a setting panel of the editing control;

[0038] Receive editing content of the editing control input in the setting panel.

[0039] In some embodiments, the editing content corresponding to the editing control includes an editing instruction, and editing the virtual object according to the editing content corresponding to the editing control includes:

[0040] The instruction corresponding to the virtual object is determined according to the editing instruction corresponding to the editing control.

[0041] In some embodiments, the editing content corresponding to the editing control includes editing parameters, and editing the virtual object according to the editing content corresponding to the editing control includes:

[0042] The parameters of the virtual object are set according to the editing parameters corresponding to the editing control.

[0043] In some embodiments, after the editing control is associated with the virtual object, the display characteristics of the editing control change.

[0044] In some embodiments, after the editing control is associated with the virtual object, the method further includes:

[0045] Prompt information is displayed, where the prompt information is used to prompt that the editing control is successfully associated with the virtual object.

[0046] In another aspect, an embodiment of the present application provides a device for editing a virtual object, the device comprising:

[0047] Display module, used for displaying editing controls and virtual objects;

[0048] an associating module, configured to associate the editing control with the virtual object in response to a connection instruction for the editing control and the virtual object;

[0049] The editing module is used to edit the virtual object according to the editing content corresponding to the editing control.

[0050] On the other hand, an embodiment of the present application provides an electronic device, comprising: 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 any of the methods described above.

[0051] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute any of the methods described above.

[0052] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, which implements any of the methods described above when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0054] FIG1 is a flowchart of a method for editing a virtual object provided in Example 1 of the present application;

[0055] FIG2 is a schematic diagram of an edit control and a setting panel of the edit control;

[0056] FIG3 is a schematic diagram of the positional relationship between the bounding box of the connecting portion of the editing control and the virtual object;

[0057] FIG4 is a schematic diagram showing the association between the editing control and three different virtual objects;

[0058] FIG5 is a flowchart of a method for editing a virtual object provided in Example 2 of the present application;

[0059] FIG6 is a schematic diagram showing information displayed in an editing control of a virtual object;

[0060] FIG7 is a flowchart of a method for editing a virtual object provided in Example 3 of the present application;

[0061] FIG8 is a schematic diagram of an editing control switching between different virtual objects;

[0062] FIG9 is a schematic diagram of the structure of a device for editing a virtual object provided in a fourth embodiment of the present application;

[0063] FIG10 is a schematic structural diagram of an electronic device provided in Example 5 of the present application. DETAILED DESCRIPTION

[0064] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0065] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention 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 numbers used in this way are interchangeable where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof 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.

[0066] To facilitate understanding of the embodiments of the present application, before describing each embodiment of the present application, some concepts involved in all embodiments of the present application are first appropriately explained as follows:

[0067] XR is a general term for VR, AR and AR technology. XR devices include but are not limited to VR devices, AR devices and MR devices.

[0068] VR: A technology for creating and experiencing a virtual world. It generates a virtual environment through computational means. It is a multi-source information (the virtual reality mentioned in this article includes at least visual perception, and can also include auditory perception, tactile perception, motion perception, and even taste perception, olfactory perception, etc.). It realizes the simulation of the fusion of virtual environments, interactive three-dimensional dynamic vision and entity behavior, immersing users in a simulated virtual reality environment, and realizing applications in various virtual environments such as maps, games, videos, education, medical care, simulation, collaborative training, sales, assisted manufacturing, maintenance and repair.

[0069] VR devices refer to terminals that achieve virtual reality effects, and can usually be provided in the form of glasses, helmet-mounted displays (HMDs), or contact lenses to achieve visual perception and other forms of perception. Of course, the form of virtual reality devices is not limited to this, and can be further miniaturized or enlarged as needed.

[0070] AR: An AR set refers to a simulated set in which at least one virtual object is superimposed on a physical set or a representation thereof. For example, an electronic system may have an opaque display and at least one imaging sensor that captures images or videos of a physical set, which are representations of the physical set. The system combines the images or videos with virtual objects and displays the combination on the opaque display. An individual using the system indirectly views the physical set via the images or videos of the physical set and observes the virtual objects superimposed on the physical set. When the system uses one or more image sensors to capture images of the physical set and uses those images to present the AR set on the opaque display, the displayed images are referred to as video pass-through. Alternatively, an electronic system for displaying the AR set may have a transparent or translucent display through which an individual can directly view the physical set. The system can display virtual objects on the transparent or translucent display, allowing an individual using the system to observe the virtual objects superimposed on the physical set. For another example, the system may include a projection system that projects virtual objects onto the physical set. Virtual objects can be projected, for example, on a physical surface or as a hologram, allowing an individual using the system to observe virtual objects superimposed on a physical setting. Specifically, a technology that calculates the camera's pose parameters in the real world (or three-dimensional world, real world) in real time during the process of the camera capturing an image, and adds virtual elements to the image captured by the camera based on the camera pose parameters. Virtual elements include but are not limited to: images, videos, and three-dimensional models. The goal of AR technology is to overlay the virtual world on the real world on the screen for interaction.

[0071] MR: By presenting virtual scene information in a real scene, an interactive feedback information loop is established between the real world, the virtual world, and the user to enhance the realism of the user experience. For example, computer-generated sensory input (e.g., virtual objects) is integrated with sensory input from a physical scene or its representation in a simulated scene. In some MR scenes, computer-generated sensory input can adapt to changes in sensory input from the physical scene. In addition, some electronic systems used to present MR scenes can monitor the orientation and / or position relative to the physical scene so that virtual objects can interact with real objects (i.e., physical elements from the physical scene or their representations). For example, the system can monitor movement so that virtual plants appear stationary relative to physical buildings.

[0072] Virtual reality devices (VR devices), terminals that achieve virtual reality effects, can usually be provided in the form of glasses, head-mounted displays (Head Mount Display, abbreviated as HMD), or contact lenses to achieve visual perception and other forms of perception. Of course, the form of virtual reality devices is not limited to this and can be further miniaturized or enlarged according to actual needs.

[0073] Optionally, the virtual reality devices (i.e., XR devices) described in the embodiments of this application may include, but are not limited to, the following types:

[0074] 1) Mobile virtual reality devices support the configuration of mobile terminals (such as smartphones) in various ways (such as head-mounted displays with dedicated card slots). Through wired or wireless connection with the mobile terminal, the mobile terminal performs relevant calculations for virtual reality functions and outputs data to the mobile virtual reality device, such as watching virtual reality videos through the mobile terminal's APP.

[0075] 2) All-in-one virtual reality devices have a processor for performing related calculations for virtual functions, and thus have independent virtual reality input and output functions. They do not need to be connected to a PC or mobile terminal and have a high degree of freedom of use.

[0076] 3) Computer-based virtual reality (PCVR) devices use the PC to perform calculations and data output related to virtual reality functions. External computer-based virtual reality devices use the data output by the PC to achieve virtual reality effects.

[0077] Figure 1 is a flowchart of a method for editing a virtual object provided in Example 1 of this application. This method is applied to electronic devices such as XR devices, electronic devices, and personal computers. This embodiment mainly uses XR devices as an example for illustration. As shown in Figure 1, the method provided in this embodiment includes the following steps.

[0078] S101: Display an editing control and a virtual object.

[0079] Virtual objects can be objects in a virtual scene. This virtual scene can be a 3D extended reality scene provided by an XR device or a 2D virtual scene provided by a mobile phone or computer. Virtual objects in a virtual scene can be objects, props, controls, etc. in the virtual scene. Objects can be plants, animals, buildings, etc. in the virtual scene.

[0080] This virtual object can be provided by the client itself or defined by the user. Taking XR devices as an example, to meet the needs of users' personalization, a user-generated content (UGC) function has been added. This means that users can customize a virtual object according to their needs in the editor provided by the game. User-defined virtual objects are also called UGC objects.

[0081] The editor can provide some editing elements such as polyhedrons, controls, materials, physics, logic, music, sound effects, special effects and materials for users to use, and users can customize virtual objects in the editor. Customization in the embodiment of the present application can be understood as the user independently building a virtual object in the editor using the editing elements provided by the editor.

[0082] When users create the model or appearance of a virtual object, they also need to assign or set logic to the virtual object. Only after the virtual object is assigned logic can it perform corresponding behaviors. Logic can be understood as the code of the function corresponding to the logic.

[0083] For example, consider a game scenario where a player wants to create a game effect where the player picks up a sword and slashes at a monster, causing the monster to lose health. The user first needs to build the sword's appearance using a 3D model, then the monster's appearance, and then write the code related to "health loss" and "attack damage." These two pieces of code are then associated with the sword and monster models, respectively. The code related to "health loss" and "attack damage" can be understood as the logic for the "health loss" function and the "attack damage" function.

[0084] In some examples, when setting logic for a virtual object, it is usually necessary to open the property panel of the virtual object and write code in the property panel to implement the corresponding logic.

[0085] In this embodiment, the logic of a virtual object is materialized as an edit control. In a 3D scene, this edit control can be a 2D or 3D model, and in a 2D scene, it can be a 2D model. When an edit control is used to set logic for a virtual object, it is also called a logic control and can represent one or more logic items.

[0086] It can be understood that in this embodiment, the editing control can not only be used to set logic for the virtual object, but also to perform other edits on the virtual object, for example, editing the appearance, special effects, etc. of the virtual object.

[0087] The edit control and the virtual object are created separately. After being created separately, the edit control is associated with the virtual object to enable editing of the virtual object according to the editing content corresponding to the edit control.

[0088] The editing control and the virtual object can be created by the above-mentioned editor or by different editors. The editing control and the virtual object can be created by the same user or by different users, and this embodiment of the application does not limit this.

[0089] Exemplarily, a user may trigger setting logic for a virtual object in the following scenarios.

[0090] Scenario 1: After the appearance of the virtual object is created, set the logic for the virtual object.

[0091] The user can create a virtual object in the first creation page of the virtual object. After the virtual object is created, the user opens the editing control through the entrance in the first creation page, and displays the editing control and the virtual object in the first creation page. In the first creation page, the user selects the editing control to be associated with the virtual object.

[0092] The first creation page may display one or more different edit controls for the user to use. Different edit controls correspond to different logics, and the user can distinguish the logic by the appearance of the edit controls. Different edit controls can be distinguished by their color, logo, size, etc.

[0093] Scenario 2: After the edit control is created, verify whether the logic of the edit control is valid.

[0094] The user can create an editing control in the second creation page of the editing control. After the editing control is created, the user opens the virtual object through the entrance in the second creation page, and displays the editing control and the virtual object in the first creation page.

[0095] Scenario 3: When creating a virtual scene, the user sets or modifies logic for virtual objects in the virtual scene.

[0096] Scenario 4: When users play in a virtual scene, they set or modify logic for virtual objects.

[0097] In different scenes, editing controls and virtual objects are displayed in different editing spaces, which can be 2D or 3D spaces.

[0098] Optionally, during the creation of the edit control, the appearance of the edit control may be created first, and then the edit content of the edit control may be written after the appearance of the edit control is created.

[0099] Optionally, after the editing content of the edit control is written, the user can also modify the content of the edit control.

[0100] Exemplarily, the editing content of the edit control is written or modified in the following manner: in response to a first operation on the edit control, a settings panel of the edit control is displayed, and the editing content of the edit control input in the settings panel is received. The first operation can be an operation such as clicking, double-clicking, long pressing, or hovering on the edit control.

[0101] Figure 2 is a schematic diagram of an edit control and its settings panel. As shown in Figure 2 , the edit control is a 3D object with a connecting rod. It should be understood that Figure 2 is merely an example, and this application does not restrict the shape of the edit control. After the user performs a first operation on the edit control, the settings panel shown in the figure appears. Within this settings panel, code can be written or modified, and parameters for the edit control can also be set or modified.

[0102] In one implementation, the edit control and the virtual object have a binding relationship, that is, a certain edit control is developed for a specific virtual object, and the edit control can only be associated with the specific virtual object and cannot be associated with other virtual objects.

[0103] In another implementation, the edit control has no binding relationship with the virtual object, and the same edit control can be applied to multiple different virtual objects. In this implementation, the edit control can be reused by multiple virtual objects, avoiding the waste of resources caused by repeated development of the functions corresponding to the edit control.

[0104] Optionally, a default subject is set in the edit content corresponding to the edit control. When the edit content corresponding to the edit control is executed, the subject is the virtual object connected to the edit control. When the edit control is connected to a different virtual object, the user does not need to modify the subject of the edit control; the subject corresponding to the edit control is automatically replaced with the connected virtual object, thereby achieving the goal of not binding the edit control to the virtual object.

[0105] S102: In response to a connection instruction for the editing control and the virtual object, associate the editing control with the virtual object.

[0106] In one implementation, the connection instruction is a movement instruction of the editing control. In response to the movement instruction of the editing control, the editing control is controlled to move; in response to detecting that the editing control overlaps with the virtual object, the editing control is associated with the virtual object.

[0107] During the movement of the edit control, it is detected whether the edit control overlaps with the virtual object. Specifically, it can be detected whether the bounding volume of the edit control and the bounding volume of the virtual object overlap. When the bounding volume of the edit control and the bounding volume of the virtual object overlap, it is determined that the edit control overlaps with the virtual object.

[0108] The bounding box is also called a bounding volume or a collision volume. The bounding box can be considered as a transparent object that covers or surrounds all or part of the virtual object. The bounding box may be invisible to the user.

[0109] Optionally, the edit control has a connecting portion for connecting to the virtual object. Referring to FIG. 2 , the connecting rod of the edit control shown in FIG. 2 is the connecting portion. Accordingly, whether the connecting portion of the edit control overlaps with the virtual object is detected. If so, the edit control is associated with the virtual object.

[0110] Similarly, it can be detected whether the bounding box of the connecting portion of the editing control overlaps with the bounding box of the virtual object. When the bounding box of the connecting portion of the editing control overlaps with the bounding box of the virtual object, it is determined that the connecting portion of the editing control overlaps with the virtual object.

[0111] Figure 3 is a schematic diagram of the positional relationship between the bounding box of the connecting part of the editing control and the virtual object. As shown in Figure 3, the bounding box of the connecting part of the editing control is a 3D sphere, which covers the connecting part of the editing control. When the editing control is moved, when the bounding box of the connecting part of the editing control overlaps with the virtual object, the editing control is associated with the virtual object. When the bounding box of the connecting part of the editing control does not overlap with the virtual object, the editing control is not associated with the virtual object.

[0112] The connection method shown in Figure 3 is similar to inserting the connection part of the editing control into the virtual object to implement setting logic for the virtual object. This operation process is more in line with the user's operating habits in real scenarios, thereby providing a better user experience.

[0113] Associating an edit control with a virtual object means that the edit content corresponding to the edit control is applied to the virtual object. Optionally, after the edit control is associated with the virtual object, the display characteristics of the edit control change. In other words, the display characteristics of the edit control are different before and after the association, making it easier for users to distinguish whether the edit control is successfully associated.

[0114] For example, the color of the edit control is different before and after it is associated with the virtual object. For example, before the edit control is associated with the virtual object, the edit control is gray, and after the edit control is successfully associated with the virtual object, the edit control changes color to a color. Alternatively, before the edit control is associated with the virtual object, the edit control is displayed normally. After the edit control is successfully associated with the virtual object, the edit control is logically highlighted to inform the user of the successful association of the edit control with the virtual object. After the highlighting period is preset, the normal display is restored.

[0115] Optionally, after the edit control is associated with the virtual object, a text prompt may be provided to the user indicating the successful association. For example, a prompt message may be displayed around the virtual object, indicating that the edit control is successfully associated with the virtual object. This prompt message may then be displayed for a preset duration and then disappear, or the user may actively close the prompt message.

[0116] In this implementation, the connection instruction is a movement instruction of the editing control. In other embodiments of the present application, the connection instruction can also be a movement instruction of the virtual object, that is, the virtual object is moved closer to the editing control. When it is detected that the editing control and the virtual object overlap, the editing control is associated with the virtual object. The specific implementation method is similar and will not be repeated here.

[0117] In another implementation, both the editing control and the virtual object have a connecting portion, and the connecting portion of the editing control is connected to the connecting portion of the virtual object via a connecting line; in response to the connection being completed, the connecting line is hidden to achieve the association between the logical control and the virtual object.

[0118] The user can select a connection line from the menu bar in the editing space, and then connect the connection part of the editing control to the connection part of the virtual object.

[0119] Alternatively, a hover operation is performed on the connection portion of the edit control, and in response to the hover operation, a connection line is drawn, and the user drags the cursor to move the end point of the connection line to the connection portion of the virtual object. It is understood that a connection line can also be drawn from the connection portion of the virtual object through a hover operation.

[0120] In this embodiment, the edit control and virtual objects are created separately. The UI allows for convenient association between the edit control and virtual objects. A single edit control can be linked to multiple virtual objects, enabling editing of those objects. Figure 4 shows how the edit control is associated with three different virtual objects. Users only need to move the edit control to a different virtual object to associate it, making operations much easier.

[0121] S103: Edit the virtual object according to the editing content corresponding to the editing control.

[0122] After the edit control is associated with the virtual object, the edit content of the edit control is read, and the virtual object is edited according to the edit content corresponding to the edit control, thereby completing the logical setting or other editing operations of the virtual object. It is understood that the edit control may already have the corresponding edit content before the edit control is associated with the virtual object, and the edit content of the edit control may be read to edit the virtual object after the association; or after the edit control is associated with the virtual object, the edit content of the edit control may be read to edit the virtual object when the edit content corresponding to the edit control is created or modified.

[0123] In one implementation, the editing content corresponding to the editing control includes editing instructions. Accordingly, the instructions corresponding to the virtual object are determined according to the editing instructions corresponding to the editing control.

[0124] For example, when the editing instruction corresponding to the editing control contains a default subject, when the editing instruction is used to edit a virtual object, the default subject in the editing instruction is modified to the virtual object to obtain an executable editing instruction, and the executable editing instruction is used to edit the virtual object, for example, to drive the virtual object to perform a corresponding action.

[0125] In another implementation, the editing content corresponding to the editing control includes editing parameters, and the parameters of the virtual object are set according to the editing parameters corresponding to the editing control.

[0126] Exemplarily, the editing parameters are used to add, delete, or modify parameters for a virtual object. The parameters of a virtual object may include physical parameters of the virtual object (such as collision parameters, motion parameters, or gravity parameters), special effects, appearance parameters of the virtual object (pose parameters, size parameters, color parameters, material parameters, or brightness parameters), sound effects, etc. The user can open the settings panel of the editing control and set the editing parameters in the settings panel. After the virtual object is associated with the editing control, the parameters of the virtual object are set according to the editing parameters corresponding to the editing control.

[0127] For example, when the editing parameter of the editing control is health loss, the user can set the health loss through the setting panel of the editing control. After the virtual object and the editing control are associated, the health loss of the virtual object is set according to the health loss of the editing control.

[0128] By setting the parameters of a virtual object through an editing control, you only need to modify the editing parameters of the editing control once to modify the parameters of multiple virtual objects associated with the editing control, without having to modify the parameters of each virtual object separately, thereby improving the efficiency of setting the parameters of the virtual objects.

[0129] In this embodiment, an edit control and a virtual object are displayed. In response to an instruction to connect the edit control and the virtual object, the edit control and the virtual object are associated, and the virtual object is edited according to the editing content corresponding to the edit control. In this method, by displaying the edit control and the virtual object, the user only needs to connect the edit control to the virtual object to complete the editing of the virtual object, making editing of virtual objects easier and improving the user experience.

[0130] Based on Example 1, Example 2 of the present application provides a method for editing a virtual object. After the virtual object is associated with an editing control, the information of the editing control is displayed at the virtual object. The same content is described in Example 1 and will not be repeated here. Figure 5 is a flowchart of a method for editing a virtual object provided in Example 2 of the present application. As shown in Figure 5, the method provided in this embodiment includes the following steps.

[0131] S201: Display editing controls and virtual objects.

[0132] S202: In response to a connection instruction for the editing control and the virtual object, associate the editing control with the virtual object.

[0133] S203: Edit the virtual object according to the editing content corresponding to the editing control.

[0134] S204: Display the information of the editing control at the virtual object.

[0135] In some examples, after setting logic for virtual objects, the user cannot intuitively perceive which virtual objects have logic set and which do not.

[0136] For example, a user creates multiple similar monsters, some of which have logic set and some of which have not. The user may forget which ones have logic set and which ones have not. At this time, the user can only open the monster attribute setting panel one by one to check which monsters have no logic set, which is a cumbersome operation.

[0137] For example, some logical associations will produce the same effect on different parts of a virtual character's body (such as the head, torso, and abdomen). It is easy for users to forget after associating the logic with a certain part. If the logic needs to be modified, it is necessary to open the property setting panel for each part, which is cumbersome.

[0138] In this embodiment, after a virtual object is associated with an edit control, information about the edit control is displayed at the virtual object. This information is always displayed, allowing the user to more intuitively understand the edit settings of the virtual object. Specifically, the user can determine whether the virtual object has been edited through the information in the edit control. The information in the edit control can be different for different edit contents, and the user can also understand the specific edits made to the virtual object through the information in the edit control.

[0139] Exemplarily, the information of the edit control includes at least one of the following information: the edit control, a thumbnail of the edit control, the name of the edit control, and identification information of the edit control.

[0140] The identification information of the edit control may be an icon, which indicates that the user has edited the virtual object.

[0141] FIG6 is a schematic diagram showing information of an editing control of a virtual object. As shown in FIG6 , logic is set for some virtual objects in a virtual scene, and the editing control inserted on the virtual object is the information of the editing control of the virtual object.

[0142] In this embodiment, the position or posture of the edit control information can be determined based on the position or posture of the virtual object; the edit control information can be displayed based on the position or posture of the edit control information, so that the edit control information can always be displayed on the virtual object. The position and posture of the virtual object or edit control information includes position and posture.

[0143] When the virtual object is a stationary object, such as a tree or a house as shown in FIG6 , the position or posture of the virtual object is unchanged, and accordingly, the position or posture of the information of the edit control is also unchanged.

[0144] When the virtual object is a dynamic object, such as the car shown in Figure 6, the position or posture of the virtual object is changing. Accordingly, the position or posture of the information of the editing control is determined according to the position or posture of the virtual object, so that the position or posture of the information of the editing control is consistent with the position or posture of the virtual object.

[0145] In this embodiment, after a virtual object is associated with an edit control, the edit control information is displayed on the virtual object. The edit control information can be displayed at a fixed location on the virtual object, or the display location of the edit control information can be determined based on a connection instruction. The edit control information can be in contact with the surface of the virtual object or not. When the edit control information is not in contact with the surface of the virtual object, the distance between the edit control information and the virtual object is less than a preset distance.

[0146] When the edit control information is displayed at a fixed location on a virtual object, if the edit control is associated with the virtual object using a movable edit control method, the edit control information is controlled to move to the fixed location on the virtual object when it is detected that the edit control overlaps with the virtual object. For example, if the virtual object is a house and the edit control information is displayed on the right roof of the virtual object, and the user drags the edit control to the bottom of the house and the connection portion of the edit control overlaps with the bottom of the house, the edit control is automatically controlled to be inserted on the right roof of the house.

[0147] When the display position of an edit control's information is determined by a link instruction, if the edit control is associated with a virtual object by moving the edit control, then when it is detected that the edit control overlaps the virtual object, the edit control's information is displayed at the end of the move instruction. The end of the move instruction is the point where the move operation is released. In other words, the edit control's information is displayed at the virtual object's location where the user moved the edit control.

[0148] In this embodiment, after the editing control is associated with the virtual object according to the connection instruction of the editing control and the virtual object, the information of the editing control is also displayed at the virtual object, so that the user can more intuitively understand the editing status of the virtual object through the information of the editing control displayed at the virtual object, that is, know whether the virtual object has been edited and what edits have been made through the information of the editing control, thereby improving the editing efficiency of the virtual object.

[0149] After associating a virtual object with an edit control, you can also cancel the association between the edit control and the virtual object. This can be done by inputting a disconnect command. In response to the disconnect command, the edit control and the virtual object are disconnected. After the edit control and the virtual object are disconnected, the edited content in the edit control no longer takes effect on the virtual object.

[0150] If the edit control is associated with a virtual object and its information is displayed on the virtual object, then after the edit control is disassociated from the virtual object, the edit control information is hidden and not displayed on the virtual object, so that the user can immediately understand the editing status of the virtual object.

[0151] In one implementation, the user may perform a second operation on the virtual object, open a setting panel of the virtual object, and input a disconnection instruction in the setting panel of the virtual object.

[0152] In another implementation, after an edit control is associated with a virtual object, if the edit control is displayed on the virtual object, the user can perform a second operation on the edit control, opening a settings panel for the edit control and entering a disconnect command in the settings panel. In this implementation, after the edit control is disconnected from the virtual object, the edit control displayed on the virtual object is hidden.

[0153] Based on Examples 1 and 2, Example 3 of the present application provides a method for editing a virtual object. After the virtual object is associated with an editing control, the information of the editing control is displayed at the virtual object, and the association between the editing control and the virtual object is canceled. The same content is described in Example 1 and will not be repeated here. Figure 7 is a flowchart of a method for editing a virtual object provided in Example 3 of the present application. As shown in Figure 7, the method provided in this embodiment includes the following steps.

[0154] S301: Display editing controls and virtual objects.

[0155] S302: In response to a movement instruction for the editing control, control the editing control to move; in response to detecting that the editing control overlaps with the virtual object, associate the editing control with the virtual object, and display the editing control at the virtual object.

[0156] S303: Edit the virtual object according to the editing content corresponding to the editing control.

[0157] S304: In response to a move instruction for the editing control, controlling the editing control to move; in response to detecting that the editing control and the virtual object no longer overlap, canceling the association between the editing control and the virtual object.

[0158] After you disassociate an edit control from a dummy object, the edit control no longer appears at the dummy object.

[0159] Optionally, the editing control has a connecting portion, and when the editing control is associated with the virtual object, the connecting portion overlaps with the virtual object. Accordingly, when it is detected that the connecting portion of the editing control no longer overlaps with the virtual object, the association between the editing control and the virtual object is cancelled.

[0160] In this manner, the edit control is conveniently associated with the virtual object by moving the edit control, and the user can conveniently insert the edit control into any virtual object.

[0161] In actual practice, after creating an editing control, the user needs to view the effect of the editing control applied to different virtual objects. The method of this embodiment can conveniently associate the editing control with different virtual objects, and then view the editing effect of the virtual objects. When the user needs to associate the editing control with another virtual object, he only needs to move the editing control from the original virtual object to the other virtual object.

[0162] Figure 8 is a schematic diagram of the editing control switching between different virtual objects. As shown in Figure 8, the user first associates the editing control with the virtual object on the left to view the editing effect of the virtual object on the left. Then, the user moves the editing control from the virtual object on the left to the virtual object on the right, associates the editing control with the virtual object on the right, and views the editing effect of the virtual object on the right. The entire interaction process is convenient and natural.

[0163] It should be noted that, in the embodiment of the present application, when moving the editing control, you can move the cursor to the editing control, and long-press the cursor to drag the editing control. In the XR device, in order to give the user an immersive experience, a virtual model corresponding to the physical controller of the XR device (which can be a handle) will be displayed in the extended reality scene. The virtual model is used to simulate the actual operation of the user in the real scene. The virtual model can be a virtual hand model or a virtual handle, etc. Correspondingly, the editing control can be dragged through the virtual model to achieve the movement of the editing control. For example, in the schematic diagram shown in Figure 8, the user controls the virtual hand model through the physical controller to pick up the editing control from the virtual object on the left, and move it to the virtual object on the right, and then insert the editing control into the virtual object on the right, thereby simulating the user's operation in the real scene and making the interaction process more natural.

[0164] To facilitate better implementation of the virtual object editing method of the embodiment of the present application, the embodiment of the present application also provides a virtual object editing device. Figure 9 is a structural diagram of the virtual object editing device provided in the fourth embodiment of the present application. As shown in Figure 9, the virtual object editing device 100 may include:

[0165] Display module 11, used for displaying editing controls and virtual objects;

[0166] an associating module 12, configured to associate the editing control with the virtual object in response to a connection instruction for the editing control and the virtual object;

[0167] The editing module 13 is configured to edit the virtual object according to the editing content corresponding to the editing control.

[0168] In some embodiments, the display module 11 is further configured to:

[0169] After the virtual object is associated with the editing control, information of the editing control is displayed at the virtual object.

[0170] In some embodiments, the information of the edit control includes at least one of the following information: the edit control, a thumbnail of the edit control, a name of the edit control, and identification information of the edit control.

[0171] In some embodiments, the display module 11 is specifically used to:

[0172] Determining the position or posture of the information of the editing control according to the position or posture of the virtual object;

[0173] The information of the editing control is displayed according to the position or posture of the information of the editing control.

[0174] In some embodiments, the association module 12 is specifically configured to:

[0175] In response to a movement instruction for the editing control, controlling the editing control to move;

[0176] In response to detecting that the editing control overlaps the virtual object, the editing control is associated with the virtual object.

[0177] In some embodiments, the editing control has a connection portion, and the connection portion is used to connect with the virtual object;

[0178] The association module 12 is specifically used for:

[0179] In response to detecting that the connection portion of the editing control overlaps the virtual object, the editing control is associated with the virtual object.

[0180] In some embodiments, the editing control and the virtual object both have a connection portion, and the association module 12 is specifically configured to:

[0181] Connecting the connection portion of the editing control to the connection portion of the virtual object through a connecting line;

[0182] In response to the connection being completed, the connection line is hidden.

[0183] In some embodiments, the association module 12 is further configured to:

[0184] In response to a disconnection instruction for the editing control and the virtual object, the association relationship between the editing control and the virtual object is cancelled.

[0185] In some embodiments, after the editing control is associated with the virtual object, when the editing control is displayed at the virtual object, the associating module 12 is specifically configured to:

[0186] In response to a movement instruction for the editing control, controlling the editing control to move;

[0187] In response to detecting that the editing control and the virtual object no longer overlap, the association between the editing control and the virtual object is cancelled.

[0188] In some embodiments, the editing control has a connecting portion, and when the editing control is associated with the virtual object, the connecting portion overlaps with the virtual object;

[0189] The association module 12 is specifically used for:

[0190] In response to detecting that the connection portion of the editing control no longer overlaps with the virtual object, the association relationship between the editing control and the virtual object is cancelled.

[0191] In some embodiments, a setting module is further included for:

[0192] In response to a first operation on the editing control, displaying a setting panel of the editing control;

[0193] Receive editing content of the editing control input in the setting panel.

[0194] In some embodiments, the editing content corresponding to the editing control includes editing instructions, and the editing module 13 is specifically configured to:

[0195] The instruction corresponding to the virtual object is determined according to the editing instruction corresponding to the editing control.

[0196] In some embodiments, the editing content corresponding to the editing control includes editing parameters, and the editing module 13 is specifically configured to:

[0197] The parameters of the virtual object are set according to the editing parameters corresponding to the editing control.

[0198] In some embodiments, after the editing control is associated with the virtual object, the display characteristics of the editing control change.

[0199] In some embodiments, after the editing control is associated with the virtual object, the display module 11 is further configured to:

[0200] Prompt information is displayed, where the prompt information is used to prompt that the editing control is successfully associated with the virtual object.

[0201] It should be understood that the device embodiment and the 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.

[0202] The above describes the device 100 of the embodiment of the present application from the perspective of functional modules 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 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 method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in conjunction with its hardware.

[0203] The present application also provides an electronic device. FIG10 is a schematic diagram of the structure of an electronic device provided in the fifth embodiment of the present application. As shown in FIG10 , the electronic device 200 may include:

[0204] The memory 21 and the processor 22 are configured to store computer programs and transmit the program code to the processor 22. In other words, the processor 22 can call and run the computer program from the memory 21 to implement the method in the embodiment of the present application.

[0205] For example, the processor 22 may be configured to execute the above method embodiments according to instructions in the computer program.

[0206] In some embodiments of the present application, the processor 22 may include but is not limited to:

[0207] 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.

[0208] In some embodiments of the present application, the memory 21 includes but is not limited to:

[0209] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. 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).

[0210] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 21 and executed by the processor 22 to implement the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0211] As shown in FIG. 10 , the electronic device may further include: a transceiver 23 , which may be connected to the processor 22 or the memory 21 .

[0212] The processor 22 can control the transceiver 23 to communicate with other devices. Specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 23 may include a transmitter and a receiver. The transceiver 23 may further include an antenna, and the number of antennas may be one or more.

[0213] It can be understood that, although not shown in FIG10 , the electronic device 200 may further include a camera module, a wireless fidelity WIFI module, a positioning module, a Bluetooth module, a display, a controller, etc., which will not be described in detail here.

[0214] 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.

[0215] The present application also provides a computer storage medium having a computer program stored thereon, which, when executed by a computer, enables the computer to perform the method of the above-mentioned method embodiment. In other words, the present application also provides a computer program product containing instructions, which, when executed by a computer, enables the computer to perform the method of the above-mentioned method embodiment.

[0216] The present application also provides a computer program product, comprising a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium and executes the computer program, causing the electronic device to execute the corresponding process of the method for controlling the position of a user in a virtual scene in an embodiment of the present application. For the sake of brevity, the details are not further described here.

[0217] In the several embodiments provided in this 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 merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, 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.

[0218] Modules described as separate components may or may not be physically separate, and components displayed as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected based on actual needs to achieve the purpose of the present embodiment. For example, the functional modules in the various embodiments 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 a single module.

[0219] The above is only a specific embodiment of the present application, but the scope of protection of the present application is not limited to this. Any changes or substitutions that can be easily conceived by any person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for editing a virtual object, comprising: Display edit controls and dummy objects; In response to a connection instruction for the editing control and the virtual object, associating the editing control with the virtual object; The virtual object is edited according to the editing content corresponding to the editing control.

2. The method according to claim 1, wherein: After the virtual object is associated with the editing control, the method further includes: The information of the editing control is displayed at the virtual object.

3. The method according to claim 2, wherein: The information of the edit control includes at least one of the following information: the edit control, a thumbnail of the edit control, a name of the edit control, and identification information of the edit control.

4. The method according to claim 2 or 3, wherein: The displaying the information of the editing control at the virtual object includes: Determining the position or posture of the information of the editing control according to the position or posture of the virtual object; The information of the editing control is displayed according to the position or posture of the information of the editing control.

5. The method according to any one of claims 1 to 4, wherein: The step of associating the editing control with the virtual object in response to a connection instruction for the editing control and the virtual object comprises: In response to a movement instruction for the editing control, controlling the editing control to move; In response to detecting that the editing control overlaps the virtual object, the editing control is associated with the virtual object.

6. The method according to claim 5, wherein: The editing control has a connecting portion, and the connecting portion is used to connect with the virtual object; In response to detecting that the editing control overlaps with the virtual object, associating the editing control with the virtual object comprises: In response to detecting that a connection portion of the editing control overlaps the virtual object, the editing control is associated with the virtual object.

7. The method according to any one of claims 1 to 6, wherein: The editing control and the virtual object both have a connecting portion; The step of associating the editing control with the virtual object in response to a connection instruction for the editing control and the virtual object comprises: Connecting the connection portion of the editing control to the connection portion of the virtual object through a connection line; In response to the connection being completed, hiding the connection line.

8. The method according to any one of claims 1 to 7, further comprising: In response to a disconnection instruction for the editing control and the virtual object, the association relationship between the editing control and the virtual object is cancelled.

9. The method according to claim 8, wherein: After the editing control is associated with the virtual object, when the editing control is displayed at the virtual object, in response to a disconnection instruction for the editing control and the virtual object, cancelling the association relationship between the editing control and the virtual object comprises: In response to a movement instruction for the editing control, controlling the editing control to move; In response to detecting that the editing control and the virtual object no longer overlap, the association relationship between the editing control and the virtual object is cancelled.

10. The method according to claim 9, wherein: The editing control has a connection portion, and when the editing control is associated with the virtual object, the connection portion overlaps with the virtual object; In response to detecting that the editing control and the virtual object no longer overlap, canceling the association relationship between the editing control and the virtual object includes: In response to detecting that the connection portion of the editing control no longer overlaps with the virtual object, the association relationship between the editing control and the virtual object is cancelled.

11. The method according to any one of claims 1 to 10, further comprising: In response to a first operation on the editing control, displaying a setting panel of the editing control; Receive the edit content of the edit control input in the setting panel.

12. The method according to any one of claims 1 to 11, wherein: The editing content corresponding to the editing control includes an editing instruction, and the editing of the virtual object according to the editing content corresponding to the editing control includes: The instruction corresponding to the virtual object is determined according to the editing instruction corresponding to the editing control.

13. The method according to any one of claims 1 to 12, wherein: The editing content corresponding to the editing control includes editing parameters, and the editing of the virtual object according to the editing content corresponding to the editing control includes: The parameters of the virtual object are set according to the editing parameters corresponding to the editing control.

14. The method according to any one of claims 1 to 13, wherein: After the editing control is associated with the virtual object, the display characteristics of the editing control change.

15. The method according to any one of claims 1 to 14, wherein: After the editing control is associated with the virtual object, the method further includes: Prompt information is displayed, where the prompt information is used to prompt that the editing control is successfully associated with the virtual object.

16. A virtual object editing device, comprising: A display module configured to display editing controls and virtual objects; an associating module, configured to associate the editing control with the virtual object in response to a connection instruction for the editing control and the virtual object; The editing module is configured to edit the virtual object according to the editing content corresponding to the editing control.

17. An electronic device comprising: A processor and a memory, wherein the memory is configured to store a computer program, and the processor is configured to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 15.

18. A computer-readable storage medium configured to store a computer program, wherein: The computer program enables a computer to execute the method according to any one of claims 1 to 15.

19. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.

Citation Information

Patent Citations

  • Virtual object editing method and device, equipment, medium and program

    CN118674900A

  • Virtual object information display method and device, electronic equipment and storage medium

    CN113101636A

  • Virtual object control method and device, electronic equipment and storage medium

    CN115228093A

  • Game interaction method and device, equipment and storage medium

    CN115501603A

  • Systems and methods for generating content through an interactive script and 3D virtual characters

    WO2022175814A1