Virtual object control method and device, program product and electronic equipment

The reference axis system is determined through the connection between the virtual camera and the target virtual object, which solves the problem of inconvenient operation of rotating virtual objects in the prior art, and realizes a virtual object rotation method with strong user intuition and efficient operation.

CN119524420APending Publication Date: 2025-02-28NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411622243.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The operation method of rotating virtual objects in the prior art is not convenient for users to observe, resulting in the rotation result not meeting the user's intuition, increasing the difficulty of users' accurate operation and affecting operation efficiency.

Method used

The reference axis system is determined by connecting the virtual camera to the target virtual object. When the user rotates the target virtual object, it controls it to rotate about the reference axis of the reference axis system, so that the rotation of the target virtual object matches the direction of the user's line of sight when viewing the target virtual object.

Benefits of technology

It provides a rotation operation method that conforms to the user's intuition, which facilitates the user to observe the rotation state of the virtual object intuitively and accurately, reduces the situation of repeated operation and adjustment, and improves operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119524420A_ABST
    Figure CN119524420A_ABST
Patent Text Reader

Abstract

The invention provides a virtual object control method and device, a program product and electronic equipment, and relates to the technical field of computers and human-computer interaction. The method comprises the following steps: displaying a picture of a virtual scene through a graphical user interface provided by terminal equipment; the picture is a picture formed by shooting the virtual scene by a virtual camera arranged in the virtual scene; the virtual scene comprises one or more virtual objects; responding to a rotation instruction for a target virtual object in the virtual scene, and controlling the target virtual object to rotate around a reference axis according to the rotation instruction; the reference axis at least comprises a first reference axis formed by a connecting line of the virtual camera and the target virtual object. The invention provides a rotation operation mode conforming to the intuition of a user, so that the user can intuitively and accurately observe the rotation state of the virtual object, the condition of repeated operation adjustment is reduced, and the operation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of computer and human-computer interaction, and in particular to a virtual object control method, a virtual object control device, a computer program product, and an electronic device. Background Art

[0002] In virtual scenes provided by games, animations, etc., it is often necessary to rotate virtual objects to achieve the purpose of editing, placing, observing from different directions, etc. For example, in a game editor, a user can adjust the direction or posture of a virtual scene component in the game scene by rotating it.

[0003] In the related art, when rotating a virtual object, the world coordinate system or the local coordinate system of the virtual object is usually used as a reference, and the user needs to use the axis in the world coordinate system or the local coordinate system as the rotation axis to perform the corresponding rotation operation. This operation method is not convenient for the user to observe and is not conducive to achieving an accurate and efficient operation process. Summary of the invention

[0004] The present disclosure provides a virtual object control method, a virtual object control device, a computer program product and an electronic device, so as to at least to some extent solve the problem in the related art that the operation mode of rotating a virtual object is not convenient for a user to observe.

[0005] According to a first aspect of the present disclosure, a virtual object control method is provided, the method comprising: displaying a picture of a virtual scene through a graphical user interface provided by a terminal device; the picture is a picture formed by a virtual camera arranged in the virtual scene shooting the virtual scene; the virtual scene comprises one or more virtual objects; in response to a rotation instruction for a target virtual object in the virtual scene, controlling the target virtual object to rotate around a reference axis according to the rotation instruction; the reference axis at least comprises a first reference axis formed by a line connecting the virtual camera and the target virtual object.

[0006] According to a second aspect of the present disclosure, a virtual object control device is provided, the device comprising: a virtual scene display processing module, configured to display a picture of a virtual scene through a graphical user interface provided by a terminal device; the picture is a picture formed by a virtual camera arranged in the virtual scene shooting the virtual scene; the virtual scene comprises one or more virtual objects; a rotation control module, configured to respond to a rotation instruction for a target virtual object in the virtual scene, and control the target virtual object to rotate around a reference axis according to the rotation instruction; the reference axis comprises at least a first reference axis formed by a line connecting the virtual camera and the target virtual object.

[0007] According to a third aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method of the first aspect and possible implementations thereof are implemented.

[0008] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method of the above-mentioned first aspect and its possible implementation methods by executing the executable instructions.

[0009] The technical solution disclosed in this disclosure has the following beneficial effects:

[0010] Based on the connection line between the virtual camera and the target virtual object, the reference axis system is determined. When the user rotates the target virtual object, the target virtual object is controlled to rotate around the reference axis of the reference axis system, so that the rotation of the target virtual object matches the direction of the user's line of sight when viewing the target virtual object. Thus, a rotation operation method that meets the user's intuition is provided, which facilitates the user to intuitively and accurately observe the rotation state of the virtual object, helps to reduce repeated operation adjustments, and improves operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1A A schematic diagram of a rotation operation with reference to a world coordinate system is shown;

[0012] Figure 1B A schematic diagram of a rotation operation with reference to a local coordinate system is shown;

[0013] Figure 2 A system architecture diagram in this exemplary embodiment is shown;

[0014] Figure 3 A flowchart showing a virtual object control method in this exemplary embodiment;

[0015] Figure 4A A schematic diagram showing a reference axis and a rotation plane in this exemplary embodiment;

[0016] Figure 4B A schematic diagram showing the positional relationship between a virtual camera and a target virtual object in this exemplary embodiment;

[0017] Figure 5 A sub-flow chart showing a rotation operation in this exemplary embodiment;

[0018] Fig. 6A A schematic diagram showing a first rotary control and a first control operation instruction in this exemplary embodiment;

[0019] Figure 6BA schematic diagram showing a second rotary control and a second control operation instruction in this exemplary embodiment;

[0020] Figure 6C A schematic diagram showing a first direction mark and a second direction mark in this exemplary embodiment;

[0021] Fig. 7A A schematic diagram showing a method of moving a rotating mark along a second preset graphic in this exemplary embodiment;

[0022] Figure 7B A schematic diagram showing a method of moving a rotating mark along a similar pattern of a second preset pattern in this exemplary embodiment;

[0023] Figure 8 A schematic diagram showing a selected rotation mode in this exemplary embodiment;

[0024] Fig. 9 A schematic diagram showing the structure of a virtual object control device in this exemplary embodiment is shown;

[0025] Fig.10 A schematic structural diagram of an electronic device in this exemplary embodiment is shown. DETAILED DESCRIPTION

[0026] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings.

[0027] The accompanying drawings are schematic diagrams of the present disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the accompanying drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in hardware modules or integrated circuits, or in networks, processors or microcontrollers. The embodiments can be implemented in various forms and should not be construed as being limited to the examples set forth herein. The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the description below, many specific details are provided to provide a full description of the embodiments of the present disclosure. However, those skilled in the art should appreciate that one or more specific details may be omitted when implementing the technical solution of the present disclosure, or one or more specific details may be replaced by other methods, components, devices, steps, etc.

