Virtual object display control method and apparatus, program product and electronic device
By adjusting the positional relationships of virtual objects in the graphical user interface, the display problem of virtual objects at the edge of the screen or when they are obscured is solved, improving the accuracy and smoothness of operation and enhancing the user experience.
Patent Information
- Application Number
- PCT/CN2025/098171
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-25
- Filing Date
- 2025-05-29
- Publication Date
- 2026-01-02
AI Technical Summary
In a virtual environment, when a user interacts with a virtual object, the object may become obscured or moved to the edge of the screen, making it difficult to see and causing inconvenience.
The virtual scene is displayed through a graphical user interface, responding to user operations to move virtual objects. When the target virtual object and the second area in the graphical user interface meet a preset relationship, the positional relationship between the virtual object and the first area is adjusted to ensure that the virtual object is displayed well in the view.
It improves the accuracy and smoothness of user operations, enhances the user experience, and ensures that virtual objects can still be adjusted for display in a timely manner when they are at the edge of the screen or obscured.
Smart Images

Figure CN2025098171_02012026_PF_FP_ABST
Abstract
Description
Virtual object display control method, device, program product, and electronic device
[0001] Cross Reference to Related Applications
[0002] This application claims priority to Chinese Patent Application No. 202410833613.7, filed on June 25, 2024, entitled “Virtual Object Display Control Method, Device, Program Product, and Electronic Device,” the entire contents of which are incorporated herein by reference. TECHNICAL FIELD
[0003] The present disclosure relates to the technical field of computers and human-computer interaction, and in particular to a virtual object display control method, a virtual object display control device, a computer program product, and an electronic device. BACKGROUND
[0004] In some virtual scenes, a user often needs to operate a mobile virtual object. For example, in a game editing scene, the user can place virtual objects such as scene components and adjust their positions to obtain an ideal layout.
[0005] During movement, there can be a situation in which the user cannot see the virtual object, such as when the virtual object moved by the user is blocked by other virtual objects in the virtual scene, or when the user moves the virtual object to the boundary of the screen, and the virtual object is partially outside the screen, and so on. In this case, the user’s movement operation cannot be visually fed back, such as the user cannot accurately see the current position of the virtual object, thereby causing inconvenience in operation. SUMMARY
[0006] The present disclosure provides a virtual object display control method, a virtual object display control device, a computer program product, and an electronic device to at least partially solve the problem of inconvenient operation of a mobile virtual object.
[0007] According to a first aspect of the present disclosure, a virtual object display control method is provided, which provides a graphical user interface through a terminal device; the method comprises: displaying a field of view picture of a virtual scene through the graphical user interface; the field of view picture is a picture corresponding to at least a local region in the virtual scene; a target virtual object is displayed in the field of view picture; in response to a movement operation on the target virtual object, moving the target virtual object in the virtual scene; in response to the target virtual object and a second region in the graphical user interface satisfying a first preset relationship, controlling to adjust the positional relationship between the target virtual object and a first region in the graphical user interface; wherein the first region is in the display region of the field of view picture.
[0008] According to a second aspect of the present disclosure, a virtual object display control apparatus is provided, which provides a graphical user interface through a terminal device; the apparatus comprises: a field-of-view picture display processing module configured to display a field-of-view picture of a virtual scene through the graphical user interface; the field-of-view picture is a picture corresponding to at least a partial region in the virtual scene; a target virtual object is displayed in the field-of-view picture; a movement control module configured to move the target virtual object in the virtual scene in response to a movement operation on the target virtual object; a position relationship adjustment module configured to control to adjust a position relationship between the target virtual object and a first region in the graphical user interface in response to the target virtual object satisfying a first preset relationship with a second region in the graphical user interface; wherein the first region is in a display region of the field-of-view picture.
[0009] According to a third aspect of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the method of the first aspect and possible implementation manners thereof.
[0010] 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 first aspect and possible implementation manners thereof by executing the executable instructions.
[0011] The technical solution of the present disclosure has the following beneficial effects:
[0012] In the process of user operation of moving a target virtual object in a virtual scene, if the target virtual object satisfies a first preset relationship with a second region, a position relationship between the target virtual object and a first region is adjusted. Thus, in the case of display state being affected, such as the target virtual object moving to the edge of the screen or outside the screen, or being blocked by other virtual objects, the position relationship between the target virtual object and the first region is timely adjusted, so that the target virtual object can be better displayed in the field-of-view picture, the visual feedback of the user's movement operation is ensured, the operation accuracy is improved, other operations are facilitated, the smoothness of the interactive process is improved, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0013] FIG. 1 shows a system architecture diagram of one of the present exemplary embodiments;
[0014] FIG. 2 shows a flow chart of a virtual object display control method of one of the present exemplary embodiments;
[0015] FIG. 3A shows a schematic diagram of a graphical user interface of one of the present exemplary embodiments;
[0016] FIG. 3B illustrates a schematic view of one of the graphical user interfaces in the present exemplary embodiment;
[0017] FIG. 3C illustrates a schematic view of one of the graphical user interfaces in the present exemplary embodiment;
[0018] FIG. 4A illustrates a schematic view of moving a target virtual object in the present exemplary embodiment;
[0019] FIG. 4B illustrates a schematic view of a first preset relationship in the present exemplary embodiment;
[0020] FIG. 4C illustrates a schematic view of adjusting a field of view in the present exemplary embodiment;
[0021] FIG. 4D illustrates a schematic view of adjusting a field of view in the present exemplary embodiment;
[0022] FIG. 5A illustrates a schematic view of moving a target virtual object in the present exemplary embodiment;
[0023] FIG. 5B illustrates a schematic view of a second preset relationship in the present exemplary embodiment;
[0024] FIG. 5C illustrates a schematic view of adjusting a field of view in the present exemplary embodiment;
[0025] FIG. 6A illustrates a schematic view of moving a target virtual object in the present exemplary embodiment;
[0026] FIG. 6B illustrates a schematic view of a first preset relationship in the present exemplary embodiment;
[0027] FIG. 6C illustrates a schematic view of adjusting a field of view in the present exemplary embodiment;
[0028] FIG. 7 illustrates a schematic view of a structure of a virtual object display control device in the present exemplary embodiment;
[0029] FIG. 8 illustrates a schematic view of a structure of an electronic device in the present exemplary embodiment. DETAILED DESCRIPTION
[0030] Example embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings.
[0031] The accompanying drawings are illustrative of the present disclosure and are not necessarily drawn to scale. Some of the blocks in the drawings can be functional blocks that can employ software, hardware, firmware, or a combination thereof for implementation. The embodiments can be implemented in a variety of ways and should not be limited to the examples set forth herein. The features, structures, or characteristics of the disclosure described herein can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the various embodiments of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, materials, and so forth. In some instances, well-known structures, materials, or operations are not shown or described in detail in order to avoid obscuring aspects of the present disclosure.
[0032] In the related art, when a user moves a virtual object by touching a screen with a finger, if the finger moves to the edge of the screen, a display area in the screen is triggered to move following the movement of the finger, so that the user can continue to move the virtual object and see the virtual object. However, if the virtual object has been at the edge of the screen or even outside the screen before the finger moves to the edge of the screen, even if the display area is moved, the user still cannot see the virtual object or can only see a small part of the virtual object after the finger moves to the edge of the screen, resulting in inconvenience in operation.
[0033] In view of one or more of the above problems, exemplary embodiments of the present disclosure provide a virtual object display control method. Application scenarios of the method include but are not limited to the following scenarios: in a game editing scenario, a user can place and edit scene components, when the user moves the scene components, the method can be executed to ensure that the user can see the scene components or see most of the scene components, so as to facilitate the user to operate. In a graphics editing program, a user can edit virtual elements such as graphics and text boxes on a canvas, when the user moves the virtual elements, the method can be executed to enable the user to see a relatively complete virtual element, so as to facilitate the user to edit.
[0034] FIG. 1 shows a system architecture diagram of an operating environment of the present exemplary embodiment. The system architecture can include a terminal device 110 and a server 120. The terminal device 110 can be a mobile phone, a tablet computer, a personal computer, a smart wearable device, a game console, or the like, which has a display function and can provide a graphical user interface, which can be used to display an interface of an operating system or an interface of an application program, etc. For example, a game program, such as a client program of an online game, can be installed on the terminal device 110, and when the terminal device 110 runs the game program, a relevant game interface, such as a virtual scene interface of a game editing scene, can be displayed in the graphical user interface. The server 120 can be a single server or a cluster of multiple servers, and is configured to provide specific service processing for the terminal device 110. For example, the server 120 can be a game server, which is deployed with a game server program and is configured to perform game data processing on the server side. Alternatively, a graphic editing program can be installed on the terminal device 110, and the server 120 can be a graphic processing server. The terminal device 110 and the server 120 can be connected through a wired or wireless communication link to perform data transmission. The method in the present exemplary embodiment can be performed by any one or more of the terminal device 110 and the server 120.
[0035] In an embodiment, the virtual object display control method can be implemented and executed based on a cloud interaction system. The cloud interaction system can be the above-mentioned system architecture. Various cloud applications, such as cloud gaming, can be run under the cloud interaction system. For example, cloud gaming refers to a game mode based on cloud computing. In the running mode of cloud gaming, the running subject of the game program and the presentation subject of the game picture are separated, and the storage and running of the control and interaction method in the game are completed on a cloud game server (such as the above-mentioned server 120), and the cloud game client (such as the above-mentioned terminal device 110) is configured to receive and send data and present game pictures. For example, the cloud game client can be a display device close to the user side with a data transmission function, such as a mobile terminal, a television, a computer, a palmtop computer, etc., and the cloud game server is configured to process information. When playing or editing a game, 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 picture data, returns the data to the cloud game client through the network, and finally decodes and outputs the game picture through the cloud game client.
[0036] In an embodiment, the virtual object display control method can be completely implemented based on a local computer program. No server is needed, and a local computer program (such as a game program or a graphic editing program that can be run on a single computer) can be installed on the terminal device 110 to execute the virtual object display control method.
[0037] In an embodiment, referring to FIG. 2, the virtual object display control method can include the following steps:
[0038] In step S210, a view picture of a virtual scene is displayed through a graphical user interface; the view picture is a picture corresponding to at least a partial region in the virtual scene; and the target virtual object is displayed in the view picture.
[0039] In step S220, the target virtual object is moved in the virtual scene in response to a movement operation on the target virtual object.
[0040] In step S230, in response to the target virtual object satisfying a first preset relationship with a second region in the graphical user interface, the position relationship between the target virtual object and a first region in the graphical user interface is adjusted; and the first region is in a display region of the view picture.
[0041] In the method shown in FIG. 2, during the process in which the user operates to move the target virtual object in the virtual scene, if the target virtual object satisfies the first preset relationship with the second region, the position relationship between the target virtual object and the first region is adjusted. Thus, when the display state is affected, such as the target virtual object moving to the edge of the screen or outside the screen, or being blocked by other virtual objects, the position relationship between the target virtual object and the first region is adjusted in time, so that the target virtual object can be better displayed in the view picture, the visual feedback of the movement operation of the user is ensured, the operation accuracy is improved, other operations are facilitated, the smoothness of the interactive process is improved, and the user experience is improved.
[0042] Each step in FIG. 2 is described in detail below.
[0043] In step S210, a view picture of a virtual scene is displayed through a graphical user interface; the view picture is a picture corresponding to at least a partial region in the virtual scene; and the target virtual object is displayed in the view picture.
[0044] The virtual scene is a scene provided by a program running on a terminal device, and can be a two-dimensional scene or a three-dimensional scene, etc. For example, 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 can be a level, a town, a home, etc.; a game running scene, which is a game scene loaded and displayed in a running or trial state; and a graphics editing scene, which is a virtual space for a user to edit graphics, such as a canvas, etc.
[0045] The virtual scene can be provided with a virtual object, which can be a virtual person or object in a game editing scene, a virtual model in a game running scene, or a virtual element such as a graphic in a graphics editing scene.
[0046] The field-of-view picture of the virtual scene displayed in the graphical user interface is a picture corresponding to at least a partial region in the virtual scene, i.e., a picture of a field-of-view region that the user can currently see. For example, a virtual camera can be set in the virtual scene, and the field-of-view picture is a picture formed by the virtual camera shooting the virtual scene. The virtual camera can only shoot a partial region of the virtual scene at the same time, and thus the field-of-view picture is a picture of the partial region. In addition to the virtual camera, the field-of-view picture can also be formed by other manners, such as determining a coordinate range corresponding to the field-of-view picture in the virtual scene, and loading information in the coordinate range to form the field-of-view picture and display in the graphical user interface. The field-of-view picture of the virtual scene can be displayed in full screen in the graphical user interface, and thus the display region of the field-of-view picture is the entire graphical user interface. Alternatively, the field-of-view picture of the virtual scene can be displayed in a non-full screen manner in the graphical user interface, such as displaying other interfaces in addition to the field-of-view picture in the graphical user interface, and thus the display region of the field-of-view picture is a partial region of the graphical user interface.
[0047] The target virtual object in the virtual scene is displayed in the field-of-view picture. The target virtual object is a virtual object that can be moved by the user, and can be any one or more virtual objects in the field-of-view picture.
[0048] FIGS. 3A, 3B, and 3C show schematic diagrams of graphical user interfaces. The terminal device displays the graphical user interface on the screen, and the graphical user interface can display the field-of-view picture of the virtual scene in full screen. The virtual objects such as the table and the block are displayed in the field-of-view picture, and can all be target virtual objects.
[0049] Continuing to refer to FIG. 2, in step S220, the target virtual object is moved in the virtual scene in response to the movement operation on the target virtual object.
[0050] For example, the terminal device can be a touch device, and the screen displaying the graphical user interface can be a screen supporting touch operations. The user can touch the graphical user interface and perform a sliding operation to control the movement of the target virtual object in the virtual scene. Of course, the movement operation can also be implemented by other operation manners. For example, a virtual joystick or other operation control can be set in the graphical user interface, and the user can use the operation control to move the target virtual object, such as a control of long-pressing to the right, to move the target virtual object to the right.
[0051] The operation position where the user performs the moving operation can be a contact position of an operation medium (such as a finger, a stylus, etc.) and the graphical user interface, which can be located on the target virtual object or outside the target virtual object. For example, the user can touch the target virtual object and perform a sliding operation, so that the target virtual object moves along with the operation position, that is, the operation position is located on the target virtual object. Alternatively, referring to FIG. 4A, the table is taken as the target virtual object 303, and the user can touch the coordinate axis of the local coordinate system of the target virtual object 303 and perform a sliding operation, for example, the user holds the X axis and slides to the left, triggering the target virtual object 303 to move to the left. In this case, the operation position can be located outside the target virtual object 303.
[0052] With reference back to FIG. 2, in step S230, in response to the target virtual object satisfying the first preset relationship with the second region in the graphical user interface, the position relationship between the target virtual object and the first region in the graphical user interface is adjusted; wherein the first region is located in the display region of the view picture.
[0053] The first region and the second region are two regions in the graphical user interface, or can be understood as two regions on the screen. The first region and the second region can be preset regions, or can be regions determined according to the current display status. The first region can be part or all of the display region of the view picture. The second region is a region used to determine the display status of the target virtual object. In an embodiment, the second region can be a fixed preset region, for example, it can be a region with a fixed size at the edge of the graphical user interface or the display region, and the size thereof cannot be adaptively adjusted. Alternatively, the second region can be a region determined according to the first region, and the size, position, etc. thereof can be adaptively adjusted according to the first region. When the target virtual object satisfies the first preset relationship with the second region, it indicates that the display status of the target virtual object is poor, for example, most of the target virtual object cannot be displayed in the graphical user interface.
[0054] In an embodiment, the first region can be the display region of the view picture, for example, when the graphical user interface displays the view picture in full screen, the first region is the region of the entire graphical user interface, and when the graphical user interface does not display the view picture in full screen, the first region is a local region in the graphical user interface.
[0055] In an embodiment, the second region can be a region determined extending from the boundary of the graphical user interface to the inside of the graphical user interface, and / or a region determined extending from the boundary of the display region of the view picture to the inside of the display region. It can be understood that the second region is an edge region in the graphical user interface or the display region. The second region can have a preset width, or the width of the second region can be determined according to the size of the target virtual object, for example, the width of the second region can be equal to the width of the target virtual object or half of the width of the target virtual object.
[0056] In an embodiment, the first region can be a display obstacle region having a negative effect on the display of the target virtual object, and / or an operation obstacle region having a negative effect on the user operation. For example, referring to FIG. 3A, at the boundary of the display region, the target virtual object can be partially outside the display region, and the display of the target virtual object can be negatively affected, and there can be no operation space, and the user operation can also be negatively affected. Therefore, the first region 301 can include the boundary of the display region. In addition, there can be a sub-interface or operation control in the display region, for example, the interface in which the controls such as the “original wooden tea table” shown in FIG. 3B can be triggered to be displayed by a specific operation in the virtual scene, or can be fixedly displayed in the graphical user interface under the virtual scene, and the display of the target virtual object and the user operation can be negatively affected. Therefore, the first region 301 can also include the region in which the sub-interface or operation control in the display region is located. In addition, there can be other virtual objects in the display region that can block the target virtual object, for example, the block 304 shown in FIG. 3C. Obviously, if the user moves the target virtual object 303 to the rear of the block 304, the block 304 will block part or all of the target virtual object 303, thereby negatively affecting the display of the target virtual object 303 and possibly affecting the user operation. Therefore, the first region 301 can also include the region in which the other virtual objects that block the target virtual object are located (for example, the bounding box of the block 304 shown in FIG. 3C, or the outline region of the block 304, etc., which are not limited in the present disclosure).
[0057] In an embodiment, the second region can be a region determined by extending the boundary of the first region to other part of the display region except the first region. For example, referring to FIG. 3A, the first region 301 comprises the boundary of the display region, and the second region 302 comprises a region determined by extending the boundary of the display region to the inside of the display region (the pattern-filled region at the boundary of the display region shown in FIG. 3A). Referring to FIG. 3B, the first region 301 comprises a region where a sub-interface or an operation control is located in the display region, and the second region 302 comprises a region determined by extending the boundary of the region to other part of the display region (the pattern-filled region to the left of the sub-interface shown in FIG. 3B). Referring to FIG. 3C, the first region 301 comprises a region where other virtual objects that block the target virtual object 303 are located, such as the region where the block 304 is located, and the second region 302 comprises a region determined by extending the boundary of the region where the other virtual objects are located to other part of the display region (the pattern-filled region around the block 304 shown in FIG. 3C). Since the first region is the display-obstructing region and / or the operation-obstructing region, the other part of the display region except the first region is a region where the target virtual object can be normally displayed or the user can normally perform operations, and the second region is equivalent to a transition region between the first region and the other part of the real region. The target virtual object can be displayed in the second region, but its display state can be limited, such as when the size of the target virtual object is greater than the second region, a part of the target virtual object can be in the first region and cannot be seen when the target virtual object meets the first preset relationship with the second region. In addition, the user can perform operations such as moving in the second region, but the operations can also be limited, such as when the second region is close to the boundary, the user's operation space is limited, or it is not easy to click the target virtual object, etc. Therefore, in the process of moving the target virtual object, the display state of the target virtual object and / or the user's operation is about to be or has been negatively affected by the second region.
[0058] In an embodiment, the first region and the second region can be at least partially the same. For example, the first region and the second region can be completely the same, such as both being a region determined by extending the boundary of the display region to the inside of the display region, or both being a region determined by extending the boundary of the graphical user interface to the inside of the graphical user interface. The first region and the second region can also be partially the same, for example, the first region can contain the second region.
[0059] In a case where the target virtual object meets the first preset relationship with the second region, it is determined that the display state of the target virtual object is not ideal, and the position relationship between the target virtual object and the first region can be controlled to be adjusted to improve the display state of the target virtual object. Since the display state of the target virtual object is poor after the target virtual object enters the first region, for example, part of the target virtual object is outside the boundary of the display region, or the target virtual object is blocked, etc., the position relationship between the target virtual object and the first region is not easy to detect. The second region is more conducive to displaying the target virtual object relative to the first region, and therefore the position relationship between the target virtual object and the second region can be detected to determine the display state of the target virtual object.
[0060] In an embodiment, the target virtual object meets the first preset relationship with the second region can include that a display position of the target virtual object at least partially overlaps with the second region. The display position of the target virtual object is a display position of the target virtual object in the graphical user interface, for example, the position of the target virtual object in the virtual scene can be mapped to the coordinate system of the graphical user interface (or the display region, the field of view picture) to obtain the display position of the target virtual object. The display position of the target virtual object at least partially overlaps with the second region indicates that the target virtual object has partially or entirely entered the first region, or is about to enter the first region, and also indicates that the display state of the target virtual object is poor or is about to deteriorate. The position relationship between the target virtual object and the first region can be adjusted in this case.
[0061] In an embodiment, the target virtual object meets the first preset relationship with the second region can include that a center point of the target virtual object is in the second region. The center point of the target virtual object can be a barycenter or a geometric center, etc. If the center point of the target virtual object is in the second region, it indicates that the main part of the target virtual object is in the second region. The display state of the target virtual object can be determined to be poor or about to deteriorate, and the position relationship between the target virtual object and the first region can be adjusted.
[0062] In an embodiment, the position relationship between the target virtual object and the first region can be adjusted along the moving direction of the target virtual object, so that the target virtual object and the first region produce relative displacement in the moving direction of the target virtual object, for example, the field of view picture can be moved along the moving direction of the target virtual object. For example, the user can move the coordinate axes of the target virtual object local coordinate system to move the target virtual object along one or more coordinate axes, and the position relationship between the target virtual object and the first region can be adjusted along the coordinate axes.
[0063] In an embodiment, the above-mentioned control of the position relationship between the target virtual object and the first region can include the following steps:
[0064] The position relationship between the target virtual object and the first region is adjusted so that the position relationship between the target virtual object and the first region is updated from a first position relationship to a second position relationship; the first position relationship includes that the target virtual object is away from the first region by a first distance; and the second position relationship includes that the target virtual object is away from the first region by a second distance; and the second distance is greater than the first distance.
[0065] The first position relationship refers to the position relationship between the target virtual object and the first region before the position relationship between the target virtual object and the first region is adjusted, or when the target virtual object and the second region satisfy the first preset relationship. The second position relationship refers to the position relationship between the target virtual object and the first region after the position relationship between the target virtual object and the first region is adjusted.
[0066] In the first position relationship, the target virtual object is away from the first region by a first distance. In the second position relationship, the target virtual object is away from the first region by a second distance. The second distance can be greater than the first distance, that is, after the position relationship between the target virtual object and the first region is adjusted, the distance between the target virtual object and the first region increases. For example, before the position relationship between the target virtual object and the first region is adjusted, the target virtual object can be in the field of view picture (which can mean that the target virtual object is entirely in the field of view picture, or the center point of the target virtual object is in the field of view picture), or outside the first region. In order to improve the display state of the target virtual object, when the position relationship between the target virtual object and the first region is adjusted, the target virtual object can be moved away from the first region, which increases the distance between the target virtual object and the first region. In an embodiment, when the target virtual object is moved away from the first region, the target virtual object can be better displayed in the display area of the field of view picture, which facilitates the user to observe or operate, etc.
[0067] In an embodiment, the above-mentioned adjusting the position relationship between the target virtual object and the first region can include the following steps:
[0068] The position relationship between the target virtual object and the first region is adjusted so that the position relationship between the target virtual object and the first region is updated from a first position relationship to a second position relationship; the first position relationship includes that the target virtual object is away from the second region by a first distance; and the second position relationship includes that the target virtual object is away from the first region by a second distance; and the second distance is less than the first distance.
[0069] In an embodiment, the first region can be a display region, a boundary of the display region, an edge region of the display region or the graphical user interface, etc. For example, before adjusting the positional relationship between the target virtual object and the first region, the target virtual object can be outside the field of view picture (which can mean that the target virtual object is entirely outside the field of view picture, or that the center point of the target virtual object is outside the field of view picture). After adjusting the positional relationship between the target virtual object and the first region, the distance between the target virtual object and the first region is reduced. This makes the target virtual object better displayed in the display region of the field of view picture, facilitating the user to observe or operate, etc.
[0070] In an embodiment, the first region can be a display obstacle region and / or an operation obstacle region, and after adjusting the positional relationship between the target virtual object and the first region, the distance between the target virtual object and the first region is reduced. This makes the target virtual object at least more out of the display region of the field of view picture, so as to avoid the target virtual object from obstructing the picture or being misoperated.
[0071] In an embodiment, the above-mentioned step of adjusting the positional relationship between the target virtual object and the first region in response to the target virtual object and the second region satisfying the first preset relationship can include the following steps:
[0072] In response to the target virtual object and the second region satisfying the first preset relationship, the positional relationship between the target virtual object and the first region is adjusted based on a first adjustment parameter. The first adjustment parameter can be a preset adjustment parameter or an adjustment parameter determined according to the size of the target virtual object. The positional relationship between the target virtual object and the first region in the adjusted field of view picture is different from the positional relationship between the target virtual object and the first region in the unadjusted field of view picture.
[0073] In an embodiment, the first adjustment parameter can be a fixed adjustment parameter preset in advance for the case that the target virtual object is moved out of the field of view picture or is obstructed, etc. Alternatively, the first adjustment parameter can be an adjustment parameter determined according to the size of the target virtual object, so that the first adjustment parameter can better ensure the display state of the target virtual object and avoid under-adjustment or over-adjustment. By adjusting the field of view picture, the positional relationship between the target virtual object and the first region can be changed. Generally, after adjusting the field of view picture, at least one of the display position of the target virtual object in the graphical user interface and the position of the first region is moved, thereby changing the positional relationship between the target virtual object and the first region.
[0074] In an embodiment, the field of view picture is a picture formed by a virtual camera arranged in the virtual scene and capturing at least a partial region of the virtual scene. The first adjustment parameter can include at least one of: a target length, a target width, a target angle. The controlling the adjustment of the field of view picture based on the first adjustment parameter can include at least one of:
[0075] moving the virtual camera based on the target length so that the field of view picture moves. For example, the virtual camera can be moved by the target length in a camera plane perpendicular to the optical axis so that the partial region captured by the virtual camera moves by the target length, which is equivalent to the field of view picture moving by the target length in the perception of the user. Further, the virtual camera can be moved along the moving direction of the target virtual object. For example, when the target virtual object moves to the left, the target virtual object can be out of the left boundary of the field of view picture. By moving the virtual camera to the left, the target virtual object can be moved to the right relative to the field of view picture so as to return to the field of view picture.
[0076] moving the virtual camera and / or adjusting the focal length of the virtual camera based on the target width so that the field of view picture expands. For example, the virtual camera can be moved along the optical axis away from the target virtual object, or the focal length of the virtual camera can be reduced, so that the range captured by the virtual camera expands, which is equivalent to the field of view picture expanding. By expanding the field of view picture, the target virtual object that has been or will be out of the boundary of the field of view picture can return to the field of view picture.
[0077] rotating the virtual camera based on the target angle so that the field of view picture rotates. For example, the virtual camera can be rotated according to the moving direction of the target virtual object so that the field of view picture rotates in the moving direction of the target virtual object, so that the target virtual object that has been or will be out of the boundary of the field of view picture can return to the field of view picture.
[0078] In an embodiment, the virtual object display control method can further include the following steps:
[0079] in response to the target virtual object satisfying the first preset relationship with the second region, controlling the adjustment of the field of view picture based on a second adjustment parameter; wherein the second adjustment parameter is determined by at least one of the following ways:
[0080] determining the second adjustment parameter according to the first moving speed of the moving operation;
[0081] determining the second adjustment parameter according to the second moving speed of the target virtual object;
[0082] determining the second adjustment parameter according to a preset speed.
[0083] The first moving speed can be the moving speed of the operation position of the moving operation (e.g., the position of a user's finger touch, generally, the position of a finger touch is an area, and the center point or other representative point of the area can be taken as the operation position of the moving operation to calculate the first moving speed, or the position relationship between the operation position and the position of the second area is determined subsequently), and the second moving speed can be the moving speed of the display position of the target virtual object in the graphical user interface or the moving speed of the target virtual object in the virtual scene. The preset speed is an adjustment speed determined in advance according to experience or specific requirements. The first moving speed and the second moving speed can both reflect the degree of the moving operation, and the second adjustment parameter can be determined according to any one of them, or the second adjustment parameter can be determined according to the preset speed, e.g., the preset speed is taken as the second adjustment parameter. The second adjustment parameter can also be determined in combination with any multiple of the first moving speed, the second moving speed and the preset speed. In an embodiment, during the moving operation, if the target virtual object and the second area satisfy the first preset relationship before the operation position of the moving operation enters the second area, the second adjustment parameter is determined according to the second moving speed; if the operation position of the moving operation enters the second area before the target virtual object and the second area satisfy the first preset relationship, the second adjustment parameter is determined according to the first moving speed.
[0084] In an embodiment, during the moving operation, the first moving speed can be determined according to the moving distance of the operation position in the last first sampling period (i.e., the sampling period of the touch sensor collecting the touch point) before the operation position stops moving, and the second moving speed can be determined according to the moving distance of the display position of the target virtual object in the last second sampling period (i.e., the sampling period of the screen collecting the display position of the target virtual object, or the sampling period of collecting the position of the target virtual object in the virtual scene) before the display position stops moving.
[0085] In an embodiment, the first moving speed can be calculated according to the projection distance of the operation position in the moving direction of the target virtual object and the moving time. For example, during the control of the target virtual object moving along the X axis, the projection distance of the operation position in the X axis is x'-x, and the corresponding moving time is t'-t, and then the first moving speed is v1=(x'-x) / (t'-t). Similarly, the second moving speed can be calculated according to the projection distance of the target virtual object in the moving direction and the moving time.
[0086] In the case that the target virtual object meets the first preset relationship with the second region, the field of view picture can be adjusted based on the second adjustment parameter in addition to the first adjustment parameter. In an embodiment, the field of view picture can be first adjusted based on the first adjustment parameter, and then adjusted based on the second adjustment parameter. Taking FIGS. 4A-4D as an example, referring to FIG. 4A, the user moves the target virtual object 303 along the X-axis to move the target virtual object 303 to the left. Referring to FIG. 4B, the center point of the target virtual object 303 is in the second region 302, meeting the first preset relationship, and the field of view picture can be first adjusted based on the first adjustment parameter, for example, the field of view picture can be moved to the left. After the movement, the field of view picture can be as shown in FIG. 4C. The adjustment process can be completed instantaneously, so that the user perceives a jump in the field of view picture, or the adjustment process can be completed in a period of time, so that the user perceives a gradual movement of the field of view picture. Referring to FIG. 4D, after the field of view picture is adjusted based on the first adjustment parameter, the field of view picture can be further adjusted based on the second adjustment parameter, for example, the field of view picture can be gradually moved at a certain speed. In this way, when the field of view picture is adjusted based on the second adjustment parameter, the target virtual object has been adjusted once based on the first adjustment parameter, so that the target virtual object returns to the field of view picture, and in the process of adjusting the field of view picture based on the second adjustment parameter for the second time, the user can always see a relatively complete target virtual object 303. Even, the target virtual object 303 and the first region 301 (for example, the left boundary of the field of view picture) always maintain a certain distance, ensuring the display state of the target virtual object 303. In an embodiment, the field of view picture can be adjusted based on the first adjustment parameter and the second adjustment parameter at the same time.
[0087] The second adjustment parameter can be determined according to the first movement speed and / or the second movement speed, and the second adjustment parameter matches the movement degree of the movement operation process, so that the user can control the second adjustment parameter, thereby achieving a better interactive feedback feeling and ensuring the fluency of the interactive process.
[0088] In an embodiment, the second adjustment parameter includes a target speed; and in response to the target virtual object meeting the first preset relationship with the second region, the field of view picture is adjusted based on the second adjustment parameter, which can include the following steps:
[0089] In response to the target virtual object meeting the first preset relationship with the second region and the movement operation continuing, the field of view picture is adjusted based on the target speed.
[0090] For example, in a case where the target virtual object meets the first preset relationship with the second region, the field-of-view picture is adjusted based on the first adjustment parameter. If the movement operation continues, for example, if the finger of the user performing the movement operation does not leave the graphical user interface, the field-of-view picture is adjusted based on the target speed, and the target virtual object can also be moved according to the movement operation. As shown in FIG. 4D, the effect of the above adjustment can be that the target virtual object 303 is continuously moved to the left according to the movement operation, and the field-of-view picture is moved to the left based on the target speed. The target virtual object 303 can be kept at the left boundary of the field-of-view picture, or the target speed can be greater than the movement speed of the target virtual object 303, and the target virtual object 303 can be moved to the right relative to the field-of-view picture.
[0091] For example, the target speed can include at least one of a target movement speed, a target expansion speed, and a target rotation speed. The above adjustment of the field-of-view picture based on the target speed can include at least one of the following steps: moving the virtual camera based on the target movement speed; moving the virtual camera and / or adjusting the focal length of the virtual camera based on the target expansion speed; and rotating the virtual camera based on the target rotation speed. The virtual camera is adjusted to achieve the adjustment of the field-of-view picture.
[0092] In an embodiment, the above adjustment of the field-of-view picture based on the second adjustment parameter can further include the following steps:
[0093] After the movement operation ends, the field-of-view picture is adjusted based on the surplus parameter.
[0094] After the movement operation ends, the adjustment of the field-of-view picture is not immediately stopped, but a certain adjustment of the field-of-view picture is performed based on the surplus parameter. The surplus parameter can be pre-set or determined according to the target speed and the like. As shown in FIG. 4D, during the continuous movement operation, the field-of-view picture is moved based on the target speed, and the target virtual object 303 is moved according to the movement operation. After the movement operation ends, the movement of the target virtual object 303 is stopped, and the field-of-view picture is moved by a distance, so that the target virtual object 303 is moved to a position away from the left boundary of the field-of-view picture. In this way, the display state of the target virtual object 303 is better, and the user can perform other operations on the target virtual object 303 after the movement operation.
[0095] In an embodiment, the surplus parameter includes a second preset time length, which can be determined according to experience or specific needs, for example, 0.6s. The above step of adjusting the field-of-view picture based on the surplus parameter can include the following steps:
[0096] The target speed is gradually attenuated to 0 within the second preset time length, and the field-of-view picture is adjusted based on the gradually attenuated target speed.
[0097] That is, after the end of the moving operation, gradually decelerate adjustment is applied to the field of view picture. In the user's perception, there is a gradually decelerating buffer process from the adjustment process to the stop of the field of view picture, and the interactive feedback feeling is better.
[0098] In an embodiment, the virtual object display control method further comprises the following steps:
[0099] In response to the moving operation satisfying a second preset relationship with the second region, and the target virtual object not satisfying the first preset relationship with the second region, adjusting the field of view picture based on a second adjustment parameter; wherein the second adjustment parameter is determined by at least one of the following ways:
[0100] determining the second adjustment parameter according to a first moving speed of the moving operation;
[0101] determining the second adjustment parameter according to a second moving speed of the target virtual object;
[0102] determining the second adjustment parameter according to a preset speed.
[0103] In an embodiment, the first preset relationship and the second preset relationship can be the same, for example, the second preset relationship can be that the operation position of the moving operation at least partially coincides with the second region, or the operation position (which can be the center point of the finger touch region) of the moving operation is located in the second region. Since the first region can include an operation obstacle region, by detecting whether the moving operation satisfies the second preset relationship with the second region, it can be determined whether the moving operation has entered or is about to enter the operation obstacle region. In the case where the moving operation satisfies the second preset relationship with the second region, and the target virtual object does not satisfy the first preset relationship with the second region, the field of view picture is adjusted based on the second adjustment parameter. As described above, the second adjustment parameter can include a target speed, and the virtual camera can be moved, the focal length adjusted, and rotated based on the target speed to achieve adjustment of the field of view picture.
[0104] Referring to FIG. 5A, the user moves the target virtual object 303 to the right by sliding the target virtual object 303 in the X axis to the right. Referring to FIG. 5B, during the movement, when the finger enters the second region 302, the movement operation meets the second preset relationship with the second region 302, and at this time, the target virtual object 303 is outside the second region 302, and the two do not meet the first preset relationship. In this case, the field of view picture can be adjusted based on the second adjustment parameter, as shown in FIG. 5C, the field of view picture is moved to the right, so that during the continuous movement of the target virtual object 303 to the right, the target virtual object 303 will not move out of the display region. It should be noted that in the case where the movement operation meets the second preset relationship with the second region 302, and the target virtual object 303 does not meet the first preset relationship with the second region 302, the field of view picture can be adjusted based on the second adjustment parameter only, and the step of adjusting the field of view picture based on the first adjustment parameter is not performed.
[0105] As can be seen from the above, in the case where the target virtual object meets the first preset relationship with the second region, the field of view picture is adjusted based on the first adjustment parameter, or the field of view picture is adjusted based on the first adjustment parameter and the second adjustment parameter. In the case where the movement operation meets the second preset relationship with the second region, and the target virtual object does not meet the first preset relationship with the second region, the field of view picture is adjusted based on the second adjustment parameter. Thus, the corresponding display control scheme is realized for the two different cases, and the appropriate adjustment strength can be determined according to the different positional relationships between the target virtual object, the movement operation, and the second region, so as to ensure that the target virtual object has a good display state after adjustment, and facilitate user operation.
[0106] In an embodiment, in the case where the movement operation meets the second preset relationship with the second region, if the movement operation is stopped and the stop time reaches a first preset time length, the positional relationship between the target virtual object and the first region is adjusted. The first preset time length is a condition for judging whether the movement operation is continued, which can be determined according to experience or specific requirements, such as 0.6s. In the case where the movement operation meets the second preset relationship with the second region, if the movement operation is stopped but not ended, such as the finger performing the touch movement operation is stopped in the second region, but not left the graphical user interface (i.e. the finger is not lifted), and this state lasts for the first preset time length, it indicates that the user wants to continue the movement operation, and at this time, the positional relationship between the target virtual object and the first region can be adjusted, such as the field of view picture can be adjusted based on the second adjustment parameter, and the target virtual object is continuously moved according to the movement operation.
[0107] In an embodiment, the above response to the movement operation of the target virtual object, moving the target virtual object in the virtual scene, can include the following steps:
[0108] In response to the movement operation on the target virtual object, the target virtual object is moved in the virtual scene while maintaining the field-of-view picture unchanged.
[0109] The field-of-view picture unchanged means that no movement, zooming, rotation, or the like occurs, and the display content in the field-of-view picture can change, such as displaying the movement process of the target virtual object in the field-of-view picture. In step S220, the field-of-view picture is not adjusted, such as the virtual camera, during the movement of the target virtual object. For example, in the case where the target virtual object does not satisfy the first preset relationship with the second region, and the movement operation does not satisfy the second preset relationship with the second region, the target virtual object can be moved in the virtual scene while maintaining the field-of-view picture unchanged.
[0110] In an embodiment, the above-mentioned response to the target virtual object satisfying the first preset relationship with the second region, and controlling the adjustment of the positional relationship between the target virtual object and the first region can include the following steps:
[0111] In the case where the target virtual object satisfies the first preset relationship with the second region, if the movement operation continues for a first preset time length, the positional relationship between the target virtual object and the first region is adjusted.
[0112] The first preset time length is a condition for judging whether the movement operation continues, which can be determined according to experience or specific requirements, such as 0.6s. In the case where the target virtual object satisfies the first preset relationship with the second region, if the movement operation continues (such as the user's finger does not leave the graphical user interface, which can be considered as the movement operation continues, including the case where the finger continues to touch the graphical user interface without movement, and the case where the finger continues to touch the graphical user interface with movement), and the duration reaches the first preset time length (i.e., the time is counted from the case where the target virtual object satisfies the first preset relationship with the second region, and when the first preset time length is reached, the movement operation is still in progress), it can be judged that the user wants to continue the movement operation, and the positional relationship between the target virtual object and the first region is adjusted, such as adjusting the field-of-view picture based on the first adjustment parameter. This can avoid unintended field-of-view picture adjustment caused by user's accidental touch or the like.
[0113] In an embodiment, the virtual object display control method can further include the following steps:
[0114] In the first preset time length during which the movement operation continues, the target virtual object is not moved.
[0115] For example, the moving operation continues within the first preset time duration after the target virtual object meets the first preset relationship with the second region, but no moving effect is generated on the target virtual object. The first preset time duration is a time interval for determining whether the moving operation is continuous, and the moving operation within the time interval does not generate an actual effect, which can avoid user mis-touch and the like. In addition, the field of view picture can be controlled not to be transformed within the first preset time duration during which the moving operation continues. In the user's perception, the field of view picture and the target virtual object are equivalent to be static within the first preset time duration.
[0116] After the first preset time duration, the target virtual object continues to be moved, and the field of view picture is adjusted based on the first adjustment parameter, so that the user can see the effect of the field of view picture jumping after being static.
[0117] In an embodiment, the virtual object display control method can further include the following steps:
[0118] In the case where the target virtual object meets the first preset relationship with the second region, if the moving operation continues for less than the first preset time duration, the target virtual object is moved according to the moving operation.
[0119] For example, the first preset time duration is 0.6s, and in the case where the target virtual object meets the first preset relationship with the second region, if the user continues the moving operation for 0.3s and then stops the operation (such as the finger leaving the graphical user interface), the target virtual object can be moved according to the moving operation within 0.3s. The target virtual object can be moved synchronously with the moving operation of the user, or the target virtual object can be kept static within the time duration during which the moving operation continues. After the user stops the operation, the target virtual object is moved according to the moving operation within 0.3s, which is equivalent to that the moving has a certain delay. In the case where the target virtual object is moved according to the moving operation, the target virtual object can be moved to any position, such as being moved into the first region or beyond the boundary of the display region.
[0120] In an embodiment, the virtual object display control method can further include the following steps:
[0121] In the case where the target virtual object meets the first preset relationship with the second region, if the moving operation continues for less than the first preset time duration, it is determined that the target virtual object is at a current position.
[0122] In a case where the target virtual object meets the first preset relationship with the second region, if the moving operation continues for more than the first preset time duration, it is determined that the user does not want to continue the moving operation, and the target virtual object is placed at the current position (i.e., the position of the target virtual object before the target virtual object meets the first preset relationship with the second region). Further, the position relationship between the target virtual object and the first region can not be adjusted, i.e., the virtual camera is not adjusted. Alternatively, in this case, the target virtual object is entirely or partially outside the field-of-view picture or inside the first region (the target virtual object being partially outside the field-of-view picture or inside the first region can mean that the center point of the target virtual object is outside the field-of-view picture or inside the first region), and the position relationship between the target virtual object and the first region can be adjusted so that the target virtual object is returned to the field-of-view picture or outside the first region.
[0123] Reference is made to FIGS. 4A-4D for an example. In a case where the target virtual object 303 meets the first preset relationship with the second region 302 (i.e., the case shown in FIG. 4B), if the user continues the moving operation, e.g., the finger does not leave the graphical user interface, the position of the target virtual object 303 is kept unchanged and the field-of-view picture is not adjusted within the first preset time duration. After the moving operation continues for the first preset time duration, the field-of-view picture is first adjusted based on the first adjustment parameter to obtain the effect shown in FIG. 4C. Next, the target virtual object 303 is moved according to the user's moving operation, and the field-of-view picture is adjusted based on the second adjustment parameter to obtain the effect shown in FIG. 4D. If the user does not continue the moving operation in a case where the target virtual object 303 meets the first preset relationship with the second region 302, i.e., the finger leaves the graphical user interface within the first preset time duration, it is determined that the target virtual object 303 is at the current position, and the field-of-view picture is not adjusted, i.e., the effect shown in FIG. 4B is presented.
[0124] In an embodiment, in a case where the target virtual object meets the first preset relationship with the second region, if the moving operation continues, the target virtual object is moved according to the moving operation. For example, in the case shown in FIG. 4B, if the user performs the moving operation to the right, the moving direction can be changed, and the target virtual object is moved to the right. Alternatively, if the user continues to perform the moving operation to the left, the target virtual object can be continuously moved to the left, so that the target virtual object exceeds the boundary more.
[0125] In an embodiment, in the case where the target virtual object meets the first preset relationship with the second region, if the moving operation stops and the stop time reaches a first preset time length, the position relationship between the target virtual object and the first region is adjusted. For example, in the case shown in FIG. 4B, if the finger of the user performing the touch moving operation stops moving and stops at the current position for a first preset time length, the position relationship between the target virtual object and the first region is adjusted. In the case where the target virtual object meets the first preset relationship with the second region, if the stop time of the moving operation does not reach the first preset time length, the position relationship between the target virtual object and the first region can not be adjusted.
[0126] In an embodiment, in the case where the target virtual object meets the first preset relationship with the second region, whether the moving operation continues to be sustained can not be judged, and the position relationship between the target virtual object and the first region is directly controlled to be adjusted. As shown in the case in FIG. 4B, even if the finger of the user immediately leaves the graphical user interface, the field of view picture can be adjusted based on the first adjustment parameter, so that the target virtual object 303 returns to the field of view picture completely.
[0127] If the first region includes an occlusion region caused by other virtual objects, as shown in the case in FIG. 3C. When the position relationship between the target virtual object and the first region is adjusted, the occlusion situation can be improved by rotating the field of view picture. FIGS. 6A-6C show corresponding schematic diagrams. Referring to FIG. 6A, the user moves the target virtual object 303 to the right along the X axis. Referring to FIG. 6B, when the target virtual object 303 meets the first preset relationship with the second region 302, the block 304 causes partial occlusion to the target virtual object 303, so that the user cannot accurately see the position and state of the target virtual object 303, and it is inconvenient to accurately move or perform other operations. Referring to FIG. 6C, the field of view picture can be rotated to the right by rotating the virtual camera, thereby changing the position relationship between the target virtual object 303 and the first region 301, so that the block 304 no longer occludes the target virtual object 303.
[0128] An exemplary embodiment of the present disclosure also provides a virtual object display control device. Referring to FIG. 7, the virtual object display control device 700 includes the following program modules:
[0129] The field of view picture display processing module 710 is configured to display a field of view picture of a virtual scene through the graphical user interface; the field of view picture is a picture corresponding to at least a partial region in the virtual scene; and the target virtual object is displayed in the field of view picture;
[0130] The moving control module 720 is configured to move the target virtual object in the virtual scene in response to a moving operation on the target virtual object;
[0131] The position relationship adjustment module 730 is configured to, in response to the target virtual object satisfying a first preset relationship with a second region in the graphical user interface, control adjustment of a position relationship between the target virtual object and a first region in the graphical user interface, where the first region is within a display region of the field-of-view picture.
[0132] In an embodiment, the second region is a region extending from a boundary of the graphical user interface to an interior of the graphical user interface, and / or a region extending from a boundary of the display region of the field-of-view picture to an interior of the display region.
[0133] In an embodiment, the first region is a display obstacle region having a negative impact on display of the target virtual object, and / or an operation obstacle region having a negative impact on user operation.
[0134] In an embodiment, the second region is a region extending from a boundary of the first region to a part of the display region other than the first region.
[0135] In an embodiment, the first region is at least partially the same as the second region.
[0136] In an embodiment, the control of the adjustment of the position relationship between the target virtual object and the first region comprises: adjusting the position relationship between the target virtual object and the first region, so that a first position relationship between the target virtual object and the first region is updated to a second position relationship; the first position relationship comprises that the target virtual object is at a first distance from the first region; the second position relationship comprises that the target virtual object is at a second distance from the second region; and the second distance is greater than the first distance.
[0137] In an embodiment, the control of the adjustment of the position relationship between the target virtual object and the first region comprises: adjusting the position relationship between the target virtual object and the first region, so that a first position relationship between the target virtual object and the first region is updated to a second position relationship; the first position relationship comprises that the target virtual object is at a first distance from the first region; the second position relationship comprises that the target virtual object is at a second distance from the first region; and the second distance is less than the first distance.
[0138] In an embodiment, the position relationship adjustment module 730 is further configured to, in response to the target virtual object satisfying the first preset relationship with the second region, control adjustment of the view picture based on a second adjustment parameter; and the second adjustment parameter is determined in at least one of the following manners: the second adjustment parameter is determined according to a first moving speed of the moving operation; the second adjustment parameter is determined according to a second moving speed of the target virtual object; and the second adjustment parameter is determined according to a preset speed.
[0139] In an embodiment, the view picture is a picture formed by a virtual camera arranged in the virtual scene and capturing at least a partial region of the virtual scene; the first adjustment parameter comprises at least one of the following: a target length, a target width, and a target angle; and the position relationship adjustment module 730 is further configured to, in response to the target virtual object satisfying the first preset relationship with the second region, control adjustment of the view picture based on the first adjustment parameter, by performing at least one of the following steps: moving the virtual camera based on the target length, so that the view picture moves; moving the virtual camera and / or adjusting a focal length of the virtual camera based on the target width, so that the view picture expands; and rotating the virtual camera based on the target angle, so that the view picture rotates.
[0140] In an embodiment, the position relationship adjustment module 730 is further configured to, in response to the target virtual object satisfying the first preset relationship with the second region, control adjustment of the view picture based on a second adjustment parameter; and the second adjustment parameter is determined in at least one of the following manners: the second adjustment parameter is determined according to a first moving speed of the moving operation; the second adjustment parameter is determined according to a second moving speed of the target virtual object; and the second adjustment parameter is determined according to a preset speed.
[0141] In an embodiment, the second adjustment parameter comprises a target speed; and the position relationship adjustment module 730 is further configured to, in response to the target virtual object satisfying the first preset relationship with the second region and the moving operation continuing, control adjustment of the view picture based on the target speed.
[0142] In an embodiment, the position relationship adjustment module 730 is further configured to, in response to the target virtual object satisfying the first preset relationship with the second region, control adjustment of the view picture based on a second adjustment parameter; and the second adjustment parameter is determined in at least one of the following manners: the second adjustment parameter is determined according to a first moving speed of the moving operation; the second adjustment parameter is determined according to a second moving speed of the target virtual object; and the second adjustment parameter is determined according to a preset speed.
[0143] In an embodiment, the remaining amount parameter comprises a second preset time length; and the step of adjusting the field-of-view picture based on the remaining amount parameter comprises gradually attenuating the target speed to 0 within the second preset time length, and adjusting the field-of-view picture based on the gradually attenuated target speed.
[0144] In an embodiment, the target virtual object and the second region satisfy a first preset relationship, which comprises that a display position of the target virtual object at least partially coincides with the second region.
[0145] In an embodiment, the position relationship adjustment module 730 is further configured to, in response to the mobile operation and the second region satisfying a second preset relationship and the target virtual object and the second region not satisfying the first preset relationship, control adjustment of the field-of-view picture based on a second adjustment parameter; and the second adjustment parameter is determined by at least one of the following manners: determining the second adjustment parameter according to a first moving speed of the mobile operation; determining the second adjustment parameter according to a second moving speed of the target virtual object; and determining the second adjustment parameter according to a preset speed.
[0146] In an embodiment, the first preset relationship and the second preset relationship are the same.
[0147] In an embodiment, the moving the target virtual object in the virtual scene in response to the mobile operation of the target virtual object comprises moving the target virtual object in the virtual scene while maintaining the field-of-view picture unchanged.
[0148] In an embodiment, the controlling adjustment of the position relationship between the target virtual object and the first region in response to the target virtual object and the second region satisfying the first preset relationship comprises, if the mobile operation continues for a first preset time length, controlling adjustment of the position relationship between the target virtual object and the first region in the case that the target virtual object and the second region satisfy the first preset relationship.
[0149] In an embodiment, the mobile control module 720 is further configured to, in the case that the target virtual object and the second region satisfy the first preset relationship, if the mobile operation continues for a first preset time length, controlling the target virtual object not to move.
[0150] In an embodiment, the mobile control module 720 is further configured to, in the case that the target virtual object and the second region satisfy the first preset relationship, if the mobile operation does not continue for the first preset time length, moving the target virtual object according to the mobile operation.
[0151] The specific details of the above-described apparatus have been described in the method embodiment part, and the details not disclosed can be referred to the content of the method embodiment part, and thus will not be described again.
[0152] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such division is not mandatory. Indeed, according to the example embodiments of the present disclosure, the features and functionalities of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functionalities of one module or unit described above can be further divided into embodied by multiple modules or units.
[0153] The example embodiments of the present disclosure also provide a computer program product. The computer program product includes a computer program which, when executed by a processor, implements the above-mentioned virtual object display control method.
[0154] In an embodiment, the computer program product can be a tangible product containing the computer program, such as a computer readable storage medium storing the computer program. The readable storage medium can be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, etc. 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 disk (SSD), etc. For example, the computer program product can be implemented as a non-volatile storage medium storing the computer program, such as read-only memory, Nand flash memory, etc.
[0155] In an embodiment, the computer program product can be an intangible product containing the computer program. For example, the computer program product can be implemented as a virtual digital product, such as an executable file, installation package, etc. digital file storing the computer program.
[0156] The code of the computer program can be written in one or more programming languages. Programming languages such as C, 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 involving a remote computing device, the remote computing device can be connected to the user computing device through any kind of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (for example, through an Internet connection provided by an operator).
[0157] The computer program can be carried or transmitted by an electric, magnetic, optical, electromagnetic, infrared, or the like signal. The electronic device can convert the signal carrying the computer program into a digital signal, and then run the computer program. When the computer program is running on the electronic device, its code is used to make the electronic device perform (more specifically, can make the processor of the electronic device perform) the method steps of various exemplary embodiments of the present disclosure, such as can perform the virtual object display control method described above, which includes the following steps: step S210, displaying a field of view picture of a virtual scene through a graphical user interface; the field of view picture is a picture corresponding to at least a local area in the virtual scene; a target virtual object is displayed in the field of view picture; step S220, moving the target virtual object in the virtual scene in response to a moving operation on the target virtual object; step S230, in response to the target virtual object satisfying a first preset relationship with a second area in the graphical user interface, controlling the adjustment of the positional relationship between the target virtual object and a first area in the graphical user interface; wherein the first area is within the display area of the field of view picture.
[0158] The above method steps are implemented by the computer program. In the process of user operation of moving the target virtual object in the virtual scene, if the target virtual object satisfies the first preset relationship with the second area, the positional relationship between the target virtual object and the first area is adjusted. Thus, in the case of affecting the display state such as the target virtual object moving to the edge of the screen or outside the screen, or being blocked by other virtual objects, the positional relationship between the target virtual object and the first area is adjusted in time, so that it can be better displayed in the field of view picture, ensuring that the user's moving operation is visually fed back, which is conducive to improving the operation accuracy, facilitating other operations, improving the smoothness of the interaction process, and improving the user experience.
[0159] The exemplary embodiments of the present disclosure also provide an electronic device, which can be the terminal device 110 or the server 120 described above. The electronic device can include a processor and a memory. The memory stores executable instructions of the processor, which can be a computer program. The processor executes the executable instructions to perform the method steps of various exemplary embodiments of the present disclosure. In addition, the electronic device can also include a display for displaying a graphical user interface.
[0160] The electronic device is exemplarily illustrated in the form of a general computing device with reference to FIG. 8. It should be understood that the electronic device 800 shown in FIG. 8 is only an example, and should not limit the functions and use range of the embodiments of the present disclosure.
[0161] As shown in FIG. 8, the electronic device 800 can include a processor 810, a memory 820, a bus 830, an I / O (input / output) interface 840, a network adapter 850, and a display 8100.
[0162] The memory 820 can include volatile memory, such as RAM 821, on-chip cache memory 822, and / or the like, as well as non-volatile memory, such as ROM 823. The memory 820 can also include one or more program modules 824, such as an operating system, one or more application programs, other program modules, and program data, and each of these examples or some combination thereof, can include implementation of a network environment. For example, the program modules 824 can include the modules in the apparatus described above.
[0163] The processor 810 can include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, an encoder, a decoder, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc.
[0164] The processor 810 can be configured to execute executable instructions stored in the memory 820, such as to perform the virtual object display control method described above, which includes the following steps: step S210, displaying a field of view picture of a virtual scene through a graphical user interface; the field of view picture is a picture corresponding to at least a local region in the virtual scene; the target virtual object is displayed in the field of view picture; step S220, moving the target virtual object in the virtual scene in response to a moving operation on the target virtual object; step S230, in response to the target virtual object satisfying a first preset relationship with a second region in the graphical user interface, controlling to adjust the positional relationship between the target virtual object and a first region in the graphical user interface; wherein the first region is within the display region of the field of view picture.
[0165] By executing the above method steps through the processor 810, in the process of the user operating to move the target virtual object in the virtual scene, if the target virtual object satisfies the first preset relationship with the second region, the positional relationship between the target virtual object and the first region is adjusted. Thus, in the case of affecting the display state, such as the target virtual object moving to the edge of the screen or outside the screen, or being blocked by other virtual objects, the positional relationship between the target virtual object and the first region is adjusted in time, so that the target virtual object can be better displayed in the field of view picture, ensuring that the user's moving operation is visually fed back, which is conducive to improving the operation accuracy, facilitating other operations, improving the smoothness of the interaction process, and improving the user experience.
[0166] Bus 830 serves to enable communication among different components of electronic device 800, and can include a data bus, an address bus, and a control bus.
[0167] Electronic device 800 can communicate with one or more external devices 900 (e.g., a keyboard, a mouse, a printer, etc.) through I / O interface 840.
[0168] Electronic device 800 can communicate with one or more networks through network adapter 850, which can provide, for example, mobile communication solutions such as 3G / 4G / 5G, or wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. Network adapter 850 can communicate with other modules of electronic device 800 through bus 830.
[0169] Electronic device 800 can display a graphical user interface, such as displaying a virtual scene, through display 860.
[0170] Although not shown in FIG. 8, other hardware and / or software modules can also be provided in electronic device 800, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0171] As can be seen from the above, the technical solutions 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 as follows: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, such as can be referred to as "circuitry", "module" or "system", respectively.
[0172] It should be understood that the present disclosure is not limited to the specific method steps or structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope of the present disclosure. Based on the specific embodiments provided by the present disclosure, those skilled in the art will easily think of other embodiments. 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 should cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure, and include common knowledge or conventional technical means in the technical field of the present disclosure that are not disclosed by the present disclosure.
Claims
1. A method for controlling the display of virtual objects, providing a graphical user interface through a terminal device; the method includes: The virtual scene is displayed through the graphical user interface; The field of view is the view corresponding to at least a local area in the virtual scene; The target virtual object is displayed in the field of view; In response to a movement operation targeting the target virtual object, move the target virtual object within the virtual scene; In response to the target virtual object and the second area in the graphical user interface satisfying a first preset relationship, the positional relationship between the target virtual object and the first area in the graphical user interface is controlled and adjusted; wherein, the first area is located within the display area of the view screen.
2. The method according to claim 1, wherein, The second region is: the region defined by extending from the boundary of the graphical user interface into the interior of the graphical user interface, and / or the region defined by extending from the boundary of the display area of the view screen into the interior of the display area.
3. The method according to claim 1, wherein, The first region is: a display obstacle region that negatively affects the display of the target virtual object, and / or an operation obstacle region that negatively affects user operation.
4. The method according to claim 3, wherein, The second region is defined as the region extending from the boundary of the first region to other parts of the display region excluding the first region.
5. The method according to claim 1, wherein, The first region is at least partially the same as the second region.
6. The method according to claim 1, wherein, The control adjustment of the positional relationship between the target virtual object and the first region includes: The positional relationship between the target virtual object and the first region is adjusted so that the target virtual object and the first region are updated from a first positional relationship to a second positional relationship; wherein, the first positional relationship includes: the target virtual object and the first region are separated by a first distance; the second positional relationship includes: the target virtual object and the second region are separated by a second distance; the second distance is greater than the first distance.
7. The method according to claim 1, wherein, The control adjustment of the positional relationship between the target virtual object and the first region includes: The positional relationship between the target virtual object and the first region is adjusted so that the positional relationship between the target virtual object and the first region is updated from a first positional relationship to a second positional relationship; wherein, the first positional relationship includes: the target virtual object and the first region are separated by a first distance; the second positional relationship includes: the target virtual object and the first region are separated by a second distance; the second distance is less than the first distance.
8. The method according to claim 1, wherein, The step of responding to the target virtual object and the second region satisfying a first preset relationship and controlling the adjustment of the positional relationship between the target virtual object and the first region includes: In response to the target virtual object and the second region satisfying a first preset relationship, the view screen is adjusted based on a first adjustment parameter; wherein, the first adjustment parameter is a preset adjustment parameter or an adjustment parameter determined according to the size of the target virtual object; the positional relationship between the target virtual object and the first region shown in the adjusted view screen is different from the positional relationship between the target virtual object and the first region shown in the view screen before adjustment.
9. The method according to claim 8, wherein, The field of view is formed by capturing at least a local area of the virtual scene using a virtual camera positioned within the virtual scene; the first adjustment parameter includes at least one of the following: target length, target width, and target angle; controlling and adjusting the field of view based on the first adjustment parameter includes at least one of the following steps: The virtual camera is moved based on the target length, causing the field of view to shift. Based on the target width, the virtual camera is moved and / or the focal length of the virtual camera is adjusted, thereby expanding the field of view. The virtual camera is rotated based on the target angle, causing the field of view to rotate.
10. The method according to claim 8, wherein, The method further includes: In response to the target virtual object and the second region satisfying a first preset relationship, the view screen is adjusted based on a second adjustment parameter; wherein the second adjustment parameter is determined by at least one of the following methods: The second adjustment parameter is determined based on the first moving speed of the moving operation; The second adjustment parameter is determined based on the second movement speed of the target virtual object; The second adjustment parameter is determined based on the preset speed.
11. The method according to claim 10, wherein, The second adjustment parameter includes the target speed; the response that the target virtual object and the second region satisfy a first preset relationship, and the control adjustment of the field of view based on the second adjustment parameter, includes: When the target virtual object and the second region satisfy a first preset relationship and the movement operation continues, the field of view is adjusted based on the target speed.
12. The method according to claim 11, wherein, The method of controlling and adjusting the field of view based on the second adjustment parameter also includes: After the movement operation is completed, the field of view is adjusted based on the margin parameter.
13. The method according to claim 12, wherein, The margin parameter includes a second preset duration; the step of adjusting the field of view based on the margin parameter includes: Within the second preset time period, the target speed is gradually reduced to 0, and the field of view is adjusted based on the gradually decreasing target speed.
14. The method according to claim 1, wherein, The target virtual object and the second region satisfy a first preset relationship, including: the display position of the target virtual object and the second region at least partially overlap.
15. The method according to claim 1, wherein, The method further includes: In response to the movement operation satisfying a second preset relationship with the second region, and the target virtual object not satisfying a first preset relationship with the second region, the view screen is adjusted based on a second adjustment parameter; wherein the second adjustment parameter is determined by at least one of the following methods: The second adjustment parameter is determined based on the first moving speed of the moving operation; The second adjustment parameter is determined based on the second movement speed of the target virtual object; The second adjustment parameter is determined based on the preset speed.
16. The method according to claim 15, wherein, The first preset relationship and the second preset relationship are the same.
17. The method according to claim 1, wherein, The response to the movement operation of the target virtual object, moving the target virtual object in the virtual scene, includes: In response to a movement operation on the target virtual object, the target virtual object is moved within the virtual scene while maintaining the view frame unchanged.
18. The method according to claim 1, wherein, The step of responding to the target virtual object and the second region satisfying a first preset relationship and controlling the adjustment of the positional relationship between the target virtual object and the first region includes: If the target virtual object and the second region satisfy a first preset relationship, and the movement operation continues for a first preset duration, then the positional relationship between the target virtual object and the first region is adjusted.
19. The method according to claim 18, wherein, The method further includes: During the first preset duration of the continued movement operation, the target virtual object is controlled not to move.
20. The method according to claim 18, wherein, The method further includes: If the target virtual object and the second region satisfy a first preset relationship, and the movement operation continues for less than a first preset duration, then the target virtual object is moved according to the movement operation.
21. A virtual object display control device, providing a graphical user interface via a terminal device; the device comprising: The field-of-view display processing module is configured to display the field-of-view of the virtual scene through the graphical user interface; The field of view is the view corresponding to at least a local area of the virtual scene; the field of view displays the target virtual object; The motion control module is configured to move the target virtual object in the virtual scene in response to a motion operation on the target virtual object; The positional relationship adjustment module is configured to control and adjust the positional relationship between the target virtual object and the first area in the graphical user interface in response to the target virtual object and the second area in the graphical user interface satisfying a first preset relationship; wherein the first area is located within the display area of the view screen.
22. A computer program product comprising a computer program that, when executed by a processor, implements the method of any one of claims 1 to 20.
23. An electronic device, comprising: processor; Memory for storing the executable instructions of the processor; The processor is configured to execute the method of any one of claims 1 to 20 by executing the executable instructions.
Citation Information
Patent Citations
Field view picture display method, device and equipment and storage medium
CN110585707A
Virtual object control method, device and equipment and storage medium
CN112717397A
Method for selecting target and electronic equipment
CN113975811A
Game display control method and device, computer equipment and storage medium
CN115193035A
Display control method and device of virtual scene, storage medium and electronic equipment
CN115591234A