Virtual three-dimensional model selection method and device, storage medium and electronic device

By using the graphical user interface to generate box selection planes parallel or overlap with the virtual three-dimensional model in user-generated content games, the fast and accurate selection of virtual three-dimensional models is achieved, the operation efficiency and flexibility are improved, and the efficiency of virtual three-dimensional model selection is solved. Problems of low and poor flexibility.

CN118967993APending Publication Date: 2024-11-15NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411015365.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In user-generated content games, the multi-select operation of virtual three-dimensional models is inefficient and has poor flexibility, especially in dense areas, which is difficult to accurately select.

Method used

By providing a graphical user interface, entering the target box selection state in response to preset trigger conditions, and generating box selection planes parallel or overlapping with the virtual three-dimensional model, achieving fast and accurate virtual three-dimensional model selection.

Benefits of technology

The operation efficiency and flexibility of the selection of virtual three-dimensional models are improved, and the problems of low operation efficiency and poor flexibility are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967993A_ABST
    Figure CN118967993A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual three-dimensional model selection method and device, a storage medium and an electronic device. The method comprises the steps of entering a target frame selection state in response to meeting a preset triggering condition; in the target frame selection state, a frame selection operation executed on the graphical user interface is responded, a target frame selection plane is generated in the three-dimensional virtual game scene, and the target frame selection plane is used for selecting a part of virtual three-dimensional models to be operated from a plurality of virtual three-dimensional models; the target frame selection plane is parallel to or coincides with the plane where the plurality of virtual three-dimensional models are located; and determining a target virtual three-dimensional model selected from the plurality of virtual three-dimensional models based on the target frame selection plane. According to the method and the device, the technical problems of low operation efficiency and poor flexibility when the selection operation is executed on the virtual three-dimensional model in the game in the related technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for selecting a virtual three-dimensional model. Background Art

[0002] In user-generated content (UGC) games, players can design and create game content through their own creations, including maps, tasks, characters, items, etc. Multi-selection operations on virtual 3D models are common operations in UGC games. However, in related technologies, when players perform multi-selection operations on virtual 3D models, they can do so by selecting one point at a time. However, this method is time-consuming and cumbersome, and it is difficult to accurately select areas where multiple virtual 3D models are densely populated. Related technologies can also draw a picture on the screen by sliding operations, such as Figure 1 The box shown in Figure 1 In the current perspective shown, the virtual three-dimensional model in the box is the selected virtual three-dimensional model, but due to the limited accuracy of the sliding operation, the user may select the wrong virtual three-dimensional model due to accidental touch, resulting in low operation efficiency and poor flexibility, thus affecting the player's gaming experience.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] At least some embodiments of the present application provide a method, device, storage medium and electronic device for selecting a virtual three-dimensional model, so as to at least solve the technical problems in the related art of low operating efficiency and poor flexibility when performing selection operations on virtual three-dimensional models in games.

[0005] According to one embodiment of the present application, a method for selecting a virtual three-dimensional model is provided, a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes multiple virtual three-dimensional models. The method for selecting a virtual three-dimensional model includes: in response to satisfying a preset trigger condition, entering a target frame selection state; in the target frame selection state, in response to a frame selection operation performed on the graphical user interface, generating a target frame selection plane in a three-dimensional virtual game scene, wherein the target frame selection plane is used to select a portion of the virtual three-dimensional models to be operated from multiple virtual three-dimensional models, and the target frame selection plane is parallel to or overlaps with the plane where the multiple virtual three-dimensional models are located; and determining the target virtual three-dimensional model selected from the multiple virtual three-dimensional models based on the target frame selection plane.

[0006] According to one embodiment of the present application, a device for selecting a virtual three-dimensional model is also provided, which provides a graphical user interface through a terminal device, and the content displayed by the graphical user interface includes multiple virtual three-dimensional models. The device for selecting a virtual three-dimensional model includes: a processing module, which is used to enter a target selection state in response to satisfying a preset trigger condition; a generation module, which is used to generate a target selection plane in a three-dimensional virtual game scene in response to a selection operation performed on the graphical user interface in the target selection state, wherein the target selection plane is used to select part of the virtual three-dimensional models to be operated from multiple virtual three-dimensional models, and the target selection plane is parallel to or overlaps with the plane where the multiple virtual three-dimensional models are located; a determination module, which is used to determine the target virtual three-dimensional model selected from the multiple virtual three-dimensional models based on the target selection plane.

[0007] According to one embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned virtual three-dimensional model selection method in each embodiment of the present application when running.

[0008] According to one embodiment of the present application, an electronic device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above-mentioned virtual three-dimensional model selection method in each embodiment of the present application.

[0009] According to another aspect of the embodiments of the present application, a computer program product is also provided, including a computer program, which implements the above-mentioned virtual three-dimensional model selection method in each embodiment of the present application when executed by a processor.

[0010] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned virtual three-dimensional model selection method in each embodiment of the present application is implemented.

[0011] According to another aspect of the embodiments of the present application, a computer program is also provided. When the computer program is executed by a processor, the above-mentioned virtual three-dimensional model selection method in each embodiment of the present application is implemented.

[0012] In at least some embodiments of the present application, by responding to satisfying a preset trigger condition, entering a target selection state, and then in the target selection state, responding to a selection operation performed on a graphical user interface, a target selection plane is generated in the three-dimensional virtual game scene, and finally a target virtual three-dimensional model is selected from multiple virtual three-dimensional models based on the target selection plane, thereby achieving the purpose of quickly and accurately selecting a target virtual three-dimensional model using the target selection plane, thereby achieving the technical effect of improving the efficiency and flexibility of the selection operation for virtual three-dimensional models, and thus solving the technical problems of low operating efficiency and poor flexibility in performing selection operations on virtual three-dimensional models in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0014] Figure 1 It is a schematic diagram of an interface of a method for selecting a virtual three-dimensional model according to the related art;

[0015] Figure 2 It is a hardware structure block diagram of a mobile terminal of a method for selecting a virtual three-dimensional model according to one embodiment of the present application;

[0016] Figure 3 is a flow chart of a method for selecting a virtual three-dimensional model according to one embodiment of the present application;

[0017] Figure 4 is a schematic diagram of an interface of a method for selecting a virtual three-dimensional model according to one embodiment of the present application;

[0018] Figure 5 is a schematic diagram of an interface of another method for selecting a virtual three-dimensional model according to one embodiment of the present application;

[0019] Figure 6 is a schematic diagram of an interface of another method for selecting a virtual three-dimensional model according to one embodiment of the present application;

[0020] Figure 7 is a structural block diagram of a device for selecting a virtual three-dimensional model according to one embodiment of the present application;

[0021] Figure 8 is a schematic diagram of an electronic device according to one embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] In one embodiment of the present application, the method for selecting a virtual three-dimensional model can be run on a local terminal device or a server. When the method for selecting a virtual three-dimensional model is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0025] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the selection method of the virtual three-dimensional model are completed on the cloud game server. The client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0026] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run by the conventional electronic device. The local terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection.

[0027] For example, the local terminal device can be a mobile terminal, a computer terminal or a similar computing device, which may include a display screen and a processor, wherein the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate the graphical user interface and control the display of the graphical user interface on the display screen.

[0028] Taking running on a mobile terminal as an example, the mobile terminal may be a smart phone, a tablet computer, a PDA, a mobile Internet device, a PAD, a game console, or other terminal devices. Figure 2 1 is a hardware structure block diagram of a mobile terminal for selecting a virtual three-dimensional model according to an embodiment of the present application. Figure 2 As shown, the mobile terminal may include one or more ( Figure 2 Only one is shown in the figure) processor 202 and memory 204 for storing data. Optionally, the mobile terminal may further include a transmission device 206, an input and output device 208 and a display device 210.