[0028] When rotating a virtual object, the world coordinate system or the local coordinate system of the virtual object is usually used as a reference. Figure 1A or Figure 1BAs shown, the user needs to use the axis in the world coordinate system or the local coordinate system as the rotation axis to perform the corresponding rotation operation. The inventors have found that in such an operation mode, there is often a deviation between the direction of the rotation axis and the direction of the user's line of sight when observing the virtual object. From the user's perspective, the rotation process of the virtual object around the rotation axis is not intuitive enough, and it is difficult to directly and accurately see the rotation state of the virtual object, resulting in the rotation result not meeting the user's intuition to a certain extent. This increases the difficulty of accurate operation for the user and affects the operation efficiency.

[0029] In view of the above problems, an exemplary embodiment of the present disclosure provides a virtual object control method, so that the rotation process of the virtual object conforms to the user's intuition, which is conducive to the user to accurately grasp the rotation state of the virtual object and improve the operation efficiency.

[0030] Figure 2 The system architecture diagram of the operating environment of this exemplary embodiment is shown. The system architecture may include a terminal device 210 and a server 220. Among them, the terminal device 210 may be a mobile phone, a tablet computer, a personal computer, an intelligent wearable device, a game console, etc., which has a display function and can display a graphical user interface. The graphical user interface may include an interface of an operating system or an interface of an application program, etc. The terminal device 210 is installed with an application program that can provide a virtual scene, such as a game program, an editor program, a design software, etc. When the terminal device 210 runs the above application, the screen of the virtual scene can be displayed in the graphical user interface. The server 220 generally refers to a background system that provides related services (such as game services), which may be a server or a cluster of multiple servers. A server program is deployed on the server 220 for executing data processing on the server. The terminal device 210 and the server 220 may be connected via a wired or wireless communication link to perform data transmission. The method in this exemplary embodiment may be executed by any one or more of the terminal device 210 and the server 220.

[0031] In one embodiment, the above method can be implemented and executed based on a cloud interactive system. The cloud interactive system can be the above system architecture. Various cloud applications can be run under the cloud interactive system, such as cloud games. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operation subject of the game program and the game screen presentation subject are separated, and the storage and operation of the control and interaction methods in the game are completed on the cloud game server (such as the above server 220), and the cloud game client (such as the above terminal device 210) is used for receiving and sending data and presenting the game screen. For example, the cloud game client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; and the cloud game server in the cloud performs information processing. When playing games or editing games, the user operates the cloud game client to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the cloud game client through the network. Finally, the cloud game client decodes and outputs the game screen.

[0032] In one embodiment, the terminal device 210 can edit the game map (or scene) in the game program or editor program and upload it to the server 220 for storage. For example, the currently edited game map can be automatically saved at regular intervals during the editing process, or the currently edited game map can be saved according to a manual save operation performed by the user, or the currently edited game map can be automatically saved when exiting the editing. When saving the game map, the terminal device 210 can upload the game map data to the server 220, and the server 220 can save it.

[0033] In one embodiment, the server 220 may maintain a game map pool, such as deploying a database for storing game maps on the server side. In response to an instruction to publish a game map on the terminal device 210, the server 220 may add game map data to the game map pool, so that other players can download the game map data from the game map pool and use the game map to play the game. This enables a fast UGC (User Generated Content) function.

[0034] In one implementation, the above method may be executed by the terminal device 210 alone without deploying the server 220 .

[0035] Figure 3 The schematic flow of the virtual object control method is shown, which may include the following steps:

[0036] Step S310, displaying a picture of a virtual scene through a graphical user interface provided by a terminal device; the picture is formed by a virtual camera set in the virtual scene shooting the virtual scene; the virtual scene includes one or more virtual objects;

[0037] Step S320, responding to a rotation instruction for a target virtual object in the virtual scene, controlling the target virtual object to rotate around a reference axis according to the rotation instruction; the reference axis at least includes a first reference axis formed by a line connecting the virtual camera and the target virtual object.

[0038] based on Figure 3 The method determines a reference axis system based on the line connecting the virtual camera and the target virtual object. When the user rotates the target virtual object, the target virtual object is controlled to rotate around the reference axis of the reference axis system, so that the rotation of the target virtual object matches the line of sight of the user viewing the target virtual object. Thus, a rotation operation method that meets the user's intuition is provided, which facilitates the user to intuitively and accurately observe the rotation state of the virtual object, helps to reduce repeated operation adjustments, and improves operation efficiency.

[0039] Below Figure 3 Provide detailed instructions for each step.

[0040] refer to Figure 3 In step S310, a picture of a virtual scene is displayed through a graphical user interface provided by a terminal device; the picture is formed by a virtual camera set in the virtual scene shooting the virtual scene; the virtual scene includes one or more virtual objects.

[0041] The virtual scene is a scene provided by a program running on a terminal device, which may be a three-dimensional scene. Exemplarily, the virtual scene includes but is not limited to: a game editing scene, which is a game scene loaded and displayed in an editing state, and the game scene may be a level, a town, a home, etc.; a game running scene, which is a game scene loaded and displayed in a running state; a simulation scene, such as an indoor simulation scene for decoration design, etc. A virtual object is set in the virtual scene, which may be a scene component in the game editing scene, such as a virtual person or object, or a virtual model in the game running scene, or a virtual element such as furniture in the indoor simulation scene.

[0042] A virtual camera is a virtual shooting tool that simulates a real camera. The image of the virtual scene displayed in the graphical user interface is the image taken by the virtual camera and is also the image seen by the user. Therefore, the shooting angle of the virtual camera is equivalent to the viewing angle of the user. It should be understood that the image of the virtual scene displayed in the graphical user interface can be a partial image of the virtual scene or a global image.

[0043] Continue to refer Figure 3 In step S320, in response to a rotation instruction for a target virtual object in a virtual scene, the target virtual object is controlled to rotate around a reference axis according to the rotation instruction; the reference axis at least includes a first reference axis formed by a line connecting the virtual camera and the target virtual object.

[0044] The target virtual object is the virtual object targeted by the rotation instruction, and may be any one or more virtual objects in the virtual scene, such as the currently selected virtual object.

[0045] The line connecting the virtual camera and the target virtual object may be a line connecting any representative point of the virtual camera and any representative point of the target virtual object, such as a line connecting the optical center of the virtual camera and the center (such as the center of gravity, geometric center, etc.) of the target virtual object, or a direction perpendicular to the display plane of the graphical user interface, such as the optical axis direction of the virtual camera. Exemplarily, the axis pointing from the virtual camera to the target virtual object may be used as the first reference axis. The first reference axis represents the direction of the user's line of sight when viewing the target virtual object. In addition to the first reference axis, the above-mentioned reference axis may also include other reference axes, such as a second reference axis and a third reference axis perpendicular to the first reference axis. The target virtual object is controlled to rotate around the reference axis according to the rotation instruction, so that the rotation process of the target virtual object matches the direction of the user's line of sight.

[0046] In one embodiment, the rotation instruction includes a first rotation instruction and a second rotation instruction; the reference axis also includes a second reference axis and a third reference axis, and the second reference axis and the third reference axis are both perpendicular to the first reference axis. Exemplarily, the first, second, and third reference axes are perpendicular to each other to form a three-dimensional reference axis system. Figure 4A A schematic diagram of the reference axis is shown. Taking the block in the virtual scene as the target virtual object, the center of the target virtual object can be used as the origin to set the first reference axis R1, the second reference axis R2, and the third reference axis R3. Since the virtual camera is usually not displayed in the virtual scene, for ease of understanding, Figure 4B A schematic diagram of the positional relationship between the virtual camera and the target virtual object is shown. It can be seen that the first reference axis R1 is an axis formed by the line connecting the virtual camera and the target virtual object, and the second reference axis R2 and the third reference axis R3 are both perpendicular to the first reference axis R1.

