Methods, devices, storage media, and electronic devices for selecting virtual objects
By displaying a slider control on the graphical user interface, users can adjust the target parameter value by sliding the indicator, which solves the problems of cumbersome virtual object selection and misselection, and enables fast and batch virtual object filtering, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (SHANGHAI) NETWORK CO LTD
- Filing Date
- 2024-09-24
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, selecting multiple virtual objects in a game's virtual scene is cumbersome and prone to misselection, resulting in low selection efficiency and negatively impacting user experience.
By displaying a slider control on the graphical user interface, which includes a sliding track and a slider icon, users can adjust the target parameter value by moving the slider icon along the sliding track, thereby quickly adjusting the virtual objects within the selected area and filtering the target virtual objects.
It improves the efficiency of virtual object selection, shortens the interaction process, and enhances the user experience.
Smart Images

Figure CN119425062B_ABST
Abstract
Description
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202411205113.5, filed on August 29, 2024, entitled “Method, Apparatus, Storage Medium and Electronic Device for Selecting Virtual Objects”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This disclosure relates to the field of computer technology, and in particular to a method for selecting virtual objects, a device for selecting virtual objects, a computer storage medium, and an electronic device. Background Technology
[0004] In existing online games, there is a need to select multiple virtual objects within the game's virtual scene to achieve synchronized processing or control of these objects. Selecting them one by one is too tedious for users. When users select multiple virtual objects using a selection tool on the graphical user interface, they typically select all virtual objects within the selected area, which easily leads to the accidental selection of virtual objects.
[0005] Therefore, there is an urgent need for a method that allows users to quickly select multiple virtual objects and flexibly adjust the selected virtual objects in order to improve selection efficiency and thus enhance the user experience. Summary of the Invention
[0006] This disclosure provides a method for selecting virtual objects, a device for selecting virtual objects, a computer storage medium, and an electronic device, which can quickly filter virtual characters selected within a frame, greatly improving selection efficiency and enhancing the user experience.
[0007] In a first aspect, one embodiment of this disclosure provides a method for selecting virtual objects. A graphical user interface (GUI) is provided via a terminal device. The GUI includes at least a portion of a virtual scene and multiple selectable virtual objects located within the virtual scene. The method includes: responding to a selection operation command triggered by the GUI, determining a target selection area corresponding to the selection operation command, and selecting a target virtual object from the multiple selectable virtual objects in the virtual scene; wherein the target virtual object includes virtual objects located within the target selection area; displaying a slider control in the GUI, the slider control including a sliding track and a slider marker located on the sliding track, the parameter value range indicated by the sliding track being used to characterize the value range of the target parameter corresponding to the virtual object in the virtual scene; responding to a control operation on the slider marker, determining a target parameter value corresponding to the control operation based on the position parameter of the slider marker in the sliding track, so as to adjust the selected target virtual object within the target selection area based on the target parameter value.
[0008] Secondly, one embodiment of this disclosure provides a virtual object selection device, which provides a graphical user interface through a terminal device. The graphical user interface includes at least a portion of a virtual scene and a plurality of selectable virtual objects located in the virtual scene. The device includes: a determination module, configured to determine a target selection area corresponding to a selection operation command triggered by the graphical user interface, and select a target virtual object from a plurality of selectable virtual objects in the virtual scene, wherein the target virtual object includes virtual objects located within the target selection area; a control display module, configured to display a slider control in the graphical user interface, the slider control including a sliding track and a sliding indicator located on the sliding track, the parameter value range indicated by the sliding track being used to characterize the value range of the target parameter corresponding to the virtual object in the virtual scene; and an object adjustment module, configured to determine the target parameter value corresponding to the control operation based on the position parameter of the sliding indicator in the sliding track, in response to a control operation on the sliding indicator, so as to adjust the target virtual object selected within the target selection area based on the target parameter value.
[0009] Thirdly, one embodiment of this disclosure provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the above-described method.
[0010] Fourthly, one embodiment of this disclosure provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the virtual object selection method described above by executing the executable instructions.
[0011] Fifthly, one embodiment of this disclosure provides a computer program product, including a computer program that is executed by a processor to implement the virtual object selection method described above.
[0012] The aforementioned method for selecting virtual objects can be based on a box selection operation to select target virtual objects, and the value of the target parameter can be adjusted through a slider control. This adjustment can then be made based on the target parameter value determined by the slider control, such as reducing or increasing the number of target virtual objects selected within the target box selection area. Specifically, it can cancel the selection state of some target virtual objects or adjust unselected virtual objects in the target selection area to a selected state. In the embodiments provided in this disclosure, the user only needs to control the slider indicator in the slider control to move along the slider track. Based on the target parameter value represented by the position of the slider indicator in the slider track, the selected virtual objects within the target box selection area can be adjusted. This avoids the problems of long operation processes, low efficiency, and poor user experience caused by deleting virtual objects one by one in related technical solutions. The virtual object selection method provided in this disclosure can quickly filter the selected virtual characters within the box selection area, greatly shortening the interaction process, improving the selection efficiency of virtual objects, and enhancing the user's operating experience.
[0013] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0014] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0015] Figure 1A This illustration shows an application scenario where a virtual object is selected via a box selection operation, representing one of the related technical solutions in this exemplary embodiment.
[0016] Figure 1B This illustration shows an application scenario diagram of deleting a portion of virtual objects according to one of the exemplary embodiments of this invention;
[0017] Figure 2 This diagram illustrates the architecture of a virtual object selection system according to one of the exemplary embodiments of the present invention.
[0018] Figure 3A flowchart illustrating one method for selecting a virtual object in this exemplary embodiment is shown.
[0019] Figure 4 This diagram illustrates one example of a selection operation in this exemplary embodiment.
[0020] Figure 5 This diagram illustrates one example of a differentiated display of a target virtual object according to this exemplary embodiment;
[0021] Figure 6A This illustration shows a display diagram of a slider control in this exemplary embodiment;
[0022] Figure 6B This illustration shows a display diagram of a target virtual object selected by a sliding marker moving from a first sliding track to a second sliding track in this exemplary embodiment.
[0023] Figure 6C This illustration shows a display diagram of a target virtual object selected by a sliding marker moving from a second sliding track to a third sliding track in this exemplary embodiment.
[0024] Figure 7 This illustration shows a display diagram of another slider control in this exemplary embodiment;
[0025] Figure 8 This illustration shows a display diagram of a sub-user interface in this exemplary embodiment;
[0026] Figure 9A This illustration shows a schematic diagram of displaying the total number of target virtual objects selected within a target selection area in a sub-user interface according to an exemplary embodiment of the present invention;
[0027] Figure 9B This illustration shows a schematic diagram of displaying the total number of target virtual objects selected within a target selection area in a graphical user interface according to an exemplary embodiment of the present invention;
[0028] Figure 10 (a)- Figure 10 (c) A schematic diagram illustrating the entire process of selecting a virtual object in one of the exemplary embodiments of this invention;
[0029] Figure 11 This schematic diagram illustrates the structure of a virtual object selection device according to one of the exemplary embodiments of the present invention.
[0030] Figure 12 The schematic diagram illustrates the structure of an electronic device according to one of the exemplary embodiments of this invention. Detailed Implementation
[0031] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of exemplary embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0032] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0033] The flowchart shown in the attached diagram is merely an illustrative example and does not necessarily include all steps. For example, some steps may be broken down, while others may be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0034] In existing virtual scenes, there is a technical need to select multiple virtual objects within the scene for simultaneous processing or control, such as adjusting the position or resizing all selected virtual objects. Currently, a common technical solution is for the user to define a selection area by performing a bounding box operation, thereby simultaneously selecting multiple virtual objects within the selected area.
[0035] When selecting multiple virtual objects using the aforementioned selection box operation, all virtual objects within the selected area in the game's virtual scene are typically selected. However, it's easy to accidentally select some virtual objects. Current technical solutions allow for manual adjustment of the selection area to refine the selection of virtual objects within it. Alternatively, a list of selected virtual objects can be displayed after selection, allowing for further editing to remove mistakenly selected or unwanted objects.
[0036] To facilitate understanding of the above-mentioned technical solutions, the following will combine... Figure 1A , Figure 1B The process of selecting virtual objects in a virtual scene is illustrated by example in the relevant technical solutions.
[0037] Figure 1A This illustration schematically depicts an application scenario where a related technical solution in this exemplary embodiment selects virtual objects via a box selection operation, such as... Figure 1A As shown, the virtual scene contains multiple virtual objects. When the user performs a selection operation to define a selection area, all virtual objects within the selection area are selected. At this time, the selected virtual objects appear as gray-filled selection objects; while virtual objects outside the selection area are not selected (e.g., ...). Figure 1A The cone 101 shown is an example of a virtual object, while unselected cones 101 are displayed as unselected objects without gray fill. It should be noted that for 3D virtual scenes, in addition to the X and Y axes mentioned above, there is also a Z-axis representing the distance between virtual objects and virtual cameras. Figure 1A The distances between the virtual objects and the virtual camera shown are not all the same. Therefore, when selecting a virtual character, not only are virtual objects closer to the virtual camera selected, but also those farther away; that is, all virtual objects within the selection area are selected. However, the selected virtual objects (all virtual objects within the selection area) are not necessarily the objects that the user needs to proceed with the next step. Therefore, it is necessary to adjust the multiple virtual objects selected by the selection operation.
[0038] It should be noted that the aforementioned virtual camera is used for data collection. Figure 1A , Figure 1B The virtual device in the virtual scene shown. The virtual object selection method provided in this disclosure can be applied to any application scenario that requires the selection of multiple operation objects, such as game scenarios, shopping scenarios, office scenarios, etc. This disclosure does not impose any special restrictions on the specific application scenarios, and all application scenarios that meet the above requirements are within the protection scope of this disclosure.
[0039] To address the aforementioned technical issues, the following examples of commonly used related technical solutions will be provided:
[0040] In one related technical solution, users can adjust the selected virtual object by manually adjusting the size of the selection area. For example, when the user does not need to select... Figure 1AAs shown in the diagram, for the cone 102, the player can drag the top edge of the selected area downwards to remove the cone 102 from the selected area, thus deselecting it. However, when the top edge of the selected area is dragged downwards, the cylinder 103 also moves out of the selected area, meaning the cylinder 103 also becomes unselected. This is not the desired result for the user, requiring repeated adjustments. This method of selecting multiple virtual objects is inaccurate and inflexible.
[0041] In another related technical solution, after the user completes the selection operation to determine the selected area, it is as follows: Figure 1A As shown, the right-hand area of the graphical user interface displays the identifiers of the selected virtual objects within the currently selected area in a list format. Each selected virtual object in the list is made editable, allowing the user to delete unwanted virtual objects. For example, when the user needs to delete the aforementioned cone 102 that does not need to be selected, as shown... Figure 1A As shown, assuming cone 102 corresponds to the last cone in the list, the user can click the delete control in the upper right corner of the cone 102's identifier in the list, and then... Figure 1B The cone 102 is shown to be deleted from the list of selected virtual objects; simultaneously, the cone 102 is removed from... Figure 1A The selection status shown is updated as follows: Figure 1B The unselected state shown is the state where the gray fill of cone 102 is removed, making it appear the same as the unselected state of cone 101. However, this related technical solution requires users to screen and delete virtual objects that do not need to be selected one by one, which results in long processing time and low efficiency for users to select virtual objects, affecting the user's operating experience and thus affecting user stickiness between users and the application.
[0042] This exemplary embodiment addresses the aforementioned problems and proposes a method for selecting virtual objects. After the terminal device responds to a user's selection operation and determines the selection area, a slider control can be displayed on the user interface. This slider control includes a sliding track and a slider marker located on the sliding track. The sliding track represents the numerical range of target parameters for the virtual objects, allowing the user to quickly and in batches add or remove selected virtual objects within the target selection area simply by dragging the slider marker along the sliding track, based on the set parameter values. This method quickly removes virtual objects mistakenly selected during the selection operation, or unselected virtual objects. The method for adding virtual objects avoids the need to delete unwanted virtual objects one by one within the selected area or to manually adjust the selected area to delete unwanted virtual objects, which leads to a long interaction process and makes it difficult to quickly and in batches select the virtual objects that the user needs to control, thus affecting the user's operating experience. The virtual object selection method provided in this disclosure can quickly and in batches filter or add virtual characters within the selected area, greatly shortening the interaction process time, improving efficiency, and enhancing the usability of the game and the user's operating experience.
[0043] Based on this, it can be seen that the virtual object selection method, device, storage medium and electronic device provided in the embodiments of this application can solve the technical problems of low efficiency and flexibility and cumbersome operation in selecting virtual objects in virtual scenes in the above-mentioned related technical solutions.
[0044] The following describes the application of the virtual object selection method and apparatus proposed in this disclosure to... Figure 2 The system architecture of the exemplary application environment shown is illustrated in the diagram.
[0045] Figure 2 This diagram illustrates the architecture of a virtual object selection system in this exemplary embodiment, such as... Figure 2 As shown, system architecture 200 may include one or more of terminal devices 201, 202, 203, and 204, a network 205, and a server 206. Network 205 serves as the medium for providing communication links between terminal devices 201, 202, 203, and 204 and server 206. Network 205 may include various connection types, such as wired, wireless communication links, or fiber optic cables. Terminal devices 201, 202, 203, and 204 may be, for example, smartphones, PDAs, laptops, servers, desktop computers, or any other network-enabled computing devices, but are not limited to these.
[0046] It should be understood that Figure 2The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, there can be any number of terminal devices, networks, and servers. For example, server 206 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0047] The virtual object selection method provided in this embodiment can be executed on server 206, and correspondingly, the virtual object selection device is generally located in server 206. The virtual object selection method provided in this embodiment can also be executed on a terminal device, and correspondingly, the virtual object selection device can also be located in the terminal device. The virtual object selection method provided in this embodiment can also be partially executed on server 206 and partially executed on the terminal device; correspondingly, some modules of the virtual object selection device can be located in server 206, and some modules can be located in the terminal device.
[0048] For example, in an exemplary embodiment, a game application is installed on terminal devices 201, 202, 203, or 204. Users can run the game application through terminal devices 201, 202, 203, or 204. The terminal device provides a graphical user interface, which includes at least a portion of a virtual scene and multiple selectable virtual objects located in the virtual scene. The server 206 can provide game resources for the terminal devices 201, 202, 203, or 204 during the game operation and management process. Using any of the aforementioned terminal devices as the execution entity, the terminal device, in response to a selection operation command triggered by a graphical user interface, determines the target selection area corresponding to the selection operation command and selects a target virtual object from multiple selectable virtual objects in the virtual scene; wherein, the target virtual object includes virtual objects located within the target selection area; a slider control is displayed in the graphical user interface, the slider control includes a sliding track and a sliding indicator located on the sliding track, the parameter value range indicated by the sliding track is used to characterize the value range of the target parameter corresponding to the virtual object in the virtual scene; in response to a control operation on the sliding indicator, the target parameter value corresponding to the control operation is determined according to the position parameter of the sliding indicator in the sliding track, so as to adjust the target virtual object selected within the target selection area based on the target parameter value.
[0049] In one embodiment of this disclosure, the method for selecting virtual objects can run on a local terminal device or a server. When the method for selecting virtual objects runs on a server, it can be implemented and executed based on a cloud interaction system, which includes a server and client devices.
[0050] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program's execution and the game screen presentation are separated. The selection, storage, and execution of virtual objects are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, information processing is performed by the cloud gaming server in the cloud. When playing the game, the user operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses game screen data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0051] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the user through a graphical user interface, that is, conventionally downloading, installing, and running the game program via an electronic device. The local terminal device can provide the graphical user interface to the user in various ways, such as rendering it on the terminal's display screen or providing it to the user through holographic projection. For example, the local terminal device can include a display screen for displaying the graphical user interface, which includes game screens, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
[0052] In one possible implementation, the present invention provides a method for selecting virtual objects, which provides a graphical user interface through a terminal device. The terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system.
[0053] However, those skilled in the art will readily understand that the above application scenarios are merely illustrative and are not intended to limit the scope of this exemplary embodiment.
[0054] Having understood the system architecture of the virtual object selection method provided in this disclosure, a detailed description will be given below in conjunction with specific embodiments.
[0055] This disclosure will use the aforementioned terminal device as the execution subject and illustrate the application of the virtual object selection method to the aforementioned terminal device as an example. A graphical user interface is provided through the aforementioned terminal device, which can be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. Furthermore, the graphical user interface provided by the terminal device includes at least a portion of the virtual scene and multiple selectable virtual objects located within the virtual scene. Figure 3 A flowchart illustrating a method for selecting a virtual object in this exemplary embodiment is shown below. Figure 3 The method for selecting virtual objects provided in this embodiment includes the following steps S301-S303:
[0056] Step S301: In response to a selection operation command triggered by a graphical user interface, determine the target selection area corresponding to the selection operation command, and select a target virtual object from multiple selectable virtual objects in the virtual scene; wherein, the target virtual object includes virtual objects located within the target selection area.
[0057] Step S302: Display a slider control in the graphical user interface. The slider control includes a sliding track and a sliding indicator located on the sliding track. The parameter value range indicated by the sliding track is used to characterize the value range of the target parameter corresponding to the virtual object in the virtual scene.
[0058] Step S303: In response to the control operation on the sliding indicator, determine the target parameter value corresponding to the control operation based on the position parameter of the sliding indicator in the sliding track, so as to adjust the selected target virtual object in the target selection area based on the target parameter value.
[0059] In the technical solutions provided by some embodiments of this disclosure, through Figure 3The method described herein can select target virtual objects based on a bounding box operation, and adjust the value of the target parameter through a slider control. Based on the target parameter value determined by the slider control, the selected target virtual objects within the target bounding box area can be adjusted, such as reducing or increasing the number of selected target virtual objects within the target bounding box area. Specifically, it can cancel the selection state of some target virtual objects, or adjust unselected virtual objects in the target selection area to a selected state. In the embodiments provided in this disclosure, the user only needs to control the slider indicator in the slider control to move along the sliding track. Based on the target parameter value represented by the position of the slider indicator in the sliding track, the selected virtual objects within the target bounding box area can be adjusted. This avoids the problems of long operation processes, low efficiency, and poor user experience caused by deleting virtual objects one by one in related technical solutions. The virtual object selection method provided in this disclosure can quickly filter the selected virtual characters within the bounding box area, greatly shortening the interaction process, improving the selection efficiency of virtual objects, and enhancing the user's operating experience.
[0060] The following will describe in conjunction with specific embodiments Figure 3 The specific implementation methods of each step in the illustrated embodiment are described in detail below:
[0061] In step S301, in response to a selection operation command triggered by the graphical user interface, the target selection area corresponding to the selection operation command is determined, and a target virtual object is selected from multiple selectable virtual objects in the virtual scene; wherein, the target virtual object includes virtual objects located within the target selection area.
[0062] The virtual scene can be a two-dimensional virtual scene, a three-dimensional virtual scene, or a virtual scene of any other dimension. It should be understood that, compared to a two-dimensional virtual scene, when the virtual scene is a three-dimensional virtual scene, it also includes the distance parameter between the virtual objects and the virtual camera, and the distances between multiple selectable virtual objects in the virtual scene and the virtual camera can be the same or different.
[0063] In one optional embodiment of this disclosure, the box selection operation instruction is an instruction triggered by a box selection operation performed on a graphical user interface. The box selection operation is implemented through at least one of the following operation methods: sliding operation and clicking operation.
[0064] The box selection operation instruction can be triggered when the user finishes performing a box selection operation on the graphical user interface, or it can be triggered when the terminal device responds to the user's start of performing a box selection operation on the graphical user interface. This disclosure does not impose any special restrictions on this.
[0065] The following will combine Figure 4 Taking click and swipe operations as examples, the process of determining the target selection area through the selection operation is illustrated. Figure 4 This diagram illustrates one type of selection operation in this exemplary embodiment.
[0066] Example 1: Taking the selection operation as a sliding operation as an example, such as Figure 4 As shown, the terminal device responds to a touch operation at position 1 (i.e., the first position) on the graphical user interface, and to a swipe operation from position 1 to position 2 (i.e., the second position) on the graphical user interface, as follows: Figure 4 As shown, positions 1 and 2 are respectively used as vertex positions, and the sliding distance between positions 1 and 2 is used as the diagonal to generate a rectangular selection area. At this time, the rectangular selection area generated above is the target selection area corresponding to the selection operation command.
[0067] In addition to the above embodiments, taking the selection operation as a click operation as an example, the terminal device responds to the click operation on position 1 of the graphical user interface and takes position 1 as the first position; then, the position where the user performs the click operation on position 2 of the graphical user interface within a preset time is taken as the second position, thereby determining the target selection area based on the first position and the second position.
[0068] Continue with Figure 4 For example, when a user clicks on location 1 of the graphical user interface, the terminal device designates location 1 as the first location. Then, if the user clicks again on location 2 of the graphical user interface, location 2 is designated as the second location. A selection area is generated using the first and second locations determined by these two clicks. Figure 4 As shown, positions 1 and 2 are taken as vertex positions, and the distance between positions 1 and 2 is taken as the diagonal to generate a rectangular selection area. At this time, the rectangular selection area generated above is the target selection area corresponding to the determined selection operation command.
[0069] It should be explained that the above method for generating a rectangular selection area is merely an example and is not a limitation on the method for determining the selection area. Other methods can also be used to determine the target selection area, and the target selection area can be a regular shape or an irregular shape. This disclosure does not impose any special restrictions on this.
[0070] Depend on Figure 4 As shown in the target selection area, when performing the selection operation, the determined target selection area may or may not contain any virtual objects. When the target selection area does not contain any virtual objects, no virtual objects are selected. When the target selection area contains virtual objects, the virtual objects contained in the target selection area are selected.
[0071] In some example embodiments of this disclosure, when performing step S301, which involves determining the target selection area corresponding to a selection operation instruction triggered by a graphical user interface: in response to the selection trigger operation, multiple selectable virtual objects are controlled to enter a selectable state; after the multiple selectable virtual objects enter the selectable state, in response to a sliding operation from a first position to a second position in the graphical user interface, the target selection area is determined based on the first position and the second position.
[0072] The first position can be the starting position of the swipe operation, and the second position can be the ending position of the swipe operation. Both the first and second positions can be any position within the virtual scene, and the first and second positions are different.
[0073] In this embodiment of the disclosure, the selection trigger operation can refer to a long press operation or a hard press operation (wherein, a hard press operation can be a touch operation that detects a touch pressure value greater than a preset pressure threshold). For example, by long-pressing or hard-pressing any blank area in the graphical user interface, the user can control all selectable objects in the graphical user interface to enter a selectable state, such as a selectable box state. After entering the selectable box state, the virtual object can be selected, such as being boxed.
[0074] The selectable state can be one or a combination of methods such as highlighting multiple selectable virtual objects in the virtual scene, adding shadows, and changing colors. This disclosure does not impose any special limitations on this.
[0075] It should be noted that, in the embodiments of this disclosure, the box selection operation instruction may include instructions generated based on the box selection trigger operation and the sliding operation, respectively. The box selection trigger operation is used to trigger entry into the box selection, and the sliding operation is used to obtain the box selection result.
[0076] It should be understood that when a terminal device responds to the start command of a swipe operation, it can display a selected area in real time on the graphical user interface based on the change in the touch point position during the swipe operation. The size of the selected area changes in real time according to the progress of the selection operation until the terminal device responds to the end command of the swipe operation. Of course, during the movement of the touch point in the swipe operation, it is not necessary to display the selected area in real time; instead, the selected area can be displayed only when the swipe operation stops.
[0077] In an optional embodiment of this disclosure, the sliding operation and the box selection trigger operation in the above embodiments can be consecutive operations.
[0078] For example, when a terminal device responds to a selection trigger operation, the touch position corresponding to the selection trigger operation is designated as the first position. Then, without ending the selection trigger operation, a sliding operation from the first position to the second position is performed to determine the target selection area based on the first and second positions. For instance, the terminal device triggers a selection operation in response to a long press or hard press operation to control multiple selectable virtual objects in a virtual scene to enter a selectable state. Then, in response to performing a sliding operation from the first position to the second position corresponding to the long press or hard press operation, the terminal device determines the target selection area based on the first and second positions.
[0079] Through this embodiment, the terminal device can control multiple selectable virtual objects in the virtual scene to enter the selectable state when responding to the selection trigger operation. This not only allows users to intuitively view the selectable virtual objects through the presented selectable state, but also makes it easier for users to locate the first and second positions to perform the selection operation after multiple selectable virtual objects have entered the selectable state. This facilitates the determination of the target selection area, improves the user's operational convenience, and enhances the user's operating experience.
[0080] In step S301, a target virtual object is selected from a plurality of selectable virtual objects in the virtual scene. The target virtual object includes the virtual object selected within the target selection area.
[0081] For example, when selecting a target virtual object from multiple selectable virtual objects in a virtual scene, all virtual objects selected within the target selection area can be identified as the target virtual object, or only virtual objects within a preset distance from the virtual camera can be identified as the target virtual object. For instance, if the distance parameter of the virtual object furthest from the virtual camera in the game scene is 30, then all virtual objects within the target selection area determined by the selection operation can be identified as the target virtual object; or, only virtual objects within the target selection area whose distance parameter value from the virtual camera is less than 20 can be identified as the target virtual object.
[0082] In one optional embodiment of this disclosure, the selected target virtual object within the target selection area can be displayed differently from other unselected virtual objects in the virtual scene.
[0083] Other virtual objects are virtual objects in the virtual scene that are not selected. They can be within or outside the target selection area. For example, in the process of determining the target virtual object, if only virtual objects within a preset distance from the virtual camera are identified as target virtual objects, virtual objects that are within the target selection area but outside the preset distance are not selected and are also identified as other virtual objects.
[0084] It should be explained that, taking the example of determining all virtual objects selected within the target selection area as the target virtual object, during the selection operation, there may be cases where only a portion of some virtual objects is included within the target selection area. To address this, all virtual objects, whether fully or partially within the target selection area, can be determined as target virtual objects; or only all virtual objects within the target selection area can be determined as target virtual objects, while those not within or partially within the target selection area can be determined as other virtual objects; or for virtual objects partially within the target selection area, the proportion of their portion within the target selection area to the total can be used as the criterion for determining whether they are considered target virtual objects. This disclosure does not impose any special limitations on these aspects.
[0085] In this embodiment, to facilitate intuitive viewing for the user, the selected virtual object within the target selection area can be displayed differently from other unselected virtual objects in the virtual scene. For example, the target virtual object within the target selection area can be displayed as selected, while other virtual objects outside the target selection area can be displayed as unselected. It should be understood that the above-mentioned differentiated display method can be any form, such as color filling, pattern filling, highlighting, blinking, or other methods of differentiation, and this embodiment does not impose any special limitations on this.
[0086] To facilitate the illustrative explanation of the aforementioned differentiated display methods, the following will combine... Figure 4 , Figure 5 An example is provided.
[0087] against Figure 4 The virtual scene shown, and the multiple selectable virtual objects located within the virtual scene, i.e. Figure 4 The two chairs, the table, the vase, the standing lamp, and the washing machine shown in the image are all in an unselected state because no virtual objects are selected within the target selection area.
[0088] Figure 5 This diagram illustrates one example of a differentiated display of a target virtual object in this exemplary embodiment. When the target selection area is as shown... Figure 5 The area shown in the box includes some virtual objects in the virtual scene. Figure 5 As shown, the target virtual object in this embodiment includes, for example: Figure 5 The image shows a chair, a table, a vase, a floor lamp, and a washing machine. These are shown as selected objects by filling a portion of the selected area with color, while other virtual objects outside the selected area are displayed as shown in the image. Figure 5The other chair shown is rendered as unselected by using an unfilled color. Figure 5 The color filling method shown can distinguish the target virtual object within the target selection area from other virtual objects outside the target selection area in the virtual scene, making it easier for users to intuitively view the currently selected virtual object.
[0089] In step S302, a slider control is displayed in the graphical user interface. The slider control includes a sliding track and a sliding indicator located on the sliding track. The parameter value range indicated by the sliding track is used to characterize the value range of the target parameter corresponding to the virtual object in the virtual scene.
[0090] In one optional embodiment of this disclosure, the target parameters include at least one of the following: the distance between the virtual object and the virtual camera, the color of the virtual object, the volume of the virtual object, the rarity of the virtual object, the fashionability of the virtual object, and the price of the virtual object.
[0091] A virtual camera is a virtual device that allows users to capture virtual scenes and display them on a graphical user interface. For example, displaying the distance between a virtual object and the virtual camera through the graphical user interface represents the depth distance between them.
[0092] For example, when adjusting the selected virtual object within the target selection area, one or more of the following factors can be used as conditions for quickly filtering virtual objects: the distance between the virtual object and the virtual camera, the color of the virtual object, the volume of the virtual object, the rarity of the virtual object, the fashionability of the virtual object, and the price of the virtual object. This allows for subsequent adjustments to the selected virtual object.
[0093] Based on the above embodiments, in an optional embodiment of this disclosure, when determining the target parameter, the target parameter is determined from a set of preset parameters of multiple virtual objects in response to the selection operation of the virtual object's parameter.
[0094] For example, when multiple target parameters exist, the system can provide the user with a set of preset selectable virtual object parameters through a graphical user interface, allowing the user to choose from the numerical range of the target parameters corresponding to virtual objects in the virtual scene, based on a sliding track characterizing the virtual object's parameter range. The terminal device, in response to the user's selection operation based on the virtual object's parameters, determines the target parameter from the preset set of virtual object parameters.
[0095] Understandably, besides manually determining the target parameters, the system can also automatically select them. For example, if multiple selectable virtual objects in a virtual scene are detected to have the same color, size, rarity, fashionability, and price, but differ only in the distance between the virtual object and the virtual camera, the system will default to determining the distance between the virtual object and the virtual camera as the target parameter.
[0096] The slider control includes a sliding track and a slider icon, with the slider icon positioned on the sliding track. The track length indicates the numerical range of the target parameter corresponding to the virtual object in the virtual scene. The position of the sliding track is fixed, while the slider icon can move back and forth on the track to change its position.
[0097] To facilitate understanding of the slider control, the following will combine... Figure 6A The process of selecting virtual objects in a graphical user interface is illustrated.
[0098] Figure 6A This illustration shows a display diagram of a slider control in this exemplary embodiment, such as... Figure 6A The image shows a slider control 601, which includes a slider indicator 602 and a slider track 603. The slider track 603 in the slider control 601 has a certain track length to indicate the numerical range of the target parameters corresponding to virtual objects in the virtual scene based on the track length.
[0099] A. Regarding the timing of the slider control's display:
[0100] In an optional embodiment, after the target selection area is determined in step 301, the slider control can be displayed synchronously on the graphical user interface.
[0101] In another alternative embodiment, when the selection operation is a sliding operation, the terminal device can also display a slider control in the graphical user interface in response to the end command of the sliding operation.
[0102] B. Regarding the display format of the slider control:
[0103] In one optional embodiment of this disclosure, a slider control of a first style is displayed in a graphical user interface.
[0104] In the first style of slider control, the slider indicator is located at the first track position in the slider path. The first track position indicates the maximum value within the range of target parameter values. Taking the target parameter as the distance between the virtual object and the virtual camera as an example, the corresponding first track position represents the maximum value within the range of distance values.
[0105] To facilitate understanding of the first style of sliding control described above, the following will continue to combine... Figure 6B The process of selecting virtual objects in a graphical user interface is illustrated.
[0106] exist Figure 6A On this basis, Figure 6B This illustration shows a display diagram of a target virtual object selected when the sliding marker is located on the first sliding track in this exemplary embodiment. Figure 6B Taking the sliding track 603 shown as an example where the distance parameter between the sliding track 603 and the virtual camera ranges from 1 to 30, if the sliding indicator 602 is at the leftmost position of the sliding track 603, then the parameter value representing the current distance parameter to the virtual camera is 30, and the first track position is the leftmost position of the sliding track 603. In the first embodiment, when the target selection area is determined, the initial position of the sliding indicator in the displayed sliding control is the first track position.
[0107] For example, taking the distance between a virtual object and a virtual camera as the target parameter, the length of the sliding track 603 represents the distance between the virtual object and the virtual camera in a range of 1-30. When the sliding indicator 602 is at the leftmost position of the sliding track 603, it indicates that the currently represented distance parameter value is 30. Therefore, the distance between the selected target virtual object and the virtual camera within the target selection area is all within 30. The above embodiment uses the example where the sliding indicator 602 is at the leftmost position of the sliding track 603, indicating that the currently represented distance parameter value is the largest. Therefore, the leftmost position of the sliding indicator 602 on the sliding track 603 is the first track position.
[0108] It is understood that the sliding marker 602 can also be positioned at the rightmost position of the sliding track 603, in which case the parameter value representing the distance from the virtual camera is the largest, and the rightmost position is the first track position. This embodiment of the present disclosure does not impose any special restrictions on this.
[0109] In another optional embodiment of this disclosure, a second-style slider control is displayed in a graphical user interface, wherein the slider indicator in the second-style slider control is located at the minimum value in the range of numerical values indicating the distance from the virtual camera to the track position in the slider track.
[0110] Taking the example that the sliding indicator 602 is located at the leftmost position of the sliding track 603, which represents the maximum value of the distance parameter between the current device and the virtual camera, the sliding indicator in the second style slider control is located at the rightmost position of the sliding track.
[0111] C. Regarding the display position of the slider control:
[0112] The slider control can be displayed in the lower right corner of the target selection area (see reference). Figure 6A (As shown), it can also be the right side of the target selection area; the slider control, in addition to Figure 6A In addition to the horizontal display method shown, in which the sliding indicator 602 shown in the figure is slid left and right in the sliding track 603, the slider control 601 can also be displayed vertically, which can be adjusted by sliding the above-mentioned sliding indicator up and down, or displayed at any angle. The specific adjustment can be made according to the actual situation, and this embodiment of the disclosure does not impose any special restrictions on this.
[0113] It should be explained that the numerical range of the target parameter represented by the sliding track needs to be determined according to the actual virtual scene. Taking the distance between the virtual object and the virtual camera as an example, the maximum value represented by the numerical range of the target parameter must include the virtual object that is farthest from the virtual camera in the virtual scene, and the corresponding minimum value must include the virtual object that is closest to the virtual camera in the virtual scene, so as to ensure that all virtual objects in the virtual scene can be selected by the box selection operation.
[0114] In step S303, in response to the control operation on the sliding indicator, the target parameter value corresponding to the control operation is determined according to the position parameter of the sliding indicator in the sliding track, so as to adjust the selected target virtual object in the target selection area based on the target parameter value.
[0115] The target parameter value is within the range indicated by the sliding track, and can be any value within the range of target parameters of virtual objects in the virtual scene. For example, if the target parameter's value range is 1-20, the target parameter value must be any value within 1-20; that is, the minimum target parameter value is 1, and the maximum value is 20.
[0116] In an optional embodiment, the control operation can be any of the following: a swipe operation, a click operation, or other operation methods.
[0117] In the process of adjusting the selected virtual objects within the target selection area based on the target distance, it can be a process of adding or removing virtual objects within the target selection area.
[0118] Taking the example that the target determined by step S301 includes all virtual objects located within the target selection area, in an optional embodiment of this disclosure, when executing step S303, in response to the control operation on the sliding indicator, the target parameter value corresponding to the control operation is determined according to the position parameter of the sliding indicator in the sliding track; the first target virtual object whose target parameter does not conform to the target parameter value is determined among the target virtual objects selected within the target selection area; the selection state of the first target virtual object is canceled to obtain the target virtual objects selected within the adjusted target selection area.
[0119] For example, after determining the target parameter value based on the position parameter of the sliding identifier in the sliding track, the first target virtual object whose target parameter does not conform to the target parameter value can be filtered out from the target virtual objects selected within the target selection area, so as to cancel the selection state of the first target virtual object and achieve the effect of removing it from the selected target virtual objects.
[0120] The following will use the depth distance between the virtual object and the virtual camera as an example to illustrate the steps of S303 above.
[0121] In an optional embodiment of this disclosure, when performing step S303, in response to a control operation on a sliding marker, the target depth distance corresponding to the control operation is determined based on the position parameters of the sliding marker in the sliding track, so as to adjust the selected target virtual object within the target selection area based on the target depth distance.
[0122] The target depth distance is a value determined from the range of depth distance parameters between the virtual object and the virtual camera, based on the position parameters of the sliding marker in the sliding track.
[0123] For example, the depth distance between virtual objects and the virtual camera in a virtual scene varies. Therefore, the target distance corresponding to the control operation can be determined by the position parameter of the slider on the slider track, so as to achieve the effect of adjusting the selected target virtual objects within the target selection area based on the target distance. For example, the distance parameter value between the virtual object and the virtual camera represented by the slider track ranges from 1 to 30. When the target distance value is determined to be 20 based on the position parameter of the slider on the slider track, the selected target virtual objects within the target selection area can be adjusted based on the target distance value of 20. For example, the selection state of virtual objects with a target distance value greater than 20 can be canceled, while the selection state of virtual objects with a target distance value less than or equal to 20 can be retained.
[0124] Continuing with the example of the target parameter being the volume of a virtual object, the range of parameter values indicated by the corresponding sliding track is used to characterize the range of model sizes of virtual objects in the virtual scene.
[0125] For example, in response to a control operation on a sliding indicator, the terminal device can determine a target model size based on the position parameters of the sliding indicator in the sliding track, so as to filter out virtual objects that do not conform to the target model size from the target virtual objects selected within the target selection area, thereby deselecting them and achieving the effect of quickly filtering the selected virtual objects.
[0126] For example, if the model size parameter indicated by the sliding track ranges from 1 to 50, and the target model size determined by the position parameter of the sliding indicator within the sliding track is 30, then the selected virtual objects within the target selection area can be adjusted using a target model size value of 30. For instance, the selection of virtual objects with a target model size value greater than 30 can be cancelled, while the selection of virtual objects with a target model size value less than or equal to 30 remains.
[0127] Similarly, parameters such as the color, rarity, fashionability, and price of virtual objects in the game scene can be used as filtering conditions to adjust the selected virtual objects within the target selection area. This disclosure does not exhaustively cover all such examples.
[0128] Furthermore, taking the depth distance between the virtual object and the virtual camera as the target parameter as an example, in the process of determining the target depth distance by the position parameter of the sliding marker, and then adjusting the selected target virtual objects within the target selection area based on the target depth distance, this includes not only canceling virtual objects that do not meet the target distance, but also adding virtual objects that do meet the target depth distance. The following will illustrate this with specific embodiments:
[0129] Example 1:
[0130] Based on displaying the slider control in the first style, when executing step S303, in response to the control operation of moving the slider marker from the first track position to the second track position, the first target depth distance matching the second track position is determined, and the selection of target virtual objects within the target selection area whose distance from the virtual camera is greater than the first target depth distance is cancelled, thereby obtaining the adjusted target virtual objects within the target selection area.
[0131] In the first style of slider control, the sliding indicator is located at the first track position in the sliding track. The first track position indicates the maximum value in the range corresponding to the virtual camera distance parameter. The second track position is any position on the sliding track other than the first track position.
[0132] For example, when performing the control operation of moving the sliding marker from the first track position to the second track position in step S303, it can be done by sliding the sliding marker from the first track position to the second track position; or it can be done by clicking the second track position to move the sliding marker from the first track position to the second track position. This embodiment of the disclosure does not impose any special limitations on this.
[0133] For example, when the slider is located at the first track position, the target depth distance it represents is at its maximum value, and the user can only control the slider to slide towards a smaller value. That is, the depth distance parameter represented by the second track position is necessarily less than the depth distance parameter represented by the first track position. For instance, with... Figure 6B Taking the sliding track 603 shown as an example, where the track length represents the depth distance parameter in the range of 1-30, when the sliding indicator 602 is at the leftmost position of the sliding track 603, the parameter value representing the current depth distance is 30. At this time, the first track position is the leftmost position of the sliding track 603, while the second track position is anywhere to the right of the first track position, and its parameter value representing the distance from the virtual camera is less than 30. In the first style of slider control, after the target selection area is determined, the sliding indicator defaults to the first track position to determine all virtual objects within the target selection area as target virtual objects.
[0134] For example, when the terminal device responds to a control operation that moves the sliding marker from the first track position to the second track position, it determines a first target depth distance that matches the position parameters of the second track position from the numerical range represented by the sliding track based on the second track position in the sliding track. Then, from the target virtual objects selected within the target selection area, virtual objects whose depth distance from the virtual camera is greater than the first target depth distance are deselected.
[0135] by Figure 6B Taking the application scenario shown as an example, Figure 6B This illustration shows a display diagram of a target virtual object selected by a sliding marker moving from a first sliding track to a second sliding track in this exemplary embodiment. Assuming the track length of the slider control represents a depth distance parameter ranging from 1 to 30, the first track position 604 corresponds to a distance parameter of 30 from the virtual camera, and the second track position 605 corresponds to a depth distance parameter of 10, then in response to the control operation of moving the sliding marker from the first track position 604 to the second track position 605, the terminal device determines that the first target depth distance matching the second track position 605 is 10. Therefore, all virtual objects in the target virtual object whose depth distance parameter from the virtual camera is greater than 10 are deselected, thus not being selected. (Refer to...) Figure 6BAs shown, Figure 6A Tables, vases, lamps, and washing machines whose distance from the virtual camera is greater than 10 are all deselected. Figure 6A Two chairs whose distance parameter from the virtual camera is less than or equal to 10 are kept in the selected state.
[0136] Example 2:
[0137] Based on Embodiment 1, in an optional embodiment of this disclosure, in response to moving the sliding marker from the second track position to the third track position, a second target depth distance matching the third track position is determined; a second target virtual object in the target selection area whose distance from the virtual camera is between the first target depth distance and the second target depth distance is determined; and the second target virtual object is selected.
[0138] The third track position is the position between the first track position and the second track position. That is, the value of the second target depth distance indicated by the third track position relative to the virtual camera distance parameter is greater than the value of the first target depth distance corresponding to the second track position within the range of the sliding track indication value, and less than the maximum value corresponding to the first track position within the range of the sliding track indication value.
[0139] Based on this embodiment, when executing step S303, in response to moving the sliding marker from the second track position to the third track position, it is possible to determine the second target virtual object in the target selection area whose distance from the virtual camera is between the first target depth distance and the second target depth distance, thereby selecting only the second target virtual object and obtaining the adjusted target virtual object.
[0140] For example, the length of the sliding track represents the distance parameter of the virtual camera, which ranges from 1 to 30. The target distance indicated by the first track position is 30, the first target depth distance indicated by the second track position is 15, and the second target depth distance indicated by the third position is 25.
[0141] In this example, Figure 6C This illustration shows a display diagram of a target virtual object selected by a sliding marker moving from a second sliding track to a third sliding track in this exemplary embodiment; see reference. Figure 6C As shown, when the sliding indicator is at position 605 on the second track, virtual objects within the first target depth distance (value 15) indicated by the second track position in the game scene are selected. Continue referring to... Figure 6C As shown, the control slider continues to move from the second track position 605 to the third track position 606. At this time, the third track position 606 is located at... Figure 6CBetween the first track position 604 and the second track position 605, virtual objects within the target selection area that are greater than the first target depth distance (value 15) indicated by the second track position 605 and less than the second target depth distance (value 25) indicated by the third track position 606 can be identified as the second target virtual object. This allows the selection of the second target virtual object, resulting in the adjusted target virtual object within the target selection area. Figure 6C The second target virtual object shown is two chairs, a round table, and a vase on the round table, and all three are updated to be selected.
[0142] In the above embodiments, the sliding marker can also be moved to a position smaller than the first target depth distance (value of 15) indicated by the second track position, for example, a track position with a target distance value of 10, thereby achieving the effect of removing virtual objects with a target distance value between 10 and 15 from the virtual objects within the first target depth distance (value of 15) indicated by the second track position in the game scene, or canceling the selection state of virtual objects with a target distance value greater than 10 within the target selection area.
[0143] Through the above embodiments, the virtual objects selected within the target selection area can be quickly adjusted by changing the position of the sliding indicator in the sliding track, thereby simplifying the cumbersome and lengthy screening process in related technical solutions, reducing time consumption, and improving the usability of the game.
[0144] Furthermore, the slider control can also provide one or more of a first slider position control, a second slider position control, and a third slider position control, so that the slider can be quickly moved to a specific position by clicking, thereby further improving the efficiency of adjusting the selected virtual objects within the selection area.
[0145] The third slider position control is located at the first track position of the sliding track, which represents the maximum value within the range of the target parameter. The first slider position control is located at the position furthest from the first track position, meaning it represents the minimum value of the target parameter. The second slider position control is located in the middle position of the sliding track, representing the value of the target parameter as the midpoint between the maximum and minimum values.
[0146] The following will combine Figure 7 This explanation will take the example of a slider control that simultaneously provides a first slider position control, a second slider position control, and a third slider position control.
[0147] Reference Figure 7As shown, the slider control includes a first slider position control 701, a second slider position control 702, and a third slider position control 703. At this time, the first position of the third slider position control 703 indicates the maximum value within the range of the depth distance parameter, the position of the first slider position control 701 indicates the minimum value within the range of the depth distance parameter, and the position of the second slider position control 702 indicates the midpoint between the minimum and maximum values within the range of the depth distance parameter.
[0148] When executing step S303, if the sliding identifier contains at least the first slider position control, in response to the first touch operation on the first slider position control on the sliding track, the sliding identifier is adjusted from the first track position to the position where the first slider position control is located; the third target depth distance corresponding to the position where the first slider position control is located is determined, and virtual objects whose depth distance from the virtual camera is greater than the third target depth distance are deselected, thereby obtaining the adjusted selected target virtual object.
[0149] Among them, the depth distance of the second target corresponding to the position of the first slider position control is the minimum value in the range of depth distance parameters.
[0150] When the sliding marker contains at least the second slider position control, in response to the second touch operation on the second slider position control on the sliding track, the sliding marker is adjusted from the first track position to the middle position where the second slider position control is located; the fourth target depth distance corresponding to the middle position is determined, and virtual objects whose distance from the virtual camera is greater than the fourth target depth distance are deselected, thus obtaining the adjusted selected target virtual objects within the target selection area.
[0151] The distance parameter between the fourth target depth indicator and the virtual camera is the midpoint between the minimum and maximum values. For example, if the minimum value is 1 and the maximum distance is 11, then the midpoint value is 6.
[0152] Similarly, by using touch operation on the third slider position control 703, the target virtual object within the target selection area can be quickly adjusted to all virtual objects within the target selection area.
[0153] In the above embodiments, by using the first slider position control, the second slider position control, and the third slider position control provided in the slider control, there is no need to perform a sliding operation on the slider indicator. Instead, the slider indicator can be quickly adjusted to the corresponding position by clicking the control, which further improves efficiency.
[0154] Furthermore, since the distances between virtual objects and the virtual camera in a virtual scene are not uniform, problems such as virtual object occlusion are very likely to occur. To facilitate users in filtering and intuitively viewing the selected virtual objects within the target selection area, the following implementation can also be used:
[0155] In one optional embodiment of this disclosure, a sub-user interface is displayed in a preset area of the graphical user interface, and the object identifier of the target virtual object selected in the target selection area is displayed in the sub-user interface.
[0156] In this design, the preset area does not overlap with the area in the virtual scene used to display multiple selectable virtual objects. Alternatively, the preset area may partially or completely overlap with the area in the virtual scene used to display multiple selectable virtual objects, but the transparency of the sub-user interface can be adjusted or set to ensure that the area used to display multiple selectable virtual objects and the sub-user interface do not interfere with each other.
[0157] In one embodiment, the sub-user interface can be displayed on top of the graphical user interface (GUI) or within the GUI. When the sub-user interface can be displayed on top of the GUI, it can be displayed in a pop-up manner or other ways, and this disclosure does not impose any special limitations on this.
[0158] For example, a sub-user interface can also be displayed on the graphical user interface, which is used to display the target virtual object currently selected within the target selection area in real time.
[0159] In this embodiment, while selected virtual objects within the virtual scene can be displayed differently for easier viewing, the layout of these objects is complex, especially in 3D virtual scenes which include a depth coordinate (Z). This can cause partial or complete overlap between virtual objects, making it visually impossible to see obscured objects within the target selection area. To address this, in addition to differentiating the target virtual objects, a sub-user interface can be used to synchronously display the target virtual objects within the target selection area. This avoids accidental selection due to obscuration, improving operational accuracy. Furthermore, the displayed sub-user interface allows users to intuitively view the currently selected target virtual object, enhancing the user's gaming experience.
[0160] Based on the above embodiments, in an optional embodiment of this disclosure, the total number of target virtual objects selected within the target selection area is displayed in the graphical user interface.
[0161] For example, in addition to displaying the virtual scene and the selected target virtual objects, the graphical user interface can also display the total number of target virtual objects selected within the target selection area, so that users can make quantitative control and further improve the user's gaming experience.
[0162] In another optional embodiment of this disclosure, the total number of target virtual objects selected within the target selection area can also be displayed in the sub-user interface, based on the above embodiments.
[0163] For example, based on the target virtual objects currently selected through the sub-user interface, the total number of target virtual objects currently selected can be displayed in the sub-user interface.
[0164] The following will combine Figure 8 For the displayed sub-user interface and combination Figure 9A , Figure 9B An example is provided to illustrate the total number of selected target virtual objects displayed in the sub-user interface.
[0165] Figure 8 This diagram illustrates a display sub-user interface in this exemplary embodiment; as shown... Figure 8 As shown, a sub-user interface 801 is displayed in the right area of the graphical user interface. The sub-user interface 801 displays virtual objects within the target selection area, and the virtual objects displayed in the sub-user interface 801 are the currently selected virtual objects.
[0166] Figure 9A This illustration shows a schematic diagram of displaying the total number of target virtual objects selected within a target selection area in a sub-user interface according to this exemplary embodiment; as shown... Figure 9A As shown, in addition to the sub-user interface 801 displayed in the right area of the graphical user interface, the total number 901 of the currently selected target virtual objects is also displayed in the sub-user interface 801.
[0167] Figure 9B This illustration shows a schematic diagram of displaying the total number of target virtual objects selected within a target selection area in a graphical user interface according to this exemplary embodiment; as shown... Figure 9B As shown, the total number of currently selected virtual objects (901) is displayed in real time at the upper right corner of the graphical user interface.
[0168] It should be explained that the object identifiers of the target virtual objects and the total number of selected target virtual objects can be displayed in real time within this sub-user interface or graphical user interface. That is, when the selected target virtual objects and the total number of selected target virtual objects change, the object identifiers and the total number of selected target virtual objects in the sub-user interface will also be adjusted in real time.
[0169] Based on the above embodiments, the following will take the depth distance between the virtual object and the virtual camera as the target parameter as an example, referring to... Figure 10 The entire process of the virtual object selection method according to the exemplary embodiments of this disclosure will be described in detail.
[0170] Reference Figure 10 As shown in (a), when the terminal device slides from position 1001 to position 1002 in response to the graphical user interface, the selected area does not contain any virtual objects, so there is no target virtual object. The virtual objects in the virtual scene are in an unselected state. In this case, the sliding control can be either not displayed or displayed, but the selected target virtual object within the target selection area cannot be adjusted using the sliding control.
[0171] exist Figure 10 Based on (a), refer to Figure 10 (b) Continue sliding to position 1003. At this point, based on the target selection area determined by the first position 1001 and position 1003, include the two chairs, one round table, one vase, one table lamp, and one washing machine in the virtual scene into the target selection area, and determine them all as target virtual objects. Figure 10 (b) It can be seen that only a portion of the chair and the desk lamp are within the target selection area, and they can also be identified as target virtual objects. At this time, all of the above target virtual objects are in a selected state.
[0172] Simultaneously, the displayed slider control is shown in the first style, meaning the slider indicator is located on the first track, indicating the maximum depth distance between the virtual object and the virtual camera. Meanwhile, the currently selected target virtual object is displayed in real-time in the user interface area on the right.
[0173] Assuming the player continues in Figure 10 Based on (b), refer to Figure 10 (c) When the slider is moved to position 1004, the target selection area changes, and the corresponding target virtual objects also change. At this time, the virtual objects in the target selection area are a chair, a table lamp, a round table, and a vase. The selection of another chair and a washing machine is canceled, and the currently selected target virtual objects are updated in real time in the user interface on the right side.
[0174] Based on the above, once the target selection area is no longer defined, the selected virtual object within the target selection area can be adjusted by adjusting the position of the slider indicator in the slider control along the slider track. For example, refer to the above... Figures 6B to 6C The operation is not described in detail here.
[0175] To implement the above-described method for selecting virtual objects, one embodiment of this disclosure provides a device for selecting virtual objects. Figure 11 A schematic diagram of a virtual object selection device is shown. The virtual object selection device 1100 includes a determination module 1101, a control display module 1102, and an object adjustment module 1103. The determination module 1101, in response to a selection operation command triggered by a graphical user interface, determines the target selection area corresponding to the selection operation command and selects a target virtual object from multiple selectable virtual objects in the virtual scene; the target virtual object includes virtual objects located within the target selection area. The control display module 1102 displays a slider control in the graphical user interface. The slider control includes a sliding track and a sliding indicator on the sliding track. The parameter value range indicated by the sliding track represents the value range of the target parameter corresponding to the virtual object in the virtual scene. The object adjustment module 1103, in response to a control operation on the sliding indicator, determines the target parameter value corresponding to the control operation based on the position parameter of the sliding indicator on the sliding track, and adjusts the selected target virtual object within the target selection area based on the target parameter value.
[0176] In an optional embodiment of this disclosure, the object adjustment module 1103 is configured to, in response to a control operation on a sliding indicator, determine the target parameter value corresponding to the control operation based on the position parameter of the sliding indicator in the sliding track; determine a first target virtual object whose target parameter does not conform to the target parameter value among the target virtual objects selected within the target selection area; cancel the selection state of the first target virtual object, and obtain the target virtual object selected within the adjusted target selection area.
[0177] In one optional embodiment of this disclosure, the target parameters include at least one of the following: the distance between the virtual object and the virtual camera, the color of the virtual object, the volume of the virtual object, the rarity of the virtual object, the fashionability of the virtual object, and the price of the virtual object.
[0178] In an optional embodiment of this disclosure, the device may further include a parameter determination module, which is used to determine a target parameter from a plurality of preset virtual object parameters in response to a selection operation of the virtual object's parameters.
[0179] In an optional embodiment of this disclosure, the target parameter is the depth distance between the virtual object and the virtual camera; the object adjustment module 1103 is used to respond to the control operation on the sliding marker, determine the target depth distance corresponding to the control operation based on the position parameter of the sliding marker in the sliding track, so as to adjust the target virtual object selected within the target selection area based on the target depth distance.
[0180] In one optional embodiment of this disclosure, the box selection operation instruction is an instruction triggered by a box selection operation in a graphical user interface. The box selection operation is implemented through at least one of the following operation methods: sliding operation and clicking operation.
[0181] In an optional embodiment of this disclosure, the determining module 1101 is configured to control a plurality of selectable virtual objects to enter a selectable state in response to a selection trigger command; and to determine a target selection area based on the first position and the second position in response to a sliding operation from a first position to a second position in the graphical user interface.
[0182] In one optional embodiment of this disclosure, the sliding operation and the box selection trigger operation are consecutive operations.
[0183] In an optional embodiment of this disclosure, the control display module 1102 is configured to display a slider control in a graphical user interface in response to an end command of the sliding operation.
[0184] In an optional embodiment of this disclosure, the control display module 1102 is used to display a slider control of a first style in a graphical user interface, wherein the slider control of the first style has a sliding indicator located at a first track position in a sliding track, and the first track position indicates the maximum value in the numerical range of the distance between the virtual object and the virtual camera.
[0185] In an optional embodiment of this disclosure, the object adjustment module 1103 is configured to, in response to a control operation that moves the sliding marker from a first track position to a second track position, determine a first target depth distance matching the second track position, wherein the second track position is any position on the sliding track other than the first track position; cancel the selection of virtual objects within the target selection area whose distance from the virtual camera is greater than the first target depth distance, thereby obtaining the adjusted selected target virtual objects within the target selection area.
[0186] In an optional embodiment of this disclosure, the determining module 1101 may also be used to determine a second target depth distance matching the third track position in response to moving the sliding marker from the second track position to the third track position; the third track position is the position between the first track position and the second track position; determine a second target virtual object in the target selection area whose distance from the virtual camera is between the first target depth distance and the second target depth distance; and select the second target virtual object.
[0187] In an optional embodiment of this disclosure, the control display module 1102 can also be used to differentiate the selected target virtual object within the target selection area from other unselected virtual objects in the virtual scene.
[0188] In an optional embodiment of this disclosure, the device may further include an interface display module, which is used to display a sub-user interface in a preset area of the graphical user interface; and to display the object identifier of the target virtual object selected in the target selection area in the sub-user interface.
[0189] In an optional embodiment of this disclosure, the device may further include a quantity display module, which is used to display the total number of target virtual objects selected within the target selection area in a graphical user interface.
[0190] The virtual object selection device 1100 provided in this embodiment can execute the technical solution of the virtual object selection method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the virtual object selection method. Please refer to the implementation principle and beneficial effects of the virtual object selection method. It will not be repeated here.
[0191] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the present invention may also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the present invention described in the "Exemplary Methods" section above.
[0192] According to embodiments of the present invention, a program product for implementing the above-described method may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0193] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0194] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0195] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, radio frequency (RF), or any suitable combination thereof.
[0196] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0197] In an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described method is also provided.
[0198] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely in hardware, entirely in software (including firmware, microcode, etc.), or in a combination of hardware and software, collectively referred to herein as “circuit,” “module,” or “system.”
[0199] The following reference Figure 12 To describe an electronic device 1200 according to this embodiment of the present invention. Figure 12 The electronic device 1200 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0200] like Figure 12 As shown, the electronic device 1200 is presented in the form of a general-purpose computing device. The components of the electronic device 1200 may include, but are not limited to: at least one processing unit 1210, at least one storage unit 1220, a bus 1230 connecting different system components (including storage unit 1220 and processing unit 1210), and a display unit 1240.
[0201] The storage unit stores program code, which can be executed by the processing unit 1210 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 1210 can perform, as follows: Figure 3 Steps S301 to S303 are shown in the diagram.
[0202] Storage unit 1220 may include readable media in the form of volatile storage units, such as random access memory (RAM) 12201 and / or cache memory 12202, and may further include read-only memory (ROM) 12203.
[0203] Storage unit 1220 may also include a program / utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0204] Bus 1230 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0205] Electronic device 1200 can also communicate with one or more external devices 2000 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 1200, and / or any device that enables electronic device 1200 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 1250. Furthermore, electronic device 1200 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1260. As shown, network adapter 1260 communicates with other modules of electronic device 1200 via bus 1230. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, Redundant Arrays of Independent Disks (RAID) systems, tape drives, and data backup storage systems.
[0206] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0207] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0208] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0209] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0210] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is defined only by the appended claims.
Claims
1. A method for selecting virtual objects, characterized in that, The method includes providing a graphical user interface (GUI) via a terminal device, wherein the GUI includes at least a portion of a virtual scene and multiple selectable virtual objects located within the virtual scene; the method comprises: In response to a selection operation command triggered by the graphical user interface, a target selection area corresponding to the selection operation command is determined, and a target virtual object is selected from a plurality of selectable virtual objects in the virtual scene; wherein, the target virtual object is a virtual object located within the target selection area; A slider control is displayed in the graphical user interface. The slider control includes a sliding track and a sliding indicator located on the sliding track. The parameter value range indicated by the sliding track is used to characterize the value range of the target parameter corresponding to the virtual object in the virtual scene. In response to a control operation on the sliding indicator, a target parameter value corresponding to the control operation is determined based on the position parameter of the sliding indicator in the sliding track, so as to adjust the selected target virtual object within the target selection area based on the target parameter value.
2. The method according to claim 1, characterized in that, The step of responding to a control operation on the sliding indicator, determining a target parameter value corresponding to the control operation based on the position parameter of the sliding indicator in the sliding track, and adjusting the selected target virtual object within the target selection area based on the target parameter value, includes: In response to a control operation on the sliding indicator, a target parameter value corresponding to the control operation is determined based on the position parameter of the sliding indicator in the sliding track. Identify the first target virtual object among the target virtual objects selected within the target selection area whose target parameters do not conform to the target parameter value; Cancel the selection of the first target virtual object to obtain the target virtual object selected within the adjusted target selection area.
3. The method according to claim 1, characterized in that, The target parameters include at least one of the following: the distance between the virtual object and the virtual camera, the color of the virtual object, the volume of the virtual object, the rarity of the virtual object, the fashionability of the virtual object, and the price of the virtual object.
4. The method according to claim 3, characterized in that, The method further includes: In response to the selection operation of the virtual object's parameters, the target parameter is determined from a set of preset virtual object parameters.
5. The method according to claim 1, characterized in that, The target parameter is the depth distance between the virtual object and the virtual camera; The step of responding to a control operation on the sliding indicator, determining a target parameter value corresponding to the control operation based on the position parameter of the sliding indicator in the sliding track, and adjusting the selected target virtual object within the target selection area based on the target parameter value, includes: In response to a control operation on the sliding marker, a target depth distance corresponding to the control operation is determined based on the position parameters of the sliding marker in the sliding track, so as to adjust the selected target virtual object within the target selection area based on the target depth distance.
6. The method according to claim 1, characterized in that, The box selection operation instruction is an instruction triggered by the box selection operation of the graphical user interface. The box selection operation is implemented through at least one of the following operation methods: sliding operation and clicking operation.
7. The method according to claim 1, characterized in that, The step of determining the target selection area corresponding to the selection operation command in response to the graphical user interface includes: In response to the selection trigger operation, the multiple selectable virtual objects are controlled to enter the selectable state; After the plurality of selectable virtual objects enter the selectable state, in response to a sliding operation from a first position to a second position in the graphical user interface, the target selection area is determined based on the first position and the second position.
8. The method according to claim 7, characterized in that, The sliding operation and the box selection trigger operation are consecutive operations.
9. The method according to claim 7, characterized in that, The step of displaying the slider control in the graphical user interface includes: In response to the end command of the sliding operation, the slider control is displayed in the graphical user interface.
10. The method according to claim 5, characterized in that, Displaying the slider control in the graphical user interface includes: A first-style slider control is displayed in the graphical user interface, wherein the slider indicator in the first-style slider control is located at a first track position in the slider track, and the first track position indicates the maximum value in the numerical range of the depth distance.
11. The method according to claim 10, characterized in that, The step of responding to a control operation on the sliding marker, determining the target depth distance corresponding to the control operation based on the position parameters of the sliding marker in the sliding track, and adjusting the selected target virtual object within the target selection area based on the target depth distance, includes: In response to a control operation that moves the sliding marker from the first track position to the second track position, a first target depth distance matching the second track position is determined, wherein the second track position is any position on the sliding track other than the first track position; Cancel the selection of target virtual objects within the target selection area whose depth distance from the virtual camera is greater than the depth distance of the first target, and obtain the adjusted selected target virtual objects within the target selection area.
12. The method according to claim 11, characterized in that, The method further includes: In response to moving the sliding marker from the second track position to the third track position, a second target depth distance matching the third track position is determined; the third track position is the position between the first track position and the second track position. Identify a second virtual target object within the target selection area whose depth distance is between the first target depth distance and the second target depth distance; Select the second target virtual object.
13. The method according to claim 1, characterized in that, The method further includes: The selected virtual object within the target selection area is displayed differently from other unselected virtual objects in the virtual scene.
14. The method according to claim 1, characterized in that, The method further includes: A sub-user interface is displayed in a preset area of the graphical user interface; The object identifier of the target virtual object selected in the target selection area is displayed in the sub-user interface.
15. The method according to claim 1, characterized in that, The method further includes: The total number of target virtual objects selected within the target selection area is displayed in the graphical user interface.
16. A device for selecting virtual objects, characterized in that, The device provides a graphical user interface via a terminal device, wherein the graphical user interface includes at least a portion of a virtual scene and multiple selectable virtual objects located within the virtual scene, and the device includes: The determining module is configured to, in response to a selection operation command triggered by the graphical user interface, determine the target selection area corresponding to the selection operation command, and select a target virtual object from a plurality of selectable virtual objects in the virtual scene; wherein, the target virtual object is a virtual object located within the target selection area; A control display module is used to display a slider control in the graphical user interface. The slider control includes a sliding track and a sliding indicator located on the sliding track. The parameter value range indicated by the sliding track is used to characterize the value range of the target parameter corresponding to the virtual object in the virtual scene. The object adjustment module is used to respond to the control operation on the sliding indicator, determine the target parameter value corresponding to the control operation based on the position parameter of the sliding indicator in the sliding track, and adjust the target virtual object selected in the target selection area based on the target parameter value.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the virtual object selection method according to any one of claims 1 to 15.
18. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the virtual object selection method according to any one of claims 1 to 15 by executing the executable instructions.