[0029] Those skilled in the art will understand that Figure 2 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.

[0030] According to one embodiment of the present application, an embodiment of a method for selecting a virtual three-dimensional model is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0031] In a possible implementation, an embodiment of the present application provides a method for selecting a virtual three-dimensional model, providing a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above. Figure 3is a flow chart of a method for selecting a virtual three-dimensional model according to one embodiment of the present application, wherein a graphical user interface is provided by a terminal device, and the content displayed by the graphical user interface includes multiple virtual three-dimensional models, such as Figure 3 As shown, the method comprises the following steps:

[0032] Step S31, in response to satisfying a preset trigger condition, entering a target selection state;

[0033] Step S32, in the target selection state, in response to the selection operation performed on the graphical user interface, a target selection plane is generated in the three-dimensional virtual game scene, wherein the target selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located;

[0034] Step S33: determining a target virtual three-dimensional model selected from the plurality of virtual three-dimensional models based on the target frame selection plane.

[0035] The above-mentioned multiple virtual 3D models can be various game characters, props, scenes, buildings, etc. in the UCG game. The virtual 3D models can be designed and produced by the development team, or they can be customized or imported by the players. Players can operate these virtual 3D models by selecting them, such as moving, rotating, scaling, etc. Through the graphical user interface provided by the terminal device, players can intuitively view and operate multiple virtual 3D models, thereby enhancing the playability and interactivity of the game.

[0036] The above preset trigger condition can be that the user presses two fingers on the graphical user interface at the same time, or clicks a specific button or icon, or slides the screen in a specific direction, etc. It should be noted that different applications or systems may have different preset trigger condition settings, and users can set them according to operational requirements, and the embodiments of the present application do not impose specific limitations.

[0037] The above-mentioned target selection state can be a flexible selection state. In the flexible selection state, the user can slide his finger on the screen to adjust and change the size and position of the target selection plane, so as to further accurately select the target virtual three-dimensional model.

[0038] In the target selection state, in response to the selection operation performed on the graphical user interface, a target selection plane is generated in the three-dimensional virtual game scene. The above selection operation can be implemented in a variety of ways, including but not limited to touch, handles and other input devices. On a terminal device that supports a touch screen, the user can directly use a finger to perform a selection operation on the screen. By touching the screen and dragging the finger, a target selection plane can be generated in the three-dimensional scene to select the target virtual three-dimensional model. By connecting a game handle or controller, the user can use the control buttons and joysticks in the handle to perform a selection operation. Specifically, the size and position of the target selection plane can be adjusted by pressing a button or moving a joystick. In addition to touch and handles, other input devices such as a mouse and keyboard can be used to perform a selection operation. For example, the drag function of the mouse or the shortcut keys on the keyboard can be used to perform a selection operation. The selection operation can be implemented in a variety of ways, and the user can choose a suitable way to perform the selection operation according to personal preferences and device support.

[0039] The target frame selection plane is used to select a portion of the virtual three-dimensional model to be operated from the multiple virtual three-dimensional models, and the target frame selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located. Figure 4 is a schematic diagram of an interface of a method for selecting a virtual three-dimensional model according to one embodiment of the present application, such as Figure 4 As shown, in the target selection state, in response to the selection operation performed on the graphical user interface, a target selection plane is generated in the three-dimensional virtual game scene, that is, Figure 4 The plane where the dotted box in the image is located. In a 3D game scene, the plane where multiple virtual 3D models are located is the XY plane, which is determined by the X-axis and the Y-axis. The XY plane is perpendicular to the Z-axis, forming a horizontal plane. The target selection plane can coincide with the XY plane, that is, the coordinate value in the Z-axis direction is 0; the target selection plane can also be parallel to the XY plane, that is, the coordinate value in the Z-axis direction can be non-0. After generating the target selection plane, you can use Figure 4 The adjustment controls on the right side of the screen can be used to flexibly adjust the Z-axis coordinates of the target selection plane.

[0040] Since the target selection plane is parallel to or coincides with the planes where the multiple virtual 3D models are located, the user can select a specific part of the multiple virtual 3D models by adjusting the position and size of the target selection plane. The user can drag, scale or rotate the target selection plane to accurately select the part of the virtual 3D model that needs to be operated, thereby improving the accuracy and convenience of the user's selection of the target virtual 3D model from multiple virtual 3D models.

[0041] Based on the above steps S31 to S33, by responding to meeting the preset trigger conditions, entering the target selection state, and then in the target selection state, responding to the selection operation performed on the graphical user interface, generating a target selection plane in the three-dimensional virtual game scene, and finally determining the target virtual three-dimensional model selected from multiple virtual three-dimensional models based on the target selection plane, the purpose of quickly and accurately selecting the target virtual three-dimensional model using the target selection plane is achieved, thereby achieving the technical effect of improving the efficiency and flexibility of the selection operation of the virtual three-dimensional model, and then solving the technical problems of low operation efficiency and poor flexibility in performing selection operations on virtual three-dimensional models in the related art.

[0042] The following is a further introduction to the method for selecting the virtual three-dimensional model in the embodiment of the present application.

[0043] Optionally, the content displayed by the graphical user interface further includes a touch area. In step S33, determining a target virtual three-dimensional model selected from a plurality of virtual three-dimensional models based on the target frame selection plane includes:

[0044] Step S331, when detecting that a frame selection operation is performed on the graphical user interface, in response to a touch operation performed on the touch area, generating a three-dimensional frame selection space based on a target frame selection plane;

[0045] Step S332: determine a virtual three-dimensional model located in the three-dimensional frame selection space among the multiple virtual three-dimensional models as a target virtual three-dimensional model.

[0046] The above-mentioned touch area may include different types of controls or functions, such as progress bar controls, button controls, selection list controls, input box controls, etc., which are used to respond to the user's touch operations and generate a three-dimensional selection space based on the target selection plane to achieve more flexible and diverse operations. Taking the touch area including a progress bar control as an example, the user can adjust the stretch height of the target selection plane by sliding the progress bar control on the touch area, thereby generating a three-dimensional selection control; taking the touch area including an input box control as an example, the user can directly enter the set stretch height value through the input box of the touch area, thereby generating a three-dimensional selection control. It should be noted that the implementation process of generating a three-dimensional selection space based on the target selection plane can also refer to any implementation method of generating a three-dimensional space from a two-dimensional plane in the relevant technology. The embodiments of the present application only give examples, but do not constitute specific limitations.

[0047] The above-mentioned 3D selection control can be, but is not limited to, a cube, a cuboid, a cylinder, a cone or other shapes, which are not limited in the embodiments of the present application. A virtual 3D model located in the 3D selection space among the multiple virtual 3D models is determined as a target virtual 3D model, and the target virtual 3D model can be a virtual 3D model located entirely or partially in the 3D selection space.

[0048] In an optional embodiment, a unique mark or label is added to each target virtual three-dimensional model, which can be a text label, a color label, an icon, etc., so as to help users manage and identify the target virtual three-dimensional model more easily and improve operation efficiency and convenience.

[0049] After a virtual 3D model located in a 3D box selection space among multiple virtual 3D models is determined as a target virtual 3D model in a UCG game, the user can move or adjust the position, angle or size of the selected target virtual 3D model to meet specific needs or scenarios, or edit and modify the selected target model, including changing the material, color, texture, etc., or adding, combining, deleting, binding or adjusting the components and parts of the model, or copy the selected target virtual 3D model and paste it to other locations or scenes to create multiple identical models or perform layout design. Through the above operations, users can flexibly process and operate the selected target virtual 3D model to adapt it to different needs and scenarios, thereby improving the user's creation and interactive experience in the UCG game.