[0047] In one embodiment, reference Figure 5 As shown, the above response to the rotation instruction of the target virtual object in the virtual scene, controlling the target virtual object to rotate around the reference axis according to the rotation instruction, may include the following steps S510 and S520:

[0048] Step S510, responding to a first rotation instruction for a target virtual object, controlling the target virtual object to rotate around a first reference axis according to the first rotation instruction;

[0049] Step S520 , responding to a second rotation instruction for the target virtual object, controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the second rotation instruction.

[0050] The first rotation instruction and the second rotation instruction may differ in one or more of the following aspects: different operation modes, different operation objects, and different operation directions.

[0051] The first rotation instruction can make the target virtual object rotate around the first reference axis, that is, rotate on a first rotation plane perpendicular to the first reference axis. The first rotation plane can refer to Figure 4A or Figure 4B The first rotation plane P1 is shown. The first rotation plane is perpendicular to the user's line of sight, which means that the user can view the information on the first rotation plane with a better viewing angle, so that the user can intuitively observe the rotation state of the target virtual object on the first rotation plane to perform accurate operations.

[0052] The second rotation instruction can rotate the target virtual object around the second reference axis or the third reference axis. Figure 4A or Figure 4B As shown, the rotation around the second reference axis R2 is equivalent to the rotation on the second rotation plane P2 perpendicular to the second reference axis R2, and the rotation around the third reference axis R3 is equivalent to the rotation on the third rotation plane P3 perpendicular to the third reference axis R3.

[0053] By combining the first rotation instruction and the second rotation instruction, the target virtual object is allowed to rotate with three degrees of freedom, so that it can be rotated to any state in the three-dimensional space.

[0054] In one embodiment, the virtual object control method may further include the following steps: providing a first rotation control. Accordingly, the above-mentioned response to the first rotation instruction for the target virtual object, controlling the target virtual object to rotate around the first reference axis according to the first rotation instruction, may include the following steps:

[0055] In response to a first control operation instruction for the first rotation control, the target virtual object is controlled to rotate around the first reference axis according to the first control operation instruction.

[0056] Among them, the first control operation instruction is an operation instruction for the first rotation control. The present disclosure does not limit the specific form of the first rotation control and the specific operation method of the first control operation instruction. Exemplarily, the first rotation control can be a sliding control, and the first control operation instruction can be a sliding operation instruction. Alternatively, the first rotation control can be a numerical setting control, and the first control operation instruction can be an operation instruction for inputting a numerical value. The rotation method of the target virtual object around the first reference axis is realized based on the first rotation control and the first control operation instruction, which can effectively distinguish the rotation method of the target virtual object around the second or third reference axis to avoid misoperation.

[0057] In one embodiment, the first rotation control includes a rotation guide graphic. Accordingly, the above-mentioned response to the first control operation instruction for the first rotation control, controlling the target virtual object to rotate around the first reference axis according to the first control operation instruction, may include the following steps:

[0058] In response to a sliding operation instruction for the rotation guide graphic, the target virtual object is controlled to rotate around the first reference axis according to the sliding operation instruction.

[0059] The rotation guide graphic corresponds to the rotation trajectory of the target virtual object around the first reference axis. For example, the rotation trajectory is usually circular or sector-shaped, and the rotation guide graphic can also be circular or sector-shaped. The user can perform a sliding operation on the rotation guide graphic to generate a sliding operation instruction. The rotation trajectory of the target virtual object matches the sliding trajectory in the sliding operation instruction, and the operation process is more intuitive.

[0060] In one embodiment, the rotation guide graphic includes at least one of the following: a first preset graphic; a graphic formed by projecting the first preset graphic according to the projection relationship between the first rotation plane and the display plane of the graphical user interface, and the first rotation plane is a plane perpendicular to the first reference axis. Among them, the first preset graphic can be a graphic indicating the rotation trajectory of the target virtual object around the first reference axis, such as a circle or a sector. Exemplarily, the graphic of the rotation trajectory of the target virtual object around the first reference axis can be scaled according to a certain ratio to form the first preset graphic. The first preset graphic can be directly used as the rotation guide graphic. Alternatively, considering that the rotation trajectory of the target virtual object is located on the first rotation plane, the first preset graphic is used as a graphic indicating the rotation trajectory, and it can be regarded as being on the first rotation plane, and the first rotation plane and the display plane of the graphical user interface may have a certain angle. In this way, when the first preset graphic is displayed through the graphical user interface, the first preset graphic can be projected, such as a circle is projected into an ellipse, etc., to form a rotation guide graphic. In this way, the rotation guide graphic that the user can see and the rotation trajectory that can be seen are matched.

[0061] In one embodiment, the virtual object control method may further include:

[0062] In response to a slide operation instruction for the rotating guide graphic, a portion of the rotating guide graphic from a slide start point to a current slide position is displayed in a manner distinguished from other portions.

[0063] For example, the user starts sliding from point A in the rotating guide graphic. During the sliding process, the part between point A and the current sliding position is displayed in a manner different from other parts, such as setting the slid part to a different color, etc. This allows the user to intuitively see the current sliding extent, which is conducive to accurate operation.

[0064] Fig. 6A A schematic diagram of a first rotation control 601 and a first control operation instruction is shown. The first rotation control 601 may be a circular rotation guide graphic, and the user may slide along the rotation guide graphic to implement the first control operation instruction. In response to the first control operation instruction, the target virtual object is controlled to rotate around the first reference axis by a corresponding angle or arc.

[0065] In one embodiment, the virtual object control method may further include: providing a second rotation control. Accordingly, the above-mentioned response to the second rotation instruction for the target virtual object, controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the second rotation instruction, may include the following steps:

[0066] In response to a second control operation instruction for the second rotation control, the target virtual object is controlled to rotate around the second reference axis or the third reference axis according to the second control operation instruction.

[0067] Among them, the second control operation instruction is an operation instruction for the second rotation control. The present disclosure does not limit the specific form of the second rotation control and the specific operation method of the second control operation instruction. Exemplarily, the second rotation control can be a sliding control, and the second control operation instruction can be a sliding operation instruction. Alternatively, the second rotation control can be a numerical setting control, and the second control operation instruction can be an operation instruction for inputting a numerical value. The rotation method of the target virtual object around the second or third reference axis is realized based on the second rotation control and the second control operation instruction, which can effectively distinguish the rotation method of the target virtual object around the first reference axis and avoid misoperation.

[0068] In one embodiment, the second rotation control includes a rotation indicator. Accordingly, the above-mentioned response to the second control operation instruction for the second rotation control, and controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the second control operation instruction, may include the following steps:

[0069] In response to an operation instruction to move the rotation mark in a first preset manner, the target virtual object is controlled to rotate around the second reference axis or the third reference axis according to the movement trajectory of the rotation mark.

