Virtual element editing method and apparatus, device, medium, and product
By displaying the mirror coordinate system and mirror axis surface in a virtual scene, the mirroring operation of virtual elements is automatically processed, and the complex operation problems in the prior art are solved, improving editing efficiency and user experience.
Patent Information
- Application Number
- PCT/CN2024/108856
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-17
- Filing Date
- 2024-07-31
- Publication Date
- 2025-05-22
AI Technical Summary
In the prior art, players need to have strong spatial imagination ability to achieve the mirroring effect of three-dimensional objects through manual rotation and translation, and the operation threshold is relatively high.
It provides a method of editing virtual elements in a virtual scene. By displaying the mirror coordinate system and mirror axis surface, it automatically displays the mirror results of the virtual elements in response to the mirror trigger operation, simplifying the mirror processing process.
It improves the convenience of users when editing virtual elements, makes the structure display of virtual elements clearer and more intuitive, reduces operation difficulty, and improves design efficiency.
Smart Images

Figure CN2024108856_22052025_PF_FP_ABST
Abstract
Description
Virtual element editing method, device, equipment, medium and product
[0001] This application claims priority to Chinese patent application No. 202311545552.6 filed on November 17, 2023, entitled “Methods, devices, equipment, media and products for editing virtual objects,” the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of Internet technology, and in particular to a method, apparatus, device, medium, and product for editing virtual elements. Background Art
[0003] User-generated content (UGC) refers to user-generated content shared online. In the gaming industry, designers encourage user participation in the design of game content, including level maps, gameplay, and ecosystems, by providing in-game UGC editing capabilities. Three-dimensional objects are a common example of UGC content.
[0004] In related technologies, players can use multiple identical three-dimensional objects and manually rotate and translate them to create a mirror effect between them, thereby enriching the object's structure. However, this method requires players to have strong spatial imagination to achieve the mirror effect of three-dimensional objects, and the operational threshold is relatively high.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a method, apparatus, device, medium, and product for editing virtual elements. The technical solution is as follows:
[0007] In one aspect, a method for editing virtual elements in a virtual scene is provided, which is executed by a computer device, and the method includes:
[0008] displaying a first virtual element in the virtual scene;
[0009] In response to receiving a mirror trigger operation for the first virtual element, displaying a mirror coordinate system, the mirror coordinate system including a plurality of mirror coordinate axes, the plurality of mirror coordinate axes forming at least two mirror axis planes, the mirror axis planes being used to simulate a mirror to perform mirroring processing on the first virtual element;
[0010] In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, a mirroring result of the first virtual element based on the first mirror axis plane is displayed.
[0011] In another aspect, a device for editing virtual elements in a virtual scene is provided, the device comprising:
[0012] An object display module, configured to display a first virtual element in a virtual scene;
[0013] a coordinate system display module, configured to display a mirror coordinate system in response to receiving a mirror trigger operation on the first virtual element, wherein the mirror coordinate system includes a plurality of mirror coordinate axes, the plurality of mirror coordinate axes forming at least two mirror axis planes, and the mirror axis planes are used to simulate a mirror to perform a mirroring process on the first virtual element;
[0014] A mirroring result display module is configured to display a mirroring result of the first virtual element based on the first mirroring axis plane in response to receiving a triggering operation on the first mirroring axis plane among the at least two mirroring axis planes. In another aspect, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement a method for editing a virtual element in a virtual scene as described in any of the above-mentioned embodiments of the present application.
[0015] On the other hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement a method for editing virtual elements in a virtual scene as described in any of the above-mentioned embodiments of the present application.
[0016] In another aspect, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for editing virtual elements in a virtual scene described in any of the above embodiments.
[0017] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:
[0018] By receiving a mirror trigger operation on the first virtual element (UGC object), the mirror coordinate system is displayed. The multiple mirror axis planes in the mirror coordinate system can provide a flip reference plane when mirroring the first virtual element, improving the user's convenience when editing the first virtual element. Receiving a trigger operation on the mirror axis plane can automatically display the mirror result of the first virtual element after flipping based on the mirror axis plane, making the structural display effect of the first virtual element clearer and more intuitive, and improving the user's efficiency in designing the first virtual element structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] FIG1 is a schematic diagram of displaying a mirror coordinate system in a virtual scene provided by an exemplary embodiment of the present application;
[0020] FIG2 is a structural block diagram of an electronic device provided by an exemplary embodiment of the present application;
[0021] FIG3 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;
[0022] FIG4 is a flowchart of a method for editing virtual elements in a virtual scene provided by an exemplary embodiment of the present application;
[0023] FIG5 is a schematic diagram of editing function options provided by an exemplary embodiment of the present application;
[0024] FIG6 is a schematic diagram of an editing function option following a first virtual element provided by an exemplary embodiment of the present application;
[0025] FIG7 is a schematic diagram of a triggering process of a mirroring function option provided by an exemplary embodiment of the present application;
[0026] FIG8 is a schematic diagram of a process for selecting a target image option provided by an exemplary embodiment of the present application;
[0027] FIG9 is a schematic diagram of performing center mirroring processing on a first virtual element provided by an exemplary embodiment of the present application;
[0028] FIG10 is a schematic diagram of performing mirroring processing on a first virtual element according to an exemplary embodiment of the present application;
[0029] FIG11 is a flowchart of a method for editing a plurality of first virtual elements provided by an exemplary embodiment of the present application;
[0030] FIG12 is a schematic diagram of selecting multiple first virtual elements provided by an exemplary embodiment of the present application;
[0031] FIG13 is a schematic diagram of performing central mirroring processing on a virtual module corresponding to a first virtual element provided by an exemplary embodiment of the present application;
[0032] FIG14 is a schematic diagram of performing mirroring processing on a virtual module corresponding to a first virtual element according to an exemplary embodiment of the present application;
[0033] FIG15 is a flow chart of a method for simultaneously mirroring and copying a first virtual element provided by an exemplary embodiment of the present application;
[0034] FIG16 is a schematic diagram of triggering the copy of a first virtual element provided by an exemplary embodiment of the present application;
[0035] FIG17 is a structural block diagram of an apparatus for editing virtual elements in a virtual scene provided by an exemplary embodiment of the present application;
[0036] FIG18 is a structural block diagram of an apparatus for editing virtual elements in a virtual scene provided by another exemplary embodiment of the present application;
[0037] FIG19 is a structural block diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0038] A brief introduction to the terms involved in the embodiments of this application is given below:
[0039] UGC (User Generated Content) is user-generated content. Users display their own original content on the Internet platform or provide it to other users.
[0040] In game applications or applications based on virtual scenes, by providing some necessary mechanisms and corresponding UGC editing capabilities within the application, users are encouraged to participate in the design of game content such as levels, maps, gameplay, and ecology to increase the fun of the game process.
[0041] In game applications or some applications based on virtual scenes, players can usually control virtual objects in the virtual scene, or edit virtual objects in the virtual scene, such as: changing the shape, appearance, and quantity of virtual elements; controlling the movement of virtual elements; and creating virtual elements through functions provided by the application.
[0042] Illustratively, players can edit virtual elements with editable attributes to achieve a combination of virtual elements.
[0043] Optionally, the editable virtual element includes a first virtual element. Players can modify the shape of the first virtual element by performing editing operations such as moving, rotating, and scaling the editable virtual element. If the editable virtual element also includes a second virtual element, players can combine the first and second virtual elements into a single virtual module. Alternatively, players can modify the orientation of virtual elements to create a symmetrical virtual module.
[0044] In some applications based on virtual scenes, virtual elements are three-dimensional virtual elements. The structure of three-dimensional virtual elements is richer and more complex than that of two-dimensional virtual elements. When players edit three-dimensional virtual elements, they cannot accurately obtain complex virtual elements by simply performing simple operations such as translation and rotation.
[0045] For mobile users, editing the structure of 3D elements using a script editor is quite difficult. Furthermore, writing code scripts requires a solid programming foundation and strong spatial visualization skills, making it difficult and inaccessible to most players.
[0046] The present application provides a method for editing virtual elements in a virtual scene, which can be operated on a terminal with an application based on the virtual scene installed on it. By pre-setting the function of editing virtual elements in the application, the corresponding control can be triggered to control the virtual elements to perform complex movements such as rotation, three-dimensional mirroring, and translation, so that players can fully understand the structure of the virtual elements and implement operations such as editing, combining, designing, and copying virtual elements. Taking the mirror function as an example, when the mirror function of a specified virtual element in the virtual scene is triggered, the mirror coordinate system corresponding to the specified virtual element is displayed. The origin of the mirror coordinate system is a preset reference point on the specified virtual element. The mirror coordinate system includes multiple mirror coordinate axes, and the mirror coordinate axes form at least two mirror axis planes. The mirror axis plane is used to provide a flip reference plane for mirroring the virtual element. The user can mirror the specified virtual element according to the mirror axis plane to obtain a highly symmetrical virtual element, without the user having to manually control the flipping of the virtual element. When designing the structure of the virtual element, the operation efficiency and the accuracy of the flipping operation are improved.
[0047] Schematically, as shown in FIG1 , FIG1 is a schematic diagram of displaying a mirror coordinate system in a virtual scene. A selected virtual element 110 is present in virtual scene 100. Upon receiving a mirror trigger operation for the specified virtual element 110, a mirror coordinate system 120 is displayed accordingly. Optionally, the origin of mirror coordinate system 120 is the center of the specified virtual element 110. Mirror coordinate system 120 includes multiple mirror coordinate axes 121 and multiple mirror axis planes 122 formed by the mirror coordinate axes 121.
[0048] Triggering any one of the multiple mirror axis planes 122 will correspondingly display a mirroring result of the designated virtual element 110 with the mirror axis plane 122 as a flip reference plane.
[0049] It is worth noting that the number and position of the mirror coordinate axes included in the mirror coordinate system can be arbitrary. Figure 1 takes three mirror axis planes as an example for illustration. In some embodiments, the position and number of the mirror axis planes in the mirror coordinate system can also be arbitrary.
[0050] The terminal in this application can be a desktop computer, a laptop computer, a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, etc. An application that supports virtual scenes is installed and running in the terminal, such as an application that supports three-dimensional virtual scenes. The application can be any one of a virtual reality application, a three-dimensional map program, a strategy game (Simulation Game, SLG), and a multiplayer online tactical competitive game (Multiplayer Online Battle Arena Games, MOBA). Optionally, the application can be a stand-alone application, such as a stand-alone three-dimensional game program, or a network-connected application.
[0051] Figure 2 shows a block diagram of an electronic device provided by an exemplary embodiment of the present application. The electronic device 200 includes: an operating system 220 and an application 222. The operating system 220 is basic software that provides secure access to computer hardware for the application 222. The application 222 is an application that supports virtual scenes. Optionally, the application 222 is an application that supports three-dimensional virtual scenes. The application 222 can be any one of a virtual reality application, a three-dimensional map program, a TPS game (Third-Person Shooter), an FPS game (First-Person Shooter), a MOBA game, and an SLG game. The application 222 can be a stand-alone application, such as a stand-alone three-dimensional game program, or it can be a network-connected application.
[0052] Figure 3 shows a block diagram of a computer system according to an exemplary embodiment of the present application. Computer system 300 includes a first device 320, a server 340, and a second device 360. The first device 320 has an application installed and running that supports virtual scenes. This application can be any of a virtual reality application, a three-dimensional map program, a TPS game, an FPS game, a MOBA game, and a SLG game. The first device 320 is used by a first user, who uses the first device 320 to control a master virtual object in the virtual scene to perform activities, including but not limited to at least one of adjusting body posture, walking, running, and jumping to attack. Illustratively, the master virtual object is a master virtual character, such as a simulated or animated character. The first device 320 is connected to the server 340 via a wireless or wired network. The server 340 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 340 provides background services for applications that support three-dimensional virtual scenes. Optionally, the server 340 undertakes the main computing work, and the first device 320 and the second device 360 undertake the secondary computing work; or, the server 340 undertakes the secondary computing work, and the first device 320 and the second device 360 undertake the main computing work; or, the server 340, the first device 320 and the second device 360 adopt a distributed computing architecture to perform collaborative computing.
[0053] The second device 360 has an application installed and running that supports the virtual scene. This application can be any of a virtual reality application, a 3D map program, an FPS game, a MOBA game, or a SLG game. The second device 360 is used by a second user, who uses the second device 360 to control other virtual objects in the virtual scene to perform activities, including but not limited to: adjusting body posture, walking, running, and jumping to attack. Illustratively, the other virtual objects are other virtual characters, such as simulated or animated characters.
[0054] Optionally, the master virtual character and the other virtual characters are in the same virtual scene. Optionally, the master virtual character and the other virtual characters may belong to the same team, the same organization, have a friendship relationship, or have temporary communication permissions. Optionally, the master virtual character and the other virtual characters may also belong to different teams, different organizations, or two hostile groups. Optionally, the applications installed on the first device 320 and the second device 360 are the same, or the applications installed on the two devices are the same type of applications on different control system platforms. The first device 320 can refer to one of multiple devices, and the second device 360 can refer to one of multiple devices. This embodiment only uses the first device 320 and the second device 360 as an example. The device types of the first device 320 and the second device 360 are the same or different. The following embodiment is illustrated by taking the device as a desktop computer.
[0055] Those skilled in the art will appreciate that the number of the above-mentioned devices may be more or less. For example, the above-mentioned device may be only one, or the above-mentioned devices may be dozens or hundreds, or a larger number. The embodiment of the present application does not limit the number and type of devices. It is worth noting that the above-mentioned server 340 can be implemented as a physical server or as a cloud server in the cloud. Optionally, when the server 340 is implemented as a cloud server, the program corresponding to the above-mentioned virtual scene may be a cloud game.
[0056] In some embodiments, the method provided in the embodiments of the present application can be applied to cloud gaming scenarios, so that the calculation of data logic during the game process is completed by the cloud server, while the terminal is responsible for the display of the game interface.
[0057] Optionally, the server 340 may also be implemented as a node in a blockchain system.
[0058] In conjunction with the above-mentioned noun introduction and application scenarios, the method for editing virtual elements in a virtual scene provided by this application is described. This method can be executed by a server or a terminal, or by both the server and the terminal. In the embodiment of this application, the method is described as being executed by a terminal. An application based on a virtual scene is installed in the terminal, and the virtual elements in the virtual scene can be edited through the UGC editor corresponding to the application. As shown in Figure 4, Figure 4 is a flow chart of a method for editing virtual elements in a virtual scene provided by an exemplary embodiment of this application. The method includes the following steps.
[0059] Step 410: Display a first virtual element in the virtual scene.
[0060] The first virtual element is a UGC (User Generated Content) object or object, and a UGC object is an editable object. Optionally, the first virtual element can be a virtual object in a virtual scene, or a virtual active object in a virtual scene, such as a virtual character or a virtual pet. Optionally, there is at least one virtual element in the virtual scene, and the at least one virtual element includes the first virtual element, wherein the first virtual element is an editable virtual element. The terminal interface also displays a UGC editor, which is used to provide a function for editing the first virtual element.
[0061] A selection operation is received for a first virtual element, such as a single-click operation on the first virtual element. The first virtual element is selected and enters an editable mode, and editing function options are displayed on a terminal interface. The editing function options include multiple functions for editing the first virtual element. A trigger operation is received for a target function option in the editing function options. The first virtual element is edited according to the function provided by the target function option, and the edited first virtual element is displayed.
[0062] 5 , which is a schematic diagram of editing function options, displays a first virtual element 510 in a virtual scene 500. After selecting first virtual element 510, first virtual element 510 enters an editable mode, displaying corresponding editing function options 520. Exemplarily, editing function options 520 include the following.
[0063] (1) Move function, controlling the movement of the first virtual element 510 and changing the position of the first virtual element 510 in the virtual scene 500; (2) Rotate function, controlling the rotation of the first virtual element 510 and changing the posture and angle of the first virtual element 510 in the virtual scene 500; (3) Zoom function, controlling the size of the first virtual element 510 and realizing the enlargement and reduction of the first virtual element 510; (4) Mirror function: mirroring the first virtual element 510 to make the structure of the first virtual element 510 symmetrical; (5) Delete function: after deleting the first virtual element 510, the virtual scene 500 no longer displays the first virtual element 510; (6) Edit function: editing the shape, color, structure and other parameters of the first virtual element 510 to change the appearance of the first virtual element 510.
[0064] In the above example, only six function options are illustrated as editing function options. The function options included in the editing function options may also be other types of functions, which is not limited in this embodiment.
[0065] The position of the edit function option in the display area can be fixed, such as by default fixed to the upper left corner, lower left corner, or directly below the terminal interface. Alternatively, the user can customize the fixed position of the edit function option, where the position of the edit function option in the display area is fixed directly below the terminal interface as shown in Figure 5. In some embodiments, the position of the edit function option can also be changed at any time to increase flexibility and convenience when editing the first virtual element.
[0066] In some embodiments, the editing function option can also be set to follow the position of the first virtual element on the terminal interface when the perspective is switched in the application, and the position of the editing function option on the terminal interface will also change accordingly. For example, in the first perspective, the position of the first virtual element on the terminal interface is the first position, and the position of the editing function option on the terminal interface is the first relative position; when the first perspective is switched to the second perspective, the position of the first virtual element on the terminal interface is the second position, and the position of the editing function option on the terminal interface is the second relative position. Alternatively, when the first virtual element is moved in the virtual scene, the editing function option automatically follows the first virtual element, that is, the relative position between the first virtual element and the editing function option remains unchanged.
[0067] Schematically, as shown in FIG6 , FIG6 is a schematic diagram of an editing function option following a first virtual element.
[0068] The first virtual element 610 is surrounded by an edit function option 620, which displays multiple function options in a circular manner. It is worth noting that the display method of the edit function option following the first virtual element includes but is not limited to the method shown in FIG6 .
[0069] Step 420 : Displaying a mirror coordinate system in response to receiving a mirror trigger operation on the first virtual element.
[0070] Optionally, the methods of receiving the mirror trigger operation for the first virtual element include but are not limited to the following: (1) displaying a virtual control corresponding to the mirror function on the terminal interface, and successively receiving the selection operation for the first virtual element and the trigger operation for the virtual control; (2) first receiving the selection operation for the first virtual element, and then receiving the sliding operation, and triggering the mirror function according to the sliding trajectory corresponding to the sliding operation.
[0071] The mirror coordinate system includes a plurality of mirror coordinate axes, and the plurality of mirror coordinate axes form at least two mirror axis planes, and the mirror axis planes are used to provide flip reference planes for performing mirror processing on the first virtual element.
[0072] Taking a three-dimensional virtual scene as an example, the mirror coordinate system includes three mirror coordinate axes, each axis corresponding to a direction in the three-dimensional virtual scene, wherein a mirror axis plane is formed between every two mirror coordinate axes. Therefore, the mirror coordinate system contains a total of three mirror axis planes. Optionally, the mirror coordinate system includes three mirror coordinate axes and three mirror axis planes, wherein each mirror axis plane is composed of two mirror coordinate axes, the mirror coordinate axes do not overlap, and the mirror axis planes do not overlap.
[0073] Optionally, in response to receiving a trigger operation for a mirror option in the editing function options of the first virtual element, a mirror coordinate system is displayed. As illustrated in FIG7 , the editing function options 720 of the first virtual element 710 include a mirror function option 721. Triggering the mirror function option 721 indicates receiving a mirror trigger operation for the first virtual element, and the mirror coordinate system 730 is displayed. In some embodiments, in response to receiving a mirror trigger operation for the first virtual element, a mirror coordinate system is displayed based on a first reference point in the virtual scene, wherein the first reference point is a position point determined based on the first virtual element, such as a position in which the mirror coordinate system and the first virtual element maintain a fixed relative position, or the first reference point is a preset position point in the virtual scene. Displaying the mirror coordinate system based on the first reference point in the virtual scene, using the first reference point as the origin of the mirror coordinate system, and maintaining a fixed relative position between the first virtual element and the mirror coordinate system ensures symmetry and stability of the object structure when the first virtual element is mirrored and when the application switches perspectives, prevents the mirror coordinate system from deviating from the first virtual element due to accidental touches, and improves the efficiency of the mirror operation.
[0074] In addition, if the first reference point is a preset location in the virtual scene, a uniform mirroring operation is performed on all virtual elements in the virtual scene based on the pre-designed location as the first reference point, thereby improving the regularity of the mirroring operation and the efficiency of designing the virtual scene. Optionally, the first reference point 700 is the center of the first virtual element 710.
[0075] As shown in FIG. 7 , a first reference point 700 in the virtual scene is the origin of a mirror coordinate system 730 . The mirror coordinate system 730 includes a plurality of mirror coordinate axes 731 and a mirror axis plane 732 .
[0076] Step 430 : In response to receiving a triggering operation on a first mirror axis plane among the at least two mirror axis planes, displaying a mirroring result of the first virtual element based on the first mirror axis plane.
[0077] Optionally, there is at least one manner of mirroring the first virtual element, and before receiving a triggering operation on a mirror coordinate axis in the mirror coordinate system, the mirroring manner of the first virtual element is first determined.
[0078] After receiving the mirror trigger operation for the first virtual element, a mirror option is displayed while displaying the mirror coordinate system.
[0079] The mirroring options include a center mirroring option and a pasted mirroring option. The center mirroring option means that the center of the first virtual element is used as the mirror flip center point, and the pasted mirroring option means that the first virtual element uses a preset edge as the mirror flip center axis. The method provided in this embodiment provides two mirroring options, a center mirroring option and a pasted mirroring option, which improves the richness of mirroring operation types. In the case of center mirroring, the first virtual element is mirrored and flipped based on the mirror flip center point, changing the orientation of the first virtual element, thereby improving the efficiency of the mirroring operation. In the case of pasted mirroring, the first virtual element is mirrored and flipped based on the mirror flip center axis, changing the position of the first virtual element, thereby improving the efficiency of the mirroring operation.
[0080] Receive a selection operation for any one of the center mirror option and the veneer mirror option in the mirror option. Receive a selection operation for the target mirror option in the mirror option, and the target mirror option includes any one of the center mirror option and the veneer mirror option. Schematically, as shown in Figure 8, Figure 8 is a schematic diagram of the selection process for the target mirror option. After triggering the mirror function option 820 corresponding to the first virtual element 810, the control form corresponding to the mirror function option 820 changes from a normal state 821 to a selected state 822. At this time, by triggering the mirror option 830, the center mirror option 831 and the veneer mirror option 832 can be expanded to display, and any one of the mirror options from the center mirror option and the veneer mirror option can be selected as the target mirror option. After determining the target mirror option, receive a trigger operation for the first mirror axis plane in at least two mirror axis planes, and display the mirror result of the first virtual element with the first mirror axis plane as the flip reference plane.
[0081] Optionally, in response to receiving a trigger operation on the first mirror axis plane among at least two mirror axis planes and the center mirror option is selected, the mirroring result of mirror flipping the first virtual element with the center of the first virtual element as the mirror flip center point and the first mirror axis plane as the flip reference plane is displayed.
[0082] Schematically, as shown in FIG9 , FIG9 is a schematic diagram of performing center mirroring on a first virtual element. The center of the first virtual element 910 is the origin of the mirror coordinate system. That is, the center of the first virtual element serves as the mirror flip center point. The mirror coordinate system includes three mirror axis planes: mirror axis plane X, mirror axis plane Y, and mirror axis plane Z.
[0083] Exemplarily, the mirror axis plane Z is used as the first mirror axis plane, and the first virtual element 910 is mirror-flipped to obtain a mirror-flip result 920 . The mirror-flip result 920 is mirrored with the first virtual element 910 about the mirror axis plane Z.
[0084] It is worth noting that after the first virtual element 910 is mirror-flipped, only the mirror-flipped result 920 is displayed, and the border of the first virtual element 910 is a dotted line to illustrate the changes before and after the first virtual element 910 is flipped.
[0085] Optionally, in response to receiving a trigger operation on the first mirror axis plane among at least two mirror axis planes, and the face-to-face mirror option is selected, the mirroring result of mirror flipping the first virtual element with the first edge of the first virtual element as the mirror flip center axis and the first mirror axis plane as the flip reference plane is displayed.
[0086] Schematically, as shown in FIG10 , FIG10 is a schematic diagram of performing a face-to-face mirroring process on the first virtual element. The first edge of the first virtual element 1010 is the mirror flip center axis, and the mirror coordinate system includes three mirror axis planes, namely, mirror axis plane X, mirror axis plane Y, and mirror axis plane Z. Exemplarily, the mirror axis plane Z is used as the first mirror axis plane, and the first virtual element 1010 is mirror flipped to obtain a mirror flip result 1020, and the mirror flip result 1020 is mirrored with the first virtual element 1010 about the mirror axis plane Z. Optionally, if the first edge is a straight line, the straight line is used as the mirror flip center axis; if the first edge is a curve, the tangent of the selected combined edge is used as the mirror flip center axis. It is worth noting that after the first virtual element 1010 is mirror flipped, only the mirror flip result 1020 is displayed, and the border of the first virtual element 1010 is a dotted line to illustrate the changes before and after the first virtual element 1010 is flipped.
[0087] In some embodiments, multiple mirror axes may be selected simultaneously to perform mirror flipping on the first virtual element, including the following situations.
[0088] 1. In response to receiving a triggering operation for multiple mirror axis planes among at least two mirror axis planes, displaying a mirroring result of a first virtual element sequentially using the multiple mirror axis planes as flipping reference planes, wherein the mirror flipping process of the first virtual element meets a first selection order condition, the first selection order condition being used to indicate the order in which the multiple mirror axis planes are selected;
[0089] For example, if the first and second mirror axis planes are selected in this order, the mirroring result is: first, the first mirroring result (at the second position) of the first virtual element (at the first position) flipped with the first mirror axis plane as the flip reference plane is displayed, and then the second mirroring result (at the third position) of the first virtual element (at the first position) flipped with the second mirror axis plane as the flip reference plane is displayed. During this mirroring process, the number of first virtual elements increases to 2, and the position of the first virtual element changes from the first position to the second position and the third position.
[0090] 2. In response to receiving a triggering operation on multiple mirror axis planes among at least two mirror axis planes, displaying a mirroring result of the first virtual element using the multiple mirror axis planes as flip reference planes;
[0091] For example, if the first and second mirror axis planes are selected, the mirroring result is: the first mirroring result (located at the second position) of the first virtual element (located at the first position) flipped with the first mirror axis plane as the flip reference plane, and the second mirroring result (located at the third position) of the first virtual element (located at the first position) flipped with the second mirror axis plane as the flip reference plane are simultaneously displayed. During this mirroring process, the number of first virtual elements increases to 2, and the position of the first virtual element changes from the first position to the second position and the third position.
[0092] 3. In response to receiving a triggering operation on multiple mirror axis planes among at least two mirror axis planes, displaying a mirroring result of the first virtual element using the multiple mirror axis planes as flipping reference planes, wherein, during the mirroring process of the first virtual element, a flipping process based on the (i+1)th mirror axis plane is performed based on the flipping result of the (i)th mirror axis plane, where (i) is a positive integer;
[0093] For example, if the first and second mirror axis planes are selected in this order, the mirroring result is: first, the process of flipping the first virtual element (located at the first position) with the first mirror axis plane as the flip reference plane is displayed (at this time, the first virtual element is located at the second position), and then the mirroring result of flipping the first virtual element (located at the second position) with the second mirror axis plane as the flip reference plane is displayed (at the third position). During this mirroring process, the number of the first virtual element remains unchanged, and the position of the first virtual element changes from the first position to the third position.
[0094] By triggering multiple mirroring processes of the first virtual element through multiple mirroring axis planes, the efficiency of the mirroring process of the first virtual element is improved, the mirroring process of the first virtual element based on the accumulation of times is avoided, and the efficiency of human-computer interaction is improved.
[0095] In some embodiments, in order to increase the interest of the mirroring process of the first virtual element and make the mirroring result richer, the appearance of the mirror axis plane can also be set before mirroring, so that after the first virtual element is flipped along the mirror axis plane, the appearance of the first virtual element is changed accordingly.
[0096] In response to receiving a selection operation on the first mirror axis plane among at least two mirror axis planes, a performance feature option corresponding to the first mirror axis plane is displayed, and the performance feature option is used to adjust the appearance of the first mirror axis plane; in response to receiving a trigger operation on the first performance feature option, the first mirror axis plane with the first performance feature as the appearance is displayed; in response to receiving a trigger operation on the first mirror axis plane among at least two mirror axis planes, a mirror result of the first virtual element is displayed with the first mirror axis plane as the flip reference plane and the first performance feature as the appearance.
[0097] Exemplarily, the display feature options of the first mirror axis plane include: (1) a color option for changing the color of the first mirror axis plane; (2) a volume option for changing the size of the first mirror axis plane; (3) a texture option for changing the texture of the first mirror axis plane, etc.; (4) a special effect option for superimposing special effects on the first mirror axis plane, such as flashing effects, flickering effects, edge highlighting effects, etc.
[0098] Optionally, the first expression feature includes: setting the color of the first mirror axis surface to blue, setting the volume of the first mirror axis surface to twice the default volume, and setting the texture of the first mirror axis surface to spots.
[0099] Then, when the first virtual element is flipped with the first mirror axis plane as the flip reference plane, the corresponding mirroring result is: the color of the mirrored first virtual element is superimposed with a blue filter, the volume becomes twice the default volume, and spots appear on the outer surface.
[0100] Multiple options in the above-mentioned performance feature options can be implemented separately or in combination, which is not limited in this embodiment.
[0101] By providing a display feature option, when mirroring a first virtual element, the selected first display feature option is combined with the configuration of the display features of the result, such as the color setting and volume setting mentioned above. This improves the efficiency of designing and configuring the appearance of the mirrored result during the mirroring process, eliminating the need to set additional appearance features for the mirrored element after the mirroring process, thereby improving the efficiency of human-computer interaction when designing virtual elements. In some embodiments, if the operation that triggers the mirror axis plane is an accidental touch, the mirroring operation can be canceled within a preset time, in which case the first virtual element will not change.
[0102] Optionally, a trigger operation on a first mirror axis plane among at least two mirror axis planes is received; in response to receiving a mirror cancellation operation within a preset time period after receiving the trigger operation on the first mirror axis plane, a mirror cancellation prompt message is displayed.
[0103] For example, the preset duration is 1 second, and the types of mirror cancellation operations include but are not limited to the following: (1) triggering the first mirror axis plane again within the preset duration; (2) sliding cancellation within the preset duration, and the sliding gesture can be arbitrary; (3) triggering the target virtual control corresponding to the mirror cancellation operation within the preset duration.
[0104] In summary, the method provided by the present application, by receiving a mirror trigger operation on a first virtual element (UGC object), displays a mirror coordinate system, and multiple mirror axis planes in the mirror coordinate system can provide a flip reference plane when mirroring the first virtual element, thereby improving the convenience of the user when editing the first virtual element. Receiving a trigger operation on a mirror axis plane can automatically display the mirror result of the first virtual element after flipping based on the mirror axis plane, making the structural display effect of the first virtual element clearer and more intuitive, thereby improving the efficiency of the user when designing the structure of the first virtual element.
[0105] The above embodiment uses the editing operation of a first virtual element as an example. In some embodiments, there are multiple editable first virtual elements in the virtual scene. The multi-selection function provided by the UGC editor can be used to simultaneously select multiple first virtual elements for editing. As shown in Figure 11, Figure 11 is a flowchart of a method for editing multiple first virtual elements provided by an exemplary embodiment of the present application, which is executed by a terminal and includes the following steps.
[0106] Step 1110 : Display a first virtual element in the virtual scene.
[0107] The first virtual element is a UGC object, which is an editable object.
[0108] Optionally, there are multiple first virtual elements in the virtual scene, and each first virtual element can have any shape and size. All editable virtual elements can be referred to as first virtual elements. The virtual elements can be categorized in any manner, such as by shape, size, color, or symmetry.
[0109] Step 1120 : In response to receiving a mirror trigger operation for the plurality of first virtual elements, determining a center point corresponding to at least one first virtual element among the plurality of first virtual elements and displaying a mirror coordinate system based on the center point.
[0110] The mirror triggering operation is an operation on multiple first virtual elements, as shown schematically in Figure 12, which is a schematic diagram of selecting multiple first virtual elements. There are multiple first virtual elements 1210 in the virtual scene 1200, and triggering the multi-select control 1221 can select any number of first virtual elements 1210.
[0111] Among them, the selection methods corresponding to the multi-selection control 1221 include the following two: (1) click selection: multiple selection by clicking different first virtual elements 1210 multiple times; (2) click selection + frame selection: by receiving the sliding, a dotted frame for containing the first virtual element 1210 is automatically displayed according to the sliding operation, and the first virtual element 1210 located in the dotted frame is selected; if the positions of the first virtual elements 1210 are relatively scattered, it is impossible to frame all the first virtual elements 1210 that need to be edited by only sliding operation, you can also continue to click on the unselected first virtual elements 1210, and all the first virtual elements 1210 selected by the click operation and the frame selection operation will be collectively regarded as the selected first virtual elements 1210.
[0112] Wherein, determining the center point corresponding to at least one first virtual element among the plurality of first virtual elements includes but is not limited to the following situations. (1) Arranging the plurality of first virtual elements in the order in which the first virtual elements are selected, determining the serial number corresponding to each first virtual element, selecting a serial number from the plurality of first virtual elements according to the preset requirements, and using the center point of the first virtual element corresponding to the serial number as the center point of the display mirror coordinate system. For example, if three first virtual elements are selected, the center point of the first virtual element with serial number 3 is used as the center point of the display mirror coordinate system; (2) Combining the plurality of selected first virtual elements, combining at least one first virtual element among the plurality of first virtual elements into a virtual module, and using the center point of the virtual module as the center point of the display mirror coordinate system. For example, if five first virtual elements are selected, combining the five first virtual elements into a virtual module, using the center point of the virtual module as the center point of the display mirror coordinate system, and displaying the mirror coordinate system based on the first reference point; or, if five first virtual elements are selected, combining three of the first virtual elements into a virtual module, and using the center point of the virtual module as the center point of the display mirror coordinate system. Optionally, when a mirror trigger operation is received for multiple first virtual elements, a combination selection operation is received for at least one virtual element among the multiple first virtual elements, and the combination selection operation is used to combine at least one selected virtual element to obtain a virtual module; determine the center point corresponding to the virtual module, and display the mirror coordinate system based on the center point of the virtual module.
[0113] 12 , triggering the combination control 1222 can select any number of first virtual elements 1210 for combination to obtain a corresponding virtual module 1230. For example, all selected first virtual elements 1210 are combined to obtain virtual module 1230, and a mirror coordinate system 1240 is displayed based on the center point of virtual module 1230.
[0114] The system can receive mirroring triggers for multiple first virtual elements, determine the position of a first reference point based on the multiple first virtual elements, and display a mirrored coordinate system, thereby simultaneously mirroring the multiple first virtual elements. Multiple first virtual elements can be combined to form corresponding virtual modules, thereby increasing the complexity and symmetry of the virtual element structure.
[0115] Step 1130 : In response to receiving a triggering operation on a first mirror axis plane among the at least two mirror axis planes, displaying a mirroring result of the first virtual element with the first mirror axis plane as a flip reference plane.
[0116] Optionally, there is at least one manner of mirroring the first virtual element, and before receiving a triggering operation on a mirror coordinate axis in the mirror coordinate system, the mirroring manner of the first virtual element is first determined.
[0117] After receiving the mirror trigger operation for the first virtual element, a mirror option is displayed while displaying the mirror coordinate system.
[0118] The mirroring options include a center mirroring option and a face mirroring option. The center mirroring option uses the center of the first virtual element as the mirror flipping center point, while the face mirroring option uses a preset edge as the mirror flipping axis. A selection of a target mirroring option is received within the mirroring options. The target mirroring option includes either the center mirroring option or the face mirroring option. Optionally, when the target mirroring option is the center mirroring option and the first mirror axis plane is used as the flipping reference plane, the mirroring results of flipping multiple first virtual elements include the following scenarios.
[0119] 1.1 In response to receiving a trigger operation on a first mirror axis plane among at least two mirror axis planes, and the center mirror option being selected, displaying a mirroring result of mirror flipping the plurality of first virtual elements with the combined center of the plurality of first virtual elements as the mirror flip center point and the first mirror axis plane as the flip reference plane;
[0120] As shown in FIG13 , FIG13 is a schematic diagram of performing center mirroring processing on the virtual module corresponding to the first virtual element.
[0121] The center of the virtual module 1310 composed of multiple first virtual elements is the origin of the mirror coordinate system, that is, the center of the virtual module 1310 serves as the mirror flip center point, wherein the mirror coordinate system includes three mirror axis planes, namely, mirror axis plane X, mirror axis plane Y and mirror axis plane Z.
[0122] Exemplarily, the mirror axis plane Z is used as the first mirror axis plane, and the virtual module 1310 is mirror-flipped to obtain a mirror-flip result 1320 . The mirror-flip result 1320 is mirrored with the virtual module 1310 about the mirror axis plane Z.
[0123] It is worth noting that after the virtual module 1310 is mirror-flipped, only the mirror-flipped result 1320 is displayed, and the border of the virtual module 1310 is a dotted line to illustrate the changes before and after the virtual module 1310 is flipped.
[0124] Using the combined center of the plurality of first virtual elements as the mirror flip center point improves the integrity between the plurality of first virtual elements and the regularity when performing overall mirroring on the plurality of first virtual elements, thereby improving the mirror processing efficiency of the plurality of first virtual elements.
[0125] 1.2 In response to receiving a trigger operation on a first mirror axis plane among at least two mirror axis planes, and the center mirror option is selected, a mirroring result of mirror flipping the multiple first virtual elements is displayed, with the center of a specified virtual element among the multiple first virtual elements as the mirror flip center point and the first mirror axis plane as the flip reference plane.
[0126] The combination center of the virtual module or the center point of the specified virtual element in the virtual module is used as the mirror flip center point to perform center mirror flipping on the virtual module and change the orientation of the virtual module, thereby improving the efficiency of batch mirroring of virtual elements.
[0127] The designated virtual element is a virtual element that meets a selection order condition among the multiple first virtual elements, and the selection order condition is used to indicate an order requirement for selecting the designated virtual element among the multiple first virtual elements for mirror flipping.
[0128] Optionally, meeting the selection order condition means that the specified virtual element is the last first virtual element selected among multiple first virtual elements.
[0129] The multiple first virtual elements are sorted in ascending order according to the order in which the first virtual elements were selected. Each first virtual element has its own sequence number, and the first virtual element with the largest sequence number is determined as the designated virtual element. For example, a total of five first virtual elements are selected and sorted in ascending order according to the order in which they were selected, with the sequence numbers being 1, 2, 3, 4, and 5, respectively. The first virtual element with sequence number 5 is determined as the designated virtual element, and the center of the designated virtual element is used as the mirror flip center point.
[0130] It is worth noting that the selection order condition can be arbitrary. In addition to the above-mentioned method based on the selection order condition for example, any other method can be used to determine the specified virtual element from multiple first virtual elements. This embodiment does not limit this.
[0131] The center of a designated virtual element among the multiple first virtual elements is used as the mirror flip center point, thereby improving the flexibility when performing overall mirroring on the multiple first virtual elements, increasing the selection range of mirror reference points when performing overall mirroring on the multiple first virtual elements, and improving the mirror processing efficiency of the multiple first virtual elements.
[0132] Among them, the designated virtual element among the multiple first virtual elements is determined according to the selection order. In the selection process of the multiple first virtual elements, the designated virtual element is implicit in the selection process of the multiple first virtual elements. There is no need to additionally select the designated virtual element from the multiple first virtual elements, thereby improving the selection efficiency of the designated virtual element.
[0133] Optionally, when the target mirror option is the veneer mirror option and the first mirror axis plane is used as the flip reference plane, the mirror results of performing mirror flipping on the multiple first virtual elements include the following situations.
[0134] 2.1 In response to receiving a trigger operation on a first mirror axis plane among at least two mirror axis planes, and selecting a face-to-face mirroring option, displaying a mirroring result of mirror flipping the plurality of first virtual elements using a combined edge of the plurality of first virtual elements as a mirror flipping center axis and the first mirror axis plane as a flipping reference plane;
[0135] As shown in FIG14 , FIG14 is a schematic diagram of performing mirroring processing on the virtual module corresponding to the first virtual element.
[0136] The combined edge of the virtual module 1410 composed of multiple first virtual elements serves as the mirror flip center axis, wherein the mirror coordinate system includes three mirror axis planes, namely, mirror axis plane X, mirror axis plane Y, and mirror axis plane Z.
[0137] Optionally, if the combined edge is a straight line, the straight line is used as the mirror flip center axis; if the combined edge is a curve, the tangent of the selected combined edge is used as the mirror flip center axis.
[0138] Exemplarily, the mirror axis plane Z is used as the first mirror axis plane, and the virtual module 1410 is mirror-flipped to obtain a mirror-flip result 1420 . The mirror-flip result 1420 is mirrored with the virtual module 1410 about the mirror axis plane Z.
[0139] It is worth noting that after the virtual module 1410 is mirror-flipped, only the mirror-flipped result 1420 is displayed, and the border of the virtual module 1410 is a dotted line to illustrate the changes before and after the virtual module 1410 is flipped.
[0140] The combination of multiple first virtual elements is used as the mirror flip center axis, which improves the integrity between the multiple first virtual elements and the regularity when the multiple first virtual elements are mirrored as a whole, thereby improving the mirror processing efficiency of the multiple first virtual elements.
[0141] 2.2 In response to receiving a trigger operation on a first mirror axis plane among at least two mirror axis planes, and the face-to-face mirror option is selected, a mirroring result of mirror flipping the multiple first virtual elements is displayed with the second edge of a specified virtual element among the multiple first virtual elements as the mirror flip center axis and the first mirror axis plane as the flip reference plane.
[0142] The method provided in this embodiment uses the combined edge of the virtual module or the first edge of the specified virtual element in the virtual module as the mirror flip center axis, performs a face-to-face mirror flip on the virtual module, changes the position of the virtual module, and improves the efficiency of batch mirroring of virtual elements.
[0143] The designated virtual element is a virtual element that meets a selection order condition among the multiple first virtual elements, and the selection order condition is used to indicate an order requirement for selecting the designated virtual element among the multiple first virtual elements for mirror flipping.
[0144] The second edge of a designated virtual element among the multiple first virtual elements is used as the mirror flip center axis, thereby improving the flexibility when performing overall mirroring on the multiple first virtual elements, increasing the selection range of the mirror reference axis when performing overall mirroring on the multiple first virtual elements, and improving the mirror processing efficiency of the multiple first virtual elements.
[0145] In some embodiments, multiple first virtual elements form a complete virtual module. In addition to editing the virtual module as a whole (such as mirroring), you can also edit some of the first virtual elements in the virtual module to change only the shape of these first virtual elements.
[0146] Exemplarily, the description is made by taking the case where a mirror triggering operation on a portion of the first virtual elements in the virtual module is received as an example.
[0147] Three first virtual elements together constitute virtual module B: first virtual element A1, first virtual element A2, and first virtual element A3. Only first virtual element A1 can be centrally mirrored, resulting in first mirrored virtual element A11. This mirrored virtual element A11 still belongs to virtual module B. That is, virtual module B now consists of first mirrored virtual element A11, first virtual element A2, and first virtual element A3.
[0148] In some embodiments, in addition to combining multiple first virtual elements into a complete virtual module through combination controls as described above for example, multiple first virtual elements can also be combined by attaching other virtual elements to the first virtual element so that the other virtual elements can follow the transformation of the first virtual element.
[0149] Exemplarily, the first virtual element is attached with at least one second virtual element, and the second virtual element follows the first virtual element.
[0150] In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, a mirror result of the first virtual element and the at least one second virtual element is displayed simultaneously with the first mirror axis plane being a flip reference plane.
[0151] A first virtual element can be attached to multiple second virtual elements, and a second virtual element can also be attached to other virtual elements. This attachment relationship is also called a parent-child relationship, where the first virtual element is the parent object and the second virtual element is the child object. A parent object can have multiple child objects attached to it, but a child object can only have one parent object. Each child object can also serve as a parent object and attach its own child objects.
[0152] When editing a parent object, the child object inherits the parent's editing properties. This means that when you edit the parent object, the child object will also display the same edit results. When you only edit the child object, the parent object remains unchanged.
[0153] Exemplarily, the first virtual element A is attached to the second virtual element B, and the second virtual element B is attached to the third virtual element C.
[0154] If only the first virtual element A is edited, the second and third virtual elements B and C will display the same edit results. If only the second virtual element B is edited, the third virtual element C will display the same edit results, while the first virtual element A remains unchanged. If only the third virtual element C is edited, neither the first nor the second virtual element B will change.
[0155] It is worth noting that the types and quantities of other virtual elements attached to each virtual element can be arbitrary, and the form after attachment can be arbitrary, which is not limited in this embodiment.
[0156] In summary, the method provided by the present application, by receiving a mirror trigger operation on a first virtual element (UGC object), displays a mirror coordinate system, and multiple mirror axis planes in the mirror coordinate system can provide a flip reference plane when mirroring the first virtual element, thereby improving the convenience of the user when editing the first virtual element. Receiving a trigger operation on a mirror axis plane can automatically display the mirror result of the first virtual element after flipping based on the mirror axis plane, making the structural display effect of the first virtual element clearer and more intuitive, thereby improving the efficiency of the user when designing the structure of the first virtual element.
[0157] The method provided in this embodiment, by establishing an additional relationship between the first virtual element and the second virtual element, can operate only on the first virtual element, while realizing the editing process of the first virtual element and the second virtual element, and displaying the corresponding editing results, thereby improving editing efficiency and flexibility.
[0158] When editing virtual elements in a virtual scene, in addition to mirroring virtual elements through the mirroring function option described in the aforementioned embodiments, other types of editing operations can be combined with mirroring operations to jointly control virtual elements, such as combining the copying and mirroring operations. As shown in Figure 15 , a flowchart of a method for simultaneously mirroring and copying a first virtual element, provided by an exemplary embodiment of the present application, includes the following steps.
[0159] Step 1510: Display a first virtual element in the virtual scene.
[0160] The first virtual element is a UGC object, which is an editable object.
[0161] Step 1520 : In response to receiving a mirror trigger operation on the first virtual element, display a mirror coordinate system.
[0162] The mirror coordinate system includes a plurality of mirror coordinate axes, and the plurality of mirror coordinate axes form at least two mirror axis planes, and the mirror axis planes are used to provide flip reference planes for performing mirror processing on the first virtual element.
[0163] Step 1530: Receive a copy trigger operation for the first virtual element.
[0164] Schematically, as shown in FIG16 , FIG16 is a schematic diagram of triggering the copy of the first virtual element.
[0165] Among them, after triggering the copy control 1610, the copy quantity prompt 1620 is displayed. The copy quantity prompt 1620 is used to prompt whether the currently selected first virtual element 1600 can be copied. The copy quantity prompt 1620 corresponds to a copy quantity input area 1623 and a click control 1624.
[0166] If copying is not allowed, the input area 1623 is displayed in a non-input state 1621 . If copying is allowed, the input area 1623 is displayed in an input-enabled state 1622 .
[0167] If the first virtual element 1600 can be copied, the number of copies can be entered in the input area 1623. For example, if the number 2 is entered, the number of copies of the first virtual element 1600 is 2. The number in the input area 1623 can also be modified by triggering the click control 1624. Each time the click control 1624 is triggered, the number of copies increases by 1. The default value in the input area 1623 is 1.
[0168] Illustratively, the copy quantity prompt 1620 in FIG. 16 indicates that the first virtual element 1600 can be copied.
[0169] Step 1540 : In response to receiving a triggering operation on a first mirror axis plane among the at least two mirror axis planes, displaying a mirroring result of the first virtual element with the first mirror axis plane as a flip reference plane.
[0170] In response to receiving a trigger operation on a first mirror axis plane among at least two mirror axis planes, a first copied virtual element corresponding to the first virtual element is displayed based on the copy trigger operation as a mirror result of the first virtual element with the first mirror axis plane as a flip reference plane.
[0171] The combined effect of the copy and mirror operations is to create a mirrored copy of the original virtual element. That is, the mirrored result of the first virtual element, with the first mirror axis as the flip reference plane, includes not only the mirrored copy but also the original virtual element.
[0172] In some embodiments, in addition to the above-mentioned method of triggering the copy control to implement the copy operation, the process of copying the first virtual element can also be implemented by dragging the mirror coordinate axis. It is worth noting that the virtual element copied by the copy operation is exactly the same as the first virtual element, that is, there is no mirror relationship.
[0173] Optionally, the drag-copy process may be performed before step 1540 or after step 1540 . This embodiment takes the process performed before step 1540 as an example for explanation.
[0174] In response to receiving a drag operation on a first mirror coordinate axis among the plurality of mirror coordinate axes, the first virtual element is copied along a drag direction of the first mirror coordinate axis, and a second copied virtual element is displayed.
[0175] After obtaining the second virtual element copy, step 1540 is executed again to synchronously mirror the first and second virtual element copies. That is, in response to receiving a triggering operation on the first mirror axis plane of at least two mirror axis planes, the first and second virtual element copies are displayed as a mirrored result using the first mirror axis plane as a flip reference plane. By first copying the first virtual element through a dragging operation to obtain the second virtual element copy, the first virtual element and the copied second virtual element are synchronously mirrored as a whole, improving the efficiency of human-computer interaction for copying and mirroring operations.
[0176] It is worth noting that the above steps 1510 to 1540 are described using the example of copying and mirroring a first virtual element. In some embodiments, multiple first virtual elements can also be selected at the same time, and the selected multiple first virtual elements can be copied and mirrored at the same time to obtain multiple mirrored first virtual elements.
[0177] Optionally, a copy trigger operation for the at least one first virtual element is received, wherein the at least one first virtual element may or may not have a combination relationship.
[0178] In response to receiving a triggering operation on a first mirror axis plane among the at least two mirror axis planes, a mirroring result of the at least one first virtual element with the first mirror axis plane as a flip reference plane is displayed.
[0179] Exemplarily, two first virtual elements are selected, namely the first virtual element A and the first virtual element B. An example in which there is no combination relationship between the first virtual element A and the first virtual element B is used for description.
[0180] (1) Trigger the copy operation through the copy control;
[0181] A mirror image virtual element A1 of the first virtual element A and a mirror image virtual element B1 of the first virtual element B are obtained, and the mirror image result includes a total of four virtual elements, namely A, B, A1 and B1;
[0182] (2) Trigger the copy operation by dragging;
[0183] The first case: copy first and then mirror. First, drag the first mirror coordinate axis in the mirror coordinate system, and copy the first virtual element A and the first virtual element B at the same time to obtain the first virtual element C and the first virtual element D. Then trigger the first mirror axis plane in the mirror coordinate system, and mirror the first virtual elements A, B, C, and D at the same time to obtain the four virtual elements after mirroring, namely A1, B1, C1, and D4, as the mirroring results.
[0184] The second case: mirror first and then copy. First, trigger the first mirror axis plane in the mirror coordinate system, and mirror the first virtual elements A and B at the same time to obtain two mirrored virtual elements, namely A1 and B1. Then drag the first mirror coordinate axis in the mirror coordinate system and copy the first virtual elements A1 and B1 at the same time to obtain two copied virtual elements, namely C1 and D1. The mirroring result includes four virtual elements, namely A1, B1, C1 and D1.
[0185] For example, three first virtual elements are selected, namely, first virtual element A, first virtual element B, and first virtual element C. Taking the combination relationship among first virtual element A, first virtual element B, and first virtual element C as an example, the three first virtual elements together constitute a virtual module.
[0186] At this time, whether copying is performed by dragging or by triggering the copy control, the following situations exist: (1) the virtual module is copied first and then mirrored, or mirrored first and then copied, as a whole; (2) only part of the first virtual element in the virtual module is copied first and then mirrored, or mirrored first and then copied.
[0187] In some embodiments, other virtual elements may be attached to the first virtual element so that the other virtual elements can be mirrored and copied simultaneously with the first virtual element.
[0188] For example, a first virtual element is attached to at least one second virtual element, and the second virtual element follows the first virtual element. A first virtual element can be attached to multiple second virtual elements, and a second virtual element can also be attached to other virtual elements. This attachment relationship can also be called a parent-child relationship, where the first virtual element is the parent object and the second virtual element is the child object.
[0189] The first virtual element and the second virtual object attached to the first virtual object are mirrored as a whole according to the attachment relationship, thereby improving the mirroring processing efficiency.
[0190] When editing a parent object, the child object inherits the parent's editing properties. That is, when you edit the parent object, the child object will also display the corresponding editing results. When editing only the child object, the parent object remains unchanged. Optionally, a copy trigger operation is received for a first virtual element. Since the first virtual element is the parent object, the copy trigger operation is applied to both the first and second virtual elements.
[0191] In response to receiving a trigger operation for a first mirror axis plane among at least two mirror axis planes, a mirroring result is displayed for both the first virtual element and at least one second virtual element, using the first mirror axis plane as a flip reference plane. Through the copy trigger operation and the mirror operation, the first virtual element and the second virtual element attached to the first virtual element are simultaneously copied and processed, thereby improving human-computer interaction efficiency and avoiding the complex and cumbersome process of performing copy and mirror operations on each element separately. Optionally, when receiving a copy trigger operation for the at least one second virtual element, since the second virtual element is a child object, the copy trigger operation only applies to the second virtual element, and the first virtual element is not affected.
[0192] In response to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes, multiple third copy virtual elements corresponding to the at least one second virtual element are displayed, and the multiple third copy virtual elements are the mirroring results of the at least one second virtual element with the first mirror axis plane as the flip reference plane, wherein the multiple third copy virtual elements are attached to the first virtual element.
[0193] The second virtual element attached to the first virtual element can be subjected to a separate copying process and mirroring, so that the mirrored third virtual element inherits the additional properties of the second virtual element and is also attached to the first virtual element, thereby improving the processing flexibility of the virtual element attached to the first virtual element.
[0194] In summary, the method provided by the present application, by receiving a mirror trigger operation on a first virtual element (UGC object), displays a mirror coordinate system, and multiple mirror axis planes in the mirror coordinate system can provide a flip reference plane when mirroring the first virtual element, thereby improving the convenience of the user when editing the first virtual element. Receiving a trigger operation on a mirror axis plane can automatically display the mirror result of the first virtual element after flipping based on the mirror axis plane, making the structural display effect of the first virtual element clearer and more intuitive, thereby improving the efficiency of the user when designing the structure of the first virtual element.
[0195] The method provided in this embodiment can implement the operation of copying the first virtual element in various ways such as dragging and triggering the copy control, and superimpose the processing with the mirroring operation, which can improve the convenience of the editing operation. Virtual elements of a specified number, position, and orientation can be obtained through simple operations. In the process of editing the first virtual element, the structural complexity and symmetry of the first virtual element are improved.
[0196] FIG17 is a structural block diagram of an apparatus for editing virtual elements in a virtual scene provided by an exemplary embodiment of the present application. As shown in FIG17 , the apparatus includes the following parts.
[0197] The object display module 1710 is configured to display a first virtual element in a virtual scene;
[0198] a coordinate system display module 1720 configured to display a mirror coordinate system in response to receiving a mirror trigger operation for the first virtual element, wherein the mirror coordinate system includes a plurality of mirror coordinate axes, the plurality of mirror coordinate axes forming at least two mirror axis planes, and the mirror axis planes are configured to simulate a mirror image processing of the first virtual element;
[0199] The mirroring result display module 1730 is configured to display a mirroring result of the first virtual element based on the first mirroring axis plane in response to receiving a triggering operation on the first mirroring axis plane among the at least two mirroring axis planes.
[0200] In an optional embodiment, the coordinate system display module 1720 is also used to display the mirror coordinate system based on a first reference point in the virtual scene in response to receiving a mirror trigger operation on the first virtual element, where the first reference point is a position point determined based on the first virtual element, or the first reference point is a preset position point in the virtual scene.
[0201] In an optional embodiment, the coordinate system display module 1720 is further used to determine the center point corresponding to at least one first virtual element among the multiple first virtual elements in response to receiving a mirror trigger operation on the multiple first virtual elements; and display the mirror coordinate system based on the center point.
[0202] In an optional embodiment, before the mirroring result display module 1730, as shown in FIG18 , the apparatus further includes:
[0203] The mirror option selection module 1740 is used to display mirror options, including a center mirror option and a veneer mirror option, wherein the center mirror option indicates that the center of the first virtual element is used as the mirror flip center point, and the veneer mirror option indicates that the first virtual element uses a preset edge as the mirror flip center axis; and receive a selection operation of any one of the center mirror option and the veneer mirror option in the mirror options.
[0204] In an optional embodiment, the mirror result display module 1730 is also used to respond to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes, and the center mirror option is selected, to display the mirror result of mirror flipping the first virtual element with the center of the first virtual element as the mirror flip center point and the first mirror axis plane as the flip reference plane.
[0205] In an optional embodiment, the mirror triggering operation is an operation on multiple first virtual elements;
[0206] The mirroring result display module 1730 is further configured to, in response to receiving a triggering operation on a first mirroring axis plane among the at least two mirroring axis planes and selecting the center mirror option, display the mirroring result of mirror flipping the plurality of first virtual elements with the combined center of the plurality of first virtual elements as the mirror flipping center point and the first mirroring axis plane as the flipping reference plane; or
[0207] In response to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes and the center mirror option being selected, the mirroring result of mirror flipping the multiple first virtual elements is displayed with the center of the specified virtual element among the multiple first virtual elements as the mirror flip center point and the first mirror axis plane as the flip reference plane.
[0208] In an optional embodiment, the designated virtual element is a virtual element among the multiple first virtual elements that meets a selection order condition, and the selection order condition is used to indicate an order requirement for selecting the designated virtual element among the multiple first virtual elements for mirror flipping.
[0209] In an optional embodiment, the mirror result display module 1730 is further used to respond to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes, and the face-to-face mirror option is selected, to display the mirror result of mirror flipping the first virtual element with the first edge of the first virtual element as the mirror flip center axis and the first mirror axis plane as the flip reference plane.
[0210] In an optional embodiment, the mirror triggering operation is an operation on multiple first virtual elements;
[0211] The mirroring result display module 1730 is further configured to, in response to receiving a triggering operation on a first mirroring axis plane among the at least two mirroring axis planes and selecting the face-to-face mirroring option, display the mirroring result of mirror flipping the plurality of first virtual elements using the combined edge of the plurality of first virtual elements as the mirror flipping center axis and the first mirroring axis plane as the flipping reference plane; or
[0212] In response to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes and the face-to-face mirror option being selected, the mirroring result of mirror flipping the multiple first virtual elements is displayed with the second edge of the specified virtual element among the multiple first virtual elements as the mirror flip center axis and the first mirror axis plane as the flip reference plane.
[0213] In an optional embodiment, after the coordinate system display module 1720, the apparatus further includes:
[0214] The copy module 1750 is configured to receive a copy trigger operation for the first virtual element;
[0215] The mirror result display module 1730 is also used to respond to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, and display a first copied virtual element corresponding to the first virtual element based on the copy trigger operation as a mirror result of the first virtual element based on the first mirror axis plane, wherein the first virtual element and the first copied virtual element are in a mirror relationship with the first mirror axis plane.
[0216] In an optional embodiment, the copy module 1750 is further configured to, in response to receiving a drag operation on a first mirror coordinate axis among the multiple mirror coordinate axes, copy the first virtual element along the dragging direction of the first mirror coordinate axis and display a second copied virtual element;
[0217] The mirroring result display module 1730 is further configured to display the mirroring results of the first virtual element and the second copied virtual element based on the first mirroring axis plane in response to receiving a triggering operation on the first mirroring axis plane among the at least two mirroring axis planes.
[0218] In an optional embodiment, the first virtual element is attached with at least one second virtual element, and the second virtual element follows the first virtual element;
[0219] The mirroring result display module 1730 is further configured to display the mirroring results of the first virtual element and the at least one second virtual element based on the first mirroring axis plane in response to receiving a triggering operation on the first mirroring axis plane among the at least two mirroring axis planes.
[0220] In an optional embodiment, the copy module 1750 is further configured to receive a copy trigger operation for the first virtual element;
[0221] The mirror result display module 1730 is also used to display the mirror result of the first virtual element and the at least one second virtual element simultaneously with the first mirror axis plane as the flip reference plane in response to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes.
[0222] In an optional embodiment, the copy module 1750 is further configured to receive a copy trigger operation for the at least one second virtual element;
[0223] The mirror result display module 1730 is also used to display multiple third copy virtual elements corresponding to the at least one second virtual element in response to receiving a trigger operation on the first mirror axis plane in the at least two mirror axis planes, wherein the multiple third copy virtual elements are the mirror results of the at least one second virtual element with the first mirror axis plane as the flip reference plane, wherein the multiple third copy virtual elements are attached to the first virtual element.
[0224] In an optional embodiment, after the coordinate system display module 1720, the mirror result display module 1730 is further used to display the mirroring results of the first virtual element with the multiple mirror axis planes as flipping reference planes in sequence in response to receiving a trigger operation on multiple mirror axis planes in the at least two mirror axis planes, wherein the mirror flipping process of the first virtual element complies with a first selection order, and the first selection order is used to indicate the order in which the multiple mirror axis planes are selected; or, in response to receiving a trigger operation on multiple mirror axis planes in the at least two mirror axis planes, display the mirroring results of the first virtual element with the multiple mirror axis planes as flipping reference planes at the same time; or, in response to receiving a trigger operation on multiple mirror axis planes in the at least two mirror axis planes, display the mirroring results of the first virtual element with the multiple mirror axis planes as flipping reference planes, wherein, in the mirroring process of the first virtual element, the flipping process based on the i+1th mirror axis plane is performed on the basis of the flipping result of the i-th mirror axis plane, and i is a positive integer.
[0225] In an optional embodiment, after the coordinate system display module 1720, the apparatus further includes:
[0226] An axial plane display module 1760 is configured to, in response to receiving a selection operation for a first mirror axial plane among the at least two mirror axial planes, display a display feature option corresponding to the first mirror axial plane, wherein the display feature option is used to adjust the appearance of the first mirror axial plane;
[0227] In response to receiving a trigger operation on the first expression feature option, displaying the first mirror axis surface with the first expression feature as an appearance expression;
[0228] The mirror result display module 1730 is also used to respond to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes, and display the mirror result of the first virtual element with the first mirror axis plane as the flip reference plane and the first performance feature as the appearance performance. In summary, the editing device of virtual elements in the virtual scene provided by the present application can display the mirror coordinate system by receiving a mirror trigger operation on the first virtual element (UGC object). The multiple mirror axis planes in the mirror coordinate system can provide a flip reference plane when mirroring the first virtual element, thereby improving the convenience of the user when editing the first virtual element. Receiving a trigger operation on the mirror axis plane can automatically display the mirror result of the first virtual element after flipping based on the mirror axis plane, so that the structural display effect of the first virtual element is clearer and more intuitive, thereby improving the efficiency of the user in designing the structure of the first virtual element.
[0229] FIG19 illustrates a block diagram of a computer device 1900 according to an exemplary embodiment of the present application. Computer device 1900 may be a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. Computer device 1900 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other similar names.
[0230] Typically, the computer device 1900 includes a processor 1901 and a memory 1902 .
[0231] The processor 1901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0232] Memory 1902 may include one or more computer-readable storage media, which may be non-transitory. Memory 1902 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1902 is used to store at least one instruction, which is executed by processor 1901 to implement the method for editing virtual elements in a virtual scene provided in the method embodiment of the present application.
[0233] In some embodiments, the computer device 1900 also includes other components. Those skilled in the art will understand that the structure shown in Figure 19 does not constitute a limitation on the computer device 1900. It may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0234] Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0235] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement a method for editing virtual elements in a virtual scene as described in any of the above embodiments of the present application.
[0236] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set, or an instruction set. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement a method for editing virtual elements in a virtual scene as described in any of the above embodiments of the present application.
[0237] The present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for editing virtual elements in a virtual scene described in any of the above embodiments.
Claims
1. A method for editing virtual elements in a virtual scene, executed by a computer device, the method comprising: displaying a first virtual element in the virtual scene; In response to receiving a mirror trigger operation for the first virtual element, a mirror coordinate system is displayed, wherein the mirror coordinate system includes a plurality of mirror coordinate axes, wherein the plurality of mirror coordinate axes form at least two mirror axis planes, and the mirror axis planes are used to simulate a mirror to perform mirror processing on the first virtual element; In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, a mirroring result of the first virtual element based on the first mirror axis plane is displayed.
2. The method according to claim 1, wherein: The step of displaying a mirror coordinate system in response to receiving a mirror triggering operation on the first virtual element comprises: In response to receiving a mirror trigger operation on the first virtual element, the mirror coordinate system is displayed based on a first reference point in the virtual scene, where the first reference point is a position point determined based on the first virtual element, or the first reference point is a preset position point in the virtual scene.
3. The method according to claim 1 or 2, wherein: In response to receiving a mirror triggering operation on the first virtual element, displaying the mirror coordinate system based on a first reference point in the virtual scene includes: In response to receiving a mirror trigger operation on a plurality of first virtual elements, determining a center point corresponding to at least one first virtual element among the plurality of first virtual elements; The mirror coordinate system is displayed based on the center point.
4. The method according to any one of claims 1 to 3, wherein: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, before displaying a mirroring result of the first virtual element based on the first mirror axis plane, the method further includes: Display mirroring options, wherein the mirroring options include a center mirroring option and a surface mirroring option, wherein the center mirroring option means that the center of the first virtual element is used as a mirror flipping center point, and the surface mirroring option means that the first virtual element uses a preset edge as a mirror flipping center axis; A selection operation of any one of the center mirroring option and the veneer mirroring option in the mirroring options is received.
5. The method according to any one of claims 1 to 4, wherein: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, displaying a mirroring result of the first virtual element based on the first mirror axis plane comprises: In response to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes and the center mirror option being selected, the mirror result of mirror flipping the first virtual element with the center of the first virtual element as the mirror flip center point and the first mirror axis plane as the flip reference plane is displayed.
6. The method according to any one of claims 1 to 5, wherein: The mirror triggering operation is an operation on a plurality of first virtual elements; In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, and the center mirror option being selected, displaying the mirror result of mirror flipping the first virtual element with the center of the first virtual element as the mirror flip center point and the first mirror axis plane as the flip reference plane, including: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, and the center mirror option being selected, displaying the mirroring result of mirror flipping the plurality of first virtual elements with the combined center of the plurality of first virtual elements as the mirror flipping center point and the first mirror axis plane as the flipping reference plane; or In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes and the center mirror option being selected, the mirroring result of mirror flipping the multiple first virtual elements is displayed, with the center of a specified virtual element among the multiple first virtual elements as the mirror flip center point and the first mirror axis plane as the flip reference plane.
7. The method according to any one of claims 1 to 6, wherein: The designated virtual element is a virtual element that meets a selection order condition among the plurality of first virtual elements, and the selection order condition is used to indicate an order requirement for selecting the designated virtual element among the plurality of first virtual elements for mirror flipping.
8. The method according to any one of claims 1 to 7, wherein: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, displaying a mirroring result of the first virtual element based on the first mirror axis plane comprises: In response to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes and the face-to-face mirror option being selected, the mirroring result of mirror flipping the first virtual element is displayed with the first edge of the first virtual element as the mirror flipping center axis and the first mirror axis plane as the flipping reference plane.
9. The method according to any one of claims 1 to 8, wherein: The mirror triggering operation is an operation on a plurality of first virtual elements; In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, and the face-to-face mirror option being selected, displaying the mirroring result of mirror flipping the first virtual element with the first edge of the first virtual element as the mirror flipping center axis and the first mirror axis plane as the flipping reference plane, including: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, and the face-to-face mirror option being selected, displaying the mirroring result of mirror flipping the plurality of first virtual elements with the combined edge of the plurality of first virtual elements as the mirror flipping center axis and the first mirror axis plane as the flipping reference plane; or, In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes and the face-to-face mirror option being selected, the mirroring result of mirror flipping the multiple first virtual elements is displayed, with the second edge of a designated virtual element among the multiple first virtual elements as the mirror flipping center axis and the first mirror axis plane as the flipping reference plane.
10. The method according to any one of claims 1 to 9, wherein: After the mirror coordinate system is displayed in response to receiving the mirror triggering operation on the first virtual element, the method further includes: receiving a copy trigger operation for the first virtual element; In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, displaying a mirroring result of the first virtual element based on the first mirror axis plane comprises: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, a first copy virtual element corresponding to the first virtual element is displayed based on the copy trigger operation as a mirror result of the first virtual element based on the first mirror axis plane, wherein the first virtual element and the first copy virtual element are in a mirror relationship with the first mirror axis plane.
11. The method according to any one of claims 1 to 10, wherein: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, before displaying a mirroring result of the first virtual element based on the first mirror axis plane, the method further includes: In response to receiving a drag operation on a first mirror coordinate axis among the plurality of mirror coordinate axes, copying the first virtual element along a drag direction of the first mirror coordinate axis and displaying a second copied virtual element; In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, displaying a mirroring result of the first virtual element with the first mirror axis plane as a flip reference plane comprises: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, displaying the first virtual element and the second duplicate virtual element simultaneously based on a mirroring result of the first mirror axis plane.
12. The method according to any one of claims 1 to 11, wherein: The first virtual element is attached with at least one second virtual element, and the second virtual element follows the first virtual element; In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, displaying a mirroring result of the first virtual element based on the first mirror axis plane comprises: In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, displaying the first virtual element and the at least one second virtual element simultaneously based on a mirroring result of the first mirror axis plane.
13. The method according to any one of claims 1 to 12, wherein: The method further comprises: receiving a copy trigger operation for the first virtual element; In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, a mirroring result is displayed simultaneously with the first virtual element and the at least one second virtual element with the first mirror axis plane as a flip reference plane.
14. The method according to any one of claims 1 to 13, wherein: The method further comprises: receiving a copy trigger operation for the at least one second virtual element; In response to receiving a trigger operation on a first mirror axis plane among the at least two mirror axis planes, a plurality of third copy virtual elements corresponding to the at least one second virtual element are displayed, wherein the plurality of third copy virtual elements are the mirroring results of the at least one second virtual element with the first mirror axis plane as the flipping reference plane, wherein the plurality of third copy virtual elements are attached to the first virtual element.
15. The method according to any one of claims 1 to 14, wherein: After the mirror coordinate system is displayed in response to receiving the mirror triggering operation on the first virtual element, the method further includes: In response to receiving a trigger operation on multiple mirror axis planes among the at least two mirror axis planes, the mirroring results of the first virtual element are displayed in sequence with the multiple mirror axis planes as flipping reference planes, wherein the mirror flipping process of the first virtual element complies with a first selection order, and the first selection order is used to indicate the order in which the multiple mirror axis planes are selected; or, in response to receiving a trigger operation on multiple mirror axis planes among the at least two mirror axis planes, the mirroring results of the first virtual element are displayed with the multiple mirror axis planes as flipping reference planes at the same time; or, in response to receiving a trigger operation on multiple mirror axis planes among the at least two mirror axis planes, the mirroring results of the first virtual element are displayed with the multiple mirror axis planes as flipping reference planes, wherein, in the mirroring process of the first virtual element, the flipping process based on the i+1th mirror axis plane is performed on the basis of the flipping result of the i-th mirror axis plane, and i is a positive integer.
16. The method according to any one of claims 1 to 15, wherein: After the mirror coordinate system is displayed in response to receiving the mirror triggering operation on the first virtual element, the method further includes: In response to receiving a selection operation on a first mirror axis surface among the at least two mirror axis surfaces, displaying a performance feature option corresponding to the first mirror axis surface, the performance feature option being used to adjust an appearance performance of the first mirror axis surface; In response to receiving a trigger operation on the first expression feature option, displaying the first mirror axis surface with the first expression feature as an appearance expression; In response to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes, displaying the mirror result of the first virtual element based on the first mirror axis plane includes: in response to receiving a trigger operation on the first mirror axis plane among the at least two mirror axis planes, displaying the mirror result of the first virtual element with the first mirror axis plane as the flipping reference plane and the first expression feature as the appearance expression.
17. A device for editing virtual elements in a virtual scene, the device comprising: An object display module, used for displaying a first virtual element in a virtual scene; a coordinate system display module, configured to display a mirror coordinate system in response to receiving a mirror trigger operation on the first virtual element, wherein the mirror coordinate system includes a plurality of mirror coordinate axes, the plurality of mirror coordinate axes form at least two mirror axis planes, and the mirror axis planes are used to simulate a mirror to perform mirror processing on the first virtual element; The mirroring result display module is used to display the mirroring result of the first virtual element based on the first mirroring axis plane in response to receiving a triggering operation on the first mirroring axis plane among the at least two mirroring axis planes.
18. A computer device, comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for editing virtual elements in a virtual scene as described in any one of claims 1 to 16.
19. A computer-readable storage medium, wherein at least one program is stored in the storage medium, and the at least one program is loaded and executed by a processor to implement the method for editing virtual elements in a virtual scene according to any one of claims 1 to 16.
20. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method for editing virtual elements in a virtual scene according to any one of claims 1 to 16.
Citation Information
Patent Citations
Virtual character control method and device, equipment, storage medium and product
CN114082189A
Assembly mirror image method based on centroid main inertial coordinate system, terminal and storage medium
CN114529704A
Mirror image parameter acquisition method and device, electronic equipment and storage medium
CN114862990A
Generating candidate mirror snap points using determined axes of symmetry
US11321884B1
Method and apparatus for image processing
US20210256655A1