[0050] Based on the above optional embodiments, by detecting a frame selection operation performed on a graphical user interface and responding to a touch operation performed on a touch area, a three-dimensional frame selection space is generated based on a target frame selection plane, and then a virtual three-dimensional model located in the three-dimensional frame selection space among multiple virtual three-dimensional models is determined as a target virtual three-dimensional model, thereby improving the accuracy and flexibility of the virtual three-dimensional model selection operation.

[0051] Optionally, the touch area includes: a progress bar control, and in step S331, in response to a touch operation performed on the touch area, generating a three-dimensional frame selection space based on a target frame selection plane includes: in response to a sliding operation performed on the progress bar control, generating a three-dimensional frame selection space based on the target frame selection plane.

[0052] Figure 5 is a schematic diagram of an interface of another method for selecting a virtual three-dimensional model according to one embodiment of the present application, such as Figure 5 As shown, the touch area on the left side of the graphical user interface includes a progress bar control. When the user slides up on the progress bar control, based on Figure 4 The target selection plane shown can be generated Figure 5 3D box selection control in .

[0053] Based on the above optional embodiments, by responding to the sliding operation performed on the progress bar control, a three-dimensional selection space is generated based on the target selection plane. The user can intuitively adjust the position and size of the target selection plane to generate the required three-dimensional selection space, further improving the user experience and making the operation more intuitive and flexible.

[0054] Optionally, in response to a sliding operation performed on the progress bar control, generating a three-dimensional box selection space based on a target box selection plane includes:

[0055] Step S3311, in response to a sliding operation performed on the progress bar control, obtaining a sliding direction and a sliding distance of the sliding operation;

[0056] Step S3312, determining the pull-up direction of the target frame selection plane based on the sliding direction, and determining the pull-up height of the target frame selection plane in the pull-up direction based on the sliding distance, wherein the pull-up direction is perpendicular to the target frame selection plane, and the initial touch position of the sliding operation corresponds to the initial height in the pull-up direction;

[0057] Step S3313, generating a three-dimensional selection space according to the target selection plane and the pull-up height.

[0058] The above sliding operation can be implemented in a variety of ways, including but not limited to touch, handles and other input devices. When the sliding operation is an upward sliding operation, the sliding direction is the positive direction of the Z axis, and the sliding distance is the Z axis height of the target frame selection plane on the XY plane pulled up in the positive direction; when the sliding operation is a downward sliding operation, the sliding direction is the negative direction of the Z axis, and the sliding distance is the Z axis height of the target frame selection plane on the XY plane pulled up in the reverse direction.

[0059] Determine the pull-up direction of the target selection plane according to the sliding direction of the user on the progress bar control. For example, if the user slides up, the target selection plane can be pulled up, and if the user slides down, the target selection plane can be pulled down. Determine the pull-up height of the target selection plane in the pull-up direction according to the sliding distance of the user on the progress bar control. The sliding distance can be mapped to an actual length unit to determine the pull-up height of the target selection plane. According to the determined pull-up direction and pull-up height, pull the target selection plane to the specified direction and the specified height to generate a three-dimensional selection space.

[0060] Based on the above optional embodiments, by responding to the sliding operation performed on the progress bar control, the sliding direction and sliding distance of the sliding operation are obtained, and then the pull-up direction of the target frame selection plane is determined based on the sliding direction, and the pull-up height of the target frame selection plane in the pull-up direction is determined based on the sliding distance. Finally, a three-dimensional frame selection space is generated based on the target frame selection plane and the pull-up height. This allows users to flexibly select and operate the three-dimensional frame selection space through simple operations, thereby improving user experience and operating efficiency.

[0061] Optionally, the touch area further includes: a switch control. In step S332, determining a virtual three-dimensional model located in the three-dimensional frame selection space among the multiple virtual three-dimensional models as a target virtual three-dimensional model includes:

[0062] Step S3321, in response to a selection operation performed on the switch control, determining state information of a virtual three-dimensional model located in the three-dimensional box selection space among the multiple virtual three-dimensional models, wherein the state information is used to determine whether the virtual three-dimensional model located in the three-dimensional box selection space is in a selected state;

[0063] Step S3322, in response to determining that the virtual three-dimensional model located in the three-dimensional frame selection space is in a selected state based on the state information, the virtual three-dimensional model located in the three-dimensional frame selection space is determined as a target virtual three-dimensional model.

[0064] Specifically, the switch control can be Figure 5 By selecting the switch control, the state information of the virtual 3D model located in the 3D box selection space among the multiple virtual 3D models can be determined. For example, when "Select" is selected, the virtual 3D model located in the 3D box selection space is in the selected state, and when "Cancel" is selected, the virtual 3D model located in the 3D box selection space is in the canceled state. When it is determined based on the state information that the virtual 3D model located in the 3D box selection space is in the selected state, the virtual 3D model located in the 3D box selection space is determined as the target virtual 3D model.

[0065] Based on the above optional embodiments, by responding to the selection operation performed on the switch control, the status information of the virtual three-dimensional model located in the three-dimensional selection space among the multiple virtual three-dimensional models is determined, and then in response to the virtual three-dimensional model located in the three-dimensional selection space being in a selected state based on the status information, the virtual three-dimensional model located in the three-dimensional selection space is determined as the target virtual three-dimensional model, thereby further improving the user experience and operating efficiency.

[0066] Optionally, the touch area also includes: a confirmation control. In step S3322, in response to determining based on the status information that the virtual three-dimensional model located in the three-dimensional selection space is in a selected state, determining the virtual three-dimensional model located in the three-dimensional selection space as the target virtual three-dimensional model includes: in response to determining based on the status information that the virtual three-dimensional model located in the three-dimensional selection space is in a selected state and in response to a confirmation operation performed on the confirmation control, determining the virtual three-dimensional model located in the three-dimensional selection space as the target virtual three-dimensional model.

[0067] Specifically, the above confirmation control can be Figure 5 The "Complete Selection" control shown in the figure, when the virtual three-dimensional model located in the three-dimensional selection space is determined to be in a selected state based on the state information, and a confirmation operation is performed on the confirmation control, the virtual three-dimensional model located in the three-dimensional selection space can be determined as the target virtual three-dimensional model.

[0068] Based on the above optional embodiments, by responding to the virtual three-dimensional model located in the three-dimensional selection space being in a selected state based on the status information and responding to the confirmation operation performed on the confirmation control, the virtual three-dimensional model located in the three-dimensional selection space is determined as the target virtual three-dimensional model, thereby further improving the user experience and operation efficiency.

[0069] Optionally, the method for selecting a virtual three-dimensional model in the embodiment of the present application further includes: responding to a confirmation operation performed on a confirmation control, and exiting a target selection state.

[0070] Specifically, when the user clicks the "Finish Selection" control, the flexible selection state can be exited, thereby allowing the user to more conveniently complete the selection of the target virtual three-dimensional model and smoothly exit the target selection state.

[0071] Optionally, the method for selecting a virtual three-dimensional model in the embodiment of the present application further includes:

[0072] Step S401, in the target selection state, in response to a selection operation being performed again on the graphical user interface, a secondary selection plane is generated in the three-dimensional virtual game scene, wherein the selection range of the secondary selection plane at least partially overlaps with the selection range of the target selection plane, or the selection range of the secondary selection plane is contained within the selection range of the target selection plane;

[0073] Step S402, while performing a frame selection operation on the graphical user interface, in response to a touch operation performed on the touch area, generating a secondary frame selection space based on the secondary frame selection plane;

[0074] Step S403, determining a target frame selection space based on a Boolean operation result between the three-dimensional frame selection space and the secondary frame selection space;