[0070] Among them, the rotation mark is a movable operation mark. The rotation mark has a movable area, and the rotation mark can move within the movable area. Exemplarily, the movable area can be: an area determined according to a preset size based on the position of the rotation mark before it moves. Among them, the position of the rotation mark before it moves can be a fixed position or a variable position (such as the position initially touched when the user performs the second control operation instruction). The preset size can be set based on experience or specific circumstances. The movable area can be an area of ​​any shape such as a circle or a square. For example, the position of the rotation mark before it moves can be the center of the target virtual object, and the movable area is a circle with a radius of a preset size r. Then the movable area is a circular area with a radius of r with the center of the target virtual object as the circle. Alternatively, the movable area can be an area surrounded by a rotation guide graphic.

[0071] In the movable area, the movement of the rotation mark has two degrees of freedom, which can correspond to controlling the target virtual object to rotate around the second reference axis or the third reference axis to achieve two degrees of freedom of rotation. In one embodiment, the operation instruction for moving the rotation mark in the first preset manner may refer to: an operation instruction for moving the rotation mark in any direction perpendicular to the rotation guide graphic, or a sliding operation instruction starting from the initial position of the rotation mark.

[0072] In one embodiment, the above-mentioned response to the operation instruction of moving the rotation mark in the first preset manner and controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the movement trajectory of the rotation mark may include the following steps:

[0073] In response to an operation instruction to move the rotation mark along the first direction, controlling the target virtual object to rotate around the second reference axis;

[0074] In response to an operation instruction to move the rotation mark along a second direction, controlling the target virtual object to rotate around a third reference axis; the second direction is perpendicular to the first direction;

[0075] In response to an operation instruction to move a rotation marker in a direction other than the first direction and the second direction, the first rotation component and the second rotation component are determined according to the component of the movement direction of the rotation marker in the first direction and the component in the second direction, and the target virtual object is controlled to rotate the first rotation component around the second reference axis and the second rotation component around the third reference axis.

