WO2025102829A1 - 虚拟元素的编辑方法、装置、设备、介质及产品 - Google Patents

虚拟元素的编辑方法、装置、设备、介质及产品 Download PDF

Info

Publication number
WO2025102829A1
WO2025102829A1 PCT/CN2024/108856 CN2024108856W WO2025102829A1 WO 2025102829 A1 WO2025102829 A1 WO 2025102829A1 CN 2024108856 W CN2024108856 W CN 2024108856W WO 2025102829 A1 WO2025102829 A1 WO 2025102829A1
Authority
WO
WIPO (PCT)
Prior art keywords
mirror
virtual
virtual element
mirroring
mirror axis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/108856
Other languages
English (en)
French (fr)
Inventor
蔡公娴
陈雅涵
朱振华
胡扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of WO2025102829A1 publication Critical patent/WO2025102829A1/zh
Priority to US19/345,704 priority Critical patent/US20260021407A1/en
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/63Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by the player, e.g. authoring using a level editor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating three-dimensional [3D] models or images for computer graphics
    • G06T19/20Editing of three-dimensional [3D] images, e.g. changing shapes or colours, aligning objects or positioning parts
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/00Three-dimensional [3D] image rendering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/00Three-dimensional [3D] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2021Shape modification

Definitions

  • the embodiments of the present application relate to the field of Internet technology, and in particular to a method, device, equipment, medium and product for editing virtual elements.
  • UGC User Generated Content
  • designers will encourage users to participate in the design of game content such as level maps, gameplay, and ecology by providing corresponding UGC editing capabilities in the game.
  • three-dimensional objects are common UGC content.
  • players can use multiple identical three-dimensional objects and manually rotate and translate them to create a mirror effect between the three-dimensional objects, thereby enriching the structure of the objects.
  • the above method requires players to have strong spatial imagination to achieve the mirror effect of three-dimensional objects, and the operation threshold is relatively high.
  • the embodiments of the present application provide a method, device, equipment, medium and product for editing virtual elements.
  • the technical solution is as follows:
  • a method for editing virtual elements in a virtual scene which is executed by a computer device, and the method comprises:
  • a mirror coordinate system 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;
  • a mirroring result of the first virtual element based on the first mirror axis plane is displayed.
  • a device for editing virtual elements in a virtual scene 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;
  • a 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 in the at least two mirroring axis planes.
  • a computer device includes a processor and a memory, the memory stores at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set is loaded and executed by the processor to implement the editing method of virtual elements in a virtual scene as described in any of the above embodiments of the present application.
  • a computer-readable storage medium wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, 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.
  • a computer program product or a computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium.
  • a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for editing virtual elements in a virtual scene described in any of the above embodiments.
  • the mirror coordinate system 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 the first virtual element is mirrored, thereby improving the convenience of the user when editing the first virtual element.
  • the mirror result of the first virtual element after flipping based on the mirror axis plane can be automatically displayed, 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.
  • FIG1 is a schematic diagram of displaying a mirror coordinate system in a virtual scene provided by an exemplary embodiment of the present application
  • FIG2 is a structural block diagram of an electronic device provided by an exemplary embodiment of the present application.
  • FIG3 is a block diagram of a computer system provided by an exemplary embodiment of the present application.
  • FIG4 is a flow chart of a method for editing virtual elements in a virtual scene provided by an exemplary embodiment of the present application
  • FIG5 is a schematic diagram of editing function options provided by an exemplary embodiment of the present application.
  • FIG6 is a schematic diagram of an editing function option following a first virtual element provided by an exemplary embodiment of the present application.
  • FIG. 7 is a schematic diagram of a triggering process of a mirroring function option provided by an exemplary embodiment of the present application.
  • FIG8 is a schematic diagram of a process for selecting a target image option provided by an exemplary embodiment of the present application.
  • FIG9 is a schematic diagram of performing center mirror processing on a first virtual element provided by an exemplary embodiment of the present application.
  • FIG10 is a schematic diagram of performing mirroring processing on a first virtual element provided by an exemplary embodiment of the present application.
  • FIG11 is a flowchart of a method for editing a plurality of first virtual elements provided by an exemplary embodiment of the present application
  • FIG12 is a schematic diagram of selecting a plurality of first virtual elements provided by an exemplary embodiment of the present application.
  • 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;
  • FIG14 is a schematic diagram of performing mirroring processing on a virtual module corresponding to a first virtual element provided by an exemplary embodiment of the present application
  • 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
  • FIG16 is a schematic diagram of triggering the copying of a first virtual element provided by an exemplary embodiment of the present application.
  • FIG17 is a structural block diagram of a device for editing virtual elements in a virtual scene provided by an exemplary embodiment of the present application.
  • FIG18 is a structural block diagram of a device for editing virtual elements in a virtual scene provided by another exemplary embodiment of the present application.
  • FIG. 19 is a structural block diagram of a computer device provided by an exemplary embodiment of the present application.
  • UGC User Generated Content
  • Users display their original content through the Internet platform or provide it to other users.
  • 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 number of virtual elements; controlling virtual elements to perform movements; and creating virtual elements through functions provided by the application.
  • the player can edit the virtual elements with editable attributes to achieve the combination of virtual elements.
  • the editable virtual element includes a first virtual element, and the player can change the shape of the first virtual element by performing editing operations such as moving, rotating, and scaling the editable virtual element.
  • the player can also combine the first virtual element and the second virtual element into a virtual module.
  • the player can construct a virtual module with a symmetrical structure by changing the orientation of the virtual element.
  • 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.
  • the present application provides a method for editing virtual elements in a virtual scene, which can be operated on a terminal, and an application based on a virtual scene is installed on the terminal.
  • 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 virtual elements and realize operations such as editing, combining, designing, and copying virtual elements.
  • the mirror function as an example, when the mirror function of a specified virtual element in a 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 need for the user to manually control the flipping of the virtual element.
  • the operation efficiency and the accuracy of the flipping operation are improved.
  • FIG1 is a schematic diagram of displaying a mirror coordinate system in a virtual scene.
  • a selected designated virtual element 110 exists in the virtual scene 100.
  • a mirror coordinate system 120 is displayed accordingly.
  • the origin of the mirror coordinate system 120 is the center of the designated virtual element 110, and the mirror coordinate system 100 includes a plurality of mirror coordinate axes 121, and a plurality of mirror axis planes 122 formed by the mirror coordinate axes 121.
  • 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.
  • mirror coordinate axes included in the mirror coordinate system can be arbitrary.
  • Figure 1 takes three mirror axis planes as an example for illustration.
  • the position and number of the mirror axis planes in the mirror coordinate system can also be arbitrary.
  • the terminal in the present application can be a desktop computer, a laptop, a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, etc.
  • An application that supports virtual scenes is installed and run 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).
  • the application can be a stand-alone application, such as a stand-alone three-dimensional game program, or a network-connected application.
  • FIG2 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.
  • 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 a network-connected application.
  • FIG3 shows a block diagram of a computer system provided by an exemplary embodiment of the present application.
  • the 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.
  • the application can be any one of a virtual reality application, a three-dimensional map program, a TPS game, an FPS game, a MOBA game, and an SLG game.
  • the first device 320 is a device used by a first user, and the first user uses the first device 320 to control a master virtual object located in a virtual scene to perform activities, and the activities include but are not limited to: adjusting body posture, walking, running, jumping and attacking at least one of them.
  • the master virtual object is a master virtual character, such as a simulated character or an anime character.
  • the first device 320 is connected to the server 340 via a wireless network or a wired network.
  • the server 340 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. Server The server 340 is used to provide background services for applications that support three-dimensional virtual scenes.
  • 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.
  • the second device 360 has an application that supports virtual scenes installed and running.
  • the application can be any one of a virtual reality application, a three-dimensional map program, an FPS game, a MOBA game, and an SLG game.
  • the second device 360 is a device used by a second user, and the second user uses the second device 360 to control other virtual objects in the virtual scene to perform activities, and the activities include but are not limited to: adjusting body posture, walking, running, jumping and attacking.
  • the other virtual objects are other virtual characters, such as simulated characters or cartoon characters.
  • the master virtual character and the other virtual characters are in the same virtual scene.
  • the master virtual character and the other virtual characters may belong to the same team, the same organization, have a friendship or have temporary communication permissions.
  • the master virtual character and the other virtual characters may also belong to different teams, different organizations, or two hostile groups.
  • 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 may refer to one of a plurality of devices
  • the second device 360 may refer to one of a plurality of devices. This embodiment is only illustrated by the first device 320 and the second device 360.
  • the device types of the first device 320 and the second device 360 are the same or different. The following embodiments are illustrated by the example that the device is a desktop computer.
  • the number of the above-mentioned devices may be more or less.
  • the above-mentioned device may be only one, or the above-mentioned device may be dozens or hundreds, or a greater number.
  • the embodiment of the present application does not limit the number and type of devices.
  • the above-mentioned server 340 may be implemented as a physical server or as a cloud server in the cloud.
  • the program corresponding to the above-mentioned virtual scene may be a cloud game.
  • the method provided in the embodiments of the present application can be applied to a cloud gaming scenario, so that the calculation of data logic during the game is completed through the cloud server, while the terminal is responsible for the display of the game interface.
  • the server 340 may also be implemented as a node in a blockchain system.
  • the method for editing virtual elements in a virtual scene provided by the present application is described.
  • the method can be executed by a server or a terminal, or by a server and a terminal together.
  • the method is described by taking the execution of the method by a terminal as an example.
  • 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.
  • Figure 4 is a flow chart of a method for editing virtual elements in a virtual scene provided by an exemplary embodiment of the present application. The method comprises the following steps.
  • Step 410 display a first virtual element in the virtual scene.
  • the first virtual element is a UGC (User Generated Content) object or object, and the UGC object is an editable object.
  • 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, a virtual pet, etc.
  • there is at least one virtual element in the virtual scene and at least one virtual element includes the first virtual element, wherein the first virtual element is an editable virtual element.
  • a UGC editor is also displayed in the terminal interface, and the UGC editor is used to provide a function for editing the first virtual element.
  • a selection operation for the first virtual element is received, such as a single-click operation for the first virtual element.
  • the first virtual element is selected to enter an editable mode, and an editing function option is displayed on the terminal interface.
  • the editing function option includes a plurality of functions for editing the first virtual element.
  • a trigger operation for a target function option in the editing function option is received, the first virtual element is edited according to the function provided by the target function option, and the edited first virtual element is displayed.
  • Figure 5 is a schematic diagram of an editing function option.
  • a first virtual element 510 is displayed in a virtual scene 500. After the first virtual element 510 is selected, the first virtual element 510 enters an editable mode and displays corresponding editing function options 520.
  • the editing function options 520 include the following function options.
  • a movement function which controls the movement of the first virtual element 510 and changes the position of the first virtual element 510 in the virtual scene 500
  • a rotation function which controls the rotation of the first virtual element 510 and changes the posture and angle of the first virtual element 510 in the virtual scene 500
  • a scaling function which controls the size of the first virtual element 510 and realizes the (4)
  • Mirror function Mirror the first virtual element 510 to make the structure of the first virtual element 510 symmetrical
  • Delete function After deleting the first virtual element 510, the virtual scene 500 no longer displays the first virtual element 510
  • Edit function Edit the shape, color, structure and other parameters of the first virtual element 510 to change the appearance of the first virtual element 510.
  • 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.
  • the position of the editing function option in the display area can be fixed, such as: fixed at the upper left corner, lower left corner or directly below the terminal interface by default.
  • the user can also customize the fixed position of the editing function option, where the position of the editing function option in the display area as shown in FIG5 is fixed directly below the terminal interface.
  • the position of the editing function option in order to improve the flexibility and convenience of editing the first virtual element, can also be changed at any time.
  • the editing function option can also be set to follow-up mode.
  • the position of the editing function option displayed on the terminal interface will also change accordingly, such as: in the first viewing angle, 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 viewing angle is switched to the second viewing angle, 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.
  • 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.
  • FIG. 6 is a schematic diagram of an editing function option following a first virtual element.
  • the first virtual element 610 is surrounded by an editing function option 620, which displays multiple function options in a circular manner. It is worth noting that the display method of the editing function option following the first virtual element includes but is not limited to the method shown in FIG. 6 .
  • Step 420 In response to receiving a mirror trigger operation on the first virtual element, displaying a mirror coordinate system.
  • methods of receiving a mirror trigger operation on 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 a selection operation on the first virtual element and a trigger operation on the virtual control; (2) first receiving a selection operation on the first virtual element, and then receiving a sliding operation, and triggering the mirror function according to a sliding trajectory corresponding to the sliding operation.
  • 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 a flip reference plane for performing mirror processing on the first virtual element.
  • the mirror coordinate system includes three mirror coordinate axes, each axis corresponds to a direction in the three-dimensional virtual scene, wherein a mirror axis plane is formed between every two mirror coordinate axes, and then the mirror coordinate system contains a total of three mirror axis planes.
  • 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.
  • a mirror coordinate system is displayed.
  • the editing function options 720 of the first virtual element 710 include a mirror function option 721, and triggering the mirror function option 721 means receiving a mirror trigger operation on the first virtual element, and displaying a mirror coordinate system 730.
  • a mirror coordinate system in response to receiving a mirror trigger operation on the first virtual element, 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: 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.
  • the mirror coordinate system is displayed based on the first reference point in the virtual scene, the first reference point is used as the origin of the mirror coordinate system, and the relative position between the first virtual element and the mirror coordinate system is kept fixed, which can ensure the symmetry and stability of the object structure when the first virtual element is mirrored and when the application switches the perspective, avoid the deviation of the mirror coordinate system from the first virtual element due to an accidental touch, and improve the efficiency of the mirror operation.
  • the first reference point 700 is the center of the first virtual element 710.
  • the first reference point 700 in the virtual scene is the origin of the mirror coordinate system 730. It includes a plurality of mirror coordinate axes 731 and mirror axis surfaces 732 .
  • Step 430 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.
  • the mirroring method of the first virtual element is first determined.
  • a mirror option is displayed while displaying the mirror coordinate system.
  • the mirroring options include a center mirroring option and a pasted mirroring option, wherein 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.
  • center mirroring the first virtual element is mirrored and flipped based on the mirror flip center point, and the orientation of the first virtual element is changed, thereby improving the efficiency of the mirroring operation.
  • pasted mirroring the first virtual element is mirrored and flipped based on the mirror flip center axis, and the position of the first virtual element is changed, thereby improving the efficiency of the mirroring operation.
  • FIG. 8 is a schematic diagram of the selection process of the target mirror option.
  • the control form corresponding to the mirror function option 820 changes from the normal state 821 to the selected state 822.
  • the center mirror option 831 and the veneer mirror option 832 can be expanded and displayed, 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.
  • 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.
  • a mirroring result of mirror flipping the first virtual element is displayed 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.
  • Figure 9 is a schematic diagram of performing center mirror processing on the 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 is used 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.
  • 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 , which is mirrored with the first virtual element 910 about the mirror axis plane Z.
  • 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 of the first virtual element 910 before and after flipping.
  • a mirroring result of mirror flipping the first virtual element is displayed 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.
  • FIG. 10 is a schematic diagram of performing a 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, the mirror axis plane X, the mirror axis plane Y, and the mirror axis plane Z.
  • the mirror axis plane Z is used as the first mirror axis plane, and the first virtual element 1010 is mirrored 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.
  • the straight line is used as the mirror flip center axis
  • the tangent of the selected combined edge is used as the mirror flip center axis.
  • multiple mirror axis planes may be selected simultaneously to perform mirror flipping on the first virtual element, including the following situations.
  • the first mirror axis plane and the second mirror axis plane are selected in sequence, and the mirror result means: first displaying the first mirror 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 then displaying the second mirror 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.
  • the number of the first virtual elements increases to 2, and the position of the first virtual element is changed from the first position to the second position and the third position.
  • the number of first virtual elements increases to 2, and the position of the first virtual element is changed from the first position to the second position and the third position.
  • the first mirror axis plane and the second mirror axis plane are selected in sequence, and the mirror result means: first displaying the process of flipping the first virtual element (located at the first position) with the first mirror axis plane as the flip reference plane (at this time, the first virtual element is located at the second position), and then displaying the mirror result of flipping the first virtual element (located at the second position) with the second mirror axis plane as the flip reference plane (located at the third position).
  • the number of the first virtual element remains unchanged, and the position of the first virtual element is changed from the first position to the third position.
  • the efficiency of mirroring the first virtual element is improved, mirroring the first virtual element according to the accumulated number of times is avoided, and the human-computer interaction efficiency is improved.
  • the appearance of the mirroring axis surface can also be set before mirroring, so that after the first virtual element is flipped on the mirroring axis surface, the appearance of the first virtual element is changed accordingly.
  • 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 first virtual element is displayed with the first mirror axis plane as a flipping reference plane and the first performance feature as the mirroring result of the appearance.
  • the display feature options of the first mirror axis surface include: (1) a color option for changing the color of the first mirror axis surface; (2) a volume option for changing the size of the first mirror axis surface; (3) a texture option: for changing the texture of the first mirror axis surface, etc.; (4) a special effect option for superimposing special effects on the first mirror axis surface, such as flashing effects, flickering effects, edge highlighting effects, etc.
  • 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.
  • 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 there are spots on the outer surface.
  • the performance feature of the result is configured in combination with the selected first performance feature option, such as the color setting and volume setting, etc., thereby improving the efficiency of designing and configuring the appearance of the mirrored result during the mirroring process, and eliminating the need to set additional appearance features for the mirrored element after the mirroring process, thereby improving the human-computer interaction efficiency of designing virtual elements.
  • the operation of triggering the mirror axis plane is an accidental touch, the mirroring operation can also be canceled within a preset time, and the first virtual element will not change at this time.
  • receiving a trigger operation on a first mirror axis surface among at least two mirror axis surfaces in response to receiving a trigger operation on a second mirror axis surface; within a preset time after a trigger operation of a mirror axis surface, a mirror cancellation operation is received and a mirror cancellation prompt message is displayed.
  • the preset duration is 1 second
  • the types of mirror cancel operations include but are not limited to the following: (1) triggering the first mirror axis plane again within the preset duration; (2) sliding to cancel within the preset duration, and the sliding gesture can be arbitrary; (3) triggering the target virtual control corresponding to the mirror cancel operation within the preset duration.
  • the method provided by the present application by receiving a mirror trigger operation on the first virtual element (UGC object), displays the mirror coordinate system, and multiple mirror axis planes in the mirror coordinate system can provide a flip reference plane when the first virtual element is mirrored, 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, 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.
  • FIG. 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 the method includes the following steps.
  • Step 1110 displaying a first virtual element in the virtual scene.
  • the first virtual element is a UGC object, and the UGC object is an editable object.
  • first virtual elements there are multiple first virtual elements in the virtual scene, and the shape and size of each first virtual element can be arbitrary, and all editable virtual elements can be called first virtual elements.
  • the virtual element types can be divided in any way, such as: dividing according to the shape, size, color, and symmetry of the virtual elements.
  • Step 1120 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 and displaying a mirror coordinate system based on the center point.
  • the mirror trigger operation is an operation for multiple first virtual elements, schematically shown 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.
  • the selection methods corresponding to the multi-selection control 1221 include the following two: (1) click selection: multiple selection by clicking on different first virtual elements 1210 multiple times; (2) click selection + box selection: by receiving the sliding, a dotted box 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 box is selected; if the positions of the first virtual elements 1210 are relatively scattered, it is impossible to box select 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 box selection operation will be collectively regarded as the selected first virtual elements 1210.
  • determining the center point corresponding to at least one of 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.
  • 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 first virtual elements selected, combining at least one of 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.
  • the five first virtual elements are combined into a virtual module, and the center point of the virtual module is used as the center point of the display mirror coordinate system, and the mirror coordinate system is displayed based on the first reference point; or, if five first virtual elements are selected, three of the first virtual elements are combined into a virtual module, and the center point of the virtual module is used as the center point of the display mirror coordinate system.
  • a combination selection operation on at least one virtual element among the multiple first virtual elements is received, 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.
  • triggering the combination control 1222 can select any number of first virtual elements 1210 for combination to obtain a corresponding virtual module 1230. Exemplarily, all the selected first virtual elements 1210 are combined to obtain a virtual module 1230, and a mirror coordinate system 1240 is displayed based on the center point of the virtual module 1230.
  • a mirror trigger operation for multiple first virtual elements can be received, and the position of the first reference point can be determined according to the multiple first virtual elements to display the mirror coordinate system, thereby realizing simultaneous mirroring of the multiple first virtual elements.
  • Multiple first virtual elements can be combined to obtain corresponding virtual modules, which can improve the complexity and symmetry of the virtual element structure.
  • Step 1130 in response to receiving a trigger operation on a first mirror axis plane among 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.
  • the mirroring method of the first virtual element is first determined.
  • a mirror option is displayed while displaying the mirror coordinate system.
  • the mirroring options include a center mirroring option and a veneer mirroring option, wherein the center mirroring option indicates that the center of the first virtual element is used as the mirror flip center point, and the veneer mirroring option indicates that the first virtual element uses a preset edge as the mirror flip center axis.
  • a selection operation for a target mirroring option in the mirroring options is received, and the target mirroring option includes any one of the center mirroring option and the veneer mirroring option.
  • the mirroring results of mirror flipping the multiple first virtual elements include the following cases.
  • FIG. 13 is a schematic diagram of performing central mirroring processing on the virtual module corresponding to the first virtual element.
  • 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.
  • 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.
  • the integrity between the plurality of first virtual elements and the regularity of overall mirroring of the plurality of first virtual elements are improved, thereby improving the mirror processing efficiency of the plurality of first virtual elements.
  • a mirroring result of mirror flipping multiple first virtual elements is displayed, with the center of a specified virtual element among multiple first virtual elements as the mirror flip center point and the first mirror axis plane as the flip reference plane.
  • 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, the virtual module is centrally mirror flipped, the orientation of the virtual module is changed, and the efficiency of batch mirror processing of virtual elements is improved.
  • 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.
  • meeting the selection order condition means that the specified virtual element is the last selected first virtual element among multiple first virtual elements.
  • the multiple first virtual elements are sorted in ascending order, each first virtual element has its own serial number, and the first virtual element with the largest serial number is determined as the designated virtual element.
  • a total of 5 first virtual elements are selected, and they are sorted in ascending order according to the order in which they are selected, and the serial numbers are 1, 2, 3, 4, and 5, respectively.
  • the first virtual element with serial number 5 is used as the designated virtual element, and the center of the designated virtual element is used as the center point of the mirror flip.
  • the selection order condition may be arbitrary, and the method of determining the designated virtual element from multiple first virtual elements may use any other method in addition to the above-mentioned method based on the selection order condition for example, and this embodiment does not limit this.
  • the center of the specified virtual element among the multiple first virtual elements is used as the mirror flip center point, which improves the flexibility of mirroring the multiple first virtual elements as a whole, and increases the mirror reference point when mirroring the multiple first virtual elements as a whole.
  • the selection range is improved, thereby improving the mirroring processing efficiency of multiple first virtual elements.
  • the designated virtual element among the multiple first virtual elements is determined according to the selection order.
  • the designated virtual element is implicitly included 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.
  • the mirror results of mirror flipping the multiple first virtual elements include the following cases.
  • FIG. 14 is a schematic diagram of performing mirror processing on the virtual module corresponding to the first virtual element.
  • the combined edge of the virtual module 1410 composed of multiple first virtual elements is used 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.
  • the straight line is used as the mirror flip central axis; if the combined edge is a curve, the tangent line of the selected combined edge is used as the mirror flip central axis.
  • 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.
  • 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 of overall mirroring of the multiple first virtual elements, thereby improving the mirror processing efficiency of the multiple first virtual elements.
  • a mirroring result of mirror flipping multiple first virtual elements is displayed, with the second edge of a specified virtual element among multiple first virtual elements as the mirror flipping center axis and the first mirror axis plane as the flipping reference plane.
  • 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 face-to-face mirror flipping on the virtual module, changes the position of the virtual module, and improves the efficiency of batch mirror processing of virtual elements.
  • 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.
  • the second edge of a designated virtual element among the multiple first virtual elements is used as the mirror flip center axis, which improves the flexibility when the multiple first virtual elements are mirrored as a whole, increases the selection range of the mirror reference axis when the multiple first virtual elements are mirrored as a whole, and improves the mirror processing efficiency of the multiple first virtual elements.
  • a plurality of first virtual elements form a complete virtual module.
  • some of the first virtual elements in the virtual module may also be edited to change only the form of the part of the first virtual elements.
  • the description is made by taking the receiving of a mirror triggering operation on a part of the first virtual elements in the virtual module as an example.
  • first virtual elements that together constitute the virtual module B, namely the first virtual element A1, the first virtual element A2, and the first virtual element A3. Only the first virtual element A1 can be centrally mirrored, and the corresponding mirroring result is the first mirrored virtual element A11, which still belongs to the virtual module B. That is, the virtual module B is now composed of the first mirrored virtual element A11, the first virtual element A2, and the first virtual element A3.
  • multiple first virtual elements in addition to combining multiple first virtual elements into a complete virtual module by combining controls as described above for example, multiple first virtual elements can also be combined by attaching other virtual elements to the first virtual elements so that the other virtual elements can follow the transformation of the first virtual elements.
  • the first virtual element is attached with at least one second virtual element, and the second virtual element follows the first virtual element.
  • displaying a first virtual element and At least one second virtual element is a mirror image result with the first mirror axis plane as a flip reference plane.
  • the first virtual element can be attached with multiple second virtual elements, and the second virtual element can also be attached with other virtual elements.
  • This attachment relationship can also be called a parent-child relationship, that is, the first virtual element is the parent object and the second virtual element is the child object.
  • a parent object can be attached with multiple child objects, but a child object has only one parent object.
  • Each child object itself can also be a parent object and attach its own child objects.
  • the child object When editing a parent object, the child object will inherit the parent object's editing properties, that is, when editing a parent object, the child object will also display the editing results of the same editing operation. When only editing a child object, the parent object will not change.
  • the first virtual element A is attached to the second virtual element B
  • the second virtual element B is attached to the third virtual element C.
  • the method provided by the present application by receiving a mirror trigger operation on the first virtual element (UGC object), displays the mirror coordinate system, and multiple mirror axis planes in the mirror coordinate system can provide a flip reference plane when the first virtual element is mirrored, 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, 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.
  • 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.
  • 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, and the method includes the following steps.
  • Step 1510 display a first virtual element in the virtual scene.
  • the first virtual element is a UGC object, and the UGC object is an editable object.
  • Step 1520 In response to receiving a mirror trigger operation on the first virtual element, display a mirror coordinate system.
  • 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.
  • Step 1530 Receive a copy trigger operation for the first virtual element.
  • FIG. 16 is a schematic diagram of triggering the copy of the first virtual element.
  • 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.
  • 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 .
  • 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, and 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.
  • the copy quantity prompt 1620 in FIG. 16 indicates that the first virtual element 1600 can be copied.
  • Step 1540 in response to receiving a trigger operation on a first mirror axis plane among 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.
  • a first duplicate 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.
  • the superposition effect of the copy operation and the mirror operation is to copy a mirror virtual element based on the original virtual element. That is, in the mirroring result of the first virtual element with the first mirror axis plane as the flip reference plane, in addition to the mirrored first copy virtual element, the original first virtual element is also included.
  • 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.
  • the drag-to-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.
  • the first virtual element is copied along a drag direction of the first mirror coordinate axis, and a second copied virtual element is displayed.
  • the first virtual element and the second duplicate virtual element can be synchronously mirrored. That is, in response to receiving a trigger operation on the first mirror axis plane in at least two mirror axis planes, the mirroring result of the first virtual element and the second duplicate virtual element with the first mirror axis plane as the flip reference plane is displayed.
  • the first virtual element is firstly copied by dragging to obtain the second duplicate virtual element, so that the first virtual element and the copied second duplicate virtual element are synchronously mirrored as a whole, thereby improving the human-computer interaction efficiency of the copying and mirroring operations.
  • steps 1510 to 1540 are described by taking the copying and mirroring operations on a first virtual element as an example.
  • multiple first virtual elements may be selected at the same time, and the selected multiple first virtual elements may be copied and mirrored at the same time to obtain multiple mirrored first virtual elements.
  • 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.
  • a mirroring result of the at least one first virtual element with the first mirror axis plane as a flip reference plane is displayed.
  • two first virtual elements are selected, namely, the first virtual element A and the first virtual element B.
  • the example in which there is no combination relationship between the first virtual element A and the first virtual element B is used for description.
  • 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 4 virtual elements, namely A, B, A1 and B1;
  • 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 4 virtual elements after mirroring, namely A1, B1, C1, and D4, as the mirroring results.
  • 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 virtual elements after mirroring, which are A1 and B1 respectively.
  • Then drag the first mirror coordinate axis in the mirror coordinate system, and copy the first virtual element A1 and the first virtual element B1 at the same time to obtain two virtual elements after copying, which are C1 and D1 respectively.
  • the mirroring result includes 4 virtual elements, namely A1, B1, C1 and D1.
  • 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 the first virtual element A, the first virtual element B and the first virtual element C as an example, the three first virtual elements together constitute a virtual module.
  • other virtual elements may be attached to the first virtual element so that the other virtual elements can follow the first virtual element and be mirrored and copied at the same time.
  • the first virtual element is attached with at least one second virtual element, and the second virtual element follows the first virtual element.
  • the first virtual element can be attached with multiple second virtual elements, and the second virtual element can also be attached with other virtual elements.
  • This attachment relationship can also be called a parent-child relationship, that is, the first virtual element is a parent object and the second virtual element is a child object.
  • 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.
  • the child object When editing a parent object, the child object will inherit the editing properties of the parent object, that is, when editing the parent object, the child object will also display the editing results after the same editing operation. When only editing the child object, the parent object will not change.
  • the copy trigger operation is an operation for both the first virtual element and the second virtual element.
  • a mirroring result is displayed with the first virtual element and at least one second virtual element using the first mirror axis plane as a flip reference plane.
  • the first virtual element and the second virtual element attached to the first virtual element are copied and processed at the same time, thereby improving the efficiency of human-computer interaction and avoiding the complicated and cumbersome process of performing the copy operation and the mirror operation on each element separately.
  • a copy trigger operation is received for the at least one second virtual element. Since the second virtual element is a child object, the copy trigger operation is only for the second virtual element, and the first virtual element is not affected.
  • 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.
  • the second virtual element attached to the first virtual element may be subjected to a separate copying process and mirroring, so that the mirrored third virtual element inherits the additional attributes 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.
  • the method provided by the present application by receiving a mirror trigger operation on the first virtual element (UGC object), displays the mirror coordinate system, and multiple mirror axis planes in the mirror coordinate system can provide a flip reference plane when the first virtual element is mirrored, 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, 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.
  • the method provided in this embodiment can implement the operation of copying the first virtual element in various ways such as dragging and triggering a copy control, and superimpose the operation with a mirroring operation, thereby improving the convenience of editing operations.
  • Virtual elements of a specified number, position, and orientation can be obtained through simple operations.
  • the structural complexity and symmetry of the first virtual element are improved.
  • FIG. 17 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 FIG. 17 , the apparatus includes the following parts.
  • the object display module 1710 is used to display a first virtual element in a virtual scene
  • a coordinate system display module 1720 is used 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, and 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 1730 is configured 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.
  • the coordinate system display module 1720 is further configured to display the mirror coordinate system based on the first reference point in the virtual scene in response to receiving a mirror trigger operation on the first virtual element.
  • the 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.
  • 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.
  • the device before the mirroring result display module 1730, as shown in FIG18, the device further includes:
  • 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 means that the center of the first virtual element is used as the mirror flip center point, and the veneer mirror option means that the first virtual element uses a preset edge as the mirror flip center axis; receive a selection operation of any one of the center mirror option and the veneer mirror option in the mirror options.
  • the mirroring result display module 1730 is also used to respond to receiving a trigger operation on the first mirroring axis plane among the at least two mirroring axis planes, and the center mirroring option is selected, to display the mirroring result of mirror flipping the first virtual element with the center of the first virtual element as the mirror flipping center point and the first mirroring axis plane as the flipping reference plane.
  • the mirror triggering operation is an operation on a plurality of first virtual elements
  • the mirroring result display module 1730 is further used to, in response to receiving a trigger operation on a first mirroring axis plane among the at least two mirroring axis planes and the center mirroring option being selected, 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
  • 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.
  • the designated virtual element is a virtual element among the multiple first virtual elements that meets a selection order condition
  • 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.
  • the mirroring 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 veneer mirroring option is selected, to display 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.
  • the mirror triggering operation is an operation on a plurality of first virtual elements
  • the mirroring result display module 1730 is further used to, in response to receiving a trigger operation on a first mirroring axis plane among the at least two mirroring axis planes and the face-to-face mirroring option being selected, display 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 mirroring axis plane as the flipping reference plane; or,
  • 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.
  • the device further includes:
  • a copy module 1750 configured to receive a copy trigger operation for the first virtual element
  • 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.
  • 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;
  • 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.
  • the first virtual element is attached with at least one second virtual element, and the second virtual element follows the first virtual element;
  • 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.
  • the copy module 1750 is further configured to receive a copy trigger operation for the first virtual element
  • 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.
  • the copy module 1750 is further configured to receive a copy trigger operation for the at least one second virtual element
  • 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 among the at least two mirror axis planes, and 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.
  • the mirror result display module 1730 is also 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 conforms to 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 device further includes:
  • An axial surface display module 1760 is used for displaying a performance feature option corresponding to a first mirror axial surface among the at least two mirror axial surfaces in response to receiving a selection operation on the first mirror axial surface, wherein the performance feature option is used to adjust the appearance performance of the first mirror axial surface;
  • 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.
  • 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, and improves the efficiency of the user in designing the structure of the first virtual element.
  • FIG. 19 shows a block diagram of a computer device 1900 provided by an exemplary embodiment of the present application.
  • the computer device 1900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer.
  • the computer device 1900 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
  • the computer device 1900 includes a processor 1901 and a memory 1902 .
  • 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), and 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.
  • 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.
  • the processor 1901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • the memory 1902 may include one or more computer-readable storage media, which may be non-transitory.
  • the memory 1902 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices.
  • the non-transitory computer-readable storage medium in the memory 1902 is used to store at least one instruction, which is used to be executed by the processor 1901 to implement the method for editing virtual elements in a virtual scene provided in the method embodiment of the present application.
  • the computer device 1900 also includes other components. Those skilled in the art will understand that the structure shown in FIG. 19 does not constitute a limitation on the computer device 1900, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
  • 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.
  • the random access memory may include a resistive random access memory (ReRAM) and a dynamic random access memory (DRAM).
  • ReRAM resistive random access memory
  • DRAM dynamic random access memory
  • 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.
  • An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored.
  • 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.
  • the embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for editing virtual elements in a virtual scene described in any of the above embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种虚拟元素的编辑方法、装置、设备、介质及产品,涉及互联网技术领域,该方法包括如下步骤:显示虚拟场景中的第一虚拟元素,第一虚拟元素是UGC物体(410);响应于接收到对第一虚拟元素的镜像触发操作,显示镜像坐标系,镜像坐标系中包括多个镜像坐标轴,多个镜像坐标轴形成至少两个镜像轴面(420);响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,显示第一虚拟元素以第一镜像轴面为翻转参考面的镜像结果(430)。