[0075] Step S404: determine a virtual three-dimensional model located in the target frame selection space among the multiple virtual three-dimensional models as a target virtual three-dimensional model.

[0076] Specifically, the implementation process of generating the secondary frame selection plane can refer to the implementation process of generating the target frame selection plane, and the frame selection range of the secondary frame selection plane at least partially overlaps with the frame selection range of the target frame selection plane, or the frame selection range of the secondary frame selection plane is included in the frame selection range of the target frame selection plane. Further, the implementation process of generating the secondary frame selection space based on the secondary frame selection plane can refer to the implementation process of generating the three-dimensional frame selection space based on the target frame selection plane.

[0077] After obtaining the three-dimensional frame selection space and the secondary frame selection space, Boolean operations are performed on the three-dimensional frame selection space and the secondary frame selection space. Boolean operations are used in logical judgment, conditional judgment, logical operation, etc. In three-dimensional graphics processing, Boolean operations are often used to process operations such as intersection, union, and difference between models to generate complex geometric shapes or determine the relationship between regions. Based on the Boolean operation results between the three-dimensional frame selection space and the secondary frame selection space, the target frame selection space is determined, and the virtual three-dimensional model located in the target frame selection space among multiple virtual three-dimensional models is determined as the target virtual three-dimensional model.

[0078] Based on the above optional embodiments, by generating a secondary selection plane and a secondary selection space, a more refined and precise selection operation can be performed in a three-dimensional virtual game scene, making the selected target virtual three-dimensional model more accurate. The target selection space is determined based on the Boolean operation result, and the final selected area can be quickly and accurately determined, which improves the efficiency of selecting and processing the target virtual three-dimensional model and enhances the interactivity between the user and the game. By generating a secondary selection space and performing Boolean operations, users can customize the selection of target virtual three-dimensional models according to actual needs, thereby making the selection operation more flexible and personalized.

[0079] Optionally, the method for selecting a virtual three-dimensional model in the embodiment of the present application further includes:

[0080] Step S501, in response to not meeting a preset trigger condition, determining to maintain the initial selection state;

[0081] Step S502 : in an initial selection state, in response to a selection operation performed on the graphical user interface, an initial selection plane is generated in the graphical user interface.

[0082] Specifically, Figure 6 is a schematic diagram of an interface of another method for selecting a virtual three-dimensional model according to one embodiment of the present application, such as Figure 6 As shown, when the preset trigger condition is not met, the initial frame selection state can be maintained. In the initial frame selection state, when the frame selection operation is performed on the graphical user interface, an initial frame selection plane is generated in the graphical user interface, and the target virtual three-dimensional model is determined from multiple virtual three-dimensional models based on the initial frame selection plane, thereby enabling flexible conversion between the initial frame selection state and the target frame selection state.

[0083] Optionally, the angle between the sight direction of the virtual camera lens in the three-dimensional virtual game scene and the target frame selection plane is an angle value other than a right angle.

[0084] In a three-dimensional virtual game scene, the virtual camera lens determines the perspective and field of view of the player in the game world. The player can adjust the position, angle and field of view of the virtual camera lens through the control buttons or shortcut keys on the graphical user interface, so that the game scene content corresponding to the line of sight of the virtual camera lens is displayed on the graphical user interface. Figure 1 The generated frame selection plane is the plane where the graphical user interface of the terminal device is located, rather than the plane where multiple virtual three-dimensional models in the three-dimensional virtual game scene are located. In the embodiment of the present application, the target frame selection plane and the plane where multiple virtual three-dimensional models are located are parallel to or coincide with each other, and the angle between the line of sight of the virtual camera lens in the three-dimensional virtual game scene and the target frame selection plane is an angle value other than a right angle, such as 80°.

[0085] Optionally, in step S32, in response to the frame selection operation performed on the graphical user interface, generating a target frame selection plane in the three-dimensional virtual game scene includes:

[0086] Step S321, in response to a box selection operation performed on the graphical user interface, obtaining a first screen coordinate and a second screen coordinate;

[0087] Step S322, performing coordinate transformation on the first screen coordinates to obtain first world coordinates, and performing coordinate transformation on the second screen coordinates to obtain second world coordinates;

[0088] Step S323, generating a target selection plane in the three-dimensional virtual game scene based on the first world coordinates and the second world coordinates.

[0089] Specifically, in a graphical user interface, the user's selection operation on the screen can be obtained by monitoring mouse events or touch events, and the first screen coordinates and the second screen coordinates can be obtained. The first screen coordinates can be the starting point coordinates of the selection operation, and the second screen coordinates can be the ending point coordinates of the selection operation.

[0090] Exemplarily, after obtaining the first screen coordinates and the second screen coordinates, coordinate transformation can be performed through the projection matrix and view matrix of the virtual camera according to the mapping relationship between the screen coordinates and the world coordinates, thereby obtaining the first world coordinates corresponding to the first screen coordinates and the second world coordinates corresponding to the second screen coordinates.

[0091] After obtaining the first world coordinates and the second world coordinates, the width and height of the target frame selection plane are determined according to the first world coordinates and the second world coordinates, and then the target frame selection plane is generated in the three-dimensional virtual game scene.

[0092] Based on the above optional embodiments, by responding to the frame selection operation performed on the graphical user interface, the first screen coordinates and the second screen coordinates are obtained, and then the first screen coordinates are transformed to obtain the first world coordinates, and the second screen coordinates are transformed to obtain the second world coordinates. Finally, based on the first world coordinates and the second world coordinates, a target frame selection plane is generated in the three-dimensional virtual game scene. Thus, in the three-dimensional virtual game scene, according to the frame selection operation performed by the user in the graphical user interface, a target frame selection plane can be generated, thereby helping the user to more intuitively select and operate the target virtual three-dimensional model in the virtual game scene, thereby improving the user experience and operating efficiency.

[0093] Optionally, in step S322, performing coordinate transformation on the first screen coordinates to obtain first world coordinates, and performing coordinate transformation on the second screen coordinates to obtain second world coordinates includes:

[0094] Step S3221, performing coordinate transformation on the first screen coordinates to obtain first normalized device coordinates, and performing coordinate transformation on the second screen coordinates to obtain second normalized device coordinates;

[0095] Step S3222, obtaining a view matrix and a projection matrix, wherein the view matrix is ​​used to convert world coordinates into camera coordinates, and the projection matrix is ​​used to convert camera coordinates into normalized device coordinates;

[0096] Step S3223, using the inverse matrix of the projection matrix to perform coordinate transformation on the first normalized device coordinates to obtain first camera coordinates, and using the inverse matrix of the projection matrix to perform coordinate transformation on the second normalized device coordinates to obtain second camera coordinates;

[0097] Step S3224, using the inverse matrix of the view matrix to perform coordinate transformation on the first camera coordinates to obtain first world coordinates, and using the inverse matrix of the view matrix to perform coordinate transformation on the second camera coordinates to obtain second world coordinates.

[0098] Specifically, the screen coordinates usually take the lower left corner of the screen as the origin (0, 0), while the normalized device coordinates set the origin to the center of the screen, and the coordinate range is -1 to 1. The following is an example of the coordinate transformation process of the first screen coordinates: in the process of transforming the first screen coordinates, the x coordinate value corresponding to the first screen coordinates is screen_x, the width of the screen is screen_width, first multiply screen_x by 2, then divide by screen_width, and finally subtract 1, and the result is the x coordinate value of the first normalized device coordinates. The y coordinate value corresponding to the first screen coordinates is screen_y, the height of the screen is screen_width, multiply screen_y by 2, then divide by screen_height, and finally subtract 1 from the result to obtain the y coordinate value of the first normalized device coordinates, thereby mapping the coordinate values ​​on the screen to a unified range, which is convenient for subsequent calculations and processing. It should be noted that the coordinate transformation of the second screen coordinates can refer to the above process, and the embodiments of the present application will not be repeated.