[0076] The first direction may indicate the rotation of the target virtual object around the second reference axis, that is, in the second rotation plane (eg Figure 4A or Figure 4B The second direction may indicate the rotation of the target virtual object around the third reference axis, that is, the rotation of the target virtual object on the third rotation plane (such as Figure 4A or Figure 4B Therefore, the first direction may be a direction characterizing the second rotation plane, and the second direction may be a direction characterizing the third rotation plane. Exemplarily, the first direction is the X-axis direction (i.e., the horizontal direction) in the display plane of the graphical user interface, and the second direction is the Y-axis direction (i.e., the vertical direction) in the display plane of the graphical user interface. Alternatively, the first direction is the direction pointed by the projection of the second reference axis in the display plane of the graphical user interface, and the second direction is the direction pointed by the projection of the third reference axis in the display plane of the graphical user interface.

[0077] The first direction and the second direction provide two reference directions for the movement of the rotation mark. When the user moves the rotation mark in the first direction, the target virtual object rotates around the second reference axis. When the user moves the rotation mark in the second direction, the target virtual object rotates around the third reference axis. When the user moves the rotation mark in a direction other than the first direction and the second direction, the moving direction is the result of the superposition of the first direction and the second direction. The moving direction can be decomposed into the first direction and the second direction. For example, the decomposition calculation can be performed according to the relationship of trigonometric functions. The corresponding first rotation component and second rotation component are calculated according to the decomposed components, and the target virtual object is controlled to rotate the first rotation component around the second reference axis and the second rotation component around the third reference axis.

[0078] Figure 6B A schematic diagram of a second rotary control 602 and a second control operation instruction is shown. The second rotary control 602 may be a movable spherical control, and a user may drag the second rotary control 602 to move within its movable area (such as the area surrounded by the first rotary control 601) to implement the second control operation instruction. Figure 6B FIG. 6 shows that the user moves the second rotation control 602 from the initial position at the center of the target virtual object to the upper right, and accordingly controls the target virtual object to rotate a certain angle around the second reference axis and a certain angle around the third reference axis to form Figure 6B The rotation state is shown in .

[0079] In one embodiment, the virtual object control method may further include the following steps:

[0080] A first direction indicator for indicating a first direction and a second direction indicator for indicating a second direction are displayed on the second rotation control.

[0081] refer to Figure 6CAs shown, the first direction indicator 603 can be a horizontal arrow (including a left arrow and a right arrow), and the second direction indicator 604 can be a vertical arrow (including an upward arrow and a downward arrow). By displaying the first direction indicator and the second direction indicator, the user has an intuitive direction reference in the process of moving the rotation indicator, which facilitates accurate operation. The present disclosure does not limit the timing of displaying the first direction indicator and the second direction indicator. Exemplarily, the first direction indicator and the second direction indicator can be always displayed when the second rotation control is displayed. Alternatively, the first direction indicator and the second direction indicator are displayed when the rotation indicator is operated (such as moving the rotation indicator, or clicking the rotation indicator, etc.).

[0082] In one embodiment, if the first direction and the second direction are respectively the X-axis direction and the Y-axis direction in the display plane, when the virtual camera moves (such as translation, rotation) causing the viewing angle to change, or the target virtual object itself moves, since the display plane does not change, the first direction and the second direction do not change, and the first direction identifier and the second direction identifier displayed above do not change. If the first direction and the second direction are respectively the directions in which the projections of the second reference axis and the third reference axis on the display plane point, when the virtual camera moves (such as translation, rotation) causing the viewing angle to change, or the target virtual object itself moves, the second reference axis and the third reference axis may change, or their projection relationship with the display plane may change, which may cause the first direction and the second direction to change, and the first direction identifier and the second direction identifier displayed above may be adaptively adjusted with the changes in the first direction and the second direction.

[0083] In one embodiment, the responding to the first rotation instruction for the target virtual object and controlling the target virtual object to rotate around the first reference axis according to the first rotation instruction includes:

[0084] In response to a third control operation instruction for the second rotation control, the target virtual object is controlled to rotate around the first reference axis according to the third control operation instruction.

[0085] The third control operation instruction is an operation instruction different from the second control operation instruction. For example, the operation methods or operation directions of the two are different. When the user performs the third control operation instruction, the effect of controlling the rotation of the target virtual object around the first reference axis through the second rotation control can be achieved. This enables the second rotation control to control the rotation of three degrees of freedom.

[0086] In one embodiment, the second rotation control includes a rotation indicator. Accordingly, the above-mentioned response to the third control operation instruction for the second rotation control, and controlling the target virtual object to rotate around the first reference axis according to the third control operation instruction, includes:

[0087] In response to an operation instruction to move the rotation mark in a second preset manner, the target virtual object is controlled to rotate around the first reference axis according to the movement trajectory of the rotation mark.

[0088] The second preset method is different from the first preset method. For example, the first preset method is a method of moving the rotation mark in any direction perpendicular to the rotation guide figure, and the second preset method may be a method of moving the rotation mark in a direction not perpendicular to the rotation guide figure.

[0089] In one embodiment, the above-mentioned response to the operation instruction of moving the rotation mark in the second preset manner, controlling the target virtual object to rotate around the first reference axis according to the movement trajectory of the rotation mark, includes at least one of the following steps:

[0090] In response to an operation instruction to move a rotation marker along a second preset graphic, the target virtual object is controlled to rotate around a first reference axis according to the moving trajectory of the rotation marker. The second preset graphic is used to indicate the rotation trajectory of the target virtual object around the first reference axis, and may be the above-mentioned first preset graphic or other graphics. For example, although the first preset graphic and the second preset image are both graphics indicating the rotation trajectory of the target virtual object around the first reference axis, the first preset graphic is a graphic that serves as a rotation guide in the first rotation control, and the second preset graphic is a graphic that provides a reference for the movement of the rotation marker. The two may be the same graphic or two independent graphics. Exemplarily, the second preset graphic may be a circle or an ellipse, etc. When the user moves the rotation marker along the second preset graphic, the target virtual object is controlled to rotate around the first reference axis according to the moving trajectory of the rotation marker, and the rotation trajectory of the target virtual object matches the moving trajectory of the rotation marker. Reference Fig. 7A As shown, the first rotation control 601 (ie, the rotation guide graphic) can be used as the second preset graphic. When the user moves the second rotation control 602 (ie, the rotation mark) along the second preset graphic, the target virtual object is controlled to rotate around the first reference axis.

[0091] In response to an operation instruction to move a rotation mark along a similar figure to the second preset figure, the target virtual object is controlled to rotate around the first reference axis according to the moving trajectory of the rotation mark; the similar figure is a figure with the same shape as the second preset image but a different size. For example, the second preset image is a circle, and its similar figure can be a concentric circle of the circle, and the radius of the similar figure is different from that of the second preset figure. Alternatively, the second preset image is an ellipse, and its similar figure can be an ellipse in which the circle overlaps with the second preset figure, and the major axis and the minor axis are scaled at the same ratio. When the user moves the rotation mark along a similar figure to the second preset figure, it can have the same or similar effect as moving the rotation mark along the second preset figure, so that the target virtual object rotates around the first reference axis. Reference Figure 7BAs shown, the first rotation control 601 (i.e., the rotation guide graphic) can be used as the second preset graphic. When the user moves the second rotation control 602 (i.e., the rotation mark) along the concentric arc line of the second preset graphic, the target virtual object is controlled to rotate around the first reference axis.

[0092] In one embodiment, providing the second rotation control may include the following steps:

[0093] A combined rotating control is provided; the combined rotating control includes a first rotating control and a second rotating control.

[0094] As mentioned above Fig. 6A , Figure 6B or Figure 6C As shown, the first rotation control 601 and the second rotation control 602 can be arranged in a combined rotation control. Thus, by providing the combined rotation control, the user can freely choose to use the first rotation control 601 or the second rotation control 602 to realize rotation in different directions or planes.

[0095] In one embodiment, the first rotation control is a rotation guide graphic, the second rotation control is a rotation mark, and the area surrounded by the rotation guide graphic is the movable area of ​​the rotation mark. That is, when the user moves the rotation mark, he cannot exceed the rotation guide graphic. Such a graphic structure is very intuitive and easy for users to understand and operate.

[0096] In one implementation, the initial position of the rotation mark may be located at the center of the rotation guide graphic.

[0097] In one embodiment, providing the combined rotation control may include the following steps:

[0098] Displays a combined spin control in at least one of the following positions:

[0099] The display position of the target virtual object may be, for example, a rotation mark may be displayed at the center of the target virtual object displayed in the graphical user interface, and a rotation guide graphic may be displayed at the periphery of the rotation mark.

[0100] A preset position in a graphical user interface, wherein the preset position may be a fixed position in the graphical user interface, such as a fixed position in the upper right corner or the lower left corner, and a combined rotation control is displayed at the fixed position.

[0101] The operation position of the rotation instruction. For example, when the user performs a rotation operation, a combined rotation control can be displayed at the position where the user initially clicks.

[0102] In one implementation, the first rotation control may be displayed at at least one of a display position of the target virtual object, a preset position in a graphical user interface, and an operation position of a rotation instruction.

[0103] In one implementation, the second rotation control may be displayed at at least one of a display position of the target virtual object, a preset position in a graphical user interface, and an operation position of a rotation instruction.

[0104] In one embodiment, the above-mentioned response to the rotation instruction of the target virtual object in the virtual field, and controlling the target virtual object to rotate around the reference axis according to the rotation instruction, may include the following steps:

[0105] When the current rotation mode is the first rotation mode, in response to a rotation instruction for the target virtual object, the target virtual object is controlled to rotate around a reference axis according to the rotation instruction.

[0106] The first rotation mode is a rotation mode based on the reference axis system including the first reference axis, which is different from a rotation mode taking the world coordinate system or the local coordinate system as a reference.

[0107] In one embodiment, the virtual object control method may further include at least one of the following steps:

[0108] When the current rotation mode is the second rotation mode, in response to a rotation instruction for the target virtual object, the target virtual object is controlled to rotate around an axis of a local coordinate system of the target virtual object.

[0109] When the current rotation mode is the third rotation mode, in response to a rotation instruction for the target virtual object, the target virtual object is controlled to rotate around an axis of the world coordinate system.

[0110] The second rotation mode is a rotation mode that takes the local coordinate system of the target virtual object as a reference, such as Figure 1B The third rotation mode is a rotation mode based on the world coordinate system, such as Figure 1A The user can choose between the first rotation mode and other rotation modes (such as the second rotation mode and the third rotation mode) to flexibly use different rotation modes to achieve various operation purposes.

[0111] In one embodiment, in response to an operation instruction for a rotation mode selection control, a current rotation mode is determined from a plurality of candidate rotation modes. Figure 8 As shown, the rotation mode selection control provides multiple options corresponding to candidate rotation modes, where "free rotation" represents the first rotation mode, "local rotation" represents the second rotation mode, and "world rotation" represents the third rotation mode. Users can conveniently switch between different rotation modes through this control, which is conducive to further improving operation efficiency.

[0112] In one embodiment, when the rotation operation state is activated (for example, when the target virtual object is selected, click Fig. 6A In the case where the "Rotate" icon on the operation panel shown in the middle and lower part is clicked to activate the rotate operation state), a rotation mode selection control is provided.

[0113] In one embodiment, in response to determining that the current rotation mode is the first rotation mode, the first rotation control, the second rotation control, or the combined rotation control is provided.

[0114] In one embodiment, the virtual object control method may further include the following steps:

[0115] When the current rotation mode is the first rotation mode, the target virtual object is displayed at the center of the screen.

[0116] Among them, the target virtual object is displayed at the center of the screen. In one embodiment, it can be understood that the display position of the center point of the target virtual object coincides with the center position of the screen. If the target virtual object is not originally displayed at the center of the screen, the virtual camera is automatically adjusted so that the target virtual object is displayed at the center of the screen of the virtual scene. This ensures that the direction of the line from the virtual camera to the target virtual object is perpendicular to the display plane of the graphical user interface, that is, the first reference axis is perpendicular to the display plane, which means that the first rotation plane is parallel to the display plane, and the direction of the first reference axis is the same as the user's line of sight. In the process of controlling the target virtual object to rotate around the first reference axis, the user can observe the rotation state of the target virtual object at the best viewing angle through the display plane, which is convenient for accurate operation.

[0117] In one embodiment, the virtual object control method may further include the following steps:

[0118] In response to movement of at least one of the virtual camera and the target virtual object, the reference axis is adjusted according to a line connecting the virtual camera and the target virtual object after the movement.

[0119] For example, when the virtual camera moves or the target virtual object moves, the direction of the line connecting the virtual camera and the target virtual object changes. The first reference axis can be adjusted accordingly, so that the first reference axis is still the direction of the line connecting the virtual camera and the target virtual object, and the second and third reference axes are adjusted according to the adjusted first reference axis. This ensures that the reference axis matches the user's line of sight, making it easier for the user to perform accurate rotation operations.

[0120] The exemplary embodiment of the present disclosure also provides a virtual object control device. Fig. 9 As shown, the virtual object control device 900 includes the following program modules:

[0121] The virtual scene display processing module 910 is configured to display a picture of a virtual scene through a graphical user interface provided by a terminal device; the picture is a picture formed by a virtual camera set in the virtual scene shooting the virtual scene; the virtual scene includes one or more virtual objects;

[0122] The rotation control module 920 is configured to respond to a rotation instruction for a target virtual object in the virtual scene, and control the target virtual object to rotate around a reference axis according to the rotation instruction; the reference axis at least includes a first reference axis formed by a line connecting the virtual camera and the target virtual object.

[0123] In one embodiment, the rotation instruction includes a first rotation instruction and a second rotation instruction; the reference axis also includes a second reference axis and a third reference axis, and the second reference axis and the third reference axis are both perpendicular to the first reference axis; the response to the rotation instruction for the target virtual object in the virtual scene, and the control of the target virtual object to rotate around the reference axis according to the rotation instruction, includes:

[0124] In response to a first rotation instruction for the target virtual object, controlling the target virtual object to rotate around the first reference axis according to the first rotation instruction;

[0125] In response to a second rotation instruction for the target virtual object, the target virtual object is controlled to rotate around the second reference axis or the third reference axis according to the second rotation instruction.

[0126] In one implementation, the rotation control module 920 is further configured to:

[0127] providing a first rotary control;

[0128] The step of responding to a first rotation instruction for the target virtual object and controlling the target virtual object to rotate around the first reference axis according to the first rotation instruction comprises:

[0129] In response to a first control operation instruction for the first rotation control, the target virtual object is controlled to rotate around the first reference axis according to the first control operation instruction.

[0130] In one embodiment, the first rotation control includes a rotation guide graphic; the responding to a first control operation instruction for the first rotation control, and controlling the target virtual object to rotate around the first reference axis according to the first control operation instruction, includes:

[0131] In response to a sliding operation instruction for the rotation guide graphic, the target virtual object is controlled to rotate around the first reference axis according to the sliding operation instruction.

[0132] In one embodiment, the rotation guide graphic includes at least one of the following: a first preset graphic; a graphic formed by projecting the first preset graphic according to the projection relationship between a first rotation plane and a display plane of the graphical user interface, wherein the first rotation plane is a plane perpendicular to the first reference axis.

[0133] In one implementation, the rotation control module 920 is further configured to:

[0134] In response to a sliding operation instruction for the rotating guide graphic, a portion of the rotating guide graphic from a sliding start point to a current sliding position is displayed in a manner distinguished from other portions.

[0135] In one implementation, the rotation control module 920 is further configured to:

[0136] providing a second rotary control;

[0137] The step of responding to a second rotation instruction for the target virtual object and controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the second rotation instruction comprises:

[0138] In response to a second control operation instruction for the second rotation control, the target virtual object is controlled to rotate around the second reference axis or the third reference axis according to the second control operation instruction.

[0139] In one embodiment, the second rotation control includes a rotation identifier; the responding to the second control operation instruction for the second rotation control, and controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the second control operation instruction, includes:

[0140] In response to an operation instruction to move the rotation mark in a first preset manner, the target virtual object is controlled to rotate around the second reference axis or the third reference axis according to a movement trajectory of the rotation mark.

[0141] In one embodiment, responding to the operation instruction to move the rotation mark in a first preset manner, controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the movement trajectory of the rotation mark, includes:

[0142] In response to an operation instruction to move the rotation mark along a first direction, controlling the target virtual object to rotate around the second reference axis;

[0143] In response to an operation instruction to move the rotation mark along a second direction, controlling the target virtual object to rotate around the third reference axis; the second direction is perpendicular to the first direction;

[0144] In response to an operation instruction to move the rotation identifier in a direction other than the first direction and the second direction, a first rotation component and a second rotation component are determined according to the component of the movement direction of the rotation identifier in the first direction and the component in the second direction, and the target virtual object is controlled to rotate the first rotation component around the second reference axis and the second rotation component around the third reference axis.

[0145] In one implementation, the rotation control module 920 is further configured to:

[0146] A first direction mark for indicating the first direction and a second direction mark for indicating the second direction are displayed on the second rotation control.

[0147] In one embodiment, the movable area of ​​the rotating mark is an area determined according to a preset size based on the position of the rotating mark before movement.

[0148] In one embodiment, responding to a first rotation instruction for the target virtual object and controlling the target virtual object to rotate around the first reference axis according to the first rotation instruction includes:

[0149] In response to a third control operation instruction for the second rotation control, the target virtual object is controlled to rotate around the first reference axis according to the third control operation instruction.

[0150] In one embodiment, the second rotation control includes a rotation identifier; the responding to a third control operation instruction for the second rotation control and controlling the target virtual object to rotate around the first reference axis according to the third control operation instruction includes:

[0151] In response to an operation instruction to move the rotation mark in a second preset manner, the target virtual object is controlled to rotate around the first reference axis according to a movement trajectory of the rotation mark.

[0152] In one embodiment, responding to the operation instruction to move the rotation mark in a second preset manner and controlling the target virtual object to rotate around the first reference axis according to the movement trajectory of the rotation mark includes at least one of the following steps:

[0153] In response to an operation instruction to move the rotation mark along a second preset pattern, controlling the target virtual object to rotate around the first reference axis according to a moving trajectory of the rotation mark;

[0154] In response to an operation instruction to move the rotation mark along a similar figure of a second preset figure, the target virtual object is controlled to rotate around the first reference axis according to the moving trajectory of the rotation mark; the similar figure is a figure with the same shape but different size as the second preset image.

[0155] In one embodiment, providing a second rotation control includes:

[0156] A combined rotation control is provided; the combined rotation control includes a first rotation control and the second rotation control.

[0157] In one embodiment, the first rotation control is a rotation guide graphic, the second rotation control is a rotation mark, and the movable area of ​​the rotation mark is the enclosed area of ​​the rotation guide graphic.

[0158] In one embodiment, providing a combined rotation control includes:

[0159] The combined rotation control is displayed at at least one of the following positions: a display position of the target virtual object, a preset position in the graphical user interface, and an operation position of the rotation instruction.

[0160] In one embodiment, responding to a rotation instruction for a target virtual object in the virtual field and controlling the target virtual object to rotate around a reference axis according to the rotation instruction includes:

[0161] When the current rotation mode is the first rotation mode, in response to a rotation instruction for the target virtual object, the target virtual object is controlled to rotate around a reference axis according to the rotation instruction.

[0162] In one implementation, the rotation control module 920 is further configured to perform at least one of the following steps:

[0163] When the current rotation mode is the second rotation mode, responding to a rotation instruction for the target virtual object, controlling the target virtual object to rotate around an axis of a local coordinate system of the target virtual object;

[0164] When the current rotation mode is the third rotation mode, in response to a rotation instruction for the target virtual object, the target virtual object is controlled to rotate around an axis of the world coordinate system.

[0165] In one implementation, the virtual scene display processing module 910 is further configured to:

[0166] When the current rotation mode is the first rotation mode, the target virtual object is displayed at the center of the screen.

[0167] In one implementation, the rotation control module 920 is further configured to:

[0168] In response to movement of at least one of the virtual camera and the target virtual object, the reference axis is adjusted according to a line connecting the virtual camera and the target virtual object after the movement.

[0169] The specific details of each part of the above-mentioned device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0170] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0171] The exemplary embodiments of the present disclosure also provide a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the virtual object control method is implemented.