Description

虚拟元素的编辑方法、装置、设备、介质及产品
本申请要求于2023年11月17日提交的申请号为202311545552.6、发明名称为“虚拟物体的编辑方法、装置、设备、介质及产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及互联网技术领域,特别涉及一种虚拟元素的编辑方法、装置、设备、介质及产品。
背景技术
UGC(User Generated Content,用户生成内容)指用户在互联网上共享的自创内容。在游戏领域,设计者会通过在游戏内提供相应的UGC编辑能力,鼓励用户参与到关卡地图、玩法、生态等游戏内容的设计中。其中,三维物体是常见的UGC内容。
相关技术中,玩家可以通过使用多个相同的三维物体,手动对其进行旋转、平移等操作,使三维物体之间呈现镜像效果,以丰富物体的结构。然而,上述方式需要玩家具备较强的空间想象能力,才能够实现三维物体的镜像效果,操作门槛较高。
发明内容
本申请实施例提供了一种虚拟元素的编辑方法、装置、设备、介质及产品。所述技术方案如下:
一方面,提供了一种虚拟场景中虚拟元素的编辑方法,由计算机设备执行,所述方法包括:
显示虚拟场景中的第一虚拟元素;
响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系,所述镜像坐标系中包括多个镜像坐标轴,所述多个镜像坐标轴形成至少两个镜像轴面,所述镜像轴面用于模拟镜面对所述第一虚拟元素进行镜像处理;
响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果。
另一方面,提供了一种虚拟场景中虚拟元素的编辑装置,所述装置包括:
物体显示模块,用于显示虚拟场景中的第一虚拟元素;
坐标系显示模块,用于响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系,所述镜像坐标系中包括多个镜像坐标轴,所述多个镜像坐标轴形成至少两个镜像轴面,所述镜像轴面用于模拟镜面对所述第一虚拟元素进行镜像处理;
镜像结果显示模块,用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果。另一方面,提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如上述本申请实施例中任一所述的虚拟场景中虚拟元素的编辑方法。
另一方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如上述本申请实施例中任一所述的虚拟场景中虚拟元素的编辑方法。
另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例中任一所述的虚拟场景中虚拟元素的编辑方法。
本申请实施例提供的技术方案带来的有益效果至少包括:
通过接收对第一虚拟元素(UGC物体)的镜像触发操作,显示镜像坐标系,镜像坐标系中的多个镜像轴面,能够提供对第一虚拟元素进行镜像处理时的翻转参考面,提高用户在对第一虚拟元素进行编辑时的便捷程度。接收对镜像轴面的触发操作,能够自动显示第一虚拟元素基于镜像轴面翻转后的镜像结果,使第一虚拟元素的结构展示效果更加清晰直观,提高用户设计第一虚拟元素结构时的效率。
附图说明
图1是本申请一个示例性实施例提供的在虚拟场景中显示镜像坐标系的示意图;
图2是本申请一个示例性实施例提供的电子设备的结构框图;
图3是本申请一个示例性实施例提供的计算机系统的结构框图;
图4是本申请一个示例性实施例提供的虚拟场景中虚拟元素的编辑方法的流程图;
图5是本申请一个示例性实施例提供的编辑功能选项的示意图;
图6是本申请一个示例性实施例提供的编辑功能选项跟随第一虚拟元素的示意图;
图7是本申请一个示例性实施例提供的镜像功能选项的触发过程示意图;
图8是本申请一个示例性实施例提供的对目标镜像选项的选择过程示意图;
图9是本申请一个示例性实施例提供的对第一虚拟元素进行中心镜像处理的示意图;
图10是本申请一个示例性实施例提供的对第一虚拟元素进行贴面镜像处理的示意图;
图11是本申请一个示例性实施例提供的对多个第一虚拟元素的编辑方法的流程图;
图12是本申请一个示例性实施例提供的选中多个第一虚拟元素的示意图;
图13是本申请一个示例性实施例提供的对第一虚拟元素对应的虚拟模组进行中心镜像处理的示意图;
图14是本申请一个示例性实施例提供的对第一虚拟元素对应的虚拟模组进行贴面镜像处理的示意图;
图15是本申请一个示例性实施例提供的对第一虚拟元素同时进行镜像和复制的方法流程图;
图16是本申请一个示例性实施例提供的对第一虚拟元素进行复制触发的示意图;
图17是本申请一个示例性实施例提供的虚拟场景中虚拟元素的编辑装置的结构框图;
图18是本申请另一个示例性实施例提供的虚拟场景中虚拟元素的编辑装置的结构框图;
图19是本申请一个示例性实施例提供的计算机设备的结构框图。
具体实施方式
针对本申请实施例中涉及的名词进行简单介绍:
UGC(User Generated Content,用户生成内容):即用户原创内容。用户将自己原创的内容通过互联网平台进行展示或者提供给其他用户。
在游戏应用程序或基于虚拟场景的应用程序中,通过在应用程序内提供一些必要的机制和相应的UGC编辑能力,鼓励用户参与到关卡、地图、玩法、生态等游戏内容的设计当中,以增加游戏过程中的趣味性。
在游戏应用程序或者一些基于虚拟场景的应用程序中,玩家通常能够控制虚拟场景中的虚拟物品,或对虚拟场景中的虚拟物品进行编辑,如:更改虚拟元素的形态、外观、数量;控制虚拟元素执行运动;通过应用程序提供的功能创造虚拟元素。
示意性的,玩家能够对具有可编辑属性的虚拟元素进行编辑,实现虚拟元素的组合。
可选地,可编辑虚拟元素包括第一虚拟元素,玩家可以通过对可编辑虚拟元素进行移动、旋转、缩放等编辑操作,更改第一虚拟元素的形态,当可编辑虚拟元素还包括第二虚拟元素时,玩家还可以将第一虚拟元素与第二虚拟元素组合成一个虚拟模组。或者,玩家可以通过更改虚拟元素的方位,构建具有对称结构的虚拟模组等。
在一些基于虚拟场景的应用程序中,虚拟元素为三维虚拟元素,三维虚拟元素的结构相较于二维虚拟元素更为丰富和复杂,玩家对三维虚拟元素进行编辑时,若仅仅通过简单的平 移、旋转等操作,无法精确的获得结构复杂的虚拟元素。
对于使用手机终端的用户,使用脚本编辑器的方式对三维元素的结构进行编辑操作难度较高。并且,通过撰写代码脚本的方式,需要用户有一定的编程基础和较强的空间想象能力,对于玩家操作的门槛较高,操作过程较为困难,无法正常被大多数玩家使用。
而本申请提供了一种虚拟场景中虚拟元素的编辑方法,可在终端上操作,终端上安装有基于虚拟场景的应用程序。通过在应用程序中预先设置对虚拟元素进行编辑的功能,触发对应控件即可控制虚拟元素进行旋转、三维镜像、平移等复杂运动,便于玩家充分了解虚拟元素的结构,实现对虚拟元素的编辑、组合、设计、复制等操作。以镜像功能为例,当触发虚拟场景中指定虚拟元素的镜像功能时,显示该指定虚拟元素对应的镜像坐标系。其中,镜像坐标系的原点是指定虚拟元素上预设的参考点,镜像坐标系中包括多个镜像坐标轴,镜像坐标轴形成至少两个镜像轴面。镜像轴面用于提供对虚拟元素进行镜像处理的翻转参考面,用户可以根据镜像轴面对指定虚拟元素进行镜像处理,得到高度对称的虚拟元素,无需用户手动控制虚拟元素的翻转,在设计虚拟元素的结构时,提高操作效率和翻转操作的精确度。
示意性的,如图1所示,图1是在虚拟场景中显示镜像坐标系的示意图。虚拟场景100中存在被选中的指定虚拟元素110,接收对指定虚拟元素110的镜像触发操作后,会对应显示镜像坐标系120。可选地,镜像坐标系120的原点是指定虚拟元素110的中心,镜像坐标系100中包括多个镜像坐标轴121,和多个由镜像坐标轴121所形成的多个镜像轴面122。
触发多个镜像轴面122中的任意一个轴面,对应显示指定虚拟元素110以该镜像轴面122为翻转参考面的镜像结果。
值得注意的是,镜像坐标系中包含的镜像坐标轴的数量和位置可以是任意的,图1中以3个镜像轴面为例进行说明,在一些实施例中,镜像轴面在镜像坐标系中的位置和数量也可以是任意的。
本申请中的终端可以是台式计算机、膝上型便携计算机、手机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器等等。该终端中安装和运行有支持虚拟场景的应用程序,比如支持三维虚拟场景的应用程序。该应用程序可以是虚拟现实应用程序、三维地图程序、策略类游戏(Simulation Game,SLG)、多人在线战术竞技游戏(Multiplayer Online Battle Arena Games,MOBA)中的任意一种。可选地,该应用程序可以是单机版的应用程序,比如单机版的三维游戏程序,也可以是网络联机版的应用程序。
图2示出了本申请一个示例性实施例提供的电子设备的结构框图。该电子设备200包括:操作系统220和应用程序222。操作系统220是为应用程序222提供对计算机硬件的安全访问的基础软件。应用程序222是支持虚拟场景的应用程序。可选地,应用程序222是支持三维虚拟场景的应用程序。该应用程序222可以是虚拟现实应用程序、三维地图程序、TPS游戏(Third-Person Shooter,第三人称射击游戏)、FPS游戏(First-Person Shooter,第一人称射击游戏)、MOBA游戏、SLG游戏中的任意一种。该应用程序222可以是单机版的应用程序,比如单机版的三维游戏程序,也可以是网络联机版的应用程序。
图3示出了本申请一个示例性实施例提供的计算机系统的结构框图。该计算机系统300包括:第一设备320、服务器340和第二设备360。第一设备320安装和运行有支持虚拟场景的应用程序。该应用程序可以是虚拟现实应用程序、三维地图程序、TPS游戏、FPS游戏、MOBA游戏、SLG游戏中的任意一种。第一设备320是第一用户使用的设备,第一用户使用第一设备320控制位于虚拟场景中的主控虚拟对象进行活动,该活动包括但不限于:调整身体姿态、步行、奔跑、跳跃攻击中的至少一种。示意性的,主控虚拟对象是主控虚拟人物,比如仿真人物角色或动漫人物角色。第一设备320通过无线网络或有线网络与服务器340相连。服务器340包括一台服务器、多台服务器、云计算平台和虚拟化中心中的至少一种。服 务器340用于为支持三维虚拟场景的应用程序提供后台服务。可选地,服务器340承担主要计算工作,第一设备320和第二设备360承担次要计算工作;或者,服务器340承担次要计算工作,第一设备320和第二设备360承担主要计算工作;或者,服务器340、第一设备320和第二设备360三者之间采用分布式计算架构进行协同计算。
第二设备360安装和运行有支持虚拟场景的应用程序。该应用程序可以是虚拟现实应用程序、三维地图程序、FPS游戏、MOBA游戏、SLG游戏中的任意一种。第二设备360是第二用户使用的设备,第二用户使用第二设备360控制位于虚拟场景中的其他虚拟对象进行活动,该活动包括但不限于:调整身体姿态、步行、奔跑、跳跃攻击中的至少一种。示意性的,其他虚拟对象是其他虚拟人物,比如仿真人物角色或动漫人物角色。
可选地,主控虚拟人物和其他虚拟人物处于同一虚拟场景中。可选地,主控虚拟人物和其他虚拟人物可以属于同一个队伍、同一个组织、具有好友关系或具有临时性的通讯权限。可选地,主控虚拟人物和其他虚拟人物也可以属于不同队伍、不同组织、或具有敌对性的两个团体。可选地,第一设备320和第二设备360上安装的应用程序是相同的,或两个设备上安装的应用程序是不同控制系统平台的同一类型应用程序。第一设备320可以泛指多个设备中的一个,第二设备360可以泛指多个设备中的一个,本实施例仅以第一设备320和第二设备360来举例说明。第一设备320和第二设备360的设备类型相同或不同。以下实施例以设备是台式计算机来举例说明。
本领域技术人员可以知晓,上述设备的数量可以更多或更少。比如上述设备可以仅为一个,或者上述设备为几十个或几百个,或者更多数量。本申请实施例对设备的数量和设备类型不加以限定。值得注意的是,上述服务器340可以实现为物理服务器,也可以实现为云端的云服务器。可选地,当服务器340实现为云服务器,上述虚拟场景对应的程序可以是云游戏。
在一些实施例中,本申请实施例提供的方法可以应用于云游戏场景中,从而通过云服务器完成游戏过程中数据逻辑的计算,而终端负责游戏界面的显示。
可选地,上述服务器340还可以实现为区块链系统中的节点。
结合上述名词简介和应用场景,对本申请提供的虚拟场景中虚拟元素的编辑方法进行说明,该方法可以由服务器或者终端执行,也可以由服务器和终端共同执行,本申请实施例中,以该方法由终端执行为例进行说明,终端中安装有基于虚拟场景的应用程序,可以通过应用程序对应的UGC编辑器,对虚拟场景中的虚拟元素进行编辑。如图4所示,图4是本申请一个示例性实施例提供的虚拟场景中虚拟元素的编辑方法的流程图。该方法包括如下步骤。
步骤410,显示虚拟场景中的第一虚拟元素。
其中,第一虚拟元素是UGC(User Generated Content,用户生成内容)物体或对象,UGC物体是可编辑的物体。可选地,第一虚拟元素可以是虚拟场景中的虚拟物体,也可以是虚拟场景中的虚拟活动对象,如:虚拟角色、虚拟宠物等。可选地,虚拟场景中存在至少一个虚拟元素,至少一个虚拟元素中包括第一虚拟元素,其中,第一虚拟元素是可编辑的虚拟元素。终端界面中还显示有UGC编辑器,UGC编辑器用于提供对第一虚拟元素进行编辑的功能。
接收针对第一虚拟元素的选中操作,如:接收对第一虚拟元素的单击操作,第一虚拟元素被选中进入可编辑模式,在终端界面上对应显示编辑功能选项,编辑功能选项中包括多种功能,用于对第一虚拟元素进行编辑。接收针对编辑功能选项中目标功能选项的触发操作,根据该目标功能选项所提供的功能对第一虚拟元素进行编辑,并显示编辑后的第一虚拟元素。
示意性的,如图5所示,图5是一个编辑功能选项的示意图。在虚拟场景500中显示第一虚拟元素510,选中第一虚拟元素510后,第一虚拟元素510进入可编辑模式,显示对应的编辑功能选项520。示例性的,编辑功能选项520中包括如下几种功能选项。
(1)移动功能,控制第一虚拟元素510移动,更改第一虚拟元素510在虚拟场景500中的位置;(2)旋转功能,控制第一虚拟元素510进行旋转,更改第一虚拟元素510在虚拟场景500中的姿态和角度;(3)缩放功能,对第一虚拟元素510的大小进行控制,实现第一虚 拟元素510的放大、缩小;(4)镜像功能:对第一虚拟元素510进行镜像处理,使第一虚拟元素510的结构对称变化;(5)删除功能:删除第一虚拟元素510后,虚拟场景500不再显示该第一虚拟元素510;(6)编辑功能:对第一虚拟元素510的外形、颜色、结构等参数进行编辑,改变第一虚拟元素510的外观。
上述示例中仅示例了6种功能选项作为编辑功能选项,编辑功能选项中包含的功能选项还可以是其他类型的功能,本实施例对此不加以限定。
编辑功能选项在显示区域中的位置可以是固定的,如:默认固定在终端界面的左上角、左下角或正下方。或者,用户也可以自定义编辑功能选项固定的位置,其中,如图5所示的编辑功能选项在显示区域中的位置是固定在终端界面的正下方。在一些实施例中,为了提高对第一虚拟元素进行编辑时的灵活性和便捷程度,也可以随时更改编辑功能选项的位置。
在一些实施例中,还可以将编辑功能选项设置为跟随式,当在应用程序中切换视角使得第一虚拟元素在终端界面上所显示的位置发生变化时,编辑功能选项在终端界面上所显示的位置也会相应发生变化,如:第一视角下,第一虚拟元素在终端界面上的位置为第一位置,编辑功能选项在终端界面上的位置为第一相对位置;当第一视角切换为第二视角时,第一虚拟元素在终端界面上的位置为第二位置,编辑功能选项在终端界面上的位置为第二相对位置。或者,在虚拟场景中移动第一虚拟元素时,编辑功能选项自动跟随第一虚拟元素,也即,第一虚拟元素与编辑功能选项之间的相对位置保持相对位置不变。
示意性的,如图6所示,图6是一个编辑功能选项跟随第一虚拟元素的示意图。
其中,第一虚拟元素610的周围显示有编辑功能选项620,编辑功能选项620以环形方式显示多个功能选项。值得注意的是,编辑功能选项跟随第一虚拟元素的显示方式包括但不限于图6示例的方式。
步骤420,响应于接收到对第一虚拟元素的镜像触发操作,显示镜像坐标系。
可选地,接收对第一虚拟元素的镜像触发操作的方式包括但不限于如下几种:(1)在终端界面上显示镜像功能对应的虚拟控件,先后接收对第一虚拟元素的选择操作和虚拟控件的触发操作;(2)先接收对第一虚拟元素的选择操作,再接收滑动操作,根据滑动操作对应的滑动轨迹触发镜像功能。
其中,镜像坐标系中包括多个镜像坐标轴,多个镜像坐标轴形成至少两个镜像轴面,镜像轴面用于提供对第一虚拟元素进行镜像处理的翻转参考面。
以三维虚拟场景为例,镜像坐标系中包括3个镜像坐标轴,每个轴对应三维虚拟场景中的一个方向,其中,每2个镜像坐标轴之间构成一个镜像轴面,则,镜像坐标系中共包含3个镜像轴面。可选地,镜像坐标系包括3个镜像坐标轴和3个镜像轴面,其中,每个镜像轴面由2个镜像坐标轴构成,镜像坐标轴之间不重合,且镜像轴面之间不重合。
可选地,响应于接收到对第一虚拟元素的编辑功能选项中镜像选项的触发操作,显示镜像坐标系。示意性的,如图7所示,第一虚拟元素710的编辑功能选项720中包含镜像功能选项721,触发镜像功能选项721也即接收到对第一虚拟元素的镜像触发操作,显示镜像坐标系730。在一些实施例中,响应于接收到对第一虚拟元素的镜像触发操作,基于虚拟场景中的第一参考点显示镜像坐标系,其中,第一参考点是基于第一虚拟元素确定的位置点,如:镜像坐标系与第一虚拟元素保持相对位置固定,或者,第一参考点是虚拟场景中的预设位置点。其中,基于虚拟场景中的第一参考点显示镜像坐标系,将第一参考点作为镜像坐标系的原点,并使得第一虚拟元素与镜像坐标系之间保持相对位置固定,能够在对第一虚拟元素进行镜像操作时以及应用程序切换视角时,保证物体结构的对称性和稳定性,避免因误触而导致的镜像坐标系偏离第一虚拟元素,提高镜像操作的效率。
另外,若第一参考点是虚拟场景中的预设位置点,则根据预先设计好的位置点作为第一参考点对虚拟场景中的所有虚拟元素进行统一的镜像处理操作,提高了镜像处理的规律性,提高了对虚拟场景进行设计的效率。可选地,第一参考点700是第一虚拟元素710的中心。
如图7所示,虚拟场景中的第一参考点700是镜像坐标系730的原点,镜像坐标系730 包含多个镜像坐标轴731和镜像轴面732。
步骤430,响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,显示第一虚拟元素基于第一镜像轴面的镜像结果。
可选地,对第一虚拟元素进行镜像处理的方式存在至少一种,在接收对镜像坐标系中镜像坐标轴的触发操作之前,先对第一虚拟元素的镜像方式进行确定。
接收到对第一虚拟元素的镜像触发操作后,在显示镜像坐标系的同时,显示镜像选项。
镜像选项中包括中心镜像选项和贴面镜像选项,其中,中心镜像选项表示以第一虚拟元素的中心作为镜像翻转中心点,贴面镜像选项表示第一虚拟元素以预设边缘作为镜像翻转中心轴。本实施例提供的方法,提供了两种镜像选项,中心镜像选项和贴面镜像选项,提高了镜像操作种类的丰富性。在中心镜像时基于镜像翻转中心点对第一虚拟元素进行镜像翻转,更改第一虚拟元素的朝向,提高了镜像操作的效率。在贴面镜像时基于镜像翻转中心轴对第一虚拟元素进行镜像翻转,更改第一虚拟元素的位置,提高了镜像操作的效率。
接收在镜像选项中对中心镜像选项和贴面镜像选项中的任意一种选项的选择操作。接收在镜像选项中对目标镜像选项的选择操作,目标镜像选项包括中心镜像选项和贴面镜像选项中的任意一种。示意性的,如图8所示,图8是一个对目标镜像选项的选择过程示意图。触发第一虚拟元素810对应的镜像功能选项820后,镜像功能选项820对应的控件形态发生变化,由普通态821变为选中态822。此时,可以通过触发镜像选项830,展开显示中心镜像选项831和贴面镜像选项832,从中心镜像选项和贴面镜像选项中任选一种镜像选项作为目标镜像选项。当确定目标镜像选项后,接收在至少两个镜像轴面中对第一镜像轴面的触发操作,显示第一虚拟元素以第一镜像轴面为翻转参考面的镜像结果。
可选地,响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,且中心镜像选项被选择,显示以第一虚拟元素的中心作为镜像翻转中心点,以第一镜像轴面作为翻转参考面,对第一虚拟元素进行镜像翻转的镜像结果。
示意性的,如图9所示,图9是一个对第一虚拟元素进行中心镜像处理的示意图。第一虚拟元素910的中心为镜像坐标系的原点,也即,第一虚拟元素的中心作为镜像翻转中心点,其中,镜像坐标系包含3个镜像轴面,分别为镜像轴面X、镜像轴面Y和镜像轴面Z。
示例性的,将镜像轴面Z作为第一镜像轴面,对第一虚拟元素910进行镜像翻转,得到镜像翻转结果920,镜像翻转结果920与第一虚拟元素910关于镜像轴面Z镜像。
值得注意的是,对第一虚拟元素910进行镜像翻转后,仅显示镜像翻转结果920,第一虚拟元素910边框为虚线用于示例第一虚拟元素910翻转前后的变化。
可选地,响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,且贴面镜像选项被选择,显示以第一虚拟元素的第一边缘作为镜像翻转中心轴,以第一镜像轴面作为翻转参考面,对第一虚拟元素进行镜像翻转的镜像结果。
示意性的,如图10所示,图10是一个对第一虚拟元素进行贴面镜像处理的示意图。第一虚拟元素1010的第一边缘为镜像翻转中心轴,镜像坐标系包含3个镜像轴面,分别为镜像轴面X、镜像轴面Y和镜像轴面Z。示例性的,将镜像轴面Z作为第一镜像轴面,对第一虚拟元素1010进行镜像翻转,得到镜像翻转结果1020,镜像翻转结果1020与第一虚拟元素1010关于镜像轴面Z镜像。可选地,若第一边缘为直线,则将该直线作为镜像翻转中心轴,若该第一边缘为曲线,则将选中的组合边缘的切线作为镜像翻转中心轴。值得注意的是,对第一虚拟元素1010进行镜像翻转后,仅显示镜像翻转结果1020,第一虚拟元素1010边框为虚线用于示例第一虚拟元素1010翻转前后的变化。
在一些实施例中,可以同时选中多个镜像轴面对第一虚拟元素进行镜像翻转,包括如下几种情况。
1、响应于接收到在至少两个镜像轴面中对多个镜像轴面的触发操作,显示第一虚拟元素依次以多个镜像轴面为翻转参考面的镜像结果,其中,第一虚拟元素的镜像翻转过程符合第一选择顺序条件,第一选择顺序条件用于指示多个镜像轴面被选中的次序;
示例性的,按照先后顺序选中第一镜像轴面和第二镜像轴面,则镜像结果是指:先显示第一虚拟元素(位于第一位置)以第一镜像轴面为翻转参考面进行翻转的第一镜像结果(位于第二位置),再显示第一虚拟元素(位于第一位置)以第二镜像轴面为翻转参考面进行翻转的第二镜像结果(位于第三位置)。在该镜像过程中,第一虚拟元素的数量增加至2,第一虚拟元素的位置由第一位置更改至第二位置和第三位置。
2、响应于接收到在至少两个镜像轴面中对多个镜像轴面的触发操作,显示第一虚拟元素同时以多个镜像轴面为翻转参考面的镜像结果;
示例性的,选中第一镜像轴面和第二镜像轴面,则镜像结果是指:同时显示第一虚拟元素(位于第一位置)以第一镜像轴面为翻转参考面进行翻转的第一镜像结果(位于第二位置),以及,第一虚拟元素(位于第一位置)以第二镜像轴面为翻转参考面进行翻转的第二镜像结果(位于第三位置)。在该镜像过程中,第一虚拟元素的数量增加至2,第一虚拟元素的位置由第一位置更改至第二位置和第三位置。
3、响应于接收到在至少两个镜像轴面中对多个镜像轴面的触发操作,显示第一虚拟元素以多个镜像轴面为翻转参考面的镜像结果,其中,第一虚拟元素的镜像过程中,基于第i+1个镜像轴面的翻转过程是在第i个镜像轴面的翻转结果基础上进行的,i为正整数;
示例性的,按照先后顺序选中第一镜像轴面和第二镜像轴面,则镜像结果是指:先显示第一虚拟元素(位于第一位置)以第一镜像轴面为翻转参考面进行翻转的过程,(此时第一虚拟元素位于第二位置),再显示第一虚拟元素(位于第二位置)以第二镜像轴面为翻转参考面进行翻转的镜像结果(位于第三位置)。在该镜像过程中,第一虚拟元素的数量不变,第一虚拟元素的位置由第一位置更改至第三位置。
通过多个镜像轴面触发对第一虚拟元素的多次镜像处理,提高了对第一虚拟元素进行镜像处理的效率,避免根据次数累积对第一虚拟元素进行镜像处理,提高了人机交互效率。
在一些实施例中,为了提高对第一虚拟元素镜像过程的趣味性,使得镜像结果更丰富,还可以在镜像之前对镜像轴面的外观进行设置,使得第一虚拟元素以镜像轴面进行翻转之后,对应更改第一虚拟元素的外观。
响应于接收到对至少两个镜像轴面中第一镜像轴面的选择操作,显示与第一镜像轴面对应的表现特征选项,表现特征选项用于调整第一镜像轴面的外观表现;响应于接收到对第一表现特征选项的触发操作,显示以第一表现特征作为外观表现的第一镜像轴面;响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,显示第一虚拟元素以第一镜像轴面为翻转参考面,以第一表现特征作为外观表现的镜像结果。
示例性的,第一镜像轴面的表现特征选项中包括:(1)颜色选项,用于更改第一镜像轴面的颜色;(2)体积选项,用于更改第一镜像轴面的大小;(3)纹理选项:用于更改第一镜像轴面的纹理等;(4)特效选项,用于向第一镜像轴面叠加特效效果,如,闪光特效、闪烁特效、边缘高亮特效等。
可选地,第一表现特征包括:将第一镜像轴面的颜色设置为蓝色、将第一镜像轴面的体积设置为默认体积的2倍、将第一镜像轴面的纹理设置为斑点。
则,第一虚拟元素以第一镜像轴面为翻转参考面进行翻转时,对应的镜像结果为:镜像后的第一虚拟元素的颜色叠加蓝色滤镜、体积变为默认体积的2倍且外表面存在斑点。
上述表现特征选项中的多个选项可以是单独实现的,也可以是共同搭配实现的,本实施例对此不加以限定。
通过提供表现特征选项,在对第一虚拟元素进行镜像处理时,结合被选中的第一表现特征选项对进行结果进行表现特征的配置,如上述颜色设置、体积设置等,提高了镜像处理过程中对镜像结果外观的设计和配置效率,无需在镜像处理后,再针对镜像后的元素额外设置外观特征,提高了设计虚拟元素的人机交互效率。在一些实施例中,若触发镜像轴面的操作为误触,也可以在预设时间内取消镜像操作,此时第一虚拟元素不会发生变化。
可选地,接收在至少两个镜像轴面中对第一镜像轴面的触发操作;响应于在接收到对第 一镜像轴面的触发操作后的预设时长内,接收到镜像取消操作,显示镜像取消提示信息。
示例性的,预设时长为1秒,镜像取消操作的种类包括但不限于如下几种:(1)在预设时长内再次触发第一镜像轴面;(2)在预设时长内滑动取消,滑动手势可以是任意的;(3)在预设时长内触发镜像取消操作对应的目标虚拟控件。
综上所述,本申请提供的方法,通过接收对第一虚拟元素(UGC物体)的镜像触发操作,显示镜像坐标系,镜像坐标系中的多个镜像轴面,能够提供对第一虚拟元素进行镜像处理时的翻转参考面,提高用户在对第一虚拟元素进行编辑时的便捷程度。接收对镜像轴面的触发操作,能够自动显示第一虚拟元素基于镜像轴面翻转后的镜像结果,使第一虚拟元素的结构展示效果更加清晰直观,提高用户设计第一虚拟元素结构时的效率。
上述实施例以对一个第一虚拟元素进行编辑操作为例进行说明,在一些实施例中,虚拟场景中存在多个可编辑的第一虚拟元素,可以使用UGC编辑器所提供的多选功能,同时选中多个第一虚拟元素进行编辑。如图11所示,图11是本申请一个示例性实施例提供的对多个第一虚拟元素的编辑方法的流程图,由终端执行,该方法包括如下步骤。
步骤1110,显示虚拟场景中的第一虚拟元素。
其中,第一虚拟元素是UGC物体,UGC物体是可编辑的物体。
可选地,虚拟场景中存在多个第一虚拟元素,每个第一虚拟元素的外形和大小可以是任意的,可编辑的虚拟元素均可被称为第一虚拟元素。其中,虚拟元素种类划分的方式可以是任意的,如:根据虚拟元素的形状、大小、颜色、对称性进行划分。
步骤1120,响应于接收到对多个第一虚拟元素的镜像触发操作,确定多个第一虚拟元素中至少一个第一虚拟元素对应的中心点并基于中心点显示镜像坐标系。
该镜像触发操作时针对多个第一虚拟元素的操作,示意性的,如图12所示,图12是一个选中多个第一虚拟元素的示意图。虚拟场景1200中存在多个第一虚拟元素1210,触发多选控件1221可以选中任意数量个第一虚拟元素1210。
其中,多选控件1221对应的选择方式包括如下两种:(1)点选:通过多次点击不同的第一虚拟元素1210的方式多选;(2)点选+框选:通过接收滑动,根据滑动操作自动显示用于包含第一虚拟元素1210的虚线框,位于虚线框内的第一虚拟元素1210则被选中;若第一虚拟元素1210位置较为分散,无法仅通过滑动操作框选出所有需要进行编辑的第一虚拟元素1210,也可以继续点击未被选中的第一虚拟元素1210,将点选操作和框选操作所选择的所有第一虚拟元素1210共同作为被选中的第一虚拟元素1210。
其中,确定多个第一虚拟元素中至少一个第一虚拟元素对应的中心点,包括但不限于如下几种情况。(1)按照选中第一虚拟元素的顺序对多个第一虚拟元素进行排列,确定每个第一虚拟元素对应的序号,根据预设要求从中选择一个序号,将该序号对应的第一虚拟元素的中心点作为显示镜像坐标系的中心点。如:选中了3个第一虚拟元素,将序号为3的第一虚拟元素的中心点作为显示镜像坐标系的中心点;(2)对选中的多个第一虚拟元素进行组合操作,将多个第一虚拟元素中的至少一个第一虚拟元素组合成一个虚拟模组,将该虚拟模组的中心点作为显示镜像坐标系的中心点。如:选中了5个第一虚拟元素,将这5个第一虚拟元素组成得到一个虚拟模组,将该虚拟模组的中心点作为显示镜像坐标系的中心点,基于第一参考点显示镜像坐标系;或者,选中了5个第一虚拟元素,将其中3个第一虚拟元素组成得到一个虚拟模组,将该虚拟模组的中心点作为显示镜像坐标系的中心点。可选地,在接收到对多个第一虚拟元素的镜像触发操作的情况下,接收对多个第一虚拟元素中至少一个虚拟元素的组合选择操作,组合选择操作用于对被选中的至少一个虚拟元素进行组合,得到虚拟模组;确定该虚拟模组对应的中心点,基于虚拟模组的中心点显示镜像坐标系。
示意性的,如图12所示,触发组合控件1222可以选中任意数量个第一虚拟元素1210进行组合,得到对应的虚拟模组1230。示例性的,将选中的多个第一虚拟元素1210全部进行组合,得到虚拟模组1230,基于虚拟模组1230的中心点显示镜像坐标系1240。
可以接收对多个第一虚拟元素的镜像触发操作,根据多个第一虚拟元素确定第一参考点的位置,以显示镜像坐标系,实现对多个第一虚拟元素的同时镜像。可以对多个第一虚拟元素进行组合得到对应的虚拟模组,能够提高虚拟元素结构的复杂性和对称性。
步骤1130,响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,显示第一虚拟元素以第一镜像轴面为翻转参考面的镜像结果。
可选地,对第一虚拟元素进行镜像处理的方式存在至少一种,在接收对镜像坐标系中镜像坐标轴的触发操作之前,先对第一虚拟元素的镜像方式进行确定。
接收到对第一虚拟元素的镜像触发操作后,在显示镜像坐标系的同时,显示镜像选项。
镜像选项中包括中心镜像选项和贴面镜像选项,其中,中心镜像选项表示以第一虚拟元素的中心作为镜像翻转中心点,贴面镜像选项表示第一虚拟元素以预设边缘作为镜像翻转中心轴。接收在镜像选项中对目标镜像选项的选择操作,目标镜像选项包括中心镜像选项和贴面镜像选项中的任意一种。可选地,目标镜像选项为中心镜像选项且第一镜像轴面作为翻转参考面时,对多个第一虚拟元素进行镜像翻转的镜像结果,包括如下几种情况。
1.1响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,且中心镜像选项被选择,显示以多个第一虚拟元素的组合中心作为镜像翻转中心点,以第一镜像轴面作为翻转参考面,对多个第一虚拟元素进行镜像翻转的镜像结果;
如图13所示,图13是一个对第一虚拟元素对应的虚拟模组进行中心镜像处理的示意图。
多个第一虚拟元素组合成的虚拟模组1310的中心为镜像坐标系的原点,也即,虚拟模组1310的中心作为镜像翻转中心点,其中,镜像坐标系包含3个镜像轴面,分别为镜像轴面X、镜像轴面Y和镜像轴面Z。
示例性的,将镜像轴面Z作为第一镜像轴面,对虚拟模组1310进行镜像翻转,得到镜像翻转结果1320,镜像翻转结果1320与虚拟模组1310关于镜像轴面Z镜像。
值得注意的是,对虚拟模组1310进行镜像翻转后,仅显示镜像翻转结果1320,虚拟模组1310边框为虚线用于示例虚拟模组1310翻转前后的变化。
以多个第一虚拟元素的组合中心作为镜像翻转中心点,提高了多个第一虚拟元素之间的整体性,以及对多个第一虚拟元素进行整体镜像时的规律性,提高了对多个第一虚拟元素的镜像处理效率。
1.2响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,且中心镜像选项被选择,显示以多个第一虚拟元素中的指定虚拟元素的中心作为镜像翻转中心点,以第一镜像轴面作为翻转参考面,对多个第一虚拟元素进行镜像翻转的镜像结果。
将虚拟模组的组合中心或虚拟模组中指定虚拟元素的中心点作为镜像翻转中心点,对虚拟模组进行中心镜像翻转,更改虚拟模组的朝向,提高了对虚拟元素进行批量镜像处理的效率。
其中,指定虚拟元素是多个第一虚拟元素中符合选择顺序条件的虚拟元素,选择顺序条件用于指示指定虚拟元素在多个第一虚拟元素中被选中进行镜像翻转的次序要求。
可选地,符合选择顺序条件是指指定虚拟元素是多个第一虚拟元素中最后一个被选中的第一虚拟元素。
按照选中第一虚拟元素的顺序对多个第一虚拟元素进行增序排序,每个第一虚拟元素对应有自身的序号,将序号最大的第一虚拟元素确定为指定虚拟元素。示例性的,共选中5个第一虚拟元素,按照选中的顺序进行增序排序,序号分别为1、2、3、4、5,将序号为5的第一虚拟元素作为指定虚拟元素,以指定虚拟元素的中心作为镜像翻转中心点。
值得注意的是,选择顺序条件可以是任意的,从多个第一虚拟元素中确定指定虚拟元素的方式除了上述用于示例的基于选择顺序条件确定的方式,还可以使用其他任意的方式,本实施例对此不加以限定。
以多个第一虚拟元素中指定虚拟元素的中心作为镜像翻转中心点,提高了对多个第一虚拟元素进行整体镜像时的灵活性,增加了对多个第一虚拟元素进行整体镜像时,镜像参考点 的选择范围,提高了对多个第一虚拟元素的镜像处理效率。
其中,按照选择顺序确定多个第一虚拟元素中的指定虚拟元素,在对多个第一虚拟元素的选择过程中,将指定虚拟元素隐含在多个第一虚拟元素的选择过程里,无需额外从多个第一虚拟元素中对指定虚拟元素进行选择,提高了指定虚拟元素的选择效率。
可选地,目标镜像选项为贴面镜像选项且第一镜像轴面作为翻转参考面时,对多个第一虚拟元素进行镜像翻转的镜像结果,包括如下几种情况。
2.1响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,且贴面镜像选项被选择,显示以多个第一虚拟元素的组合边缘作为镜像翻转中心轴,以第一镜像轴面作为翻转参考面,对多个第一虚拟元素进行镜像翻转的镜像结果;
如图14所示,图14是一个对第一虚拟元素对应的虚拟模组进行贴面镜像处理的示意图。
多个第一虚拟元素组合成的虚拟模组1410的组合边缘作为镜像翻转中心轴,其中,镜像坐标系包含3个镜像轴面,分别为镜像轴面X、镜像轴面Y和镜像轴面Z。
可选地,若组合边缘为直线,则将该直线作为镜像翻转中心轴,若该组合边缘为曲线,则将选中的组合边缘的切线作为镜像翻转中心轴。
示例性的,将镜像轴面Z作为第一镜像轴面,对虚拟模组1410进行镜像翻转,得到镜像翻转结果1420,镜像翻转结果1420与虚拟模组1410关于镜像轴面Z镜像。
值得注意的是,对虚拟模组1410进行镜像翻转后,仅显示镜像翻转结果1420,虚拟模组1410边框为虚线用于示例虚拟模组1410翻转前后的变化。
以多个第一虚拟元素的组合变为作为镜像翻转中心轴,提高了多个第一虚拟元素之间的整体性,以及对多个第一虚拟元素进行整体镜像时的规律性,提高了对多个第一虚拟元素的镜像处理效率。
2.2响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,且贴面镜像选项被选择,显示以多个第一虚拟元素中的指定虚拟元素的第二边缘作为镜像翻转中心轴,以第一镜像轴面作为翻转参考面,对多个第一虚拟元素进行镜像翻转的镜像结果。
本实施例提供的方法,将虚拟模组的组合边缘或虚拟模组中指定虚拟元素的第一边缘作为镜像翻转中心轴,对虚拟模组进行贴面镜像翻转,更改虚拟模组的位置,提高了对虚拟元素进行批量镜像处理的效率。
其中,指定虚拟元素是多个第一虚拟元素中符合选择顺序条件的虚拟元素,选择顺序条件用于指示指定虚拟元素在多个第一虚拟元素中被选中进行镜像翻转的次序要求。
以多个第一虚拟元素中指定虚拟元素的第二边缘作为镜像翻转中心轴,提高了对多个第一虚拟元素进行整体镜像时的灵活性,增加了对多个第一虚拟元素进行整体镜像时,镜像参考轴的选择范围,提高了对多个第一虚拟元素的镜像处理效率。
在一些实施例中,多个第一虚拟元素组成了一个完整的虚拟模组,除了将虚拟模组视为一个整体进行编辑(如,镜像等操作),还可以对虚拟模组中的部分第一虚拟元素进行编辑,仅改变该部分第一虚拟元素的形态。
示例性的,以接收到对虚拟模组中部分第一虚拟元素的镜像触发操作为例进行说明。
存在3个第一虚拟元素共同构成了虚拟模组B,分别为第一虚拟元素A1、第一虚拟元素A2、第一虚拟元素A3,可以仅对第一虚拟元素A1进行中心镜像,对应的镜像结果为第一镜像虚拟元素A11,该第一镜像虚拟元素A11仍然属于虚拟模组B。也即,虚拟模组B此时由第一镜像虚拟元素A11、第一虚拟元素A2、第一虚拟元素A3共同构成。
在一些实施例中,多个第一虚拟元素进行组合的方式除了上述用于示例的通过组合控件将多个第一虚拟元素组合为一个完整的虚拟模组,还可以通过在第一虚拟元素上附加其他虚拟元素,使得其他虚拟元素能够跟随第一虚拟元素进行变换。
示例性的,第一虚拟元素附加有至少一个第二虚拟元素,第二虚拟元素跟随第一虚拟元素。
响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,显示第一虚拟元素和 至少一个第二虚拟元素同时以第一镜像轴面为翻转参考面的镜像结果。
其中,第一虚拟元素可以附加多个第二虚拟元素,第二虚拟元素也可以附加其他虚拟元素,该附加关系也可称为父子关系,即第一虚拟元素为父物体,第二虚拟元素为子物体。父物体可以附加多个子物体,但一个子物体仅有一个父物体,每个子物体自身也可以作为父物体,附加自身的子物体。
对父物体进行编辑时,子物体会继承父物体的编辑属性,也即,对父物体进行编辑操作,子物体也会对应显示同样编辑操作后的编辑结果。仅对子物体进行编辑时,父物体不会发生变化。
示例性的,第一虚拟元素A附加有第二虚拟元素B,第二虚拟元素B附加有第三虚拟元素C。
则,仅对第一虚拟元素A进行编辑时,第二虚拟元素B和第三虚拟元素C都会对应显示同种编辑结果。仅对第二虚拟元素B进行编辑时,第三虚拟元素C会对应显示同种编辑结果,而第一虚拟元素A不发生变化。仅对第三虚拟元素C进行编辑时,第一虚拟元素A和第二虚拟元素B均不发生变化。
值得注意的是,每个虚拟元素附加的其他虚拟元素的种类和数量可以是任意的,附加后的形态可以是任意的,本实施例对此不加以限定。
综上所述,本申请提供的方法,通过接收对第一虚拟元素(UGC物体)的镜像触发操作,显示镜像坐标系,镜像坐标系中的多个镜像轴面,能够提供对第一虚拟元素进行镜像处理时的翻转参考面,提高用户在对第一虚拟元素进行编辑时的便捷程度。接收对镜像轴面的触发操作,能够自动显示第一虚拟元素基于镜像轴面翻转后的镜像结果,使第一虚拟元素的结构展示效果更加清晰直观,提高用户设计第一虚拟元素结构时的效率。
本实施例提供的方法,通过建立第一虚拟元素与第二虚拟元素之间的附加关系,能够仅对第一虚拟元素进行操作,同时实现对第一虚拟元素和第二虚拟元素的编辑过程,并显示对应的编辑结果,提高编辑效率和灵活性。
对虚拟场景中的虚拟元素进行编辑时,除了上述几个实施例中通过镜像功能选项对虚拟元素进行镜像的方式,还可以将其他类型的编辑操作与镜像操作叠加,共同控制虚拟元素,如:将复制虚拟元素的操作与镜像虚拟元素的操作结合。如图15所示,图15是本申请一个示例性实施例提供的对第一虚拟元素同时进行镜像和复制的方法流程图,该方法包括如下步骤。
步骤1510,显示虚拟场景中的第一虚拟元素。
其中,第一虚拟元素是UGC物体,UGC物体是可编辑的物体。
步骤1520,响应于接收到对第一虚拟元素的镜像触发操作,显示镜像坐标系。
镜像坐标系中包括多个镜像坐标轴,多个镜像坐标轴形成至少两个镜像轴面,镜像轴面用于提供对第一虚拟元素进行镜像处理的翻转参考面。
步骤1530,接收针对第一虚拟元素的复制触发操作。
示意性的,如图16所示,图16是一个对第一虚拟元素进行复制触发的示意图。
其中,触发复制控件1610后,显示复制数量提示语1620,复制数量提示语1620用于提示是否可以对当前选中的第一虚拟元素1600进行复制,复制数量提示语1620对应有复制数量的键入区域1623和单击控件1624。
若不可以复制,则键入区域1623表现为不可输入态1621,若可以复制,则键入区域1623表现为可输入态1622。
在第一虚拟元素1600可以复制的情况下,可以通过在键入区域1623中键入复制数量,如,键入数字2,则复制第一虚拟元素1600的数量为2;也可以通过触发单击控件1624对键入区域1623中的数字进行修改,每触发一次单击控件1624,则复制数量增加1。其中,键入区域1623中的默认数值为1。
示例性的,图16中的复制数量提示语1620表示,可以对第一虚拟元素1600进行复制。
步骤1540,响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,显示第一虚拟元素以第一镜像轴面为翻转参考面的镜像结果。
响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,基于复制触发操作显示与第一虚拟元素对应的第一复制虚拟元素,作为第一虚拟元素以第一镜像轴面为翻转参考面的镜像结果。
其中,复制操作与镜像操作的叠加效果是在原有虚拟元素的基础上,复制一个镜像虚拟元素。也即,第一虚拟元素以第一镜像轴面为翻转参考面的镜像结果中,除了镜像后的第一复制虚拟元素,还包括原始的第一虚拟元素。
在一些实施例中,除了上述通过触发复制控件以实现复制操作的方式,还可以通过对镜像坐标轴进行拖动实现复制第一虚拟元素的过程,值得注意的是,该复制操作所复制得到的虚拟元素与第一虚拟元素完全相同,也即,不具有镜像关系。
可选地,该拖动复制的过程可以在步骤1540之前进行,也可以在步骤1540之后进行,本实施例以该过程在步骤1540之前进行为例说明。
响应于接收到在多个镜像坐标轴中对第一镜像坐标轴的拖动操作,沿第一镜像坐标轴的拖动方向复制第一虚拟元素,显示第二复制虚拟元素。
在得到第二复制虚拟元素以后,再执行步骤1540,则可以对第一虚拟元素和第二复制虚拟元素进行同步镜像。也即,响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,显示第一虚拟元素和第二复制虚拟元素同时以第一镜像轴面为翻转参考面的镜像结果。通过拖动操作首先复制第一虚拟元素,得到第二复制虚拟元素,从而将第一虚拟元素和复制得到的第二复制虚拟元素作为整体进行同步镜像,提高了复制和镜像操作的人机交互效率。
值得注意的是,上述步骤1510至步骤1540是以对一个第一虚拟元素进行复制和镜像操作为例进行说明,在一些实施例中,也可以同时选中多个第一虚拟元素,同时对被选中的多个第一虚拟元素进行复制和镜像,获得镜像后的多个第一虚拟元素。
可选地,接收针对所述至少一个第一虚拟元素的复制触发操作,其中,至少一个第一虚拟元素之间可以存在组合关系,也可以不存在组合关系。
响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述至少一个第一虚拟元素以所述第一镜像轴面为翻转参考面的镜像结果。
示例性的,选中2个第一虚拟元素,分别为第一虚拟元素A和第一虚拟元素B。以第一虚拟元素A和第一虚拟元素B之间不存在组合关系为例进行说明。
(1)通过复制控件触发复制操作;
得到第一虚拟元素A的镜像虚拟元素A1和第一虚拟元素B的镜像虚拟元素B1,则镜像结果中共包括4个虚拟元素,分别为A、B、A1和B1;
(2)通过拖动方式触发复制操作;
第一种情况:先复制后镜像,先拖动镜像坐标系中的第一镜像坐标轴,同时对第一虚拟元素A和第一虚拟元素B复制,得到第一虚拟元素C和第一虚拟元素D;再触发镜像坐标系中的第一镜像轴面,同时对第一虚拟元素A、B、C、D进行镜像,得到镜像后的4个虚拟元素,分别为A1、B1、C1、D4,作为镜像结果。
第二种情况:先镜像后复制,先触发镜像坐标系中的第一镜像轴面,同时对第一虚拟元素A、B进行镜像,得到镜像后的2个虚拟元素,分别为A1、B1;再拖动镜像坐标系中的第一镜像坐标轴,同时对第一虚拟元素A1和第一虚拟元素B1复制,得到复制后的2个虚拟元素,分别为C1、D1,则镜像结果中包括A1、B1、C1和D1共4个虚拟元素。
示例性的,选中3个第一虚拟元素,分别为第一虚拟元素A、第一虚拟元素B和第一虚拟元素C。以第一虚拟元素A、第一虚拟元素B、第一虚拟元素C之间存在组合关系为例进行说明,则该3个第一虚拟元素共同构成一个虚拟模组。
此时,无论是通过拖动方式复制,还是通过触发复制控件的方式复制,都存在如下几种 情况:(1)以虚拟模组为整体,同时对虚拟模组进行先复制再镜像,或,先镜像再复制的操作;(2)仅对虚拟模组中的部分第一虚拟元素进行先复制再镜像,或,先镜像再复制的操作。
在一些实施例中,还可以通过在第一虚拟元素上附加其他虚拟元素,使得其他虚拟元素能够跟随第一虚拟元素同时进行镜像和复制。
示例性的,第一虚拟元素附加有至少一个第二虚拟元素,第二虚拟元素跟随第一虚拟元素。其中,第一虚拟元素可以附加多个第二虚拟元素,第二虚拟元素也可以附加其他虚拟元素,该附加关系也可称为父子关系,即第一虚拟元素为父物体,第二虚拟元素为子物体。
根据附加关系对第一虚拟元素以及附加在第一虚拟对象上的第二虚拟对象进行整体镜像,提高了镜像处理效率。
对父物体进行编辑时,子物体会继承父物体的编辑属性,也即,对父物体进行编辑操作,子物体也会对应显示同样编辑操作后的编辑结果。仅对子物体进行编辑时,父物体不会发生变化。可选地,接收针对第一虚拟元素的复制触发操作,由于第一虚拟元素是父物体,则该复制触发操作是同时针对第一虚拟元素和第二虚拟元素的操作。
响应于接收到在至少两个镜像轴面中对第一镜像轴面的触发操作,显示与第一虚拟元素和至少一个第二虚拟元素同时以第一镜像轴面为翻转参考面的镜像结果。通过复制触发操作和镜像操作,对第一虚拟元素以及附加在第一虚拟元素上的第二虚拟元素同时进行复制以及进行处理过程,提高了人机交互效率,避免对各个元素的复制操作和镜像操作单独执行时的复杂繁琐的过程。可选地,接收针对所述至少一个第二虚拟元素的复制触发操作,由于第二虚拟元素是子物体,则该复制触发操作仅针对第二虚拟元素,第一虚拟元素不受影响。
响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述至少一个第二虚拟元素对应的多个第三复制虚拟元素,所述多个第三复制虚拟元素是所述至少一个第二虚拟元素以所述第一镜像轴面为翻转参考面的镜像结果,其中,所述多个第三复制虚拟元素附加于所述第一虚拟元素。
针对附加在第一虚拟元素上的第二虚拟元素可以是行单独的复制过程和镜像,使得镜像后的第三虚拟元素继承第二虚拟元素的附加属性,同样附加在第一虚拟元素上,提高了附加在第一虚拟元素上的虚拟元素的处理灵活性。
综上所述,本申请提供的方法,通过接收对第一虚拟元素(UGC物体)的镜像触发操作,显示镜像坐标系,镜像坐标系中的多个镜像轴面,能够提供对第一虚拟元素进行镜像处理时的翻转参考面,提高用户在对第一虚拟元素进行编辑时的便捷程度。接收对镜像轴面的触发操作,能够自动显示第一虚拟元素基于镜像轴面翻转后的镜像结果,使第一虚拟元素的结构展示效果更加清晰直观,提高用户设计第一虚拟元素结构时的效率。
本实施例提供的方法,能够以拖动方式和触发复制控件等多种方式实现对第一虚拟元素进行复制的操作,并与镜像操作叠加处理,能够提高编辑操作的便捷性,仅通过简单的操作即可获得指定数量和方位、朝向的虚拟元素,在对第一虚拟元素进行编辑的过程中,提高第一虚拟元素的结构复杂性和对称性。
图17是本申请一个示例性实施例提供的虚拟场景中虚拟元素的编辑装置的结构框图,如图17所示,该装置包括如下部分。
物体显示模块1710,用于显示虚拟场景中的第一虚拟元素;
坐标系显示模块1720,用于响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系,所述镜像坐标系中包括多个镜像坐标轴,所述多个镜像坐标轴形成至少两个镜像轴面,所述镜像轴面用于模拟镜面对所述第一虚拟元素进行镜像处理;
镜像结果显示模块1730,用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果。
在一个可选的实施例中,所述坐标系显示模块1720,还用于响应于接收到对所述第一虚拟元素的镜像触发操作,基于所述虚拟场景中的第一参考点显示所述镜像坐标系,所述第一 参考点是基于所述第一虚拟元素确定的位置点,或者所述第一参考点是所述虚拟场景中的预设位置点。
在一个可选的实施例中,所述坐标系显示模块1720,还用于响应于接收到对多个第一虚拟元素的镜像触发操作,确定所述多个第一虚拟元素中至少一个第一虚拟元素对应的中心点;基于所述中心点显示所述镜像坐标系。
在一个可选的实施例中,所述镜像结果显示模块1730之前,如图18所示,所述装置还包括:
镜像选项选择模块1740,用于显示镜像选项,所述镜像选项中包括中心镜像选项和贴面镜像选项,其中,所述中心镜像选项表示以所述第一虚拟元素的中心作为镜像翻转中心点,所述贴面镜像选项表示所述第一虚拟元素以预设边缘作为镜像翻转中心轴;接收在所述镜像选项中对所述中心镜像选项和所述贴面镜像选项中的任意一种选项的选择操作。
在一个可选的实施例中,所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述中心镜像选项被选择,显示以所述第一虚拟元素的中心作为镜像翻转中心点,以所述第一镜像轴面作为翻转参考面,对所述第一虚拟元素进行镜像翻转的所述镜像结果。
在一个可选的实施例中,所述镜像触发操作是针对多个第一虚拟元素的操作;
所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述中心镜像选项被选择,显示以所述多个第一虚拟元素的组合中心作为镜像翻转中心点,以所述第一镜像轴面作为翻转参考面,对所述多个第一虚拟元素进行镜像翻转的所述镜像结果;或者,
响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述中心镜像选项被选择,显示以所述多个第一虚拟元素中的指定虚拟元素的中心作为镜像翻转中心点,以所述第一镜像轴面作为翻转参考面,对所述多个第一虚拟元素进行镜像翻转的所述镜像结果。
在一个可选的实施例中,所述指定虚拟元素是所述多个第一虚拟元素中符合选择顺序条件的虚拟元素,所述选择顺序条件用于指示所述指定虚拟元素在所述多个第一虚拟元素中被选中进行镜像翻转的次序要求。
在一个可选的实施例中,镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述贴面镜像选项被选择,显示以所述第一虚拟元素的第一边缘作为镜像翻转中心轴,以所述第一镜像轴面作为翻转参考面,对所述第一虚拟元素进行镜像翻转的所述镜像结果。
在一个可选的实施例中,所述镜像触发操作是针对多个第一虚拟元素的操作;
所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述贴面镜像选项被选择,显示以所述多个第一虚拟元素的组合边缘作为镜像翻转中心轴,以所述第一镜像轴面作为翻转参考面,对所述多个第一虚拟元素进行镜像翻转的所述镜像结果;或者,
响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述贴面镜像选项被选择,显示以所述多个第一虚拟元素中的指定虚拟元素的第二边缘作为镜像翻转中心轴,以所述第一镜像轴面作为翻转参考面,对所述多个第一虚拟元素进行镜像翻转的所述镜像结果。
在一个可选的实施例中,所述坐标系显示模块1720之后,所述装置还包括:
复制模块1750,用于接收针对所述第一虚拟元素的复制触发操作;
所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,基于所述复制触发操作显示与所述第一虚拟元素对应的第一复制虚拟元素,作为所述第一虚拟元素基于所述第一镜像轴面的镜像结果,其中,所述第一虚拟元素和所述第一复制虚拟元素以所述第一镜像轴面呈镜像关系。
在一个可选的实施例中,所述复制模块1750,还用于响应于接收到在所述多个镜像坐标轴中对第一镜像坐标轴的拖动操作,沿所述第一镜像坐标轴的拖动方向复制所述第一虚拟元素,显示第二复制虚拟元素;
所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素和所述第二复制虚拟元素同时基于所述第一镜像轴面的镜像结果。
在一个可选的实施例中,所述第一虚拟元素附加有至少一个第二虚拟元素,所述第二虚拟元素跟随所述第一虚拟元素;
所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素和所述至少一个第二虚拟元素同时基于所述第一镜像轴面的镜像结果。
在一个可选的实施例中,所述复制模块1750,还用于接收针对所述第一虚拟元素的复制触发操作;
所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示与所述第一虚拟元素和所述至少一个第二虚拟元素同时以所述第一镜像轴面为翻转参考面的镜像结果。
在一个可选的实施例中,所述复制模块1750,还用于接收针对所述至少一个第二虚拟元素的复制触发操作;
所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述至少一个第二虚拟元素对应的多个第三复制虚拟元素,所述多个第三复制虚拟元素是所述至少一个第二虚拟元素以所述第一镜像轴面为翻转参考面的镜像结果,其中,所述多个第三复制虚拟元素附加于所述第一虚拟元素。
在一个可选的实施例中,所述坐标系显示模块1720之后,所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对多个镜像轴面的触发操作,显示所述第一虚拟元素依次以所述多个镜像轴面为翻转参考面的镜像结果,其中,所述第一虚拟元素的镜像翻转过程符合第一选择顺序,所述第一选择顺序用于指示所述多个镜像轴面被选中的次序;或者,响应于接收到在所述至少两个镜像轴面中对多个镜像轴面的触发操作,显示所述第一虚拟元素同时以所述多个镜像轴面为翻转参考面的镜像结果;或者,响应于接收到在所述至少两个镜像轴面中对多个镜像轴面的触发操作,显示所述第一虚拟元素以所述多个镜像轴面为翻转参考面的镜像结果,其中,所述第一虚拟元素的镜像过程中,基于第i+1个镜像轴面的翻转过程是在第i个镜像轴面的翻转结果基础上进行的,i为正整数。
在一个可选的实施例中,所述坐标系显示模块1720之后,所述装置还包括:
轴面显示模块1760,用于响应于接收到对所述至少两个镜像轴面中第一镜像轴面的选择操作,显示与所述第一镜像轴面对应的表现特征选项,所述表现特征选项用于调整所述第一镜像轴面的外观表现;
响应于接收到对第一表现特征选项的触发操作,显示以第一表现特征作为外观表现的所述第一镜像轴面;
所述镜像结果显示模块1730,还用于响应于接收到在所述至少两个镜像轴面中对所述第一镜像轴面的触发操作,显示所述第一虚拟元素以所述第一镜像轴面为翻转参考面,以所述第一表现特征作为外观表现的镜像结果。综上所述,本申请提供的虚拟场景中虚拟元素的编辑装置,能够通过接收对第一虚拟元素(UGC物体)的镜像触发操作,显示镜像坐标系,镜像坐标系中的多个镜像轴面,能够提供对第一虚拟元素进行镜像处理时的翻转参考面,提高用户在对第一虚拟元素进行编辑时的便捷程度。接收对镜像轴面的触发操作,能够自动显示第一虚拟元素基于镜像轴面翻转后的镜像结果,使第一虚拟元素的结构展示效果更加清晰直观,提高用户设计第一虚拟元素结构时的效率。
图19示出了本申请一个示例性实施例提供的计算机设备1900的结构框图。该计算机设备1900可以是:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。计算机设备1900还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。
通常,计算机设备1900包括有:处理器1901和存储器1902。
处理器1901可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1901可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1901也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1901可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1901还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1902可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1902还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1902中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器1901所执行以实现本申请中方法实施例提供的虚拟场景中虚拟元素的编辑方法。
在一些实施例中,计算机设备1900还包括其他组件,本领域技术人员可以理解,图19中示出的结构并不构成对计算机设备1900的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
可选地,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、固态硬盘(SSD,Solid State Drives)或光盘等。其中,随机存取记忆体可以包括电阻式随机存取记忆体(ReRAM,Resistance Random Access Memory)和动态随机存取存储器(DRAM,Dynamic Random Access Memory)。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
本申请实施例还提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如上述本申请实施例中任一所述的虚拟场景中虚拟元素的编辑方法。
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如上述本申请实施例中任一所述的虚拟场景中虚拟元素的编辑方法。
本申请实施例还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例中任一所述的虚拟场景中虚拟元素的编辑方法。