[0099] Furthermore, the view matrix (View Matrix) and the projection matrix (Projection Matrix) are obtained, wherein the view matrix is ​​used to describe the position and orientation of the virtual camera, converting the world coordinates into the camera coordinates, and the projection matrix is ​​used to convert the camera coordinates into normalized device coordinates. The first normalized device coordinates are converted back to the first camera coordinates using the inverse matrix of the projection matrix, and the second normalized device coordinates are transformed using the inverse matrix of the projection matrix to obtain the second camera coordinates. This conversion process can be achieved by solving a set of linear equations. The first camera coordinates are transformed using the inverse matrix of the view matrix to obtain the first world coordinates, and the second camera coordinates are transformed using the inverse matrix of the view matrix to obtain the second world coordinates. This conversion process can also be achieved by solving a set of linear equations. In a three-dimensional virtual game scene, when perspective projection is used, the depth value is usually stored in the z coordinate buffer, and the z coordinate corresponding to the target frame selection plane can be calculated based on the depth value.

[0100] Based on the above optional embodiments, by performing coordinate transformation on the first screen coordinates to obtain the first normalized device coordinates, and performing coordinate transformation on the second screen coordinates to obtain the second normalized device coordinates, and then obtaining the view matrix and the projection matrix, and then using the inverse matrix of the projection matrix to perform coordinate transformation on the first normalized device coordinates to obtain the first camera coordinates, and using the inverse matrix of the projection matrix to perform coordinate transformation on the second normalized device coordinates to obtain the second camera coordinates, and finally using the inverse matrix of the view matrix to perform coordinate transformation on the first camera coordinates to obtain the first world coordinates, and using the inverse matrix of the view matrix to perform coordinate transformation on the second camera coordinates to obtain the second world coordinates, thereby realizing rapid conversion between screen coordinates and world coordinates, thereby efficiently generating the target selection plane, and further improving operational efficiency.

[0101] In an embodiment of the present application, by responding to the satisfaction of a preset trigger condition, a target selection state is entered, and then in the target selection state, a target selection plane is generated in response to a selection operation performed on a graphical user interface, and finally a target virtual three-dimensional model is selected from multiple virtual three-dimensional models based on the target selection plane. This allows players to select three-dimensional features in a three-dimensional game scene without switching perspectives, and is more flexible, thereby achieving the purpose of quickly and accurately selecting a target virtual three-dimensional model using the target selection plane, thereby realizing the technical effect of improving the efficiency and flexibility of the selection operation of virtual three-dimensional models.

[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0103] In this embodiment, a device for selecting a virtual three-dimensional model is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0104] Figure 7is a structural block diagram of a virtual three-dimensional model selection device according to one embodiment of the present application, wherein a graphical user interface is provided through a terminal device, and the contents displayed by the graphical user interface include multiple virtual three-dimensional models, such as Figure 7 As shown, the device comprises:

[0105] Processing module 701, for entering a target selection state in response to satisfying a preset trigger condition;

[0106] A generating module 702 is used to generate a target frame selection plane in the three-dimensional virtual game scene in response to a frame selection operation performed on the graphical user interface in a target frame selection state, wherein the target frame selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target frame selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located;

[0107] The determination module 703 is used to determine a target virtual three-dimensional model selected from a plurality of virtual three-dimensional models based on the target frame selection plane.

[0108] Optionally, the determination module 703 is also used to: when detecting a frame selection operation on the graphical user interface, respond to a touch operation performed on the touch area, generate a three-dimensional frame selection space based on a target frame selection plane; and determine a virtual three-dimensional model among multiple virtual three-dimensional models that is located in the three-dimensional frame selection space as a target virtual three-dimensional model.

[0109] Optionally, the determination module 703 is further used to: respond to a sliding operation performed on the progress bar control, and generate a three-dimensional frame selection space based on the target frame selection plane.

[0110] Optionally, the determination module 703 is also used to: respond to a sliding operation performed on the progress bar control, obtain the sliding direction and sliding distance of the sliding operation; determine the pull-up direction of the target frame selection plane based on the sliding direction, and determine the pull-up height of the target frame selection plane in the pull-up direction based on the sliding distance, wherein the pull-up direction is perpendicular to the target frame selection plane, and the initial touch position of the sliding operation corresponds to the initial height in the pull-up direction; generate a three-dimensional frame selection space based on the target frame selection plane and the pull-up height.

[0111] Optionally, the determination module 703 is further used to: respond to a selection operation performed on a switch control, determine status information of a virtual three-dimensional model located in the three-dimensional selection space among multiple virtual three-dimensional models, wherein the status information is used to determine whether the virtual three-dimensional model located in the three-dimensional selection space is in a selected state; in response to determining that the virtual three-dimensional model located in the three-dimensional selection space is in a selected state based on the status information, determine the virtual three-dimensional model located in the three-dimensional selection space as the target virtual three-dimensional model.

[0112] Optionally, the determination module 703 is further used to: in response to determining that the virtual three-dimensional model located in the three-dimensional selection space is in a selected state based on the state information and in response to a confirmation operation performed on a confirmation control, determine the virtual three-dimensional model located in the three-dimensional selection space as the target virtual three-dimensional model.

[0113] Optionally, the device for selecting a virtual three-dimensional model further includes: an exit module 704, which is used to respond to a confirmation operation performed on the confirmation control and exit the target selection state.

[0114] Optionally, the determination module 703 is also used to: in a target frame selection state, in response to a frame selection operation performed again on the graphical user interface, generate a secondary frame selection plane in the three-dimensional virtual game scene, wherein the frame selection range of the secondary frame selection plane at least partially overlaps with the frame selection range of the target frame selection plane, or the frame selection range of the secondary frame selection plane is included in the frame selection range of the target frame selection plane; while performing a frame selection operation on the graphical user interface, in response to a touch operation performed on the touch area, generate a secondary frame selection space based on the secondary frame selection plane; based on the Boolean operation result between the three-dimensional frame selection space and the secondary frame selection space, determine the target frame selection space; and determine a virtual three-dimensional model located in the target frame selection space among multiple virtual three-dimensional models as the target virtual three-dimensional model.

[0115] Optionally, the determination module 703 is also used to determine whether to maintain the initial box selection state in response to failure to meet a preset trigger condition; the generation module 702 is also used to generate an initial box selection plane in the graphical user interface in response to a box selection operation performed on the graphical user interface in the initial box selection state.

[0116] Optionally, the angle between the sight direction of the virtual camera lens in the three-dimensional virtual game scene and the target frame selection plane is an angle value other than a right angle.

[0117] Optionally, the generation module 702 is also used to: respond to a selection operation performed on the graphical user interface to obtain a first screen coordinate and a second screen coordinate; perform a coordinate transformation on the first screen coordinate to obtain a first world coordinate, and perform a coordinate transformation on the second screen coordinate to obtain a second world coordinate; and generate a target selection plane in the three-dimensional virtual game scene based on the first world coordinate and the second world coordinate.

[0118] Optionally, the generation module 702 is also used to: perform coordinate transformation on the first screen coordinates to obtain first normalized device coordinates, and perform coordinate transformation on the second screen coordinates to obtain second normalized device coordinates; obtain a view matrix and a projection matrix, wherein the view matrix is ​​used to convert world coordinates into camera coordinates, and the projection matrix is ​​used to convert camera coordinates into normalized device coordinates; use the inverse matrix of the projection matrix to perform coordinate transformation on the first normalized device coordinates to obtain first camera coordinates, and use the inverse matrix of the projection matrix to perform coordinate transformation on the second normalized device coordinates to obtain second camera coordinates; use the inverse matrix of the view matrix to perform coordinate transformation on the first camera coordinates to obtain first world coordinates, and use the inverse matrix of the view matrix to perform coordinate transformation on the second camera coordinates to obtain second world coordinates.