[0172] In one embodiment, the computer program product may be a tangible product containing a computer program, such as a computer-readable storage medium storing a computer program. The readable storage medium may be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing a computer program, such as a read-only memory, a NAND flash memory, and the like.

[0173] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.

[0174] The code of the computer program can be written in one or more programming languages. Programming languages ​​such as C language, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).

[0175] Computer programs can be carried or transmitted through electrical, magnetic, optical, electromagnetic, infrared and other signals. Electronic devices can convert signals carrying computer programs into digital signals to run computer programs. When a computer program runs on an electronic device, its code is used to enable the electronic device to execute (more specifically, the processor of the electronic device can execute) the method steps of various exemplary embodiments of the present disclosure, such as the above-mentioned virtual object control method, which includes the following steps: Step S310, displaying a picture of a virtual scene through a graphical user interface provided by a terminal device; the picture is a picture formed by a virtual camera set in the virtual scene shooting the virtual scene; the virtual scene includes one or more virtual objects; Step S320, responding to a rotation instruction for a target virtual object in the virtual scene, controlling the target virtual object to rotate around a reference axis according to the rotation instruction; the reference axis at least includes a first reference axis formed by a line connecting the virtual camera and the target virtual object.

[0176] The above method steps are implemented by a computer program, and a reference axis system is determined based on the connection line between the virtual camera and the target virtual object. When the user rotates the target virtual object, the target virtual object is controlled to rotate around the reference axis of the reference axis system, so that the rotation of the target virtual object matches the direction of the user's line of sight when viewing the target virtual object. Thus, a rotation operation method that meets the user's intuition is provided, which facilitates the user to intuitively and accurately observe the rotation state of the virtual object, helps to reduce repeated operation adjustments, and improves operation efficiency.