Claims (20)

  1. 一种虚拟场景中虚拟元素的编辑方法,由计算机设备执行,所述方法包括:
    显示虚拟场景中的第一虚拟元素;
    响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系,所述镜像坐标系中包括多个镜像坐标轴,所述多个镜像坐标轴形成至少两个镜像轴面,所述镜像轴面用于模拟镜面对所述第一虚拟元素进行镜像处理;
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果。
  2. 根据权利要求1所述的方法,其中,所述响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系,包括:
    响应于接收到对所述第一虚拟元素的镜像触发操作,基于所述虚拟场景中的第一参考点显示所述镜像坐标系,所述第一参考点是基于所述第一虚拟元素确定的位置点,或者所述第一参考点是所述虚拟场景中的预设位置点。
  3. 根据权利要求1或2所述的方法,其中,所述响应于接收到对所述第一虚拟元素的镜像触发操作,基于所述虚拟场景中的第一参考点显示所述镜像坐标系,包括:
    响应于接收到对多个第一虚拟元素的镜像触发操作,确定所述多个第一虚拟元素中至少一个第一虚拟元素对应的中心点;
    基于所述中心点显示所述镜像坐标系。
  4. 根据权利要求1至3任一所述的方法,其中,所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果之前,还包括:
    显示镜像选项,所述镜像选项中包括中心镜像选项和贴面镜像选项,其中,所述中心镜像选项表示以所述第一虚拟元素的中心作为镜像翻转中心点,所述贴面镜像选项表示所述第一虚拟元素以预设边缘作为镜像翻转中心轴;
    接收在所述镜像选项中对所述中心镜像选项和所述贴面镜像选项中的任意一种选项的选择操作。
  5. 根据权利要求1至4任一所述的方法,其中,所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果,包括:
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述中心镜像选项被选择,显示以所述第一虚拟元素的中心作为镜像翻转中心点,以所述第一镜像轴面作为翻转参考面,对所述第一虚拟元素进行镜像翻转的所述镜像结果。
  6. 根据权利要求1至5任一所述的方法,其中,所述镜像触发操作是针对多个第一虚拟元素的操作;
    所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述中心镜像选项被选择,显示以所述第一虚拟元素的中心作为镜像翻转中心点,以所述第一镜像轴面作为翻转参考面,对所述第一虚拟元素进行镜像翻转的所述镜像结果,包括:
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述中心镜像选项被选择,显示以所述多个第一虚拟元素的组合中心作为镜像翻转中心点,以所述第一镜像轴面作为翻转参考面,对所述多个第一虚拟元素进行镜像翻转的所述镜像结果;或者,
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述中心镜像选项被选择,显示以所述多个第一虚拟元素中的指定虚拟元素的中心作为镜像翻转中心点,以所述第一镜像轴面作为翻转参考面,对所述多个第一虚拟元素进行镜像翻转的所述镜像结果。
  7. 根据权利要求1至6任一所述的方法,其中,所述指定虚拟元素是所述多个第一虚拟元素中符合选择顺序条件的虚拟元素,所述选择顺序条件用于指示所述指定虚拟元素在所述多个第一虚拟元素中被选中进行镜像翻转的次序要求。
  8. 根据权利要求1至7任一所述的方法,其中,所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果,包括:
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述贴面镜像选项被选择,显示以所述第一虚拟元素的第一边缘作为镜像翻转中心轴,以所述第一镜像轴面作为翻转参考面,对所述第一虚拟元素进行镜像翻转的所述镜像结果。
  9. 根据权利要求1至8任一所述的方法,其中,所述镜像触发操作是针对多个第一虚拟元素的操作;
    所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述贴面镜像选项被选择,显示以所述第一虚拟元素的第一边缘作为镜像翻转中心轴,以所述第一镜像轴面作为翻转参考面,对所述第一虚拟元素进行镜像翻转的所述镜像结果,包括:
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述贴面镜像选项被选择,显示以所述多个第一虚拟元素的组合边缘作为镜像翻转中心轴,以所述第一镜像轴面作为翻转参考面,对所述多个第一虚拟元素进行镜像翻转的所述镜像结果;或者,
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,且所述贴面镜像选项被选择,显示以所述多个第一虚拟元素中的指定虚拟元素的第二边缘作为镜像翻转中心轴,以所述第一镜像轴面作为翻转参考面,对所述多个第一虚拟元素进行镜像翻转的所述镜像结果。
  10. 根据权利要求1至9任一所述的方法,其中,所述响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系之后,还包括:
    接收针对所述第一虚拟元素的复制触发操作;
    所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果,包括:
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,基于所述复制触发操作显示与所述第一虚拟元素对应的第一复制虚拟元素,作为所述第一虚拟元素基于所述第一镜像轴面的镜像结果,其中,所述第一虚拟元素和所述第一复制虚拟元素以所述第一镜像轴面呈镜像关系。
  11. 根据权利要求1至10任一所述的方法,其中,所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果之前,还包括:
    响应于接收到在所述多个镜像坐标轴中对第一镜像坐标轴的拖动操作,沿所述第一镜像坐标轴的拖动方向复制所述第一虚拟元素,显示第二复制虚拟元素;
    所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素以所述第一镜像轴面为翻转参考面的镜像结果,包括:
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素和所述第二复制虚拟元素同时基于所述第一镜像轴面的镜像结果。
  12. 根据权利要求1至11任一所述的方法,其中,所述第一虚拟元素附加有至少一个第二虚拟元素,所述第二虚拟元素跟随所述第一虚拟元素;
    所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果,包括:
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素和所述至少一个第二虚拟元素同时基于所述第一镜像轴面的镜像结果。
  13. 根据权利要求1至12任一所述的方法,其中,所述方法还包括:
    接收针对所述第一虚拟元素的复制触发操作;
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示与所述第一虚拟元素和所述至少一个第二虚拟元素同时以所述第一镜像轴面为翻转参考面的镜像结果。
  14. 根据权利要求1至13任一所述的方法,其中,所述方法还包括:
    接收针对所述至少一个第二虚拟元素的复制触发操作;
    响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述至少一个第二虚拟元素对应的多个第三复制虚拟元素,所述多个第三复制虚拟元素是所述至少一个第二虚拟元素以所述第一镜像轴面为翻转参考面的镜像结果,其中,所述多个第三复制虚拟元素附加于所述第一虚拟元素。
  15. 根据权利要求1至14任一所述的方法,其中,所述响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系之后,还包括:
    响应于接收到在所述至少两个镜像轴面中对多个镜像轴面的触发操作,显示所述第一虚拟元素依次以所述多个镜像轴面为翻转参考面的镜像结果,其中,所述第一虚拟元素的镜像翻转过程符合第一选择顺序,所述第一选择顺序用于指示所述多个镜像轴面被选中的次序;或者,响应于接收到在所述至少两个镜像轴面中对多个镜像轴面的触发操作,显示所述第一虚拟元素同时以所述多个镜像轴面为翻转参考面的镜像结果;或者,响应于接收到在所述至少两个镜像轴面中对多个镜像轴面的触发操作,显示所述第一虚拟元素以所述多个镜像轴面为翻转参考面的镜像结果,其中,所述第一虚拟元素的镜像过程中,基于第i+1个镜像轴面的翻转过程是在第i个镜像轴面的翻转结果基础上进行的,i为正整数。
  16. 根据权利要求1至15任一所述的方法,其中,所述响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系之后,还包括:
    响应于接收到对所述至少两个镜像轴面中第一镜像轴面的选择操作,显示与所述第一镜像轴面对应的表现特征选项,所述表现特征选项用于调整所述第一镜像轴面的外观表现;
    响应于接收到对第一表现特征选项的触发操作,显示以第一表现特征作为外观表现的所述第一镜像轴面;
    所述响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果,包括:响应于接收到在所述至少两个镜像轴面中对所述第一镜像轴面的触发操作,显示所述第一虚拟元素以所述第一镜像轴面为翻转参考面,以所述第一表现特征作为外观表现的镜像结果。
  17. 一种虚拟场景中虚拟元素的编辑装置,所述装置包括:
    物体显示模块,用于显示虚拟场景中的第一虚拟元素;
    坐标系显示模块,用于响应于接收到对所述第一虚拟元素的镜像触发操作,显示镜像坐标系,所述镜像坐标系中包括多个镜像坐标轴,所述多个镜像坐标轴形成至少两个镜像轴面,所述镜像轴面用于模拟镜面对所述第一虚拟元素进行镜像处理;
    镜像结果显示模块,用于响应于接收到在所述至少两个镜像轴面中对第一镜像轴面的触发操作,显示所述第一虚拟元素基于所述第一镜像轴面的镜像结果。
  18. 一种计算机设备,所述计算机设备包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如权利要求1至16任一所述的虚拟场景中虚拟元素的编辑方法。
  19. 一种计算机可读存储介质,所述存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如权利要求1至16任一所述的虚拟场景中虚拟元素的编辑方法。
  20. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如权利要求1至16任一所述的虚拟场景中虚拟元素的编辑方法。
