Virtual scene interaction processing method and device, equipment and medium
By only displaying the minimap under certain conditions in the virtual scene, the problem of the minimap always being displayed occupying the display space is solved and the user experience is improved.
Patent Information
- Application Number
- CN202310861155.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-13
- Publication Date
- 2025-01-14
AI Technical Summary
In the prior art, small maps in virtual scenes have been displayed, occupying a large amount of display space, resulting in redundancy in information and affecting the user's user experience.
The minimap will only be displayed in the virtual scene when specific conditions are met. The specific conditions include the length of stay of the virtual object, distance changes, task completion, etc. In this way, the minimap is prevented from being displayed all the time.
By only displaying the minimap when needed, the display space is saved, information display in the virtual scene is simplified, and the user experience is improved.
Smart Images

Figure CN119311110A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to computer graphics and image technology, and in particular to a method, device, electronic device, computer-readable storage medium and computer program product for interactive processing of a virtual scene. Background Art
[0002] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and obtaining information, especially the display technology of virtual scenes. It can realize diversified interactions between virtual objects controlled by users or artificial intelligence according to actual application needs, and has various typical application scenarios. For example, in virtual scenes such as games, it can simulate the real interaction process between virtual objects.
[0003] In the related art, players need to jump from the main interface of the game to the large map interface, select a virtual task in the large map interface, and then control the virtual object to go to the target location of the virtual task according to the guidance of the small map that is always fixedly displayed in the large map. This interactive method will take up a lot of display space and easily cause information redundancy, thus affecting the user experience. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium and computer program product for interactive processing of a virtual scene, which can save display space of a small map.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a method for interactive processing of a virtual scene, including:
[0007] Displaying a virtual scene, wherein the virtual scene includes a virtual object;
[0008] In response to a triggering operation of a virtual task, displaying an indicator of the virtual task in the virtual scene, wherein the indicator is used to point from a current position of the virtual object to a target position of the virtual task;
[0009] In response to satisfying a display condition of a small map, the small map is displayed in the virtual scene, wherein the target location is displayed in the small map.
[0010] The embodiment of the present application provides an interactive processing device for a virtual scene, including:
[0011] A first display module, used for displaying a virtual scene, wherein the virtual scene includes a virtual object;
[0012] A task module, configured to display an indicator of the virtual task in the virtual scene in response to a triggering operation of the virtual task, wherein the indicator is configured to point from a current position of the virtual object to a target position of the virtual task;
[0013] The second display module is used to display the small map in the virtual scene in response to satisfying the display condition of the small map, wherein the target location is displayed in the small map.
[0014] An embodiment of the present application provides an electronic device for interactive processing of a virtual scene, the electronic device comprising:
[0015] Memory for storing computer programs or computer executable instructions;
[0016] The processor is used to implement the interactive processing method of the virtual scene provided in the embodiment of the present application when executing the computer program or computer executable instructions stored in the memory.
[0017] An embodiment of the present application provides a computer-readable storage medium storing a computer program or computer-executable instructions. When the computer program or computer-executable instructions are executed by a processor, the method for interactive processing of a virtual scene provided in the embodiment of the present application is implemented.
[0018] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions, which, when executed by a processor, can implement the interactive processing method of the virtual scene provided in the embodiment of the present application.
[0019] The embodiments of the present application have the following beneficial effects:
[0020] By displaying the minimap in the virtual scene only when the display conditions of the minimap are met, the minimap is avoided from being displayed in the virtual scene all the time. Compared with the solution of displaying the minimap all the time in the related art, the embodiment of the present application can avoid the problem of the minimap occupying the display space, thereby simplifying the information display in the virtual scene and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1A-1B It is a schematic diagram of an application mode of the interactive processing method of a virtual scene provided in an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0023] Figure 3A-3D It is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application;
[0024] Figure 4A-4Dis a schematic diagram of an indicator provided in an embodiment of the present application;
[0025] Figure 4E is a schematic diagram of a small map provided in an embodiment of the present application;
[0026] Figure 4F is a schematic diagram of candidate transmission methods provided in an embodiment of the present application;
[0027] Figure 5 It is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application;
[0028] Figure 6 It is a schematic diagram of the flow of the indicator provided in the embodiment of the present application;
[0029] Figure 7 is a schematic diagram of a small map provided in an embodiment of the present application;
[0030] Figure 8 is a schematic diagram of a transmission method provided in an embodiment of the present application;
[0031] Fig. 9 It is a schematic diagram of transmitting a virtual object provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0033] In the following description, the terms "first\second" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0034] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0036] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0037] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.
[0038] 2) Client: An application running in a terminal to provide various services, such as a video player client, a game client, etc.
[0039] 3) Virtual scene: A virtual game scene displayed (or provided) when the game program is running on the terminal. The virtual scene can be a simulation environment of the real world, a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc. The land may include environmental elements such as deserts and cities, and users can control virtual objects to move in the virtual scene.
[0040] 4) Virtual objects: images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as characters and animals displayed in a virtual scene. The virtual object can be a virtual character in a virtual scene that represents a user. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.
[0041] 5) Large map: used to display the complete game world (i.e. virtual scene). Players can understand their own location and all locations in the entire game world from a bird's eye view.
[0042] 6) Minimap: A map that helps players determine the location of virtual objects controlled by players in the game world. It only occupies part of the display area in the human-computer interaction interface. The minimap only presents part of the game world in the virtual scene, and is used for real-time navigation and feedback information. It can help players quickly understand their position in the game world and the surrounding geographical environment during the game.
[0043] 7) Scene data: represents various characteristics of virtual objects in the virtual scene during the interaction process, for example, it may include the position of the virtual object in the virtual scene. Of course, different types of characteristics may be included according to the type of virtual scene; for example, in a virtual scene of a game, scene data may include the waiting time required for various functions configured in the virtual scene (depending on the number of times the same function can be used within a specific time), and may also represent the attribute values of various states of the game character, such as health value (also called red volume) and magic value (also called blue volume).
[0044] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for interactive processing of a virtual scene, which can save display space of a small map. In order to facilitate easier understanding of the method for interactive processing of a virtual scene provided by the embodiments of the present application, an exemplary implementation scenario of the method for interactive processing of a virtual scene provided by the embodiments of the present application is first described. The virtual scene in the method for interactive processing of a virtual scene provided by the embodiments of the present application can be completely based on terminal output, or based on the coordinated output of a terminal and a server.
[0045] In some embodiments, the virtual scene can be an environment for game characters to interact. For example, it can be an environment for game characters to fight in the virtual scene. By controlling the actions of the game characters, both parties can interact in the virtual scene, allowing users to relieve life stress during the game.
[0046] In one implementation scenario, see Figure 1A , Figure 1A It is a schematic diagram of the application mode of the interactive processing method of the virtual scene provided in the embodiment of the present application, which is suitable for some application modes that completely rely on the graphics processing hardware computing power of the terminal 400 to complete the relevant data calculation of the virtual scene 100, such as stand-alone / offline mode games, and the output of the virtual scene is completed through various types of terminals 400 such as smart phones, tablet computers and virtual reality / augmented reality devices.
[0047] As an example, types of graphics processing hardware include a central processing unit (CPU) and a graphics processing unit (GPU).
[0048] When forming a visual perception of the virtual scene 100, the terminal 400 calculates the data required for display through the graphics computing hardware, and completes the loading, parsing and rendering of the display data, and outputs video frames that can form a visual perception of the virtual scene through the graphics output hardware, for example, presenting two-dimensional video frames on the display screen of a smartphone, or projecting video frames to achieve a three-dimensional display effect on the lenses of augmented reality / virtual reality glasses; in addition, in order to enrich the perception effect, the terminal 400 can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0049] As an example, a client 410 (e.g., a stand-alone game application) is running on the terminal 400. During the operation of the client 410, a virtual scene including virtual objects is output. The virtual scene can be an environment for game characters to interact, such as a plain, a street, a valley for game characters to fight, or a room for game characters to build, etc.; taking the third-person perspective display of the virtual scene 100 as an example, a virtual object 110, an indicator 120, and a small map 130 are displayed in the virtual scene 100. The virtual object 110 can be a game character controlled by a user (or player), that is, the virtual object 110 is controlled by a real user and will operate in the virtual scene in response to the real user's operation on buttons (including joystick buttons, attack buttons, defense buttons, etc.). For example, when the real user moves the joystick button to the left, the virtual object will move to the left in the virtual scene, and can also remain still, jump, and use various functions (such as skills and props).
[0050] For example, a virtual object 110 controlled by a player is displayed in a virtual scene 100. In response to a triggering operation of a virtual task in the virtual scene 100, an indicator 120 of the virtual task is displayed in the virtual scene 100, wherein the indicator 120 is used to point from the current position of the virtual object 110 to the target position of the virtual task. In response to satisfying the display conditions of the mini-map, a mini-map 130 is displayed in the virtual scene 100, wherein the target position is displayed in the mini-map, and the player can control the virtual object 110 to move to the target position according to the displayed mini-map. Since the mini-map is not always displayed in the virtual scene, it will only be displayed in the virtual scene when the display conditions are met, thereby avoiding the mini-map occupying display space, simplifying the information display in the virtual scene, and improving the user experience.
[0051] In another implementation scenario, see Figure 1B , Figure 1B It is a schematic diagram of an application mode of the interactive processing method of the virtual scene provided in an embodiment of the present application, which is applied to the terminal 400 and the server 200, and is suitable for an application mode that relies on the computing power of the server 200 to complete the virtual scene calculation and output the virtual scene at the terminal 400.
[0052] Taking the visual perception of the virtual scene 100 as an example, the server 200 calculates the virtual scene related display data (such as scene data) and sends it to the terminal 400 through the network 300. The terminal 400 relies on the graphics computing hardware to complete the loading, parsing and rendering of the display data, and relies on the graphics output hardware to output the virtual scene to form a visual perception. For example, a two-dimensional video frame can be presented on the display screen of a smartphone, or a video frame with a three-dimensional display effect can be projected on the lenses of augmented reality / virtual reality glasses. For the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal 400 can be used, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, and so on.
[0053] As an example, a client 410 (e.g., an online version of a game application) is running on the terminal 400, which interacts with other users in a game by connecting to a server 200 (e.g., a game server). The terminal 400 outputs a virtual scene 100 of the client 410. Taking the third-person perspective display of the virtual scene 100 as an example, a virtual object 110, an indicator 120, and a small map 130 are displayed in the virtual scene 100. The virtual object 110 may be a game character controlled by a user (or player), that is, the virtual object 110 is controlled by a real user and will operate in the virtual scene in response to the real user's operation of buttons (including joystick buttons, attack buttons, defense buttons, etc.). For example, when the real user moves the joystick button to the left, the virtual object will move to the left in the virtual scene, and can also remain still, jump, and use various functions (such as skills and props).
[0054] For example, the terminal 400 outputs the virtual scene 100 sent by the server 200, and displays the virtual object 110 controlled by the player in the virtual scene 100. In response to the triggering operation of the virtual task in the virtual scene 100, the indicator 120 of the virtual task is displayed in the virtual scene 100, wherein the indicator 120 is used to point from the current position of the virtual object 110 to the target position of the virtual task. In response to meeting the display conditions of the mini-map, a mini-map 130 is displayed in the virtual scene 100, wherein the target position is displayed in the mini-map, and the player can control the virtual object 110 to go to the target position according to the displayed mini-map. Since the mini-map is not always displayed in the virtual scene, it will only be displayed in the virtual scene when the display conditions are met, thereby avoiding the mini-map occupying display space, simplifying the information display in the virtual scene, and improving the user experience.
[0055] In some embodiments, the terminal 400 can implement the interactive processing method of the virtual scene provided in the embodiments of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP, APPlication), that is, a program that needs to be installed in the operating system to run, such as a fighting game APP (that is, the above-mentioned client 410); it can also be a small program that can be embedded in any APP, that is, a program that only needs to be downloaded to a browser environment to run. The above-mentioned computer program can be an application, module or plug-in in any form.
[0056] Taking a computer program as an application program as an example, in actual implementation, the terminal 400 installs and runs an application program that supports a virtual scene. The application program can be any one of a first-person shooter game (FPS), a third-person shooter game, a virtual reality application program, a three-dimensional map program, or a multiplayer gunfight survival game. The user uses the terminal 400 to operate a virtual object in the virtual scene to perform an activity, which includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building a virtual building. Schematically, the virtual object can be a virtual character, such as a simulated character or an anime character.
[0057] In some embodiments, the embodiments of the present application can also be implemented with the aid of cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to achieve data calculation, storage, processing, and sharing.
[0058] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources.
[0059] For example, Figure 1BThe server 200 in the example may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 400 and the server 200 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0060] See also Figure 2 , Figure 2 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and takes the electronic device as a terminal 400 as an example for explanation. Figure 2 The electronic device 400 shown includes: at least one processor 420, a memory 460, at least one network interface 430 and a user interface 440. The various components in the terminal 400 are coupled together via a bus system 450. It is understood that the bus system 450 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 450 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 450 is not shown in FIG. Figure 2 Various buses are labeled as bus system 450 .
[0061] The processor 420 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0062] The user interface 440 includes one or more output devices 441 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 440 also includes one or more input devices 442, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0063] The memory 460 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 460 may optionally include one or more storage devices that are physically remote from the processor 420.
[0064] The memory 460 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 460 described in the embodiments of the present application is intended to include any suitable type of memory.
[0065] In some embodiments, memory 460 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0066] Operating system 461, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0067] A network communication module 462, for reaching other computing devices via one or more (wired or wireless) network interfaces 430, exemplary network interfaces 430 include: Bluetooth, Wireless Compatibility Authentication (WiFi), and Universal Serial Bus (USB);
[0068] a presentation module 463 for enabling presentation of information via one or more output devices 441 (e.g., display screen, speaker, etc.) associated with the user interface 440 (e.g., a user interface for operating peripherals and displaying content and information);
[0069] The input processing module 464 is used to detect one or more user inputs or interactions from one of the one or more input devices 442 and translate the detected inputs or interactions.
[0070] In some embodiments, the interactive processing device for the virtual scene provided in the embodiments of the present application can be implemented in a software manner. Figure 2 The interactive processing device 465 of the virtual scene stored in the memory 460 is shown, which can be software in the form of programs and plug-ins, including the following software modules: a first display module 4651, a task module 4652, and a second display module 4653. These modules are logical, so they can be arbitrarily combined or further divided according to the functions implemented. It should be pointed out that in Figure 2 For the sake of convenience, all the above modules are shown at once, but it should not be regarded as that the interactive processing device 465 of the virtual scene excludes the implementation that can only include the first display module 4651, the task module 4652, and the second display module 4653. The functions of each module will be explained below.
[0071] In other embodiments, the interactive processing device of the virtual scene provided in the embodiments of the present application can be implemented in hardware. As an example, the interactive processing device of the virtual scene provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the interactive processing method of the virtual scene provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.
[0072] The interactive processing method of the virtual scene provided by the embodiment of the present application will be specifically described below in conjunction with the accompanying drawings. The interactive processing method of the virtual scene provided by the embodiment of the present application can be Figure 1A The terminal 400 in the embodiment can be executed separately or by Figure 1B The terminal 400 and the server 200 cooperate to execute.
[0073] Below, by Figure 1A The example of the terminal 400 in the embodiment of the present application independently executing the interactive processing method of the virtual scene provided in the embodiment of the present application is used for explanation. Figure 3A , Figure 3A is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application, which will be combined with Figure 3A The steps shown are explained.
[0074] It should be noted that Figure 3A The method shown can be executed by various forms of computer programs running on the terminal 400, and is not limited to the above-mentioned client 410, but can also be the above-mentioned operating system 461, software modules and scripts. Therefore, the client should not be regarded as a limitation on the embodiments of the present application.
[0075] In step 101, a virtual scene is displayed, wherein the virtual scene includes virtual objects.
[0076] Here, a virtual object is displayed in a virtual scene, and the virtual object may be a game character controlled by a user (or player). It should be noted that the virtual scene including the virtual object is the main interface of the game.
[0077] In step 102 , in response to a triggering operation of a virtual task, an indicator of the virtual task is displayed in a virtual scene, wherein the indicator is used to point from a current position of the virtual object to a target position of the virtual task.
[0078] Here, the target location can be a place for the virtual object to perform a virtual task. For example, the virtual task is to reach the target location to perform a specific task. Only when the virtual object reaches the target location and performs the specific task at the target location, the virtual task is completed. The target location can also be a place where the virtual task instructs the virtual object to go. For example, the virtual task is for the virtual object to go to the target location. When the virtual object reaches the target location, the virtual task is completed.
[0079] It should be noted that the virtual task can be triggered from the virtual scene, that is, in response to the triggering operation of the virtual task in the virtual scene, the indicator of the virtual task is displayed in the virtual scene, so as to complete the triggering operation of the virtual task and the instruction of the virtual task in the virtual scene, and avoid jumping to the large map to complete the triggering operation of the virtual task and the instruction of the virtual task, thereby simplifying the interactive operation and improving the interactive efficiency; the virtual task can also be triggered from other interfaces (virtual scenes that do not include virtual objects, that is, non-main interfaces), such as the large map interface. After receiving the triggering operation of the virtual task, the indicator of the virtual task is displayed in the virtual scene, so as to complete the instruction of the virtual task in the virtual scene, and avoid jumping to the large map to complete the instruction of the virtual task, thereby simplifying the interactive operation and improving the interactive efficiency. Among them, the embodiment of the present application does not limit the form of the triggering operation, which can be a click, double-click, long press, etc.
[0080] In some embodiments, step 102 may be implemented in the following manner: in response to a triggering operation of the virtual task, displaying an indicator of the virtual task at a first position of the virtual scene, wherein the first position is located on a forward route between the current position and the target position.
[0081] The first position is a position that the virtual object has not reached, and the first position can move along with the movement of the virtual object, thereby guiding the virtual object to the target position by following the movement. Figure 4A As shown, when the virtual object is located at position 401 , the indicator is located at first position 402 , and when the virtual object moves to position 403 , the indicator moves to first position 404 at the same time.
[0082] In some embodiments, step 102 can be implemented in the following manner: in response to a triggering operation of a virtual task, when the target position is not displayed in the virtual scene, an indicator including a first distance is displayed in a first display style in the virtual scene, wherein the first distance is the distance between the current position of the virtual object and the target position; when the target position is displayed in the virtual scene, an indicator is displayed at the target position in a second display style, wherein the first display style is different from the second display style.
[0083] The display parameters of the first display style include at least one of the following: color, size, shape, and special effects, and the display parameters of the second display style also include at least one of the following: color, size, shape, and special effects. The first display style is different from the second display style to distinguish whether the target position is displayed in the virtual scene. For example, the first display style is red and the second display style is green. Therefore, when the target position is not displayed in the virtual scene, a red indicator including the first distance is displayed in the virtual scene; when the target position is displayed in the virtual scene, a green indicator is displayed at the target position.
[0084] like Figure 4B As shown, when the target position is not displayed in the virtual scene, a diamond-shaped indicator 405 is displayed in the virtual scene, and the indicator 405 includes the distance between the current position of the virtual object and the target position (such as Figure 4B "340m"). Figure 4C As shown, when a target position 406 is displayed in the virtual scene, a square indicator 407 is displayed in the virtual scene.
[0085] In step 103, in response to satisfying the display condition of the mini-map, a mini-map is displayed in the virtual scene, wherein the target location is displayed in the mini-map.
[0086] Here, the mini-map is not always displayed. Only when the display conditions of the mini-map are met will the mini-map be displayed in the virtual scene to guide the virtual object to the target location.
[0087] In some embodiments, the display conditions of the minimap include at least one of the following: receiving a trigger operation for an indicator mark from a first account, wherein the first account is an account that controls the virtual object; the virtual object stays at a current location for a duration greater than a stay duration threshold; in the process of the virtual object moving to the target location, the increase in the distance from the current location to the target location is greater than an increase threshold; the virtual object fails to reach the target location within a first set time period; the virtual object completes a virtual task at the current location; a trigger operation for an indicator mark is received when a set number of second accounts are performing virtual tasks, wherein the second accounts are accounts other than the first account in the virtual scene; and a prediction instruction to display the minimap returned by the first neural network model is received.
[0088] As an example of a display condition, when the player manually triggers the indicator mark, that is, the electronic device receives the trigger operation of the first account on the indicator mark, the display condition of the minimap is met, and the minimap is displayed in the virtual scene to realize manual triggering of the display of the minimap; when the virtual object stays at the current position for a period of time longer than the stay time threshold, it means that the player may not know how to go to the target position, and the minimap needs to be displayed to guide the player to control the virtual object to go to the target position. Therefore, when the virtual object stays at the current position for a period of time longer than the stay time threshold, the display of the minimap is triggered; in the process of the virtual object going to the target position, the increase in the distance from the current position to the target position is greater than the increase threshold, which means that the virtual object controlled by the player is getting farther and farther from the target position, and the player may lose his way, and the minimap needs to be displayed so that the player can view the route to the target position; when the virtual object does not reach the target position within the first set time, it means that the player may not be familiar with the route to the target position. The route to the target location needs to be displayed on a mini-map so that the player can view the mini-map and plan the route to the target location; when the virtual object completes the virtual task at the current location, it means that the virtual object controlled by the player no longer needs to stay at the current location and needs to go to the target location immediately, so a mini-map is displayed in the virtual scene so that the player can view the mini-map and quickly go to the target location; when a set number of second accounts receive a trigger operation for the indicator mark during the execution of virtual tasks, where the second account is an account other than the first account in the virtual scene, it means that other users have chosen to display the mini-map in the virtual scene during the process of going to the target location, which means that the route to the target location may be more complicated and the mini-map needs to be displayed to assist the player in going to the target location; when the prediction instruction to display the mini-map returned by the first neural network model is received, it means that the first neural network predicts that the mini-map needs to be displayed at present so that the player can view the mini-map and plan the route to the target location.
[0089] In some embodiments, the prediction instruction is obtained by executing the following processing by the first neural network model: prediction processing is performed based on the historical execution data of other virtual tasks and virtual tasks by the first account to obtain prediction instructions for displaying the mini-map; wherein, other virtual tasks are virtual tasks other than virtual tasks in the virtual scene, and the first neural network model is obtained by training virtual task samples, account samples of the virtual scene, historical execution data of other virtual task samples, and prediction instruction annotation, and other virtual task samples are virtual tasks other than virtual task samples in the virtual scene.
[0090] Among them, the embodiments of the present application are not limited to the model structure of the first neural network model. For example, the first neural network model can be a convolutional neural network, a deep neural network, etc.
[0091] It should be noted that before applying the first neural network model, it is necessary to train the initial first neural network model, and then put the trained first neural network model into use, and use artificial intelligence technology combined with the player's habits to predict whether the small map needs to be displayed. Among them, the first neural network model is trained by virtual task samples, account samples of virtual scenes for historical execution data of other virtual task samples and prediction instruction annotations. For example, based on the historical execution data of virtual task samples and account samples of virtual scenes for other virtual task samples, the initial first neural network model is called for prediction processing to obtain a prediction instruction for displaying a small map (for example, the prediction instruction is 1, which means that the small map needs to be displayed; the prediction instruction is 0, then the small map does not need to be displayed). After determining the value of the loss function of the first neural network model through the prediction instruction for displaying the small map and the prediction instruction annotation, it can be determined whether the value of the loss function exceeds the preset threshold. When the value of the loss function exceeds the preset threshold, the error signal of the first neural network model is determined based on the loss function, and the error information is back-propagated in the first neural network model, and the model parameters of each layer are updated during the propagation process. Among them, the embodiment of the present application is not limited to the form of the loss function, for example, it can be a cross entropy loss function, an L2 loss function, etc.
[0092] Here, the back propagation is explained. The training sample data is input into the input layer of the neural network model, passes through the hidden layer, and finally reaches the output layer and outputs the result. This is the forward propagation process of the neural network model. Since there is an error between the output result of the neural network model and the actual result, the error between the output result and the actual value is calculated, and the error is back-propagated from the output layer to the hidden layer until it propagates to the input layer. In the back propagation process, the value of the model parameter is adjusted according to the error, that is, the loss function is constructed according to the error between the output result and the actual value, and the partial derivative of the loss function to the model parameter is calculated layer by layer to generate the gradient of the loss function to the model parameters of each layer. Since the direction of the gradient indicates the direction of error expansion, the gradient of the model parameter is inverted and summed with the original parameters of each layer model. The summed result is used as the updated model parameters of each layer, thereby reducing the error caused by the model parameters; the above process is iterated until convergence. Among them, the first neural network model is a neural network model.
[0093] In some embodiments, step 103 may be implemented in the following manner: in response to satisfying the display condition of the mini-map, displaying the mini-map around the indicator, wherein the center of the mini-map is one of the following: the indicator, the current location, and the target location.
[0094] As an example of displaying a minimap around an indicator, Figure 4D As shown, in the virtual scene, a small map 410 is displayed around an indicator 409 , and the indicator 409 is the center of the small map 410 .
[0095] In some embodiments, step 103 can be implemented in the following manner: in response to satisfying the display conditions of the mini-map, a mini-map is displayed in a partial area of the virtual scene except for the indicator mark, wherein a copy of the indicator mark is displayed in the mini-map, and the center of the mini-map is one of the following: a copy of the indicator mark, the current position, and the target position.
[0096] As an example of displaying a small map in a part of the virtual scene except for the indicator, Figure 4E As shown, a small map 410 is displayed in a partial area of the virtual scene except the indicator 409 , and a copy 411 of the indicator is displayed in the small map 410 , and the copy 411 of the indicator is the center of the small map 410 .
[0097] See also Figure 3B , Figure 3B This is another flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application. In order to avoid the small map being displayed all the time and occupying the display space, Figure 3B Show Figure 3A The method further includes step 104 after step 103: in step 104, in response to satisfying a closing condition of the mini-map, closing the mini-map displayed in the virtual scene.
[0098] In some embodiments, the closing condition of the mini map includes at least one of the following: receiving a closing operation for the mini map from a first account, wherein the first account is the account that controls the virtual object; the virtual object's stay time at the current location is less than or equal to a stay time threshold; in the process of the virtual object moving to the target location, the decrease in the distance from the current location to the target location is greater than a decrease threshold; the virtual object reaches the target location; the virtual object has not completed the virtual task at the current location.
[0099] As an example of a closing condition, when the player manually closes the indicator mark, that is, the electronic device receives the closing operation of the indicator mark by the first account, the display condition of the mini-map is met, and the displayed mini-map is closed in the virtual scene to realize manual closing of the mini-map; when the virtual object stays at the current location for a period of time that is less than or equal to the stay time threshold, it means that the player knows how to go to the target location, and there is no need to display the mini-map to guide the player to control the virtual object to go to the target location. Therefore, when the virtual object stays at the current location for a period of time that is less than or equal to the stay time threshold, the displayed mini-map is triggered to be closed; in the process of the virtual object going to the target location, when the current If the decrease in the distance from the current position to the target position is greater than the decrease threshold, it means that the virtual object controlled by the player is getting closer to the target position, and the player knows how to go to the target position, and there is no need to display a mini-map to guide the player to control the virtual object to the target position; when the virtual object reaches the target position, there is no need to display a mini-map to guide the player to control the virtual object to the target position; when the virtual object has not completed the virtual task at the current position, it means that the virtual object controlled by the player still needs to stay at the current position and continue to perform the virtual task at the current position. It does not need to go to the target position immediately, and there is no need to display a mini-map to guide the player to control the virtual object to the target position.
[0100] See also Figure 3C , Figure 3C is another flowchart of the interactive processing method of the virtual scene provided by the embodiment of the present application. When it is necessary to quickly transmit the virtual object to the target location, Figure 3C Show Figure 3A The method further includes step 105 after step 103: in step 105, in response to a trigger operation of controlling the transmission of the virtual object based on the mini-map, the virtual object is controlled to be transmitted to the target location. Before the virtual object is controlled to be transmitted to the target location, at least one of the following is displayed in the mini-map: the terrain between the current location and the target location; the distance between the current location and the target location; and the route between the current location and the target location, so that subsequent players can determine the transmission method of the virtual object according to the terrain, distance, and route.
[0101] See also Figure 3D , Figure 3D is another flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application. Figure 3D Show Figure 3C Step 105 in the example can be implemented by 1051: In step 1051, in response to a trigger operation on a target area in the mini-map, the virtual object is controlled to be transferred to the target location according to a target transfer method, wherein the target area is one of the following: the target location, the indicator, and a copy of the indicator. The type of the target transfer method includes one of the following: transfer by riding a virtual vehicle, transfer by walking, transfer by sprinting, and transfer by air.
[0102] As an example, when a target location is displayed in the minimap, in response to a trigger operation on the target location in the minimap, the virtual object is controlled to be transmitted to the target location according to the target transmission method; when an indicator is displayed in the minimap, in response to a trigger operation on the indicator in the minimap, the virtual object is controlled to be transmitted to the target location according to the target transmission method; when a copy of the indicator is displayed in the minimap, in response to a trigger operation on the copy of the indicator in the minimap, the virtual object is controlled to be transmitted to the target location according to the target transmission method.
[0103] In some embodiments, step 1051 can be implemented in the following manner: in response to a trigger operation on a target area in a small map, at least one candidate transmission method is displayed in a virtual scene; in response to a selection operation on a candidate transmission method, the selected candidate transmission method is used as a target transmission method, and the virtual object is controlled to be transmitted to the target location according to the target transmission method. Thus, by manually selecting the target transmission method, a suitable transmission method is selected to transmit the virtual object to the target location.
[0104] like Figure 4F As shown, after the mini-map is displayed, when receiving a request for the target area (such as Figure 8 When a trigger operation is performed by the indicator 412 shown in the figure, at least one candidate transmission mode 413 is displayed around the target area in the virtual scene, such as horseback transmission, sprint transmission or sword transmission, and in response to the selection operation for the candidate transmission mode, the selected candidate transmission mode is used as the target transmission mode, and the virtual object is controlled to be transmitted to the target location according to the target transmission mode. For example, if horseback transmission is selected, the virtual object is controlled to be transmitted to the target location on horseback.
[0105] In some embodiments, step 1051 can be implemented in the following manner: in response to a trigger operation on a target area in the mini-map, a target transmission method is determined from multiple candidate transmission methods, and the virtual object is controlled to be transmitted to the target location according to the target transmission method. Thus, by automatically determining the target transmission method, a suitable transmission method is automatically selected to transmit the virtual object to the target location.
[0106] As an example of determining a target transmission mode, a matching candidate transmission mode among multiple candidate transmission modes is determined as the target transmission mode, wherein the types of matching candidate transmission modes include at least one of the following: a candidate transmission mode that matches the distance between the current position and the target position, a candidate transmission mode that matches the terrain between the current position and the target position, a candidate transmission mode that matches the virtual task at the current position, and a candidate transmission mode that matches the virtual task at the target position. For example, when the candidate transmission modes are horseback transmission, sprint transmission, or sword-riding transmission, when the distance between the current position and the target position is greater than the set distance, it means that the distance between the current position and the target position is far, then the horseback transmission that matches the distance between the current position and the target position is determined as the target transmission mode, and the virtual object is controlled to be quickly transmitted to the target position on horseback; when the terrain between the current position and the target position is a steep mountain, it means that the terrain between the current position and the target position is not suitable for flat ground transmission, then the sword-riding transmission that matches the terrain between the current position and the target position is determined as the target transmission mode, and the virtual object is controlled to be transmitted on horseback quickly. Send to the target location; when the virtual task at the current location is a horse riding competition, the candidate transmission method that matches the virtual task at the current location is horse riding transmission, and you need to control the virtual object to complete the virtual task at the current location by riding a horse. After completing the virtual task at the current location, you do not need to change the virtual mount, and you can quickly transmit to the target location; when the virtual task at the target location is a running competition, the candidate transmission method that matches the virtual task at the target location is sprinting transmission, and you can control the virtual object to be transmitted to the target location by sprinting. After completing the transmission to the target location, you do not need to change the virtual object's activity mode, and you can quickly enter the running competition.
[0107] As another example of determining the target transmission method, a second neural network model is called based on a first account that controls a virtual object to perform predictive processing on multiple candidate transmission methods to obtain a target transmission method, wherein the second neural network model is obtained through labeled training of account samples, candidate transmission method samples, and target transmission methods.
[0108] Among them, the embodiments of the present application are not limited to the model structure of the second neural network model. For example, the second neural network model can be a convolutional neural network, a deep neural network, etc.
[0109] It should be noted that before applying the second neural network model, it is necessary to train the initial second neural network model, and then put the trained second neural network model into use, and use artificial intelligence technology combined with the player's habits to predict the appropriate target transmission method. Among them, the second neural network model is obtained by training the account sample, the candidate transmission method sample and the target transmission method annotation. For example, based on the account sample and the candidate transmission method sample, the initial second neural network model is called for prediction processing to obtain the predicted target transmission method. After determining the value of the loss function of the second neural network model through the predicted target transmission method and the target transmission method annotation, it can be determined whether the value of the loss function exceeds the preset threshold. When the value of the loss function exceeds the preset threshold, the error signal of the second neural network model is determined based on the loss function, and the error information is back-propagated in the second neural network model, and the model parameters of each layer are updated during the propagation process. Among them, the embodiment of the present application is not limited to the form of the loss function, for example, it can be a cross entropy loss function, an L2 loss function, etc.
[0110] As another example of determining the target transmission method, a third neural network model is called based on a first account that controls a virtual object, the distance between the current position and the target position, and the terrain between the current position and the target position to perform predictive processing on multiple candidate transmission methods to obtain the target transmission method, wherein the third neural network model is obtained by training with account samples, distance samples, terrain samples, candidate transmission method samples, and annotations of the target transmission method.
[0111] Among them, the embodiments of the present application are not limited to the model structure of the third neural network model. For example, the third neural network model can be a convolutional neural network, a deep neural network, etc.
[0112] It should be noted that before applying the third neural network model, it is necessary to train the initial third neural network model, and then put the trained third neural network model into use, and use artificial intelligence technology to combine the player's habits, the distance between the current position and the target position, and the terrain between the current position and the target position to predict the appropriate target transmission method. Among them, the third neural network model is obtained by training the account sample, the distance sample, the terrain sample, the candidate transmission method sample, and the target transmission method. For example, based on the account sample, the distance sample between the current position and the target position, the terrain sample between the current position and the target position, and the candidate transmission method sample, the initial third neural network model is called for prediction processing to obtain the predicted target transmission method. After determining the value of the loss function of the third neural network model through the predicted target transmission method and the annotation of the target transmission method, it can be judged whether the value of the loss function exceeds the preset threshold. When the value of the loss function exceeds the preset threshold, the error signal of the third neural network model is determined based on the loss function, and the error information is back-propagated in the third neural network model, and the model parameters of each layer are updated during the propagation process. Among them, the embodiment of the present application is not limited to the form of the loss function, for example, it can be a cross entropy loss function, an L2 loss function, etc.
[0113] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0114] The embodiments of the present application can be applied to various virtual scenes, for example, in virtual scenes such as games, and can simulate the real interaction process between virtual objects.
[0115] With the development of technology and the improvement of the performance of electronic equipment, the operation mode of the human-computer interaction interface will inevitably develop towards a more convenient and efficient control method, allowing users to have a more pleasant human-computer interaction experience.
[0116] The embodiment of the present application provides an interactive processing method for a virtual scene, which does not require a fixed display of a small map in the virtual scene to avoid the small map occupying display space. When exploring the big world, the player can follow the pointer (also known as the indicator) of the virtual task to find the way, and at the pointer, trigger the display of a small map including the current position of the virtual object controlled by the player and the target location (also known as the target position), so that the player can subsequently select a suitable transmission method according to the small map. This interactive method can simplify interactive operations and significantly improve the player's operating experience.
[0117] See also Figure 5 , Figure 5 is a flowchart of the interactive processing method of the virtual scene provided in the embodiment of the present application, which will be combined with Figure 5 The steps shown are explained.
[0118] Step 201, in response to the selection operation of the virtual task, determine whether the selected virtual task is a traceable task. When the virtual task is not a traceable task, proceed to step 202; when the virtual task is a traceable task, proceed to step 203.
[0119] Here, when entering the game, in response to a selection operation on a virtual task in the game, it is detected whether the selected virtual task is a trackable task, that is, it is detected whether the selected virtual task can be tracked.
[0120] Step 202: Control the virtual object to explore on its own.
[0121] Here, when the virtual task is not a trackable task, it means that the virtual task cannot be tracked so that the controlled virtual object can quickly reach the target destination, and the virtual object can only be controlled to explore the game world on its own.
[0122] Step 203: Display the direction indicator of the destination.
[0123] For example, a pointer to the destination is displayed in the main interface (i.e., a virtual scene including a virtual object). The pointer is used to indicate a direction, wherein the direction represents the direction from the current position of the virtual object controlled by the player to the destination, and the pointer also carries a distance, wherein the distance represents the distance from the current position of the virtual object controlled by the player to the destination.
[0124] like Figure 6 As shown, a pointer 602 of the target destination is displayed in a virtual scene including a virtual object 601, wherein the pointer 602 is used to indicate the direction from the current position of the virtual object controlled by the player to the target destination, and the "340m" carried by the pointer 602 represents that the distance from the current position of the virtual object controlled by the player to the target destination is 340 meters.
[0125] Step 204 , determining whether a long press operation on the pointer is received, if a long press operation on the pointer is received, proceeding to step 205 ; if no long press operation on the pointer is received, proceeding to step 209 .
[0126] Here, after the processor of the electronic device collects the event data, it can determine the event data as a long press or click operation, thereby determining whether a long press operation on the pointer is received.
[0127] Step 205, display the mini-map.
[0128] like Figure 7 As shown, when a long press operation on the pointer 602 is received, a small map 701 is displayed around the pointer 602 in a virtual scene including a virtual object, wherein the small map 701 includes the current position 702 and the target location 703 of the virtual object.
[0129] Step 206, determining whether a click operation on the pointer is received, if a click operation on the pointer is received, proceeding to step 207; if a long press operation on the pointer is not received, proceeding to step 205.
[0130] Step 207, display multiple transmission modes.
[0131] like Figure 8 As shown, after the mini-map is displayed, when a click operation on the pointer is received, multiple transmission modes 801 are displayed in the virtual scene including the virtual objects, such as horseback transmission, sprint transmission or sword transmission.
[0132] It should be noted that the multiple transmission methods displayed can be determined by the distance from the current position of the virtual object controlled by the player to the target location. For example, when the distance from the current position of the virtual object controlled by the player to the target location is greater than a set threshold, the multiple transmission methods displayed may be horse riding transmission or sprinting transmission.
[0133] Step 208, in response to the selection operation for multiple transmission methods, the virtual object is transmitted to the target location through the selected transmission method.
[0134] like Fig. 9 As shown, in response to the selection operation for the transmission mode 901, the selected transmission mode 901 (such as Fig. 9 The virtual object is transported to the destination by means of “horse riding” as shown, for example, a virtual vehicle 902 is summoned to control the virtual object to ride a horse to the destination.
[0135] It should be noted that after receiving a selection operation for multiple transmission methods, it can be determined whether the selected transmission method is effective. For example, if the virtual vehicle corresponding to the selected transmission method has been loaded into the virtual scene, it is determined that the selected transmission method is effective, and the virtual object can be transmitted to the target destination through the selected transmission method; if the virtual vehicle corresponding to the selected transmission method has not been loaded into the virtual scene, it is determined that the selected transmission method is not effective, and the virtual vehicle corresponding to the selected transmission method needs to be loaded into the virtual scene first.
[0136] Step 209, continue tracking the virtual task.
[0137] Here, the virtual task continues to be tracked, that is, the displayed pointer continues to be updated according to the direction from the current position of the virtual object controlled by the player to the target location, and the player is guided to control the virtual object to the target location through the updated pointer.
[0138] In summary, the interactive processing method of the virtual scene provided in the embodiment of the present application does not need to display the small map all the time, thereby avoiding the small map occupying the display space, simplifying the information display, and there is no need to jump to the large map interface to perform the virtual object transmission operation. The virtual object transmission operation can be completed only in the main interface, thereby simplifying the operation, which can significantly improve the player's operating experience and provide more game fun.
[0139] So far, the interactive processing method of the virtual scene provided by the embodiment of the present application has been described in combination with the exemplary application and implementation of the electronic device provided by the embodiment of the present application. The following will continue to describe the cooperation of various modules in the interactive processing device 555 for the virtual scene provided by the embodiment of the present application to implement the interactive processing scheme for the virtual scene.
[0140] The first display module 5551 is used to display a virtual scene, wherein the virtual scene includes a virtual object; the task module 5552 is used to display an indicator of the virtual task in the virtual scene in response to a triggering operation of the virtual task, wherein the indicator is used to point from the current position of the virtual object to the target position of the virtual task; the second display module 5553 is used to display the mini-map in the virtual scene in response to satisfying the display condition of the mini-map, wherein the target position is displayed in the mini-map.
[0141] In some embodiments, the task module 5552 is further used to display an indicator of the virtual task at a first position of the virtual scene, wherein the first position is located on a forward route between the current position and the target position.
[0142] In some embodiments, the task module 5552 is also used to display the indicator including the first distance in a first display style in the virtual scene when the target position is not displayed in the virtual scene, wherein the first distance is the distance between the current position of the virtual object and the target position; and when the target position is displayed in the virtual scene, display the indicator in a second display style at the target position, wherein the first display style is different from the second display style.
[0143] In some embodiments, the display conditions of the minimap include at least one of the following: receiving a trigger operation for the indicator mark from a first account, wherein the first account is an account that controls the virtual object; the length of time the virtual object stays at the current location is greater than a length of time threshold; during the process of the virtual object moving to the target location, the increase in the distance from the current location to the target location is greater than an increase threshold; the virtual object fails to reach the target location within a first set time period; the virtual object completes a virtual task at the current location; a trigger operation for executing the indicator mark is received by a set number of second accounts while they are executing the virtual task, wherein the second account is an account other than the first account in the virtual scene; and a prediction instruction to display the minimap returned by the first neural network model is received.
[0144] In some embodiments, the prediction instruction is obtained by performing the following processing by the first neural network model: prediction processing is performed based on the historical execution data of other virtual tasks by the first account and the virtual task, to obtain a prediction instruction for displaying the mini-map; wherein the other virtual tasks are virtual tasks in the virtual scene other than the virtual task, and the first neural network model is obtained by training virtual task samples, account samples of the virtual scene for historical execution data of other virtual task samples and prediction instruction annotation, and the other virtual task samples are virtual tasks in the virtual scene other than the virtual task samples.
[0145] In some embodiments, the second display module 5553 is further used to display the mini-map around the indicator, wherein the center of the mini-map is one of the following: the indicator, the current location, and the target location.
[0146] In some embodiments, the second display module 5553 is also used to display the mini-map in a partial area of the virtual scene except the indicator mark, wherein a copy of the indicator mark is displayed in the mini-map, and the center of the mini-map is one of the following: a copy of the indicator mark, the current position, and the target position.
[0147] In some embodiments, after the mini-map is displayed in the virtual scene, the second display module 5553 is further used to close the mini-map displayed in the virtual scene in response to satisfying a closing condition of the mini-map.
[0148] In some embodiments, the closing condition of the mini map includes at least one of the following: receiving a closing operation for the mini map from a first account, wherein the first account is the account that controls the virtual object; the length of time the virtual object stays at the current location is less than or equal to a length of time threshold; in the process of the virtual object moving toward the target location, the distance between the current location and the target location decreases by more than a decrease threshold; the virtual object reaches the target location; the virtual object fails to complete the virtual task at the current location.
[0149] In some embodiments, after the mini-map is displayed in the virtual scene, the second display module 5553 is further used to control the transmission of the virtual object to the target location in response to a transmission trigger operation of controlling the transmission of the virtual object based on the mini-map.
[0150] In some embodiments, the second display module 5553 is also used to control the virtual object to be transmitted to the target position in a target transmission manner in response to a trigger operation on a target area in the minimap, wherein the target area is one of the following: the target position, the indicator, and a copy of the indicator.
[0151] In some embodiments, before controlling the virtual object to be transported to the target location according to the target transport method, the second display module 5553 is also used to display at least one candidate transport method in the virtual scene; in response to a selection operation for the candidate transport method, the selected candidate transport method is used as the target transport method.
[0152] In some embodiments, before controlling the virtual object to be transmitted to the target position according to the target transmission method, the second display module 5553 is further used to determine the target transmission method from multiple candidate transmission methods.
[0153] In some embodiments, the second display module 5553 is also used to determine a matching candidate transmission mode among the multiple candidate transmission modes as the target transmission mode, wherein the type of the matching candidate transmission mode includes at least one of the following: a candidate transmission mode that matches the distance between the current position and the target position, a candidate transmission mode that matches the terrain between the current position and the target position, a candidate transmission mode that matches a virtual task at the current position, and a candidate transmission mode that matches a virtual task at the target position.
[0154] In some embodiments, the second display module 5553 is also used to call a second neural network model based on the first account controlling the virtual object, perform predictive processing on the multiple candidate transmission methods, and obtain the target transmission method, wherein the second neural network model is obtained through training with account samples, candidate transmission method samples, and annotations of the target transmission method.
[0155] In some embodiments, the second display module 5553 is also used to call a third neural network model based on the first account controlling the virtual object, the distance between the current position and the target position, and the terrain between the current position and the target position, to predict the multiple candidate transmission methods to obtain the target transmission method, wherein the third neural network model is obtained through training with account samples, distance samples, terrain samples, candidate transmission method samples, and annotations of the target transmission method.
[0156] In some embodiments, before controlling the virtual object to be transmitted to the target location, the second display module 5553 is also used to display at least one of the following in the mini-map: the terrain between the current location and the target location; the distance between the current location and the target location; the route between the current location and the target location.
[0157] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer program or the computer executable instruction from the computer-readable storage medium, and the processor executes the computer program or the computer executable instruction, so that the electronic device executes the interactive processing method of the virtual scene described in the embodiment of the present application.
[0158] The present application embodiment provides a computer-readable storage medium storing computer executable instructions, wherein the computer executable instructions or computer programs are stored. When the computer executable instructions or computer programs are executed by a processor, the processor will execute the interactive processing method of the virtual scene provided by the present application embodiment, for example, Figure 3A-3D The interactive processing method of the virtual scene is shown.
[0159] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.
[0160] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0161] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0162] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0163] It is understandable that in the embodiments of the present application, related data such as user information is involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0164] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A method for interactive processing of a virtual scene, characterized in that: The method comprises: Displaying a virtual scene, wherein the virtual scene includes a virtual object; In response to a triggering operation of a virtual task, displaying an indicator of the virtual task in the virtual scene, wherein the indicator is used to point from a current position of the virtual object to a target position of the virtual task; In response to satisfying a display condition of a small map, the small map is displayed in the virtual scene, wherein the target location is displayed in the small map.
2. The method according to claim 1, characterized in that The step of displaying the indicator of the virtual task in the virtual scene includes: An indicator of the virtual task is displayed at a first position of the virtual scene, wherein the first position is located on a forward route between the current position and the target position.
3. The method according to claim 1 or 2, characterized in that: The step of displaying the indicator of the virtual task in the virtual scene includes: When the target position is not displayed in the virtual scene, displaying the indicator including a first distance in the virtual scene in a first display style, wherein the first distance is the distance between the current position of the virtual object and the target position; When the target position is displayed in the virtual scene, the indicator is displayed at the target position in a second display style, wherein the first display style is different from the second display style.
4. The method according to claim 1, characterized in that The display condition of the mini-map includes at least one of the following: receiving a trigger operation of a first account on the indicator, wherein the first account is an account that controls the virtual object; The virtual object stays at the current location for a time period greater than a stay time threshold; In the process of the virtual object moving toward the target position, an increase in the distance between the current position and the target position is greater than an increase threshold; The virtual object fails to reach the target position within a first set time period; The virtual object completes the virtual task at the current position; During the process of executing the virtual task, a set number of second accounts receive a trigger operation for executing the indicator, wherein the second accounts are accounts other than the first account in the virtual scene; Receive a prediction instruction for displaying the mini-map returned by the first neural network model.
5. The method according to claim 4, characterized in that The predicted instruction is obtained by performing the following processing by the first neural network model: Performing prediction processing on the historical execution data of other virtual tasks and the virtual task by the first account to obtain a prediction instruction for displaying the small map; Among them, the other virtual tasks are virtual tasks in the virtual scene other than the virtual task, the first neural network model is obtained by training the historical execution data of other virtual task samples and predicted instruction annotations through virtual task samples, account samples of the virtual scene, and the other virtual task samples are virtual tasks other than the virtual task samples in the virtual scene.
6. The method according to claim 1, characterized in that The displaying of the small map in the virtual scene comprises: The small map is displayed around the indicator, wherein the center of the small map is one of the following: the indicator, the current location, and the target location.
7. The method according to claim 1, characterized in that The displaying of the small map in the virtual scene comprises: The mini-map is displayed in a partial area of the virtual scene except the indicator, wherein a copy of the indicator is displayed in the mini-map, and the center of the mini-map is one of the following: the copy of the indicator, the current position, and the target position.
8. The method according to claim 1, characterized in that After displaying the small map in the virtual scene, the method further includes: In response to satisfying a closing condition of the mini-map, closing the mini-map displayed in the virtual scene.
9. The method according to claim 8, characterized in that The closing condition of the mini-map includes at least one of the following: receiving a closing operation of the mini-map from a first account, wherein the first account is an account that controls the virtual object; The virtual object stays at the current location for a time that is less than or equal to a stay time threshold; In the process of the virtual object moving toward the target position, a reduction amount of the distance between the current position and the target position is greater than a reduction amount threshold; The virtual object reaches the target position; The virtual object has not completed the virtual task at the current position.
10. The method according to any one of claims 1 to 9, characterized in that: After displaying the small map in the virtual scene, the method further includes: In response to a triggering operation of controlling the transmission of the virtual object based on the mini-map, the virtual object is controlled to be transmitted to the target location.
11. The method according to claim 10, characterized in that In response to a triggering operation of controlling the transmission of the virtual object based on the mini-map, controlling the transmission of the virtual object to the target location includes: In response to a trigger operation on a target area in the mini-map, the virtual object is controlled to be transferred to the target position in a target transfer manner, wherein the target area is one of the following: the target position, the indicator, and a copy of the indicator.
12. The method according to claim 11, characterized in that Before controlling the virtual object to be transmitted to the target position in a target transmission manner, the method further includes: displaying at least one candidate transmission mode in the virtual scene; In response to a selection operation on the candidate transmission mode, the selected candidate transmission mode is used as the target transmission mode.
13. The method according to claim 11, characterized in that Before controlling the virtual object to be transmitted to the target position in a target transmission manner, the method further includes: The target transmission mode is determined from a plurality of candidate transmission modes.
14. The method according to claim 13, characterized in that The step of determining the target transmission mode from a plurality of candidate transmission modes comprises: Determine a matching candidate transmission mode among the multiple candidate transmission modes as the target transmission mode, wherein the type of the matching candidate transmission mode includes at least one of the following: a candidate transmission mode that matches the distance between the current position and the target position, a candidate transmission mode that matches the terrain between the current position and the target position, a candidate transmission mode that matches a virtual task at the current position, and a candidate transmission mode that matches a virtual task at the target position.
15. The method according to claim 13, characterized in that The step of determining the target transmission mode from a plurality of candidate transmission modes comprises: Based on the first account that controls the virtual object, a second neural network model is called to predict the multiple candidate transmission methods to obtain the target transmission method, wherein the second neural network model is obtained through labeled training of account samples, candidate transmission method samples and target transmission methods.
16. The method according to claim 13, characterized in that The step of determining the target transmission mode from a plurality of candidate transmission modes comprises: Based on the first account that controls the virtual object, the distance between the current position and the target position, and the terrain between the current position and the target position, a third neural network model is called to predict the multiple candidate transmission methods to obtain the target transmission method, wherein the third neural network model is obtained through training with account samples, distance samples, terrain samples, candidate transmission method samples, and annotations of the target transmission method.
17. The method according to any one of claims 10 to 16, characterized in that: Before controlling the virtual object to be transmitted to the target location, the method further includes: At least one of the following is displayed on the mini-map: The terrain between the current position and the target position; The distance between the current position and the target position; The route between the current location and the target location.
18. An interactive processing device for a virtual scene, characterized in that: The device comprises: A first display module, used for displaying a virtual scene, wherein the virtual scene includes a virtual object; A task module, configured to display an indicator of the virtual task in the virtual scene in response to a triggering operation of the virtual task, wherein the indicator is configured to point from a current position of the virtual object to a target position of the virtual task; The second display module is used to display the small map in the virtual scene in response to satisfying the display condition of the small map, wherein the target location is displayed in the small map.
19. An electronic device, characterized in that: The electronic device comprises: Memory for storing computer programs or computer executable instructions; A processor, used to implement the interactive processing method of the virtual scene described in any one of claims 1 to 17 when executing the computer program or computer executable instructions stored in the memory.
20. A computer-readable storage medium, characterized in that: A computer program or a computer executable instruction is stored, and when the computer program or the computer executable instruction is executed by a processor, the interactive processing method of the virtual scene described in any one of claims 1 to 17 is implemented.
21. A computer program product comprising a computer program or computer executable instructions, characterized in that: When the computer program or computer executable instructions are executed by a processor, the interactive processing method of the virtual scene described in any one of claims 1 to 17 is implemented.
Citation Information
Cited By
Map interface switching method and system of SLG (Stepless Zoom Linkage) and storage medium
CN121349582A
Map interface switching method and system of stepless scaling linkage SLG, and storage medium
CN121349582B