[0177] The exemplary embodiments of the present disclosure also provide an electronic device, such as the terminal device 210 or the server 220 described above. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as a computer program. The processor executes the method steps of various exemplary embodiments of the present disclosure by executing the executable instructions. In addition, the electronic device may also include a display for displaying a graphical user interface.

[0178] Reference below Fig.10, the electronic device is exemplarily described in the form of a general-purpose computing device. It should be understood that Fig.10 The electronic device 1000 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0179] like Fig.10 As shown, the electronic device 1000 may include: a processor 1010 , a memory 1020 , a bus 1030 , an I / O (input / output) interface 1040 , a network adapter 1050 , and a display 1060 .

[0180] The memory 1020 may include a volatile memory, such as a RAM 1021, a cache unit 1022, and may also include a non-volatile memory, such as a ROM 1023. The memory 1020 may also include one or more program modules 1024, such program modules 1024 include but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. For example, the program module 1024 may include each module in the above-mentioned device.

[0181] The processor 1010 may include one or more processing units. For example, the processor 1010 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc.

[0182] Processor 1010 can be used to execute executable instructions stored in memory 1020, such as the above-mentioned virtual object control method, which includes the following steps: step S310, displaying a picture of a virtual scene through a graphical user interface provided by a terminal device; the picture is a picture formed by a virtual camera set in the virtual scene shooting the virtual scene; the virtual scene includes one or more virtual objects; step S320, responding to a rotation instruction for a target virtual object in the virtual scene, controlling the target virtual object to rotate around a reference axis according to the rotation instruction; the reference axis at least includes a first reference axis formed by a line connecting the virtual camera and the target virtual object.

[0183] The processor 1010 executes the above method steps, determines the reference axis system based on the connection line between the virtual camera and the target virtual object, and controls the target virtual object to rotate around the reference axis of the reference axis system during the user's rotation of the target virtual object, so that the rotation of the target virtual object matches the user's line of sight of the target virtual object. Thus, a rotation operation method that meets the user's intuition is provided, which facilitates the user to intuitively and accurately observe the rotation state of the virtual object, helps to reduce repeated operation adjustments, and improves operation efficiency.

[0184] The bus 1030 is used to realize the connection between different components of the electronic device 1000, and may include a data bus, an address bus, and a control bus.

[0185] The electronic device 1000 can communicate with one or more external devices 1100 (eg, a keyboard, a mouse, an external controller, etc.) through the I / O interface 1040 .

[0186] The electronic device 1000 can communicate with one or more networks through the network adapter 1050. For example, the network adapter 1050 can provide mobile communication solutions such as 3G / 4G / 5G, or provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. The network adapter 1050 can communicate with other modules of the electronic device 1000 through the bus 1030.

[0187] The electronic device 1000 may display a graphical user interface, such as a screen showing a virtual scene, through the display 1060 .

[0188] although Fig.10 Not shown, other hardware and / or software modules may also be provided in the electronic device 1000, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0189] As can be seen from the above, the technical solution of the present disclosure can be implemented as a method, an apparatus, a system, a computer program product, a storage medium, an electronic device, etc. Those skilled in the art can understand that various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, such as being respectively referred to as a "circuit", "module" or "system".

[0190] It should be understood that the present disclosure is not limited to the specific method steps or structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. Those skilled in the art will easily think of other embodiments based on the specific embodiments provided by the present disclosure. Therefore, the specific embodiments provided by the present disclosure are only exemplary, and the scope and spirit of the present disclosure are indicated by the claims, and any variations, uses or adaptive changes of the present disclosure should be covered, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure.

Claims

1. A virtual object control method, characterized in that: The method comprises: A graphical user interface provided by a terminal device displays a picture of a virtual scene; the picture is formed by a virtual camera set in the virtual scene photographing the virtual scene; the virtual scene includes one or more virtual objects; In response to a rotation instruction for a target virtual object in the virtual scene, the target virtual object is controlled to rotate around a reference axis according to the rotation instruction; the reference axis at least includes a first reference axis formed by a line connecting the virtual camera and the target virtual object.