PCT/CN2024/108856 2023-11-17 2024-07-31 虚拟元素的编辑方法、装置、设备、介质及产品 Pending WO2025102829A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US19/345,704 US20260021407A1 (en) 2023-11-17 2025-09-30 Method and apparatus for editing virtual element, device, medium, and product

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311545552.6 2023-11-17
CN202311545552.6A CN120020889A (zh) 2023-11-17 2023-11-17 虚拟物体的编辑方法、装置、设备、介质及产品

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US19/345,704 Continuation US20260021407A1 (en) 2023-11-17 2025-09-30 Method and apparatus for editing virtual element, device, medium, and product

Publications (1)

Publication Number Publication Date
WO2025102829A1 true WO2025102829A1 (zh) 2025-05-22

Family

ID=95704295

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/108856 Pending WO2025102829A1 (zh) 2023-11-17 2024-07-31 虚拟元素的编辑方法、装置、设备、介质及产品

Country Status (3)

Country Link
US (1) US20260021407A1 (zh)
CN (1) CN120020889A (zh)
WO (1) WO2025102829A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210256655A1 (en) * 2020-02-19 2021-08-19 Alibaba Group Holding Limited Method and apparatus for image processing
CN114082189A (zh) * 2021-11-18 2022-02-25 腾讯科技(深圳)有限公司 虚拟角色控制方法、装置、设备、存储介质及产品
US11321884B1 (en) * 2021-03-19 2022-05-03 Adobe Inc. Generating candidate mirror snap points using determined axes of symmetry
CN114529704A (zh) * 2022-04-21 2022-05-24 广州中望龙腾软件股份有限公司 基于质心主惯性坐标系的装配镜像方法、终端、存储介质
CN114862990A (zh) * 2022-04-22 2022-08-05 网易(杭州)网络有限公司 一种镜像参数获取方法、装置、电子设备及存储介质
WO2023142614A1 (zh) * 2022-01-26 2023-08-03 网易(杭州)网络有限公司 游戏对象的编辑方法、装置和电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210256655A1 (en) * 2020-02-19 2021-08-19 Alibaba Group Holding Limited Method and apparatus for image processing
US11321884B1 (en) * 2021-03-19 2022-05-03 Adobe Inc. Generating candidate mirror snap points using determined axes of symmetry
CN114082189A (zh) * 2021-11-18 2022-02-25 腾讯科技(深圳)有限公司 虚拟角色控制方法、装置、设备、存储介质及产品
WO2023142614A1 (zh) * 2022-01-26 2023-08-03 网易(杭州)网络有限公司 游戏对象的编辑方法、装置和电子设备
CN114529704A (zh) * 2022-04-21 2022-05-24 广州中望龙腾软件股份有限公司 基于质心主惯性坐标系的装配镜像方法、终端、存储介质
CN114862990A (zh) * 2022-04-22 2022-08-05 网易(杭州)网络有限公司 一种镜像参数获取方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN120020889A (zh) 2025-05-20
US20260021407A1 (en) 2026-01-22