[0119] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0120] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0121] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0122] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.

[0123] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0124] S1, in response to meeting a preset trigger condition, entering a target selection state;

[0125] S2, in a target selection state, in response to a selection operation performed on the graphical user interface, generating a target selection plane in the three-dimensional virtual game scene, wherein the target selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located;

[0126] S3, determining a target virtual three-dimensional model selected from a plurality of virtual three-dimensional models based on the target frame selection plane.

[0127] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: generating a three-dimensional frame selection space based on a target frame selection plane in response to a touch operation performed on a touch area while detecting a frame selection operation performed on a graphical user interface; and determining a virtual three-dimensional model among multiple virtual three-dimensional models that is located in the three-dimensional frame selection space as a target virtual three-dimensional model.

[0128] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: in response to a sliding operation performed on the progress bar control, generating a three-dimensional selection space based on a target selection plane.

[0129] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: in response to a sliding operation performed on a progress bar control, obtaining a sliding direction and a sliding distance of the sliding operation; determining a pull-up direction of a target frame selection plane based on the sliding direction, and determining a pull-up height of the target frame selection plane in the pull-up direction based on the sliding distance, wherein the pull-up direction is perpendicular to the target frame selection plane, and an initial touch position of the sliding operation corresponds to an initial height in the pull-up direction; generating a three-dimensional frame selection space based on the target frame selection plane and the pull-up height.

[0130] Optionally, the computer-readable storage medium is further configured to store program code for executing the following steps: in response to a selection operation performed on a switch control, determining status information of a virtual three-dimensional model located in a three-dimensional selection space among multiple virtual three-dimensional models, wherein the status information is used to determine whether the virtual three-dimensional model located in the three-dimensional selection space is in a selected state; in response to determining that the virtual three-dimensional model located in the three-dimensional selection space is in a selected state based on the status information, determining the virtual three-dimensional model located in the three-dimensional selection space as a target virtual three-dimensional model.

[0131] Optionally, the computer-readable storage medium is also configured to store program code for executing the following steps: in response to determining that a virtual three-dimensional model located within the three-dimensional selection space is in a selected state based on status information and in response to a confirmation operation performed on a confirmation control, determining the virtual three-dimensional model located within the three-dimensional selection space as a target virtual three-dimensional model.

[0132] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: in response to a confirmation operation performed on a confirmation control, exiting a target selection state.

[0133] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: in a target frame selection state, in response to a frame selection operation performed again on the graphical user interface, generating a secondary frame selection plane in the three-dimensional virtual game scene, wherein the frame selection range of the secondary frame selection plane at least partially overlaps with the frame selection range of the target frame selection plane, or the frame selection range of the secondary frame selection plane is included in the frame selection range of the target frame selection plane; while performing a frame selection operation on the graphical user interface, in response to a touch operation performed on the touch area, generating a secondary frame selection space based on the secondary frame selection plane; determining a target frame selection space based on a Boolean operation result between the three-dimensional frame selection space and the secondary frame selection space; and determining a virtual three-dimensional model located in the target frame selection space among multiple virtual three-dimensional models as a target virtual three-dimensional model.

[0134] Optionally, the above-mentioned computer-readable storage medium is also configured to store program code for executing the following steps: in response to failure to meet a preset trigger condition, determining to maintain the initial box selection state; in the initial box selection state, in response to a box selection operation performed on the graphical user interface, generating an initial box selection plane within the graphical user interface.

[0135] Optionally, the angle between the sight direction of the virtual camera lens in the three-dimensional virtual game scene and the target frame selection plane is an angle value other than a right angle.

[0136] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: in response to a selection operation performed on a graphical user interface, obtaining a first screen coordinate and a second screen coordinate; performing a coordinate transformation on the first screen coordinate to obtain a first world coordinate, and performing a coordinate transformation on the second screen coordinate to obtain a second world coordinate; and generating a target selection plane in a three-dimensional virtual game scene based on the first world coordinate and the second world coordinate.

[0137] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: performing a coordinate transformation on the first screen coordinates to obtain first normalized device coordinates, and performing a coordinate transformation on the second screen coordinates to obtain second normalized device coordinates; obtaining a view matrix and a projection matrix, wherein the view matrix is ​​used to convert world coordinates into camera coordinates, and the projection matrix is ​​used to convert camera coordinates into normalized device coordinates; performing a coordinate transformation on the first normalized device coordinates using the inverse matrix of the projection matrix to obtain first camera coordinates, and performing a coordinate transformation on the second normalized device coordinates using the inverse matrix of the projection matrix to obtain second camera coordinates; performing a coordinate transformation on the first camera coordinates using the inverse matrix of the view matrix to obtain first world coordinates, and performing a coordinate transformation on the second camera coordinates using the inverse matrix of the view matrix to obtain second world coordinates.

[0138] In the computer-readable storage medium of this embodiment, by responding to the satisfaction of a preset trigger condition, a target selection state is entered, and then in the target selection state, a target selection plane is generated in the three-dimensional virtual game scene in response to the selection operation performed on the graphical user interface, and finally a target virtual three-dimensional model is selected from multiple virtual three-dimensional models based on the target selection plane, thereby achieving the purpose of quickly and accurately selecting the target virtual three-dimensional model using the target selection plane, thereby achieving the technical effect of improving the efficiency and flexibility of the selection operation of the virtual three-dimensional model, and thus solving the technical problems of low operation efficiency and poor flexibility in performing selection operations on virtual three-dimensional models in the related art.

[0139] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0140] In an exemplary embodiment of the present application, a program product capable of implementing the above method of the present embodiment is stored on a computer-readable storage medium. In some possible implementations, various aspects of the embodiments of the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present application described in the above "Exemplary Method" section of the present embodiment.

[0141] According to the program product for implementing the above method in the embodiment of the present application, it can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the embodiment of the present application is not limited thereto. In the embodiment of the present application, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0142] The program product may be in any combination of one or more computer-readable media. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive) of computer-readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0143] It should be noted that the program code contained in the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0144] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0145] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0146] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0147] S1, in response to meeting a preset trigger condition, entering a target selection state;

[0148] S2, in a target selection state, in response to a selection operation performed on the graphical user interface, generating a target selection plane in the three-dimensional virtual game scene, wherein the target selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located;

[0149] S3, determining a target virtual three-dimensional model selected from a plurality of virtual three-dimensional models based on the target frame selection plane.

[0150] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: while detecting a frame selection operation performed on a graphical user interface, responding to a touch operation performed on a touch area, generating a three-dimensional frame selection space based on a target frame selection plane; and determining a virtual three-dimensional model located in the three-dimensional frame selection space among multiple virtual three-dimensional models as a target virtual three-dimensional model.

[0151] Optionally, the processor may also be configured to execute the following steps through a computer program: in response to a sliding operation performed on the progress bar control, generating a three-dimensional frame selection space based on a target frame selection plane.

[0152] Optionally, the processor may also be configured to perform the following steps through a computer program: in response to a sliding operation performed on a progress bar control, obtain a sliding direction and a sliding distance of the sliding operation; determine a pull-up direction of a target frame selection plane based on the sliding direction, and determine a pull-up height of the target frame selection plane in the pull-up direction based on the sliding distance, wherein the pull-up direction is perpendicular to the target frame selection plane, and an initial touch position of the sliding operation corresponds to an initial height in the pull-up direction; and generate a three-dimensional frame selection space based on the target frame selection plane and the pull-up height.

