Virtual object display control method, device, storage medium and electronic device
By displaying the virtual scene picture and object controls of the target scale in the graphical user interface of the game application, the rapid scheduling of virtual controlled objects between different virtual models is achieved, and the internal resource management and transfer process of virtual buildings in the existing technology is solved. The problem of cumbersome operation improves control efficiency and sense of control.
Patent Information
- Application Number
- CN202210641066.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-08
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2042-06-08
AI Technical Summary
The prior art is cumbersome and inefficient in the viewing and transfer of virtual buildings' internal resources in game applications, and it is impossible to effectively manage and schedule virtual controlled objects in a graphical user interface.
By displaying the virtual scene screen and object controls of the target scale in the graphical user interface, users can move virtual controlled objects between different virtual models through selection and drag operations, achieving rapid scheduling and management of virtual controlled objects.
It improves the control efficiency of virtual controlled objects, reduces frequent switching and operation between different virtual buildings, and improves the user's sense of manipulation and control of the situation.
Smart Images

Figure CN115120979B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a display control method, device, storage medium and electronic device for a virtual object. Background Art
[0002] Currently, in game applications, the way to choose to view the internal resources of a virtual building is usually to directly click on the virtual building on the large map to jump into the virtual building. For example, to view the troops in the virtual building, you need to enter the building to view it, and only the troops in the current building can be displayed at the same time.
[0003] In the related art, when moving the internal resources of the current virtual building to another virtual model, it is necessary to switch back and forth between different buildings. However, this method has frequent entry and exit, cumbersome operation, and low efficiency.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] At least some embodiments of the present invention provide a method, device, storage medium and electronic device for controlling display of a virtual object, so as to at least solve the technical problem of controlling efficiency of a virtual controlled object.
[0006] According to one aspect of an embodiment of the present invention, a display control method for a virtual object is provided, wherein a graphical user interface is provided through a terminal device, and the display content of the graphical user interface includes a virtual scene and a plurality of virtual models located in the virtual scene. The display control method for the virtual object includes: displaying a first virtual scene picture corresponding to a first scale in the graphical user interface, wherein the first virtual scene picture includes at least one virtual model; in response to a first operation of switching the first scale to a target scale, displaying a target virtual scene picture corresponding to the target scale and an object control in the graphical user interface, wherein the target virtual scene picture includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set; in response to a second operation on the object control, controlling the virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model in the virtual model set.
[0007] Optionally, the first operation is a selection operation on at least one virtual model, and the target scale is a second scale; in response to the first operation of switching the first scale to the target scale, a target virtual scene screen and an object control corresponding to the target scale are displayed in a graphical user interface, including: in response to the selection operation on at least one virtual model, obtaining a virtual model set to which the selected virtual model belongs; determining a second scale corresponding to the virtual model set, wherein the second scale enables the virtual model set to be fully displayed in the graphical user interface; and displaying a second virtual scene screen and an object control corresponding to the second scale in the graphical user interface, wherein the target virtual scene screen includes the second virtual scene screen.
[0008] Optionally, the second scale is determined by: reducing the virtual model set displayed under the first scale according to a preset zoom range until all virtual models in the virtual model set are completely displayed in the graphical user interface; and determining the scale corresponding to when all virtual models in the virtual model set are completely displayed in the graphical user interface as the second scale.
[0009] Optionally, the first operation is a zoom operation on the first virtual scene picture, and the target scale is a third scale; in response to the first operation of switching the first scale to the target scale, a target virtual scene picture and an object control corresponding to the target scale are displayed in a graphical user interface, including: in response to the zoom operation on the first virtual scene picture, a third scale corresponding to the zoom operation is determined; virtual models existing in a third virtual scene picture at the third scale are determined, and the virtual models existing in the third virtual scene picture are determined as a virtual model set; virtual controlled objects associated with the virtual models in the virtual model set are determined; and the third virtual scene picture at the third scale and object controls corresponding to the virtual controlled objects are displayed in the graphical user interface, wherein the target virtual scene picture includes the third virtual scene picture.
[0010] Optionally, the second operation on the object control includes: a dragging operation from the object control to a response area of the second virtual model, wherein the response area includes the second virtual model itself and / or a peripheral area of the model within a preset range of the second virtual model.
[0011] Optionally, the target virtual scene screen includes an object identifier corresponding to the virtual controlled object; the virtual controlled object corresponding to the control object control moves from the first virtual model to which it belongs to to the second virtual model of the virtual model set, including: generating a first trajectory route from the first virtual model to the second virtual model in the target virtual scene screen; and according to the movement progress of the virtual controlled object, synchronously controlling the object identifier to move along the first trajectory route.
[0012] Optionally, the target virtual scene screen includes a first relationship identifier corresponding to the virtual controlled object, and the first relationship identifier is used to indicate the relationship between the virtual controlled object and the first virtual model; the method also includes: in response to the distance between the moving object identifier and the first virtual model being greater than a first distance threshold, canceling the display of the first relationship identifier in the target virtual scene screen; in response to the distance between the moving object identifier and the second virtual model being less than a second distance threshold, displaying a second relationship identifier in the target virtual scene screen, wherein the second relationship identifier is used to indicate the relationship between the virtual controlled object and the second virtual model.
[0013] Optionally, in response to a first operation of switching a first scale to a target scale, a target virtual scene screen corresponding to the target scale is displayed in a graphical user interface, including: in response to the first operation of switching the first scale to the target scale, scene elements other than the virtual model set in the virtual scene are controlled to perform a first size transformation according to the target scale, and the virtual model set is controlled to perform a second size transformation according to a fourth scale, wherein the fourth scale is smaller than the target scale; and the target virtual scene screen is displayed in the graphical user interface, wherein the target virtual scene screen includes scene elements that undergo a first size transformation according to the target scale, and the virtual model set that undergoes a second size transformation according to the fourth scale.
[0014] Optionally, based on the position information of each virtual model in the virtual model set in the virtual scene, a target geometric area is determined, wherein the target geometric area includes the position information of each virtual model in the virtual scene; and based on the side length of the target geometric area, a target scale is determined.
[0015] Optionally, the target geometric area is a rectangular area with the smallest area and including the position information of each virtual model in the virtual scene; based on the side length of the target geometric area, a target scale is determined, including: determining the longest side among multiple sides constituting the rectangular area, and determining a target side that matches the current resolution of the graphical user interface; determining the target scale based on the longest side and the target side, wherein the ratio between the longest side after scaling the longest side according to the target scale and the target side satisfies the target ratio.
[0016] Optionally, in response to the starting point of the movement of at least one friendly virtual controlled object and / or at least one enemy virtual controlled object of the virtual controlled object being in the target virtual scene screen, a second trajectory route of at least one friendly virtual controlled object and / or at least one enemy virtual controlled object is displayed on the graphical user interface, wherein the second trajectory route is used to represent the complete path of the corresponding friendly virtual controlled object and / or enemy virtual controlled object moving in the target virtual scene screen.
[0017] According to one embodiment of the present invention, there is also provided a display control device for a virtual object, which provides a graphical user interface through a terminal device, wherein the display content of the graphical user interface includes a virtual scene and a plurality of virtual models located in the virtual scene, and the display control device for the virtual object includes: a first display unit, used to display a first virtual scene screen corresponding to a first scale in the graphical user interface, wherein the first virtual scene screen includes at least one virtual model; a second display unit, used to respond to a first operation of switching the first scale to a target scale, and display a target virtual scene screen and an object control corresponding to the target scale in the graphical user interface, wherein the target virtual scene screen includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set; and a control unit, used to respond to a second operation on the object control, and control the virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model in the virtual model set.
[0018] According to one embodiment of the present invention, a computer-readable storage medium is further provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any of the above-mentioned display control methods for virtual objects when running.
[0019] According to one embodiment of the present invention, there is further provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any of the above methods for controlling display of a virtual object.
[0020] In an embodiment of the present invention, a first virtual scene screen corresponding to a first scale is displayed in a graphical user interface; in response to a first operation of switching the first scale to a target scale, a target virtual scene screen and an object control corresponding to the target scale are displayed in the graphical user interface; in response to a second operation on the object control, a virtual controlled object corresponding to the object control is controlled to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set. In other words, the present invention can provide an overview of all virtual models and their distribution on the entire map in one screen by displaying the target virtual scene screen and the object control corresponding to the target scale in the graphical user interface, thereby improving the control efficiency of the virtual controlled objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0022] Figure 1is a hardware structure block diagram of a mobile terminal according to a display control method of a virtual object according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of a display control method of a virtual object according to an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of entering a global viewing mode according to an embodiment of the present invention;
[0025] Figure 4 is a schematic diagram of a virtual object movement according to an embodiment of the present invention;
[0026] Figure 5 is a structural block diagram of a display control device for a virtual object according to an embodiment of the present invention;
[0027] Figure 6 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0031] Player vs Player (PVP for short) can refer to the battle between players;
[0032] Global viewing mode refers to the map viewing mode for viewing all friendly buildings and team information inside buildings;
[0033] Strategy Game (Simulation Game, referred to as SLG), can refer to strategy games, which can be a derivative type of simulation games;
[0034] Virtual buildings refer to architectural facilities in the game that can accommodate one's own military units, and may include fortresses, field fortresses, large fortresses, military camps, sub-cities, scout camps and reserve barracks, etc.
[0035] According to one embodiment of the present invention, an embodiment of a display control method of a virtual object is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0036] The method embodiment can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, referred to as MID), a PAD, a game console and other terminal devices. Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for controlling display of a virtual object according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (FPGA), a neural network processor (NPU), a tensor processor (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may also include a transmission device 106 for communication functions, an input and output device 108, and a display device 110. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0037] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display control method of the virtual object in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the display control method of the virtual object described above is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0038] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0039] The inputs in the input / output device 108 may come from a plurality of human interface devices (HIDs), such as keyboards and mice, game controllers, and other dedicated game controllers (such as steering wheels, fishing rods, dance mats, remote controls, etc.). In addition to providing input functions, some human interface devices may also provide output functions, such as force feedback and vibration of game controllers, audio output of controllers, etc.
[0040] The display device 110 may be, for example, a head-up display (HUD), a touch-screen liquid crystal display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contacts and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. The executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.
[0041] According to one embodiment of the present invention, a display control method for a virtual object is provided, wherein a graphical user interface is provided through a terminal device, and the display content of the graphical user interface includes a virtual scene, and a plurality of virtual models located in the virtual scene, wherein the terminal device can be the local terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above; the virtual scene can be a game scene; the virtual model can be a building facility in the game scene, or can be a closed space in the game scene with the building facility placed therein.
[0042] Figure 2 FIG. 1 is a flow chart of a method for controlling display of a virtual object according to one embodiment of the present invention. Figure 2 As shown, the method may include the following steps:
[0043] Step S202: displaying a first virtual scene picture corresponding to a first scale in a graphical user interface, wherein the first virtual scene picture includes at least one virtual model.
[0044] In the technical solution provided in the above step S202 of the present invention, the first virtual scene picture can be displayed in the graphical user interface according to the first scale, wherein the first scale can be a value set according to actual needs, the first virtual scene picture can be a virtual scene picture including any one of the own buildings, and the virtual model can include a building model, etc.
[0045] Optionally, according to the needs of the user terminal itself, the first virtual scene picture can be displayed in the graphic user interface according to a pre-set or selected first scale, so as to achieve the purpose of displaying the virtual scene picture to be viewed.
[0046] Step S204, in response to the first operation of switching the first scale to the target scale, a target virtual scene screen and an object control corresponding to the target scale are displayed in a graphical user interface, wherein the target virtual scene screen includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set.
[0047] In the technical solution provided in the above step S204 of the present invention, the first scale can be switched to the target scale through a first operation. In response to the first operation of switching the first scale to the target scale, the target virtual scene screen and the object control corresponding to the target scale are displayed in the graphic user interface, wherein the first operation can be an operation on the graphic user interface, and the selection operation can be an operation generated by the user touching the virtual scene screen that allows selection on the large map displayed by the graphical user interface, such as a long press touch operation, a single click touch operation, a double click touch operation, a sliding operation, etc. For example, the virtual scene screen can be switched from the first scale to the target scale through a sliding operation on the graphical user interface, etc., and no specific limitation is made to the first operation herein, as long as the method of switching the virtual scene screen from the first scale to the target scale should be within the protection scope of the embodiment of the present invention; the target scale can be a scale selected according to the needs of the user terminal, the target virtual scene screen can be an interface finally displayed in the graphical user interface, and the object control can be used to represent the virtual controlled object associated with the virtual model in the virtual model set, for example, it can be represented in the form of "bubble + line".
[0048] Optionally, the virtual controlled objects in the virtual scene screen can be displayed in the form of "bubble + line" adsorbed around the virtual scene screen. For example, at least one virtual controlled object associated with the virtual model can be viewed through bubbles outside the virtual scene screen on the graphical user interface.
[0049] Optionally, a first virtual scene picture corresponding to a first scale is displayed in a graphic user interface, and through a first operation, the virtual scene picture is switched from the first scale to a target scale, so that a target virtual scene picture and object controls corresponding to the target scale are displayed in the graphic user interface. The virtual scene picture may be a virtual scene picture in which any one of the own buildings exists. For example, the first virtual scene picture is slid, and in response to a sliding operation on the first virtual scene picture, the first virtual scene picture of the first scale is switched to a target virtual scene picture of the target scale, wherein the target virtual scene picture and object controls corresponding to the target scale are displayed in the graphic user interface.
[0050] For example, global information can be displayed on a graphical user interface at a first scale, and the graphical user interface can be zoomed in and out by sliding operations on the graphical user interface, and the graphical user interface can be switched from the first scale to the target scale, thereby achieving the purpose of displaying the target virtual scene image and object controls corresponding to the target scale in the graphical user interface.
[0051] In the related art, all virtual buildings are displayed on a large map, so that all virtual building information is overviewed. When the resources of a virtual building need to be transferred to another virtual building, it is necessary to click on the virtual building on the large map interface to enter the virtual building to view the resources, choose to transfer the resources to another virtual building, and then return to the large map interface, drag the scene screen in the large map interface to another virtual building, and click to enter the other virtual building to manipulate the transferred resources. This method requires switching back and forth, and there are problems such as frequent entry and exit and cumbersome operation. In an embodiment of the present invention, a first virtual scene screen of a portion is displayed at a first scale, and a graphical user interface is displayed at different scales in response to a first operation, so that the display content of the graphical user interface can provide an overview display and manipulation of virtual controlled objects transferred between different virtual buildings, thereby avoiding switching back and forth between scene screens of different virtual buildings, resulting in frequent entry and exit and cumbersome operation.
[0052] Step S206 , in response to the second operation on the object control, the virtual controlled object corresponding to the object control is controlled to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set.
[0053] In the technical solution provided in the above step S206 of the present invention, a second operation is performed on the object control in the target virtual scene screen, and in response to the second operation on the object control, the virtual controlled object corresponding to the object control is controlled to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set, wherein the second operation may be an operation to control the movement of the virtual controlled object, for example, it may be a sliding operation to move the object control to the second virtual model, or a clicking operation to select the object control and the second virtual model in sequence, etc.; the virtual model set may include at least one virtual controlled object associated with the virtual model, and some virtual models may not have associated virtual controlled objects. Each virtual model in the virtual model set and at least one virtual controlled object respectively associated with at least one virtual model in the virtual model set are displayed on a user interface, so as to realize an overview of the distribution of virtual models and virtual controlled objects associated with virtual models, wherein the virtual controlled objects can be troops in the virtual models or other game resources, such as heroes, warships, etc. The position of the virtual controlled objects in the virtual scene is in a movable state, and the virtual controlled objects can be mobilized between virtual models; the first virtual model can be the virtual model that currently needs to transfer resources, and the second virtual model can be other virtual models in the virtual model set except the first virtual model.
[0054] Optionally, a first virtual screen scene corresponding to a first scale can be displayed in a graphical user interface, and the game enters a global viewing mode. In the global viewing mode, the virtual model is displayed on the graphical user interface at a first scale. In response to a first operation, the virtual screen scene is switched from the first scale to a target scale, and a target virtual scene screen and an object control corresponding to the target scale are displayed in the graphical user interface. A second operation is performed on the object control in the target virtual scene screen. In response to the second operation on the object control, the virtual controlled object corresponding to the object control is controlled to move from the first virtual model to the second virtual model of the virtual model set.
[0055] In this embodiment, the position of the virtual controlled object in the virtual scene is in a movable state. For example, the position of the virtual controlled object in the virtual scene can be moved by a second operation in the virtual scene.
[0056] For example, you can press and hold the object control on the first virtual scene screen to drag it. When the dragging distance is greater than a certain value, the bubble of the virtual controlled object is disconnected from the building. When the virtual controlled object is dragged to the second virtual model in the virtual model set, the building dragging and placement area is highlighted and activated, and the bubble of the virtual controlled object entering the second virtual model is automatically adsorbed and connected, and a confirmation pop-up window pops up. After clicking confirm, a dynamic track will appear between the first virtual model and the second virtual model, and the object control of the virtual controlled object moves between the first virtual model and the second virtual model along the track.
[0057] In an embodiment of the present invention, a first operation is used to quickly switch between a local screen and a global screen, and an object control is displayed in a first virtual scene screen that globally displays a virtual model. A second operation on the object control is used to quickly schedule virtual controlled objects between different virtual models.
[0058] Through steps S202 to S206, in an embodiment of the present invention, a first virtual scene screen corresponding to a first scale is displayed in a graphical user interface; in response to a first operation of switching the first scale to a target scale, a target virtual scene screen and an object control corresponding to the target scale are displayed in the graphical user interface; in response to a second operation on the object control, a virtual controlled object corresponding to the object control is controlled to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set. In other words, the present invention can provide an overview of all virtual models and their distribution on the entire map in one screen by displaying the target virtual scene screen and the object control corresponding to the target scale in the graphical user interface, and can realize scheduling of virtual controlled objects between different virtual models through the object control, thereby improving the control efficiency of virtual controlled objects.
[0059] As an optional embodiment, step S204, the first operation is a selection operation on at least one virtual model, and the target scale is a second scale; in response to the first operation of switching the first scale to the target scale, a target virtual scene screen and an object control corresponding to the target scale are displayed in a graphical user interface, including: in response to the selection operation on at least one virtual model, obtaining a virtual model set to which the selected virtual model belongs; determining a second scale corresponding to the virtual model set, wherein the second scale enables the virtual model set to be fully displayed in the graphical user interface; and displaying a second virtual scene screen and an object control corresponding to the second scale in the graphical user interface, wherein the target virtual scene screen includes the second virtual scene screen.
[0060] In this embodiment, the graphical user interface can be switched from a first scale to a target scale through a first operation, and a target virtual scene screen and an object control corresponding to the target scale are displayed in the graphical user interface, the target virtual scene screen includes at least one virtual model, and the target virtual scene model screen is selected. In response to the selection operation of at least one virtual model, the virtual model set to which the selected virtual model belongs is obtained, and the scale at which the virtual model set can be fully displayed in the graphical user interface is determined to obtain a second scale, and a second virtual scene screen and an object control corresponding to the second scale are displayed in the graphical user interface, wherein the target virtual screen includes the second virtual scene screen.
[0061] Optionally, a selection operation is performed on at least one virtual model to obtain a selected virtual model set, and the obtained virtual model set is completely displayed in a graphical user interface according to a second scale to obtain a second virtual scene screen, and object controls corresponding to the virtual models are displayed in the second virtual scene screen.
[0062] As an optional embodiment, the second scale is determined in the following manner: the virtual model set displayed under the first scale is reduced according to a preset zoom range until all virtual models in the virtual model set are fully displayed in the graphical user interface; and the scale corresponding to when all virtual models in the virtual model set are fully displayed in the graphical user interface is determined as the second scale.
[0063] In this embodiment, the virtual model set displayed at the first scale can be reduced according to a preset zoom range until all virtual models in the virtual model set are completely displayed in the graphical user interface, and the scale corresponding to the time when all virtual models in the virtual model set can be completely displayed in the graphical user interface is determined as the second scale.
[0064] Optionally, virtual models may be selected, and all selected virtual models may be taken as a virtual model set, and the virtual model set may be displayed on the graphical user interface at a second scale.
[0065] As an optional embodiment, the first operation is a zooming operation on the first virtual scene picture, and the target scale is a third scale; in response to the first operation of switching the first scale to the target scale, a target virtual scene picture and an object control corresponding to the target scale are displayed in a graphical user interface, including: in response to the zooming operation on the first virtual scene picture, a third scale corresponding to the zooming operation is determined; virtual models existing in a third virtual scene picture at the third scale are determined, and the virtual models existing in the third virtual scene picture are determined as a virtual model set; virtual controlled objects associated with the virtual models in the virtual model set are determined; and the third virtual scene picture at the third scale and object controls corresponding to the virtual controlled objects are displayed in the graphical user interface, wherein the target virtual scene picture includes the third virtual scene picture.
[0066] In this embodiment, a zoom operation can be performed on the virtual scene picture. In response to the zoom operation on the first virtual scene picture, a third scale corresponding to the zoom operation is determined, the virtual models existing in the third virtual scene picture at the third scale are determined, a virtual model set is obtained, and the virtual controlled objects associated with the virtual models in the virtual model set are determined; the third virtual scene picture at the third scale and the object controls corresponding to the virtual controlled objects are displayed in the graphical user interface, wherein the target virtual scene picture includes the third virtual scene picture, wherein the zoom operation can be an operation to zoom in or out on the virtual scene picture. For example, the graphical user interface can be slid with two fingers to control the virtual camera lens to zoom in or out, thereby achieving the purpose of zooming in or out on the virtual scene picture.
[0067] Optionally, the virtual scene picture can be reduced or enlarged according to the zoom amplitude of the zoom operation, and the virtual models that can be accommodated in the current virtual scene picture and need to be displayed are taken as a virtual model set to obtain the virtual model set, and the virtual controlled objects associated with the virtual models in the virtual model set are determined; the third virtual scene picture at a third scale and the object controls corresponding to the virtual controlled objects are displayed in the graphical user interface, wherein the virtual model set can be all virtual models or part of the virtual models, for example, all virtual models can be displayed when it is reduced to a small enough size.
[0068] As an optional embodiment, the second operation on the object control includes: a dragging operation from the object control to a response area of the second virtual model, wherein the response area includes the second virtual model itself, and / or a peripheral area of the model within a preset range of the second virtual model.
[0069] In this embodiment, the object control can be moved to the response area of the second virtual model by dragging, wherein the response area can be the second virtual model itself, or can include the second virtual model itself and the model peripheral area located in a preset range of the second virtual model.
[0070] Optionally, a response area can be determined on the graphical user interface, and at least one virtual controlled object associated with the virtual model can be displayed in the response area, so as to display at least one virtual controlled object associated with the virtual model in the virtual model set on the graphical user interface, wherein the response area can be the surroundings of the virtual model (e.g., a building). It should be noted that not every virtual model has an associated virtual controlled object, and a virtual controlled object can be mobilized to a virtual model that is not associated with a virtual controlled object. For example, troops can be mobilized to an empty virtual model.
[0071] Optionally, in a response area on a graphical user interface, a virtual object whose center point is in the response area is determined to obtain a virtual controlled object, and at least one virtual controlled object is displayed in the response area to implement a drag operation from an object control to the response area of a second virtual model associated with a virtual model in a virtual model set displayed on the graphical user interface.
[0072] For example, the geometric center point of the second virtual model can be used as the center of the circle, and the radius can be set to draw a circle to obtain the model peripheral area of the second virtual model within a preset range. Based on the second model itself and / or the model peripheral area within the preset range of the second virtual model, the response area of the second virtual model is obtained, and the object control is dragged to the response area of the second virtual model to achieve the purpose of moving the virtual object to the second virtual model.
[0073] As an optional embodiment, the target virtual scene screen includes an object identifier corresponding to the virtual controlled object; the virtual controlled object corresponding to the control object control moves from the first virtual model to which it belongs to to the second virtual model of the virtual model set, including: generating a first trajectory route from the first virtual model to the second virtual model in the target virtual scene screen; and according to the movement progress of the virtual controlled object, synchronously controlling the object identifier to move along the first trajectory route.
[0074] In this embodiment, the target virtual scene picture includes an object identifier corresponding to the virtual controlled object, wherein the object identifier can be used to represent the corresponding virtual controlled object, as well as a relationship identifier between the virtual controlled object and the corresponding virtual scene picture. The virtual controlled object can be displayed in the response area through the object identifier, and the object identifier can be displayed in the form of "bubble + line" adsorbed around the virtual building.
[0075] In this embodiment, a first trajectory route from the first virtual model to the second virtual model is generated in the target virtual scene screen; according to the movement progress of the virtual controlled object, the object identifier is synchronously controlled to move along the first trajectory route, so as to achieve the purpose of controlling the virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set, wherein the first trajectory route can be a dynamic trajectory, which can be used to guide the first virtual model to which the object identifier belongs to move to the second virtual model of the virtual model set.
[0076] Optionally, when it is determined that the virtual controlled object moves from the first virtual model to the second virtual model, a dynamic trajectory is displayed on the graphical user interface, and the object identifier of the virtual controlled object moves along the dynamic trajectory from the first virtual model to which it belongs to to the second virtual model of the virtual model set.
[0077] It should be noted that, in the related art, the virtual controlled objects (troops) associated with the virtual model (building) can only be determined by positioning and moving to the virtual scene screen to be moved to, while in the embodiment of the present invention, there is no need to move to the virtual model (building), and all virtual controlled objects (troops) associated with the virtual model (building) can be determined through bubbles outside the virtual model.
[0078] As an optional embodiment, the target virtual scene screen includes a first relationship identifier corresponding to the virtual controlled object, and the first relationship identifier is used to indicate the relationship between the virtual controlled object and the first virtual model; the method also includes: in response to the distance between the moving object identifier and the first virtual model being greater than a first distance threshold, canceling the display of the first relationship identifier in the target virtual scene screen; in response to the distance between the moving object identifier and the second virtual model being less than a second distance threshold, displaying the second relationship identifier in the target virtual scene screen, wherein the second relationship identifier is used to indicate the relationship between the virtual controlled object and the second virtual model.
[0079] In this embodiment, the target virtual scene picture includes a first relationship identifier corresponding to the virtual controlled object, wherein the first relationship identifier can be used to indicate the belonging relationship between the virtual controlled object and the first virtual model, for example, the belonging relationship between the virtual controlled object and the first virtual model can be indicated by a line; the target virtual scene picture may include a first virtual scene model and a second virtual model, the first virtual scene model being associated with at least one virtual controlled object via the first relationship identifier, wherein the virtual controlled object may be an object to be mobilized in the virtual scene picture.
[0080] In this embodiment, the object identifier is moved, and in response to the distance between the moved object identifier and the first virtual model being greater than a first distance threshold, the first relationship identifier displayed in the target virtual screen is canceled; in response to the distance between the moved object identifier and the second virtual model being less than a second distance threshold, the second relationship identifier is displayed in the target virtual scene screen, wherein the second relationship identifier is used to indicate the relationship between the virtual controlled object and the second virtual model.
[0081] Optionally, the target virtual screen is determined, the object identifier of the virtual controlled object associated with the first virtual model is moved to the second virtual model, and when the distance between the moved object identifier and the first virtual model is greater than a first distance threshold, the first relationship identifier displayed in the target virtual screen is canceled; when the distance between the identifier of the moved object and the second virtual model is less than a second distance threshold, in response to the distance between the moved object identifier and the second virtual model being less than the second distance threshold, a second relationship identifier in the target virtual scene screen is established.
[0082] In this embodiment, the object identifier of the virtual controlled object is moved from the response area of the first virtual model to the response area of the second virtual model to achieve the purpose of moving the virtual controlled object from the response area of the first virtual model to the response area of the second virtual model, wherein the object identifier can be used to represent the corresponding target virtual controlled object and the first relationship identifier or the second relationship identifier. For example, the virtual controlled object is adsorbed around the building in the form of "bubble + line", the bubble can be used to represent the controlled object control, and the line can be used to represent the relationship identifier between the virtual controlled object and the virtual model.
[0083] For example, the virtual controlled object is adsorbed in the response area of the virtual model in the form of "bubble + line". The purpose of moving the virtual controlled object from the first virtual model to the second virtual model can be achieved by moving the bubble of the target virtual controlled object from the response area of the first virtual model to the response area of the second virtual model.
[0084] For example, when the user wants to mobilize the virtual controlled object in the second virtual model to the second virtual model, the object identifier adsorbed on the second virtual model can be moved. When the moving distance of the object identifier is greater than the first distance threshold, the bubble in the object identifier is disconnected from the first virtual model, and the first relationship identifier is cancelled in the target virtual scene screen; when the target virtual controlled object is dragged to the response area of the second virtual model, the response area of the second virtual model can be highlighted and activated, and the bubble in the object identifier of the virtual controlled object entering the response area is automatically adsorbed by the second virtual model and generates a second relationship identifier, which is displayed in the target virtual scene screen to establish the belonging relationship between the virtual controlled object and the second virtual model.
[0085] As an optional embodiment, in response to a first operation of switching a first scale to a target scale, a target virtual scene screen corresponding to the target scale is displayed in a graphical user interface, including: in response to the first operation of switching the first scale to the target scale, scene elements other than the virtual model set in the virtual scene are controlled to undergo a first size transformation according to the target scale, and the virtual model set is controlled to undergo a second size transformation according to a fourth scale, wherein the fourth scale is smaller than the target scale; and the target virtual scene screen is displayed in the graphical user interface, wherein the target virtual scene screen includes scene elements that undergo a first size transformation according to the target scale, and the virtual model set that undergoes a second size transformation according to the fourth scale.
[0086] In this embodiment, in response to a first operation of switching the first scale to the target scale, scene elements in the virtual scene other than the virtual model set are controlled to undergo a first size transformation according to the target scale, the virtual model set is controlled to undergo a second size transformation according to a fourth scale, and a target virtual scene screen of the scene elements undergoing the first size transformation according to the target scale and the virtual model set undergoing the second size transformation according to the fourth scale are displayed in a graphical user interface, wherein the fourth scale is smaller than the target scale; the scene elements may be coordinate points corresponding to the virtual models.
[0087] Optionally, in response to a first operation of switching the first scale to a target scale, scene elements in the virtual scene other than the virtual model set are controlled to perform a first size transformation according to the target scale, a scale smaller than the target scale is determined as a fourth scale, and the virtual model set is controlled to perform a second size transformation according to the fourth scale to obtain a target virtual scene image.
[0088] In this embodiment, in response to a first operation of switching the first scale to a target scale, scene elements in the virtual scene except the virtual model set are controlled to be proportionally scaled to a first size according to the target scale to obtain a transformed graphical user interface. The scaled virtual scene image can be displayed in the center of the graphical user interface so that all virtual scene images can be overviewed in one graphical user interface.
[0089] Optionally, the virtual scene image may be scaled at a target scale (X), and a scale smaller than the target scale is determined as a fourth scale (Y), so X>Y in the scaling.
[0090] As an optional embodiment, based on the position information of each virtual model in the virtual model set in the virtual scene, the target geometric area is determined, wherein the target geometric area includes the position information of each virtual model in the virtual scene; based on the side length of the target geometric area, the target scale is determined.
[0091] In this embodiment, based on the position information of each virtual model in the virtual model set in the virtual scene, the target geometric area is determined, and based on the side length of the target geometric area, the target scale is determined, wherein the target geometric area may be a rectangle, which is only used as an example and does not impose any specific restrictions on the shape of the geometric area; the target scale may be used to represent a multiple or ratio of the original virtual scene size, which may be represented by X.
[0092] Optionally, the position information of each virtual model in the virtual scene is determined, the target geometric area is determined based on the position information, the target scale is determined based on the side length of the target geometric area, and the size of each original virtual scene image is scaled based on the target scale to obtain each virtual scene image, wherein the position information may be the coordinate points of the original virtual model, such as the coordinate points of a building.
[0093] Optionally, a target scale is determined based on the position information, a scale smaller than the target scale is determined as a fourth scale, scene elements in the virtual scene other than the virtual model set are controlled to be scaled based on the target scale, the size of each virtual model is scaled based on the fourth scale to obtain a target virtual scene picture, and the target virtual scene picture is displayed in a graphical user interface, wherein the target virtual scene picture includes scene elements that are transformed in a first size according to the target scale, and a virtual model set that is transformed in a second size according to the fourth scale.
[0094] Optionally, the user terminal can long press different virtual models to enter the global mode. Since the building coordinates are fixed in the game, the position display calculation method in the global mode is fixed. Therefore, the user terminal sees the same virtual scene, but the virtual controlled objects displayed in different virtual scene screens may be different.
[0095] As an optional embodiment, the target geometric area is a rectangular area with the smallest area and including the position information of each virtual model in the virtual scene; based on the side length of the target geometric area, the target scale is determined, including: determining the longest side among the multiple sides constituting the rectangular area, and determining a target side that matches the current resolution of the graphical user interface; determining the target scale based on the longest side and the target side, wherein the ratio between the longest side after scaling the longest side according to the target scale and the target side satisfies the target ratio.
[0096] In this embodiment, the target geometric information is determined based on the position information, and a rectangular area with the smallest area is made. Among the multiple sides that constitute the rectangular area, the longest side is determined, and a target side that matches the current resolution of the graphical user interface is determined; the target scale is determined based on the longest side and the target side, wherein the ratio between the longest side after scaling the longest side according to the target scale and the target side satisfies the target ratio; the rectangular area can be a minimum area rectangle.
[0097] For example, the position information (coordinate points) of the virtual model can be used as a parameter to make a minimum area rectangle so that all coordinate points are within the rectangle and both sides of the rectangle are parallel to the coordinate axis. At the same time, the longest side of the minimum area rectangle is exactly 80% of the side length corresponding to the current resolution after being scaled according to the target scale, thereby determining the target scale X. Each virtual model in the virtual model set can be scaled proportionally according to the target scale to obtain the target virtual scene image. It should be noted that the 80% here is only an example and is not specifically limited.
[0098] As an optional embodiment, in response to the starting point of the movement of at least one friendly virtual controlled object and / or at least one enemy virtual controlled object of the virtual controlled object being in the target virtual scene screen, a second trajectory route of at least one friendly virtual controlled object and / or at least one enemy virtual controlled object is displayed on a graphical user interface, wherein the second trajectory route is used to represent the complete path of the corresponding friendly virtual controlled object and / or enemy virtual controlled object moving in the target virtual scene screen.
[0099] In this embodiment, in response to the starting point of the movement of at least one friendly virtual controlled object and / or at least one enemy virtual controlled object of the virtual controlled object being in the target virtual scene screen, a second trajectory route of at least one friendly virtual controlled object and / or at least one enemy virtual controlled object is displayed on the graphical user interface, wherein the second trajectory route is used to represent the complete path of the corresponding friendly virtual controlled object and / or enemy virtual controlled object moving in the target virtual scene screen.
[0100] In this embodiment, in the global mode, the starting point of the movement of the virtual controlled object is determined. When the starting point of the movement of the virtual controlled object is in the target virtual scene picture of the virtual scene, in response to the starting point of the movement of the virtual controlled object being in the target virtual scene picture, the second trajectory route of the virtual controlled object is displayed on the graphical user interface, wherein the second trajectory route may be the marching path information of the virtual controlled object, which may be used to represent the complete path of the movement of the virtual controlled object in the target virtual scene picture of the virtual scene, and the range of the target virtual scene picture is determined by the range displayed by the virtual model collection on the graphical user interface.
[0101] Optionally, when the starting point of the movement of the virtual controlled object is not in the target virtual scene screen, the trajectory route displayed by the friendly virtual controlled object and / or the enemy virtual controlled object is not the complete trajectory route, and only the trajectory part that enters the range of our building in the target virtual scene screen can be seen.
[0102] In the related art, it is impossible to have a global understanding of the complete path of movement, but in an embodiment of the present invention, when at least one friendly virtual controlled object and / or enemy virtual controlled object of the virtual controlled object is displayed in the target virtual scene screen of the virtual scene, the complete path of movement of the friendly and / or enemy virtual controlled objects in the target virtual scene screen can be displayed in the global mode.
[0103] In this embodiment, since the range of the target virtual scene picture is determined by the range displayed by the virtual model set on the graphical user interface, when the starting point of the movement of the virtual controlled object is inside or outside the target virtual scene picture of the virtual scene, its trajectory route is incomplete, and only the trajectory route after entering the target virtual scene picture will be displayed. It is further explained that the trajectory route of the virtual controlled object is not necessarily complete. Only when the starting point of the movement of the virtual controlled object is in the target virtual scene picture of the virtual scene, can the complete path of the virtual controlled object moving in the target virtual scene picture of the virtual scene be displayed on the graphical user interface.
[0104] In this embodiment, a first virtual scene screen corresponding to a first scale is displayed in a graphical user interface; in response to a first operation of switching the first scale to a target scale, a target virtual scene screen and an object control corresponding to the target scale are displayed in the graphical user interface; in response to a second operation on the object control, a virtual controlled object corresponding to the object control is controlled to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set. That is, the present invention displays a target virtual scene screen and an object control corresponding to the target scale in a graphical user interface, so that all virtual models and their distribution on the entire map can be viewed in one screen, and virtual controlled objects can be dispatched between different virtual models through the object control, thereby improving the control efficiency of virtual controlled objects.
[0105] The technical solution of the embodiment of the present invention is further introduced by way of examples in combination with preferred implementation modes. Specifically, the above virtual model is used as an example of a building model to provide a method for calling and viewing a team in a global visualized building.
[0106] Currently, in strategy games, the user's troops will be mobilized to virtual buildings on various maps. Troops can go out from virtual buildings or be mobilized between virtual buildings. For example, troops can be mobilized to virtual buildings such as fortresses, military camps, and sub-cities. Users can select virtual buildings and then execute mobilization commands to mobilize corresponding troops.
[0107] In the related art, the selection of virtual buildings is carried out by directly jumping on the big map. If the user wants to move from one virtual building to another, he needs to swipe on the big map to find it, or use the mark positioning to jump on the big map; the viewing / mobilization of troops usually uses a progressive operation of multiple clicks, entering from the big map interface outside the virtual building to the interface inside the virtual building, and then entering from the interface inside the virtual building to the current troop interface and selecting troops for mobilization; the viewing of troop marching information can only be done by viewing the marching troops on the big map. If the departure place or destination is beyond the graphical user interface, it is necessary to swipe in the corresponding direction to move the map perspective to view it.
[0108] However, in the above method, the user needs to locate or find the target virtual building that needs to be mobilized on the map, click on the virtual building that needs to be mobilized, then select the troops in the virtual building to enter the mobilization command interface, and finally click on mobilization. The whole process needs to display 3 interfaces and requires multiple steps. For example, if the user wants to view the distribution of his own troops in the virtual building, he needs to locate or find the corresponding virtual building on the map, click on the virtual building and then click on the city button to enter the city to view; if the user wants to quickly view the distribution of troops in the virtual building, he needs to frequently switch in and out of the virtual buildings to view. Therefore, there is a technical problem that the user mobilizes troops between his own virtual buildings, the process is long, and the operation cost is high.
[0109] Furthermore, although the current interaction scheme is more in line with the user's general cognition and the single-click interaction operation cost is low, it has the following disadvantages in scenarios where high-frequency mobilization of troops or large-scale battles are required, which are time-sensitive and require interaction efficiency: in the case of virtual building selection interaction, the virtual buildings on the large map cannot be displayed in a graphical user interface, and the user needs to slide the graphical user interface to bring the target virtual building into the graphical user interface perspective, and the interaction is cumbersome. When the virtual buildings on the map are far apart, it may be necessary to jump through the virtual building markers. The jump interaction operation is complicated and the jump process is not instantaneous, and the immediacy is poor. At the same time, the virtual buildings of many users are displayed extremely densely on the graphical user interface, and users cannot identify and locate their own fortresses. It is not clear and intuitive enough; in the case of viewing and interacting with troops, the current interaction requires entering the virtual building each time to view the troops in the virtual building. The interaction is cumbersome, and only the troops in one virtual building can be displayed at the same time. When the user needs to consider the overall deployment of troops, it is not intuitive and clear enough, and the overall information cannot be displayed; in the case of troop mobilization, it is necessary to frequently enter and exit the virtual building to select troops, which has a high operating cost. The entire operation process is all click operations, and the user's sense of control and control over the situation is weak; in the case of viewing marching information: in most cases, the departure and destination cannot be displayed in the same graphical user interface, so only part of the marching path can be displayed on the large map, and there is no global understanding of the entire marching path information.
[0110] In view of the above problems, the present invention utilizes the three levels of the original relationship among the large map, the city and the troops to be displayed at the same level through perspective; the troops are adsorbed around the virtual buildings in the form of bubbles, and the troops are mobilized by dragging them to the objects in an interactive form, thereby greatly improving the user's viewing and mobilization efficiency of their own virtual buildings and the troops inside the virtual buildings. At the same time, dragging and mobilizing troops from a global perspective improves the user's sense of control and control over the situation compared to the previous continuous switching.
[0111] The above method of this embodiment is further introduced below.
[0112] In this embodiment, all virtual building coordinate points are used as parameters to make a minimum area rectangle so that all coordinate points are within the rectangle and both sides of the rectangle are parallel to the coordinate axis. At the same time, the minimum area rectangle satisfies: the longer side is exactly 80% of the side length corresponding to the current resolution after being scaled at a ratio of 1:X. After determining the value of X, the large map is scaled at a ratio of 1:X and displayed in global viewing mode.
[0113] Optionally, the scaled rectangular area is displayed centered in the graphical user interface, the virtual building in the map is scaled at a 1:Y ratio, and the rest of the image is displayed at a fixed ratio, where X>Y.
[0114] In this embodiment, Figure 3 is a schematic diagram of entering a global viewing mode according to an embodiment of the present invention, such as Figure 3 As shown, you can enter the global viewing mode by long pressing any virtual building on the large map. In the global viewing mode, all your virtual buildings are displayed on the graphical user interface with the maximum display range, and the troops in your virtual buildings are displayed in the form of bubbles + lines adsorbed around the virtual buildings. You can return to the large map interface by clicking the return button.
[0115] It should be noted that, in the related art, the troops in the virtual building can only be viewed after locating and moving to the virtual building, while in the present invention, based on the global mode, the troops in all virtual buildings can be viewed through the bubbles outside the virtual building, and there is no need to move to the corresponding virtual building to determine the troops in the virtual building.
[0116] In this embodiment, Figure 4 is a schematic diagram of a virtual object movement according to an embodiment of the present invention, such as Figure 4 As shown, when the player wants to transfer the troops in virtual building A to troop B, he can press and hold the troops adsorbed on virtual building A and drag them. When the dragging distance is greater than a certain value, the troop bubble is disconnected from the virtual building. When the troops are dragged to a certain range near virtual building B, the virtual building dragging and placement area is highlighted and activated. When the troop bubble enters the area, it is automatically adsorbed by the virtual building and connected, and a confirmation pop-up window pops up. After clicking confirm, a dynamic trajectory will appear between troops A and B, and the troop bubble moves along the trajectory from virtual building A to virtual building B.
[0117] Optionally, a circle is drawn with the geometric center point of the virtual building as the center and R as the radius, and the area inside the circle is the adsorption relationship determination area. If the center point of the bubble circle is within the determination area, it is determined to be adsorbed, otherwise it is determined to be detached.
[0118] Alternatively, if Figure 4 As shown, the detachment and adsorption process has dynamic effects of troop bubbles and lines. Therefore, when it is determined to be detached, the troop bubble line will shrink from the city end to the bubble end and disappear. At the moment of adsorption, the troop bubble line will grow from the bubble end to the city center end. At the same time, the bubble will have an appropriate displacement along the path of the line connecting the two centers.
[0119] It should be noted that as long as you enter the global viewing mode, you can mobilize troops to all your virtual buildings that can place troops. This operation is multi-directional and has nothing to do with the type of virtual building.
[0120] In this embodiment, if friendly or enemy attacking forces enter the field of view and the target is one's own virtual building, the dynamic trajectories of the friendly and enemy forces are displayed in the global mode.
[0121] Alternatively, if Figure 4 As shown, in global mode, our troops and dynamic trajectories will definitely be displayed, but the dynamic trajectories of friendly and enemy troops will only be displayed when their targets are within the field of view of our virtual buildings. At the same time, the dynamic trajectories of our, friendly and enemy troops will also be displayed in the large map game interface. In global mode, the dynamic information of the troops is consistent and synchronized with the large map interface, but the information presentation is more comprehensive in global mode, and the complete path of the trajectory can be clearly seen, while in the large map you can only see the dynamic trajectory currently entering the screen.
[0122] In this embodiment, in global mode, a global viewing mode is entered by long pressing any virtual building of one's own on the large map. In global viewing mode, all virtual buildings of one's own are displayed on the graphical user interface with the maximum display range. The player can click the return button to return to the large map interface, so that all virtual buildings of one's own and their approximate distribution on the entire map can be viewed in one graphical user interface; by adsorbing the troops in one's own virtual buildings in the form of "bubbles + lines" around the virtual buildings for display, the distribution of standby troops in each virtual building of one's own can be viewed in one graphical user interface, and by the appearance of dynamic tracks between AB troops, the complete marching path of one's own troops on the entire map can be viewed in one graphical user interface; by displaying the dynamic tracks of friendly and enemy troops, the complete marching path of one's own troops on the entire map can be viewed in one graphical user interface, and the marching path and approximate position of the enemy attack troops can be viewed from a large-scale perspective, thereby realizing fast and efficient mobilization of troops between virtual buildings, thereby solving the technical problem of low interaction efficiency of virtual building facilities in game scenes.
[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0124] In this embodiment, a display control device for a virtual object is also provided, which provides a graphical user interface through a terminal device, and the display content of the graphical user interface includes a virtual scene and a plurality of virtual models located in the virtual scene. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "unit" refers to a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0125] Figure 5 is a structural block diagram of a display control device for a virtual object according to an embodiment of the present invention. Figure 5 As shown, the display control device of the virtual object may include: a first display unit 502 , a second display unit 504 and a control unit 506 .
[0126] A first display unit 502, configured to display a first virtual scene image corresponding to a first scale in a graphical user interface, wherein the first virtual scene image includes at least one virtual model;
[0127] A second display unit 504 is configured to respond to a first operation of switching the first scale to a target scale, and to display a target virtual scene picture and an object control corresponding to the target scale in a graphical user interface, wherein the target virtual scene picture includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set;
[0128] The control unit 506 is used to respond to the second operation on the object control and control the virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model in the virtual model set.
[0129] In this embodiment, a first virtual scene screen corresponding to a first scale is displayed in a graphical user interface through a first display unit, wherein the first virtual scene screen includes at least one virtual model; a target virtual scene screen and an object control corresponding to the target scale are displayed in a graphical user interface in response to a first operation of switching the first scale to a target scale through a second display unit, wherein the target virtual scene screen includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set; and a control unit is used to control a virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model in the virtual model set in response to a second operation on the object control. That is, in the embodiment of the present invention, by displaying the target virtual scene screen and the object control corresponding to the target scale in a graphical user interface, all virtual models and their distribution on the entire map can be viewed in one screen, and virtual controlled objects can be dispatched between different virtual models through the object control, thereby improving the control efficiency of virtual controlled objects.
[0130] It should be noted that the above-mentioned units can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned units are all located in the same processor; or the above-mentioned units are located in different processors in any combination.
[0131] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0132] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0133] S1, displaying a first virtual scene picture corresponding to a first scale in a graphical user interface, wherein the first virtual scene picture includes at least one virtual model;
[0134] S2, in response to a first operation of switching the first scale to the target scale, displaying a target virtual scene picture and an object control corresponding to the target scale in a graphical user interface, wherein the target virtual scene picture includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set;
[0135] S3, in response to a second operation on the object control, controlling the virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model in the virtual model set.
[0136] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0137] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0138] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0139] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0140] S1, displaying a first virtual scene picture corresponding to a first scale in a graphical user interface, wherein the first virtual scene picture includes at least one virtual model;
[0141] S2, in response to a first operation of switching the first scale to the target scale, displaying a target virtual scene picture and an object control corresponding to the target scale in a graphical user interface, wherein the target virtual scene picture includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set;
[0142] S3, in response to a second operation on the object control, controlling the virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model in the virtual model set.
[0143] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0144] Figure 6 is a schematic diagram of an electronic device according to an embodiment of the present invention. Figure 6 As shown, the electronic device 600 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0145] like Figure 6As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processor 610, at least one memory 620, a bus 630 connecting different system components (including the memory 620 and the processor 610), and a display 640.
[0146] The memory 620 stores program codes, which can be executed by the processor 610, so that the processor 610 executes the steps according to various exemplary embodiments of the present invention described in the method part of the embodiment of the present application.
[0147] The memory 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
[0148] In some examples, the memory 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include the implementation of a network environment. The memory 620 may further include a memory remotely disposed relative to the processor 610, and these remote memories may be connected to the electronic device 600 via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0149] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a local bus of processor 610, or a bus using any of a variety of bus architectures.
[0150] The display 640 may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the electronic device 600 .
[0151] Optionally, the electronic device 600 may also communicate with one or more external devices 1400 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 660. Figure 6 As shown, the network adapter 660 communicates with other modules of the electronic device 600 via the bus 630. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0152] The electronic device 600 may further include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply and / or a camera.
[0153] It can be understood by those skilled in the art that Figure 6 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 6 More or fewer components as shown, or with Figure 1 The memory 620 may be used to store computer programs and corresponding data, such as computer programs and corresponding data corresponding to the data processing method in the embodiment of the present invention. The processor 610 executes various functional applications and data processing by running the computer programs stored in the memory 620, that is, implements the above-mentioned data processing method.
[0154] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0155] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0156] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0157] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0158] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0159] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0160] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A display control method for a virtual object, It is characterized in that A graphical user interface is provided through a terminal device, wherein display content of the graphical user interface includes a virtual scene and a plurality of virtual models located in the virtual scene, and the method includes: Displaying a first virtual scene picture corresponding to a first scale in a graphical user interface, wherein the first virtual scene picture includes at least one virtual model; In response to a first operation of switching the first scale to a target scale, a target virtual scene picture and an object control corresponding to the target scale are displayed in the graphical user interface, wherein the target virtual scene picture includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set; In response to a second operation on the object control, the virtual controlled object corresponding to the object control is controlled to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set, wherein the second operation includes: a dragging operation from the object control to a response area of the second virtual model, the response area including the second virtual model itself, and / or a model peripheral area within a preset range of the second virtual model.
2. The method according to claim 1, It is characterized in that The first operation is a selection operation on the at least one virtual model, and the target scale is a second scale; In response to the first operation of switching the first scale to the target scale, displaying the target virtual scene picture and object controls corresponding to the target scale in the graphical user interface includes: In response to a selection operation on the at least one virtual model, acquiring the virtual model set to which the selected virtual model belongs; Determining the second scale corresponding to the virtual model set, wherein the second scale enables the virtual model set to be completely displayed in the graphical user interface; A second virtual scene picture corresponding to the second scale and the object control are displayed in the graphical user interface, wherein the target virtual scene picture includes the second virtual scene picture.
3. The method according to claim 2, It is characterized in that The second scale is determined by: Reducing the virtual model set displayed at the first scale according to a preset zoom range until all virtual models in the virtual model set are completely displayed in the graphical user interface; The corresponding scale when all virtual models in the virtual model set are completely displayed on the graphical user interface is determined as the second scale.
4. The method according to claim 1, It is characterized in that The first operation is a zooming operation on the first virtual scene image, and the target scale is a third scale; In response to the first operation of switching the first scale to the target scale, displaying the target virtual scene picture and object controls corresponding to the target scale in the graphical user interface includes: In response to a zooming operation on the first virtual scene image, determining a third scale corresponding to the zooming operation; Determining virtual models existing in a third virtual scene picture at the third scale, and determining the virtual models existing in the third virtual scene picture as the virtual model set; Determining a virtual controlled object associated with a virtual model in the virtual model set; A third virtual scene picture at the third scale and the object control corresponding to the virtual controlled object are displayed in the graphical user interface, wherein the target virtual scene picture includes the third virtual scene picture.
5. The method according to claim 1, It is characterized in that The target virtual scene picture includes an object identifier corresponding to the virtual controlled object; The controlling the virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set includes: Generating a first trajectory route from the first virtual model to the second virtual model in the target virtual scene picture; According to the moving progress of the virtual controlled object, the object identifier is synchronously controlled to move along the first trajectory route.
6. The method according to claim 5, It is characterized in that The target virtual scene picture includes a first relationship identifier corresponding to the virtual controlled object, and the first relationship identifier is used to indicate the relationship between the virtual controlled object and the first virtual model; the method further includes: In response to the distance between the moving object identifier and the first virtual model being greater than a first distance threshold, canceling display of the first relationship identifier in the target virtual scene picture; In response to the distance between the moving object identifier and the second virtual model being less than a second distance threshold, a second relationship identifier is displayed in the target virtual scene screen, wherein the second relationship identifier is used to indicate the relationship between the virtual controlled object and the second virtual model.
7. The method according to claim 1, It is characterized in that In response to the first operation of switching the first scale to the target scale, displaying a target virtual scene picture corresponding to the target scale in the graphical user interface includes: In response to a first operation of switching the first scale to a target scale, controlling scene elements in the virtual scene other than the virtual model set to perform a first size transformation according to the target scale, and controlling the virtual model set to perform a second size transformation according to a fourth scale, wherein the fourth scale is smaller than the target scale; The target virtual scene screen is displayed in the graphical user interface, wherein the target virtual scene screen includes the scene elements that are transformed in a first size according to the target scale, and the virtual model set that is transformed in a second size according to the fourth scale.
8. The method according to claim 7, It is characterized in that The method further comprises: Determine a target geometric area based on the position information of each virtual model in the virtual model set in the virtual scene, wherein the target geometric area includes the position information of each virtual model in the virtual scene; The target scale is determined based on the side length of the target geometric area.
9. The method according to claim 8, It is characterized in that The target geometric area is a rectangular area with the smallest area and including the position information of each virtual model in the virtual scene; Determining the target scale based on the side length of the target geometric area includes: Determine the longest side among the multiple sides constituting the rectangular area, and determine a target side that matches the current resolution of the graphical user interface; The target scale is determined based on the longest side and the target side, wherein a ratio between the longest side after scaling the longest side according to the target scale and the target side satisfies a target ratio.
10. The method according to any one of claims 1 to 9, It is characterized in that The method further comprises: In response to the starting point of the movement of at least one friendly virtual controlled object and / or at least one enemy virtual controlled object of the virtual controlled object being in the target virtual scene screen, a second trajectory route of the at least one friendly virtual controlled object and / or the at least one enemy virtual controlled object is displayed on the graphical user interface, wherein the second trajectory route is used to represent the complete path of the corresponding friendly virtual controlled object and / or the enemy virtual controlled object moving in the target virtual scene screen.
11. A display control device for a virtual object, It is characterized in that A graphical user interface is provided through a terminal device, wherein the display content of the graphical user interface includes a virtual scene and a plurality of virtual models located in the virtual scene, and the apparatus includes: A first display unit, configured to display a first virtual scene image corresponding to a first scale in a graphical user interface, wherein the first virtual scene image includes at least one virtual model; a second display unit, configured to respond to a first operation of switching the first scale to a target scale, and to display a target virtual scene picture and an object control corresponding to the target scale in the graphical user interface, wherein the target virtual scene picture includes a virtual model set to which the virtual model belongs, and the object control is used to represent a virtual controlled object associated with the virtual model in the virtual model set; A control unit is used to respond to a second operation on the object control, and control the virtual controlled object corresponding to the object control to move from the first virtual model to which it belongs to to the second virtual model of the virtual model set, wherein the second operation includes: a dragging operation from the object control to a response area of the second virtual model, and the response area includes the second virtual model itself, and / or a model peripheral area within a preset range of the second virtual model.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 10 when executed by a processor.
13. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 10.