Similar Documents

Publication Publication Date Title
JP7528221B2 (ja) 仮想シーンの表示方法及び装置、コンピュータプログラム並びに電子機器
JP7137719B2 (ja) 仮想オブジェクトの選択方法、装置、端末及びプログラム
CN114225372B (zh) 虚拟对象的控制方法、装置、终端、存储介质及程序产品
KR102917194B1 (ko) 가상 환경 화상 디스플레이 방법 및 디바이스, 단말기, 매체, 및 프로그램 제품
CN113559510B (zh) 虚拟技能的控制方法、装置、设备及计算机可读存储介质
WO2022127275A1 (zh) 模型切换方法和装置、电子设备和存储介质
JP7686914B2 (ja) 仮想オブジェクトを選択するための方法並びにその、装置、端末及び記憶媒体
WO2024260082A1 (zh) 虚拟角色的姿态编辑方法、装置、设备及存储介质
US11079901B2 (en) Systems and methods for presenting and discovering relationships between information units
US11978152B2 (en) Computer-assisted graphical development tools
WO2025055515A1 (zh) 游戏程序中的ugc生成方法、装置、设备及存储介质
WO2024212702A1 (zh) 虚拟形象配置方法、装置、设备及存储介质
US20260057590A1 (en) Method and apparatus for displaying particle animation, device, medium, and program product
JP2025511635A (ja) 仮想オブジェクトの制御方法、仮想オブジェクトの制御装置、端末機器、及びコンピュータプログラム
US20250303289A1 (en) Virtual Character Display Method and Apparatus, Terminal, Storage Medium, and Program Product
WO2025102829A1 (zh) 虚拟元素的编辑方法、装置、设备、介质及产品
CN114159790B (zh) 虚拟对象的伤害处理方法、装置、设备、介质及程序产品
CN114210058B (zh) 信息显示方法、装置、电子设备和可读存储介质
CN118179032A (zh) 虚拟对象的显示方法、装置、设备、介质和程序产品
CN116688501A (zh) 虚拟对象的控制方法、装置、设备、介质及程序产品
US20250360407A1 (en) Virtual scene display method and apparatus, computer device, and storage medium
CN114053704B (zh) 信息显示方法、装置、终端及存储介质
CN115089962B (zh) 信息处理方法、装置、存储介质及电子装置
WO2025050811A1 (zh) 虚拟组件的配置方法、装置、设备、介质及程序产品
HK40053945B (zh) 虚拟技能的控制方法、装置、设备及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24890193

Country of ref document: EP

Kind code of ref document: A1