[0153] Optionally, the processor may also be configured to perform the following steps through a computer program: in response to a selection operation performed on a switch control, determining status information of a virtual three-dimensional model located in a three-dimensional selection space among multiple virtual three-dimensional models, wherein the status information is used to determine whether the virtual three-dimensional model located in the three-dimensional selection space is in a selected state; in response to determining that the virtual three-dimensional model located in the three-dimensional selection space is in a selected state based on the status information, determining the virtual three-dimensional model located in the three-dimensional selection space as a target virtual three-dimensional model.

[0154] Optionally, the processor may also be configured to perform the following steps through a computer program: in response to determining that a virtual three-dimensional model located within the three-dimensional selection space is in a selected state based on status information and in response to a confirmation operation performed on a confirmation control, determining the virtual three-dimensional model located within the three-dimensional selection space as a target virtual three-dimensional model.

[0155] Optionally, the processor may also be configured to execute the following steps through a computer program: responding to a confirmation operation performed on a confirmation control, and exiting a target selection state.

[0156] Optionally, the processor may also be configured to perform the following steps through a computer program: in a target frame selection state, in response to a frame selection operation performed again on the graphical user interface, a secondary frame selection plane is generated in the three-dimensional virtual game scene, wherein the frame selection range of the secondary frame selection plane at least partially overlaps with the frame selection range of the target frame selection plane, or the frame selection range of the secondary frame selection plane is included in the frame selection range of the target frame selection plane; while performing a frame selection operation on the graphical user interface, in response to a touch operation performed on the touch area, a secondary frame selection space is generated based on the secondary frame selection plane; based on the Boolean operation result between the three-dimensional frame selection space and the secondary frame selection space, a target frame selection space is determined; and a virtual three-dimensional model located in the target frame selection space among multiple virtual three-dimensional models is determined as the target virtual three-dimensional model.

[0157] Optionally, the processor may also be configured to perform the following steps through a computer program: in response to a preset trigger condition not being met, determining to maintain the initial box selection state; in the initial box selection state, in response to a box selection operation performed on the graphical user interface, generating an initial box selection plane within the graphical user interface.

[0158] Optionally, the angle between the sight direction of the virtual camera lens in the three-dimensional virtual game scene and the target frame selection plane is an angle value other than a right angle.

[0159] Optionally, the processor may also be configured to perform the following steps through a computer program: in response to a selection operation performed on a graphical user interface, obtain a first screen coordinate and a second screen coordinate; perform a coordinate transformation on the first screen coordinate to obtain a first world coordinate, and perform a coordinate transformation on the second screen coordinate to obtain a second world coordinate; and generate a target selection plane in a three-dimensional virtual game scene based on the first world coordinate and the second world coordinate.

[0160] Optionally, the processor may also be configured to perform the following steps through a computer program: coordinate transforming the first screen coordinates to obtain first normalized device coordinates, and coordinate transforming the second screen coordinates to obtain second normalized device coordinates; obtaining a view matrix and a projection matrix, wherein the view matrix is ​​used to convert world coordinates into camera coordinates, and the projection matrix is ​​used to convert camera coordinates into normalized device coordinates; coordinate transforming the first normalized device coordinates using the inverse matrix of the projection matrix to obtain first camera coordinates, and coordinate transforming the second normalized device coordinates using the inverse matrix of the projection matrix to obtain second camera coordinates; coordinate transforming the first camera coordinates using the inverse matrix of the view matrix to obtain first world coordinates, and coordinate transforming the second camera coordinates using the inverse matrix of the view matrix to obtain second world coordinates.

[0161] In the electronic device of this embodiment, by responding to the satisfaction of a preset trigger condition, a target selection state is entered, and then in the target selection state, a target selection plane is generated in response to the selection operation performed on the graphical user interface, and finally a target virtual three-dimensional model is selected from multiple virtual three-dimensional models based on the target selection plane, thereby achieving the purpose of quickly and accurately selecting the target virtual three-dimensional model using the target selection plane, thereby realizing the technical effect of improving the efficiency and flexibility of the selection operation of the virtual three-dimensional model, and thus solving the technical problems of low operation efficiency and poor flexibility in performing selection operations on virtual three-dimensional models in the related art.

[0162] Figure 8 is a schematic diagram of an electronic device according to one embodiment of the present application. Figure 8 As shown, the electronic device 800 is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0163] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: at least one processor 810, at least one memory 820, a bus 830 connecting different system components (including the memory 820 and the processor 810), and a display 840.

[0164] The memory 820 stores program codes, which can be executed by the processor 810, so that the processor 810 executes the steps described in the method part of the embodiment of the present application according to various exemplary implementations of the present application.

[0165] The memory 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202, and may further include a read-only memory unit (ROM) 8203, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.

[0166] In some examples, the memory 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. The memory 820 may further include a memory remotely disposed relative to the processor 810, and these remote memories may be connected to the electronic device 800 via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0167] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a local bus of processor 810, or a bus using any of a variety of bus architectures.

[0168] The display 840 may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the electronic device 800 .

[0169] Optionally, the electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 800, and / or any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 860. Figure 8 As shown, the network adapter 860 communicates with other modules of the electronic device 800 via the bus 830. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0170] The electronic device 800 may further include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply and / or a camera.

[0171] It can be understood by those skilled in the art that Figure 8 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 8 More or fewer components as shown, or with Figure 1 The memory 820 may be used to store computer programs and corresponding data, such as the computer programs and corresponding data corresponding to the method for selecting a virtual three-dimensional model in the embodiment of the present application. The processor 810 executes various functional applications and data processing by running the computer programs stored in the memory 820, that is, implementing the method for selecting a virtual three-dimensional model.

[0172] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product may include a computer program, and the computer program implements the method provided in the embodiment when executed by a processor.

[0173] Optionally, the computer program included in the above-mentioned computer program product is executed by a processor to perform the following steps:

[0174] S1, in response to meeting a preset trigger condition, entering a target selection state;

[0175] S2, in a target selection state, in response to a selection operation performed on the graphical user interface, generating a target selection plane in the three-dimensional virtual game scene, wherein the target selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located;

[0176] S3, determining a target virtual three-dimensional model selected from a plurality of virtual three-dimensional models based on the target frame selection plane.

[0177] The embodiments of the present application also provide a computer program product. Optionally, the computer program product may include a non-volatile computer-readable storage medium, which may be used to store a computer program, and when the computer program is executed by a processor, the method provided in the embodiments is implemented.

[0178] Optionally, the computer program stored in the non-volatile computer-readable storage medium is used by the processor to execute the following steps:

[0179] S1, in response to meeting a preset trigger condition, entering a target selection state;

[0180] S2, in a target selection state, in response to a selection operation performed on the graphical user interface, generating a target selection plane in the three-dimensional virtual game scene, wherein the target selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located;

[0181] S3, determining a target virtual three-dimensional model selected from a plurality of virtual three-dimensional models based on the target frame selection plane.

[0182] The embodiment of the present application further provides a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, the method provided in the above embodiment is implemented.

[0183] Optionally, the computer program is executed by a processor to perform the following steps:

[0184] S1, in response to meeting a preset trigger condition, entering a target selection state;

[0185] S2, in a target selection state, in response to a selection operation performed on the graphical user interface, generating a target selection plane in the three-dimensional virtual game scene, wherein the target selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located;

[0186] S3, determining a target virtual three-dimensional model selected from a plurality of virtual three-dimensional models based on the target frame selection plane.