2. The method according to claim 1, characterized in that The rotation instruction includes a first rotation instruction and a second rotation instruction; the reference axis also includes a second reference axis and a third reference axis, and the second reference axis and the third reference axis are both perpendicular to the first reference axis; The responding to a rotation instruction for a target virtual object in the virtual scene and controlling the target virtual object to rotate around a reference axis according to the rotation instruction comprises: In response to a first rotation instruction for the target virtual object, controlling the target virtual object to rotate around the first reference axis according to the first rotation instruction; In response to a second rotation instruction for the target virtual object, the target virtual object is controlled to rotate around the second reference axis or the third reference axis according to the second rotation instruction.

3. The method according to claim 2, characterized in that The method further comprises: providing a first rotary control; The step of responding to a first rotation instruction for the target virtual object and controlling the target virtual object to rotate around the first reference axis according to the first rotation instruction comprises: In response to a first control operation instruction for the first rotation control, the target virtual object is controlled to rotate around the first reference axis according to the first control operation instruction.

4. The method according to claim 3, characterized in that The first rotation control includes a rotation guide graphic; the responding to a first control operation instruction for the first rotation control, and controlling the target virtual object to rotate around the first reference axis according to the first control operation instruction, includes: In response to a sliding operation instruction for the rotation guide graphic, the target virtual object is controlled to rotate around the first reference axis according to the sliding operation instruction.

5. The method according to claim 4, characterized in that The rotation guide graphic includes at least one of the following: a first preset graphic; a graphic formed by projecting the first preset graphic according to the projection relationship between a first rotation plane and a display plane of the graphical user interface, wherein the first rotation plane is a plane perpendicular to the first reference axis.

6. The method according to claim 4, characterized in that The method further comprises: In response to a sliding operation instruction for the rotating guide graphic, a portion of the rotating guide graphic from a sliding start point to a current sliding position is displayed in a manner distinguished from other portions.

7. The method according to claim 2, characterized in that The method further comprises: providing a second rotary control; The step of responding to a second rotation instruction for the target virtual object and controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the second rotation instruction comprises: In response to a second control operation instruction for the second rotation control, the target virtual object is controlled to rotate around the second reference axis or the third reference axis according to the second control operation instruction.

8. The method according to claim 7, characterized in that The second rotation control includes a rotation identifier; the responding to the second control operation instruction for the second rotation control, and controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the second control operation instruction, includes: In response to an operation instruction to move the rotation mark in a first preset manner, the target virtual object is controlled to rotate around the second reference axis or the third reference axis according to a movement trajectory of the rotation mark.

9. The method according to claim 8, characterized in that The step of responding to the operation instruction of moving the rotation mark in a first preset manner and controlling the target virtual object to rotate around the second reference axis or the third reference axis according to the movement trajectory of the rotation mark includes: In response to an operation instruction to move the rotation mark along a first direction, controlling the target virtual object to rotate around the second reference axis; In response to an operation instruction to move the rotation mark along a second direction, controlling the target virtual object to rotate around the third reference axis; the second direction is perpendicular to the first direction; In response to an operation instruction to move the rotation identifier in a direction other than the first direction and the second direction, a first rotation component and a second rotation component are determined according to the component of the movement direction of the rotation identifier in the first direction and the component in the second direction, and the target virtual object is controlled to rotate the first rotation component around the second reference axis and the second rotation component around the third reference axis.

10. The method according to claim 9, characterized in that The method further comprises: A first direction mark for indicating the first direction and a second direction mark for indicating the second direction are displayed on the second rotation control.

11. The method according to claim 8, characterized in that The movable area of ​​the rotating mark is an area determined according to a preset size based on the position of the rotating mark before movement.

12. The method according to claim 7, characterized in that The step of responding to a first rotation instruction for the target virtual object and controlling the target virtual object to rotate around the first reference axis according to the first rotation instruction comprises: In response to a third control operation instruction for the second rotation control, the target virtual object is controlled to rotate around the first reference axis according to the third control operation instruction.

13. The method according to claim 12, characterized in that The second rotation control includes a rotation identifier; the responding to a third control operation instruction for the second rotation control and controlling the target virtual object to rotate around the first reference axis according to the third control operation instruction includes: In response to an operation instruction to move the rotation mark in a second preset manner, the target virtual object is controlled to rotate around the first reference axis according to a movement trajectory of the rotation mark.

14. The method according to claim 13, characterized in that The step of responding to the operation instruction of moving the rotation mark in a second preset manner and controlling the target virtual object to rotate around the first reference axis according to the movement trajectory of the rotation mark comprises at least one of the following steps: In response to an operation instruction to move the rotation mark along a second preset pattern, controlling the target virtual object to rotate around the first reference axis according to a moving trajectory of the rotation mark; In response to an operation instruction to move the rotation mark along a similar figure of a second preset figure, the target virtual object is controlled to rotate around the first reference axis according to the moving trajectory of the rotation mark; the similar figure is a figure with the same shape but different size as the second preset image.

15. The method according to claim 7, characterized in that The providing of a second rotation control comprises: A combined rotation control is provided; the combined rotation control includes a first rotation control and the second rotation control.

16. The method according to claim 15, characterized in that The first rotation control is a rotation guide graphic, the second rotation control is a rotation mark, and the movable area of ​​the rotation mark is the enclosed area of ​​the rotation guide graphic.

17. The method according to claim 15, characterized in that The combined rotation control provided includes: The combined rotation control is displayed at at least one of the following positions: a display position of the target virtual object, a preset position in the graphical user interface, and an operation position of the rotation instruction.

18. The method according to claim 1, characterized in that The responding to a rotation instruction of a target virtual object in the virtual field and controlling the target virtual object to rotate around a reference axis according to the rotation instruction comprises: When the current rotation mode is the first rotation mode, in response to a rotation instruction for the target virtual object, the target virtual object is controlled to rotate around a reference axis according to the rotation instruction.

19. The method according to claim 18, characterized in that The method further comprises at least one of the following steps: When the current rotation mode is the second rotation mode, responding to a rotation instruction for the target virtual object, controlling the target virtual object to rotate around an axis of a local coordinate system of the target virtual object; When the current rotation mode is the third rotation mode, in response to a rotation instruction for the target virtual object, the target virtual object is controlled to rotate around an axis of the world coordinate system.

20. The method according to claim 18, characterized in that The method further comprises: When the current rotation mode is the first rotation mode, the target virtual object is displayed at the center of the screen.

21. The method according to claim 1, characterized in that The method further comprises: In response to movement of at least one of the virtual camera and the target virtual object, the reference axis is adjusted according to a line connecting the virtual camera and the target virtual object after the movement.

22. A virtual object control device, characterized in that: The device comprises: A virtual scene display processing module is configured to display a picture of a virtual scene through a graphical user interface provided by a terminal device; the picture is a picture formed by a virtual camera set in the virtual scene shooting the virtual scene; the virtual scene includes one or more virtual objects; A rotation control module is configured to respond to a rotation instruction for a target virtual object in the virtual scene, and control the target virtual object to rotate around a reference axis according to the rotation instruction; the reference axis at least includes a first reference axis formed by a line connecting the virtual camera and the target virtual object.

23. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 21 is implemented.

24. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 21 by executing the executable instructions.