[0187] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0188] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0189] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0190] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0191] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0192] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0193] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for selecting a virtual three-dimensional model, characterized in that: A graphical user interface is provided by a terminal device, wherein the content displayed by the graphical user interface includes a plurality of virtual three-dimensional models, and the method for selecting the virtual three-dimensional model includes: In response to meeting a preset trigger condition, entering a target selection state; In the target selection state, in response to a selection operation performed on the graphical user interface, a target selection plane is generated in the three-dimensional virtual game scene, wherein the target selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target selection plane is parallel to or coincides with the planes where the multiple virtual three-dimensional models are located; A target virtual three-dimensional model selected from the multiple virtual three-dimensional models is determined based on the target frame selection plane.

2. The method for selecting a virtual three-dimensional model according to claim 1, characterized in that: The content displayed by the graphical user interface further includes a touch area, and the target virtual three-dimensional model selected from the multiple virtual three-dimensional models based on the target frame selection plane includes: When detecting that the frame selection operation is performed on the graphical user interface, generating a three-dimensional frame selection space based on the target frame selection plane in response to the touch operation performed on the touch area; A virtual three-dimensional model located in the three-dimensional frame selection space among the multiple virtual three-dimensional models is determined as the target virtual three-dimensional model.

3. The method for selecting a virtual three-dimensional model according to claim 2, characterized in that: The touch area includes: a progress bar control, and in response to a touch operation performed on the touch area, generating the three-dimensional frame selection space based on the target frame selection plane includes: In response to a sliding operation performed on the progress bar control, the three-dimensional frame selection space is generated based on the target frame selection plane.

4. The method for selecting a virtual three-dimensional model according to claim 3, characterized in that: In response to the sliding operation performed on the progress bar control, generating the three-dimensional frame selection space based on the target frame selection plane includes: In response to a sliding operation performed on the progress bar control, obtaining a sliding direction and a sliding distance of the sliding operation; Determine the pull-up direction of the target frame selection plane based on the sliding direction, and determine the pull-up height of the target frame selection plane in the pull-up direction based on the sliding distance, wherein the pull-up direction is perpendicular to the target frame selection plane, and the initial touch position of the sliding operation corresponds to the initial height in the pull-up direction; The three-dimensional selection space is generated according to the target selection plane and the pull-up height.

5. The method for selecting a virtual three-dimensional model according to claim 3, characterized in that: The touch area further includes: a switch control, and determining a virtual three-dimensional model located in the three-dimensional frame selection space among the multiple virtual three-dimensional models as the target virtual three-dimensional model includes: In response to a selection operation performed on the switch control, determining state information of a virtual three-dimensional model located in the three-dimensional frame selection space among the multiple virtual three-dimensional models, wherein the state information is used to determine whether the virtual three-dimensional model located in the three-dimensional frame selection space is in a selected state; In response to determining that the virtual three-dimensional model located in the three-dimensional frame selection space is in the selected state based on the state information, the virtual three-dimensional model located in the three-dimensional frame selection space is determined as the target virtual three-dimensional model.

6. The method for selecting a virtual three-dimensional model according to claim 5, characterized in that: The touch area further includes: a confirmation control, in response to determining based on the state information that the virtual three-dimensional model located in the three-dimensional frame selection space is in the selected state, determining the virtual three-dimensional model located in the three-dimensional frame selection space as the target virtual three-dimensional model includes: In response to determining that the virtual three-dimensional model located in the three-dimensional selection space is in the selected state based on the state information and in response to a confirmation operation performed on the confirmation control, the virtual three-dimensional model located in the three-dimensional selection space is determined as the target virtual three-dimensional model.

7. The method for selecting a virtual three-dimensional model according to claim 6, characterized in that: The method for selecting the virtual three-dimensional model also includes: In response to a confirmation operation performed on the confirmation control, the target selection state is exited.

8. The method for selecting a virtual three-dimensional model according to claim 2, characterized in that: The method for selecting the virtual three-dimensional model also includes: In the target frame selection state, in response to a frame selection operation being performed again on the graphical user interface, a secondary frame selection plane is generated in the three-dimensional virtual game scene, wherein a frame selection range of the secondary frame selection plane at least partially overlaps with a frame selection range of the target frame selection plane, or the frame selection range of the secondary frame selection plane is included in the frame selection range of the target frame selection plane; While performing the frame selection operation on the graphical user interface, in response to the touch operation performed on the touch area, generating a secondary frame selection space based on the secondary frame selection plane; Determining a target frame selection space based on a Boolean operation result between the three-dimensional frame selection space and the secondary frame selection space; A virtual three-dimensional model located in the target frame selection space among the multiple virtual three-dimensional models is determined as the target virtual three-dimensional model.

9. The method for selecting a virtual three-dimensional model according to claim 1, characterized in that: The method for selecting the virtual three-dimensional model also includes: In response to the preset trigger condition not being met, determining to maintain the initial selection state; In the initial frame selection state, in response to a frame selection operation performed on the graphical user interface, an initial frame selection plane is generated within the graphical user interface.

10. The method for selecting a virtual three-dimensional model according to claim 1, characterized in that: The angle between the sight line direction of the virtual camera lens in the three-dimensional virtual game scene and the target frame selection plane is any angle value other than a right angle.

11. The method for selecting a virtual three-dimensional model according to claim 1, characterized in that: In response to the frame selection operation performed on the graphical user interface, generating the target frame selection plane in the three-dimensional virtual game scene includes: In response to a box selection operation performed on the graphical user interface, obtaining a first screen coordinate and a second screen coordinate; Performing coordinate transformation on the first screen coordinates to obtain first world coordinates, and performing coordinate transformation on the second screen coordinates to obtain second world coordinates; The target frame selection plane is generated in the three-dimensional virtual game scene based on the first world coordinate and the second world coordinate.

12. The method for selecting a virtual three-dimensional model according to claim 11, characterized in that: Performing coordinate transformation on the first screen coordinates to obtain the first world coordinates, and performing coordinate transformation on the second screen coordinates to obtain the second world coordinates includes: Performing coordinate transformation on the first screen coordinates to obtain first normalized device coordinates, and performing coordinate transformation on the second screen coordinates to obtain second normalized device coordinates; Obtain a view matrix and a projection matrix, wherein the view matrix is ​​used to convert world coordinates into camera coordinates, and the projection matrix is ​​used to convert the camera coordinates into normalized device coordinates; Using the inverse matrix of the projection matrix to perform coordinate transformation on the first normalized device coordinates to obtain first camera coordinates, and using the inverse matrix of the projection matrix to perform coordinate transformation on the second normalized device coordinates to obtain second camera coordinates; The first camera coordinates are transformed by using the inverse matrix of the view matrix to obtain the first world coordinates, and the second camera coordinates are transformed by using the inverse matrix of the view matrix to obtain the second world coordinates.

13. A device for selecting a virtual three-dimensional model, characterized in that: A graphical user interface is provided through a terminal device, wherein the content displayed by the graphical user interface includes a plurality of virtual three-dimensional models, and the selection device of the virtual three-dimensional model includes: A processing module, configured to enter a target selection state in response to satisfying a preset trigger condition; a generating module, configured to generate a target frame selection plane in the three-dimensional virtual game scene in response to a frame selection operation performed on the graphical user interface in the target frame selection state, wherein the target frame selection plane is used to select a portion of the virtual three-dimensional models to be operated from the multiple virtual three-dimensional models, and the target frame selection plane is parallel to or coincides with the plane where the multiple virtual three-dimensional models are located; A determination module is used to determine a target virtual three-dimensional model selected from the multiple virtual three-dimensional models based on the target frame selection plane.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method for selecting a virtual three-dimensional model as claimed in any one of claims 1 to 12 when executed by a processor.

15. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method for selecting a virtual three-dimensional model as described in any one of claims 1 to 12.

16. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for selecting a virtual three-dimensional model as claimed in any one of claims 1 to 12.