Methods, devices, electronic devices, storage media, and program products for interacting with virtual objects
By controlling the floating of virtual objects under specific conditions based on their interactive behavior, the problem of players being unable to actively intervene in the floating state is solved, improving interaction efficiency and saving computing resources.
Patent Information
- Application Number
- CN202510572039.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2045-04-30
AI Technical Summary
In existing technologies, players cannot actively intervene in the floating state of virtual objects, resulting in low efficiency and wasted computing resources in the interaction between virtual objects.
The virtual object floats by responding to its interactive behavior to meet the floating conditions. The floating conditions include triggering a pre-configured skill, arriving at a pre-configured area, using a pre-configured virtual item, or interacting with the virtual machine. The relevant resources are loaded only when the conditions are met.
It enhances the freedom of interaction between virtual objects and virtual systems, reduces operational difficulty, and saves computing resources in virtual scenes.
Smart Images

Figure CN120393419B_ABST
Abstract
Description
Technical Field
[0001] This application relates to computer technology, and more particularly to a method, apparatus, electronic device, storage medium, and program product for interacting with virtual objects. Background Technology
[0002] In related technologies, games use virtual objects to create a floating effect within specific levels or maps, enhancing the game's atmosphere. However, players lack the input methods to trigger changes in the floating objects' movement, placing them in a relatively passive position during gameplay. The virtual objects float according to preset patterns, preventing active intervention or utilization, thus reducing the efficiency of interaction between virtual objects. Furthermore, the continuous floating of virtual objects wastes computational resources required by the virtual scene.
[0003] Currently, there is no good way to improve the interaction efficiency between virtual objects and floating virtual objects. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for interacting with virtual objects, which can improve the efficiency of interaction between virtual objects and save the computing resources required for virtual scenes.
[0005] The technical solution of this application embodiment is implemented as follows: This application provides an interactive method for virtual objects, the method comprising: Displaying a virtual scene, wherein the virtual scene includes a first virtual object and a first virtual object; In response to the interactive behavior of the first virtual object satisfying a floating condition, the first virtual object is controlled to float, wherein the floating condition includes at least one of the following: The first virtual object triggers a pre-configured skill and executes a pre-configured interactive behavior in the virtual scene; The first virtual object has arrived at the pre-configured area in the virtual scene; The first virtual object uses pre-configured virtual items; The first virtual object interacted with the virtual machine in the virtual scene.
[0006] This application provides an interactive device for virtual objects, comprising: A display module is used to display a virtual scene, wherein the virtual scene includes a first virtual object and a first virtual object; The display module is further configured to control the first virtual object to float in response to the interaction behavior of the first virtual object satisfying the floating condition, wherein the floating condition includes at least one of the following: The first virtual object triggers a pre-configured skill and executes a pre-configured interactive behavior in the virtual scene; The first virtual object has arrived at the pre-configured area in the virtual scene; The first virtual object uses pre-configured virtual items; The first virtual object interacted with the virtual machine in the virtual scene.
[0007] This application provides an electronic device, the electronic device comprising: Memory is used to store executable instructions or computer programs. The processor, when executing computer-executable instructions or computer programs stored in the memory, implements the virtual object interaction method provided in the embodiments of this application.
[0008] This application provides a computer-readable storage medium storing computer-executable instructions or computer programs, which, when executed by a processor, implement the virtual object interaction method provided in this application.
[0009] This application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, they implement the virtual object interaction method provided in this application.
[0010] The embodiments of this application have the following beneficial effects: The system displays a first virtual object and a first virtual object within a virtual scene. In response to the first virtual object's interactive behavior satisfying floating conditions, the system controls the first virtual object to float. Multiple floating conditions are available, increasing the freedom of interaction between virtual objects. These various floating conditions correspond to different interactive behaviors, providing users with rich operational options, reducing operational difficulty, and improving interaction efficiency. By triggering the floating effect of virtual objects through conditions, compared to related technologies that set virtual objects to continuous floating, the system avoids maintaining a continuous floating effect. Resources related to object floating are only loaded and processed when the first virtual object's interactive behavior satisfies the floating conditions, thus saving computational resources required by the virtual scene. Attached Figure Description
[0011] Figure 1A This is a schematic diagram illustrating the application mode of the virtual object interaction method provided in the embodiments of this application; Figure 1BThis is a schematic diagram illustrating the application mode of the virtual object interaction method provided in the embodiments of this application; Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figure 3A This is a first flowchart illustrating the interaction method for virtual objects provided in an embodiment of this application; Figure 3B This is a second flowchart illustrating the interaction method for virtual objects provided in the embodiments of this application; Figure 4A This is a third flowchart illustrating the interaction method for virtual objects provided in the embodiments of this application; Figure 4B This is a schematic diagram of the fourth process of the virtual object interaction method provided in the embodiments of this application; Figure 5A This is a first schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 5B This is a second schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 5C This is a third schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 6A This is a fourth schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 6B This is the fifth schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 6C This is the sixth schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 7A This is the seventh schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 7B This is the eighth schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 7C This is the ninth schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 8A This is the tenth schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 8B This is the eleventh schematic diagram of the human-computer interaction interface provided in the embodiments of this application.
[0012] It should be noted that the terms "first" and "second" mentioned above are only used to distinguish between different options and do not represent the degree of superiority or inferiority of the options or their priority in the implementation process. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0014] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is 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.
[0015] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0016] It should be noted that the data collection and processing in this application should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0017] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0019] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0020] 1) Virtual scenes: These are scenes that differ from the real world, which are output by devices. Visual perception of virtual scenes can be formed with the naked eye or with the assistance of devices. For example, two-dimensional images are output through a display screen, and three-dimensional images are output through stereoscopic display technologies such as stereoscopic projection, virtual reality, and augmented reality. In addition, various possible hardware can be used to form various perceptions that simulate the real world, such as auditory perception, tactile perception, olfactory perception, and motion perception.
[0021] 2) Virtual objects: Objects that interact in a virtual scene, controlled by the user or a robot program (e.g., an AI-based robot program), and capable of remaining still, moving, and performing various behaviors in the virtual scene, such as various characters in a game.
[0022] 3) Human-Computer Interaction Interface: An interface used to provide human-computer interaction functions and display information flow. Examples include graphical user interfaces (GUIs), augmented reality (AR) interfaces, virtual reality (VR) interfaces, voice user interfaces (VUIs), interactive projection interfaces (using projection technology to display information on a flat surface), eye-tracking interfaces (interfaces controlled by detecting the user's gaze), holographic interfaces (three-dimensional holograms formed by projecting images using holographic projection technology, allowing viewing of stereoscopic images without special glasses), multimodal interfaces (interfaces combining multiple interaction methods, such as tactile, visual, and auditory interaction), and brain-machine interfaces (BMIs), etc.
[0023] 4) Static Mesh: Used to represent 3D models of static objects. It represents a predefined, non-deformable mesh, typically used for static environment objects in games, such as buildings, rocks, trees, furniture, and decorative components. Unlike skeletal meshes, static meshes usually do not contain skeletal animation. A skeletal mesh is a 3D model that contains bone and vertex weight information. It allows the individual parts of the model to be animated through the bones, thus achieving complex movements and expressions.
[0024] 5) Niagara System: A visual special effects (VFX) container system based on Unreal Engine. Through the functional composition of its core components—system, emitter, module, parameters, etc.—and the control and flexibility of the node-based interface, it provides games with richer functions and higher performance.
[0025] 6) Static Mesh Renderer: This is a component in the virtual engine used to render static meshes. It provides more functionality and control, such as collision detection, lighting and shadows, and motion behavior. The Static Mesh Component can be added to any basic Actor to render static meshes in the scene.
[0026] 7) Basic Object (Actor): In the virtual scene of the game, almost all game elements (such as players, enemies, props, lights, cameras, etc.) are subclasses of Actor.
[0027] 8) Animation Sequence: An animation sequence is a file that contains skeletal animation data. Each animation sequence file contains a set of skeletal animation data, which can be bound to a skeletal mesh.
[0028] In related technologies, games use virtual objects to create a floating effect within specific levels or maps, enhancing the game's atmosphere. However, players lack input methods to trigger changes in the floating objects' motion, placing them in a relatively passive position. The virtual objects float according to preset patterns, preventing active intervention or utilization, thus reducing the efficiency of interaction between virtual objects. Furthermore, the floating effect is achieved through skeletal animation, which consumes computational resources required by the virtual scene; therefore, the continuous floating of virtual objects also wastes these resources.
[0029] This application provides a method for interacting with virtual objects, a device for interacting with virtual objects, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the interaction efficiency between virtual objects and save the computing resources required for virtual scenes.
[0030] The following describes exemplary applications of the electronic devices provided in the embodiments of this application. These electronic devices can be implemented as terminal devices, such as laptops, tablets, desktop computers, set-top boxes, smart TVs, in-vehicle terminals, virtual reality (VR) devices, augmented reality (AR) devices, and other various types of terminals. They can also be implemented as servers. The following will describe exemplary applications when the electronic device is implemented as a terminal device or a server.
[0031] refer to Figure 1A , Figure 1AThis is a schematic diagram illustrating the application mode of the virtual object interaction method provided in the embodiments of this application; for example, Figure 1A The system involves server 200, network 300, terminal device 400, and database 500. Terminal device 400 is connected to server 200 through network 300, which can be a wide area network, a local area network, or a combination of both.
[0032] In the Figure 1A Before proceeding, let's first introduce the game modes involved in the terminal device and server collaborative implementation scheme. This scheme primarily involves two game modes: local game mode and cloud game mode. In local game mode, the terminal device and server collaboratively run the game processing logic. The player's input commands on the terminal device are partly processed by the terminal device's game logic, and partly by the server. Furthermore, the server-side game logic processing is often more complex and requires more computing power. In cloud game mode, the server handles all game logic processing, and the cloud server renders the game scene data into audio and video streams, which are then transmitted to the terminal device for display over the network. The terminal device only needs basic streaming media playback capabilities and the ability to receive player commands and send them to the server.
[0033] exist Figure 1A In this application, the virtual object interaction method provided in the embodiments is applied to the terminal device 400 and the server 200, and is suitable for application modes that rely on the computing power of the server 200 to complete the virtual scene calculation and output the virtual scene on the terminal device 400.
[0034] Taking the visual perception of forming a virtual scene as an example, server 200 calculates display data related to the virtual scene (such as scene data) and sends it to terminal device 400 via network 300. Terminal device 400 relies on graphics computing hardware to load, parse, and render the calculated display data, and relies on graphics output hardware to output the virtual scene to form visual perception. For example, two-dimensional video frames can be displayed on the screen of a smartphone, or video frames with a three-dimensional display effect can be projected onto the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that it can be achieved with the help of the corresponding hardware output of terminal device 400, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, and so on.
[0035] As an example, a client (such as a web-based game application) runs on the terminal device 400. During the operation of the client, the output includes a virtual scene for role-playing. The virtual scene can be an environment for game characters to interact with, such as a plain, street, valley, etc., for game characters to fight. The first virtual object can be a game character controlled by the user. That is, the first virtual object is controlled by the real user and will move in the virtual scene in response to the real user's operation on the controller (such as touch screen, voice switch, keyboard, mouse, and joystick). For example, when the real user moves the joystick to the right, the first virtual object will move to the right in the virtual scene. It can also stay still, jump, and be controlled to shoot, etc.
[0036] For example, the virtual scene can be a game virtual scene, the server 200 can be the server of the game platform, the user can be a player, the first virtual object is a virtual object controlled by the player, the first virtual object can be an obstacle (e.g., a rock, a box) or a tool (e.g., a cart, a chair, a parasol) in the virtual scene, and the virtual props can be props used for attack, production tools or fuel in the virtual scene. The following will be explained in conjunction with the above examples.
[0037] For example, server 200 runs a game process and sends the game screen corresponding to the first virtual object to terminal device 400. The human-computer interaction interface 103 in terminal device 400 displays a virtual scene, which includes the first virtual object 101 and the first virtual object 102. In response to a trigger operation for the interactive behavior of the first virtual object, server 200 controls the first virtual object 101 to perform interactive behavior in the virtual scene. In response to the interactive behavior of the first virtual object satisfying the floating condition, terminal device 400 sends an operation command to server 200 through network 300 to request the virtual object to float. Server 200 controls the first virtual object 102 to float and sends the image of the first virtual object 102 floating to terminal device 400, where the image of the first virtual object floating is displayed.
[0038] refer to Figure 1B , Figure 1B This is a schematic diagram of the application mode of the virtual object interaction method provided in the embodiments of this application. It is applicable to some application modes that rely entirely on the graphics processing hardware computing power of the terminal device 400 to complete the relevant data calculation of the virtual scene, such as stand-alone / offline games, and the output of the virtual scene is completed through various types of terminal devices 400 such as smartphones, tablets and virtual reality / augmented reality devices.
[0039] As an example, types of graphics processing hardware include central processing units (CPUs) and graphics processing units (GPUs).
[0040] When visual perception of a virtual scene is formed, the terminal device 400 calculates the data required for display through graphics computing hardware, and completes the loading, parsing and rendering of the display data. The graphics output hardware outputs video frames that can form visual perception of the virtual scene. For example, two-dimensional video frames are displayed on the display screen of a smartphone, or video frames that achieve a three-dimensional display effect are projected onto the lenses of augmented reality / virtual reality glasses. In addition, in order to enrich the perceptual effect, the terminal device 400 can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0041] As an example, the terminal device 400 runs a client (such as a standalone game application). During the operation of the client, the output includes a virtual scene for role-playing. The virtual scene can be an environment for game characters to interact with, such as a plain, street, valley, etc., for game characters to fight. The first virtual object can be a game character controlled by the user. That is, the first virtual object is controlled by the real user and will move in the virtual scene in response to the real user's operation on the controller (such as touch screen, voice switch, keyboard, mouse, and joystick). For example, when the real user moves the joystick to the right, the first virtual object will move to the right in the virtual scene. It can also stay still, jump, and be controlled to shoot, etc.
[0042] The virtual scene can be a game virtual scene, the server 200 can be the server of the game platform, the user can be a player, the first virtual object is the virtual object controlled by the player, the first virtual object can be an obstacle (e.g., a rock, a box) or a tool (e.g., a cart, a chair, a parasol) in the virtual scene, and the virtual props can be props used for attack, production tools or fuel in the virtual scene. The following will be explained with reference to the above examples.
[0043] For example, terminal device 400 runs a game process, and the human-computer interaction interface 103 in terminal device 400 displays a virtual scene, which includes a first virtual object 101 and a first virtual object 102; in response to a trigger operation for an interactive behavior of the first virtual object, the first virtual object 101 is controlled to perform interactive behavior in the virtual scene; in response to the interactive behavior of the first virtual object satisfying the floating condition, the first virtual object 102 is controlled to float, and the image of the first virtual object 102 floating is displayed.
[0044] In some embodiments, the terminal device or server can implement the virtual object interaction method provided in this application embodiment by running a computer program. For example, the computer executable instructions can be microprogram-level commands, machine instructions, or software instructions. The computer program can be a native program or software module in the operating system; it can be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a game APP or an instant messaging APP; or it can be a small program that can be embedded in any APP, that is, a program that only needs to be downloaded to the browser environment to run. In summary, the above-mentioned computer executable instructions can be any form of instruction, and the above-mentioned computer program can be any form of application, module, or plugin.
[0045] Taking a computer program as an example, in actual implementation, the terminal device 400 has an application that supports virtual scenes installed and running. This application can be any of the following: a first-person shooter (FPS) game, a third-person shooter game, a virtual reality application, a 3D map application, or a multiplayer survival game. Users use the terminal device 400 to manipulate virtual objects located in the virtual scene, and these activities include, but are not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up items, shooting, attacking, throwing, and constructing virtual buildings—at least one of these. Illustratively, the virtual object can be a virtual character, such as a realistic or anime character.
[0046] This application embodiment can be implemented using database technology. A database, simply put, can be viewed as an electronic filing cabinet storing electronic files, where users can perform operations such as adding, querying, updating, and deleting data. A "database" is a collection of data stored together in a certain way, capable of being shared by multiple users, having minimal redundancy, and being independent of application programs.
[0047] A Database Management System (DBMS) is a computer software system designed to manage databases, generally possessing basic functions such as storage, retrieval, security, and backup. DBMSs can be classified according to the database model they support, such as relational or XML (Extensible Markup Language); or according to the type of computer they support, such as server clusters or mobile devices; or according to the query language used, such as Structured Query Language (SQL) or XQuery; or according to performance priorities, such as maximum scale or maximum operating speed; or other classification methods. Regardless of the classification method used, some DBMSs can cross categories, for example, simultaneously supporting multiple query languages.
[0048] In some embodiments, the server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Electronic devices can be smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, etc., but are not limited to these. Terminal devices and servers can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.
[0049] See Figure 2 , Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may be... Figure 1A or Figure 1B Terminal device 400, Figure 2 The terminal device 400 shown includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal device 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 440.
[0050] Processor 410 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. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0051] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0052] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.
[0053] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.
[0054] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0055] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks; The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc. Presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 associated with user interface 430 (e.g., a display screen, a speaker, etc.). The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.
[0056] In some embodiments, the apparatus provided in this application can be implemented in software. Figure 2 An interactive device 455 for virtual objects stored in memory 450 is shown. This device can be software in the form of programs and plugins, including the following software modules: a display module 4551 and a rendering module 4552. These modules are logically linked and can therefore be arbitrarily combined or further separated according to the functions they implement. Figure 2 For ease of explanation, all the above modules are shown at once, but this should not be interpreted as excluding the implementation of the virtual object interaction device 455 which may only include the display module 4551. The functions of each module will be explained below.
[0057] The interactive method for virtual objects provided in this application will be described in conjunction with exemplary applications and implementations of the terminal devices provided in the embodiments of this application.
[0058] The following describes the virtual object interaction method provided in the embodiments of this application. As mentioned above, the electronic device implementing the virtual object interaction method of the embodiments of this application can be a terminal device or a server, or a combination of both. Therefore, the executing entity of each step will not be described again below.
[0059] It should be noted that the examples of virtual object interaction in the following text are illustrated using the example of a virtual object being a human-shaped object and a virtual object being used to simulate a real-world object. Based on the understanding of the following text, those skilled in the art can apply the virtual object interaction method provided in the embodiments of this application to the interaction processing of other types of virtual objects.
[0060] See Figure 3A , Figure 3A This is a flowchart illustrating the interaction method for virtual objects provided in the embodiments of this application, which will be combined with... Figure 3A The steps shown are explained. Figure 3A The entity responsible for executing the steps is Figure 1A or Figure 1B Terminal device 400.
[0061] In step 301, a virtual scene is displayed.
[0062] Here, the virtual scene includes the first virtual object and the first virtual object.
[0063] For example, the first virtual object is a virtual object used for floating in a virtual scene. The first virtual object consists of a 3D model and texture materials covering the surface of the 3D model. Besides the first virtual object, the virtual scene also includes various other virtual objects. The first virtual object is a virtual object controlled by the user using the terminal device. (Reference) Figure 5A , Figure 5A This is a first schematic diagram of the human-computer interaction interface provided in the embodiments of this application; the virtual scene 501A in the human-computer interaction interface includes a first virtual object 502A and a first virtual object 503A.
[0064] In step 302, in response to the first virtual object's interactive behavior satisfying the floating condition, the first virtual object is controlled to float.
[0065] For example, floating refers to the process of a first virtual object leaving the ground in a virtual scene and suspending itself in the air. The floating of the first virtual object can be achieved through skeletal animation, for example, the 3D model of the first virtual object rises as a whole and floats when it reaches a pre-configured height. The floating of the first virtual object can also be achieved through a visual effects container system, controlling the floating of textures covering the surface of the 3D model of the first virtual object, allowing the user to observe the visual appearance of the first virtual object floating. Floating conditions can include at least one of the following: the first virtual object uses a pre-configured skill, the first virtual object uses a virtual prop, the first virtual object reaches a specific area, or interacts with a specific mechanism. These are explained in detail below.
[0066] For example, the floating conditions include at least one of the following: Condition 1: The first virtual object triggers a pre-configured skill and executes a pre-configured interactive behavior in the virtual scene.
[0067] For example, a virtual skill refers to a specific function achieved in a game through specific operations or triggering conditions. In this embodiment, a pre-configured skill is used to trigger object floating. Pre-configured interactive behaviors are associated with pre-configured skills, and the object floating effect can only be triggered after both the pre-configured skill and the pre-configured interactive behavior have been executed. Furthermore, the execution of the pre-configured interactive behavior follows the execution of the pre-configured skill.
[0068] In some embodiments, when the floating condition is that the first virtual object triggers a pre-configured skill and performs a pre-configured interactive behavior in the virtual scene, before step 302, the skill control is displayed with a first graphic, wherein the first graphic represents that the virtual skill corresponding to the skill control has not been triggered; in response to the triggering operation for the skill control, the skill control is displayed with a second graphic, wherein the second graphic represents that the virtual skill corresponding to the skill control has been triggered; in response to the first virtual object performing the pre-configured interactive behavior associated with the virtual skill, the process proceeds to step 302.
[0069] For example, the first and second graphics differ in at least one of the following parameters: color, shape, and pattern. (Reference) Figure 5B , Figure 5B This is a second schematic diagram of the human-computer interaction interface provided in the embodiments of this application; Figure 5A After the skill control 504A, displayed in the first graphic, is triggered, it is displayed as... Figure 5B The skill control 501B, displayed in the second graphic, responds to the first virtual object 502A by performing pre-configured interactive behaviors (e.g., ...). Figure 5B (The virtual object in the middle has been moved), showing the first virtual object 503A floating.
[0070] In this embodiment of the application, the floating of virtual objects is triggered by pre-configured skills and pre-configured interactive behaviors, which can reasonably allocate the computing resources of the virtual scene. That is, the floating of virtual objects can only be triggered when specific conditions are met, which means that the virtual objects in the virtual scene will be triggered to float according to the user's needs, thereby improving the utilization efficiency of resources and avoiding excessive waste of resources.
[0071] Condition 2: The first virtual object has reached the pre-configured area in the virtual scene.
[0072] For example, the relationship between the pre-configured area and the first virtual object can be: the first virtual object is located within the pre-configured area; or the first virtual object is located outside the pre-configured area, and the first virtual object and the pre-configured area are interconnected. The shape and size of the pre-configured area can be set according to the needs of the actual application scenario. For example, if the pre-configured area contains multiple first virtual objects, then the pre-configured area can be a circle with the first virtual object as the center and a pre-configured distance as the radius. Another example: if the first virtual object is located outside the pre-configured area, the area of the pre-configured area is the area occupied by the virtual object's feet.
[0073] In some embodiments, when the floating condition is that the first virtual object has reached the pre-configured area in the virtual scene, before step 302, the pre-configured area is displayed in the virtual scene in a first display mode, wherein the first display mode is different from the display mode of other areas outside the pre-configured area; in response to the first virtual object reaching the pre-configured area in the virtual scene, the process proceeds to step 302.
[0074] For example, the first display method differs from the display methods of other areas outside the pre-configured area. This distinguishes the pre-configured area to guide the user's control of virtual objects to that area. (See reference.) Figure 6B , Figure 6BThis is the fifth schematic diagram of the human-computer interaction interface provided in the embodiments of this application. The virtual scene 601B includes multiple first virtual objects 603B and first virtual objects 602B. The pre-configured area 604B is displayed in a manner different from other areas. In response to the virtual object 602B moving into the pre-configured area 604B, the first virtual object 603B in the pre-configured area 604B floats.
[0075] In this embodiment, the pre-configured areas are displayed in a differentiated manner, which can guide users, improve interaction efficiency, and reduce operational difficulty. The virtual object's hovering is triggered when it reaches the pre-configured area; the corresponding hovering object is only loaded and displayed when the virtual object enters the specific area, avoiding unnecessary resource waste. In large open-world games, numerous items and prompts are distributed across the map. Displaying all of them with hovering effects in real time would put enormous pressure on the graphics card and processor. However, by adopting a trigger-based mechanism, displaying only when the virtual object reaches the pre-configured area, resource consumption can be significantly reduced, the smoothness of the virtual scene can be improved, and computing resources can be saved.
[0076] Condition 3: The first virtual object uses pre-configured virtual props.
[0077] In some embodiments, when the floating condition is that the first virtual object uses a pre-configured virtual prop, before step 302, the first virtual prop is displayed, wherein the first virtual prop is obtained by the first virtual object from the virtual scene or is held by the first virtual object; in response to a trigger operation for the first virtual prop, multiple first virtual props in the virtual scene are displayed in a second display mode, wherein the second display mode is different from the display mode of virtual props other than the first virtual prop; in response to a selection operation for any one of the first virtual props, the selected first virtual object is controlled to float.
[0078] For example, virtual props can be tools used for attacking, production, or as energy in a virtual scene. Examples include attack tools (e.g., sticks, slingshots), production tools (e.g., shovels, wrenches, or hammers), and tools used as energy (e.g., fuel).
[0079] For example, after using virtual props, multiple first virtual objects that can be used for floating are highlighted. Selecting a first virtual object makes it the first virtual object to be controlled for floating. Secondary display methods include, but are not limited to, displaying it with other colors, bounding boxes, or filters. (See reference) Figure 6A , Figure 6AThis is a fourth schematic diagram of the human-computer interaction interface provided in this application embodiment; the virtual scene 601A includes multiple first virtual objects and first virtual objects 602A. Compared to the second virtual object 605A, the first virtual objects 604A and 603A, which can be used for floating, are displayed in the form of a dashed bounding box. In response to a selection operation on the first virtual object 603A, the first virtual object 603A is displayed in a manner different from that of the first virtual object 604A, such as... Figure 6A As shown, a solid-line bounding box exists outside the dashed bounding box. After the first virtual object 603A is selected, it is controlled to float.
[0080] In this embodiment, by allowing the user to actively select floating virtual objects, computational resources are saved by avoiding the simultaneous floating of a large number of virtual objects. In a virtual scene, to achieve realistic physical effects, physical simulation calculations, such as gravity and collision detection, are required for objects. When the user selects only some objects to float, only these floating objects need to be physically simulated, rather than calculating all objects in the scene. This significantly reduces the scope and complexity of physical calculations and lowers the computational burden on the processor.
[0081] In some embodiments, when the virtual prop is a virtual attack prop, when controlling the first virtual object to float, in response to an attack operation by the first virtual object against the first virtual object based on the virtual attack prop (e.g., shooting with a bow and arrow, hitting the virtual object with a stick), the floating state of the first virtual object is adjusted according to the parameters of the interactive operation in at least one of the following ways: Method 1: Extend the floating time of the first virtual object based on the number of times the attack operation is executed, where the number of executions is positively correlated with the extended floating time.
[0082] For example, during the floating period of a virtual object, its floating time can be extended through attack operations. Each attack on the virtual object increases the floating time by a preset amount. At the same time, a maximum number of attacks can be set; once this limit is reached, further attacks on the virtual object will not increase the floating time.
[0083] Method 2: Adjust the direction of motion of the first virtual object during its floating process according to the first direction from the center point of the first virtual object to the hit position.
[0084] For example, the hit location is the position where the first virtual object is attacked by the attack operation, and the first direction is opposite to the direction of movement. For example, if the left side is attacked, the object will move to the right. That is, the floating movement trajectory can conform to the collision principle of virtual props, moving in the opposite direction of the virtual prop's shooting direction, and simulating the principle of gravity to control the fall of the virtual object.
[0085] refer to Figure 7C , Figure 7C This is the ninth schematic diagram of the human-computer interaction interface provided in this application embodiment. A virtual object 703C holds a virtual prop 704C, which is a virtual bow and arrow. When the first virtual object is at a historical position 702C, in response to a shooting operation targeting the virtual object, the virtual object moves from the historical position 702C to the current position 701C. Assuming the hit position 705C is at the lower left corner of the virtual object, and the first direction is from the center of the virtual object to the lower left corner, then the opposite direction of the first direction is towards the upper right corner, so the virtual object moves to the upper right.
[0086] In this embodiment, virtual props are used to interact with virtual objects, and the movement of the virtual objects during the floating process is controlled, thus enriching the interaction methods.
[0087] Condition 4: The first virtual object interacted with the virtual machine in the virtual scene.
[0088] In some embodiments, when the floating condition is that the first virtual object and the virtual machine switch in the virtual scene have performed an interactive behavior, before step 302, in response to the distance between the current position of the first virtual object and the position of the virtual machine switch being less than a distance threshold, a first prompt message is displayed, wherein the first prompt message is used to indicate that the virtual machine switch can be used to perform interactive behavior; in response to the first virtual object and the virtual machine switch in the virtual scene having performed an interactive behavior, the process proceeds to step 302.
[0089] For example, the distance threshold can be set according to actual needs. The first prompt message is only displayed when the distance between the current position of the first virtual object and the position of the virtual machine is less than the distance threshold, eliminating the need for continuous display and saving computing resources in the virtual scene. Simultaneously, the prompt message guides the user to control the virtual object to perform interactive behaviors. (Reference) Figure 6C , Figure 6C This is the sixth schematic diagram of the human-computer interaction interface provided in this application embodiment. The virtual scene 601C includes a first virtual object 602C. When the first virtual object 602C reaches the vicinity of the virtual machine gate 605C, a prompt message is displayed near the virtual machine gate 605C, for example: Figure 6C The "interactive" feature in virtual machine 605C includes a handle. In response to interaction between virtual object 602C and virtual machine 605C, the handle of virtual machine 605C moves to the other side, while simultaneously displaying a screen showing the first virtual object 603C floating.
[0090] In this embodiment, displaying prompts guides the user to control virtual objects and interact with virtual machine switches, which improves interaction efficiency and reduces operational difficulty. Employing a trigger-based mechanism, where virtual objects only interact with virtual machine switches, significantly reduces resource consumption, enhances the smoothness of the virtual scene, and conserves computing resources.
[0091] In some embodiments, step 302 can be implemented by: controlling the first virtual object to rise according to a first speed, wherein the first speed is the ratio between a pre-configured height and a pre-configured rise time; and controlling the first virtual object to float at the pre-configured height in response to the first virtual object's current height reaching the pre-configured height.
[0092] For example, the pre-configured height, pre-configured rise time, and floating trajectory can be set by the artist, supporting different floating types for different objects. (Reference) Figure 5C In the virtual scene, the first virtual object 503C and several other first virtual objects 505C have different floating heights and floating postures. Each first virtual object corresponds to a different pre-configured height.
[0093] In some embodiments, prior to step 302, refer to Figure 3B , Figure 3B This is a schematic diagram of the second process of the virtual object interaction method provided in the embodiments of this application. Execution Figure 3B Steps 3021 to 3023 are explained in detail below.
[0094] In step 3021, at least one of the multiple virtual objects is designated as the first virtual object.
[0095] Here, the first virtual object is the object used for floating.
[0096] For example, the tagging process can be automatically executed by the server or terminal device based on pre-configured information of the virtual scene. This pre-configured information can be set by technical personnel.
[0097] In step 3022, in response to the interaction behavior of the first virtual object satisfying the floating condition, virtual objects within the first field of view of the first virtual object are detected.
[0098] For example, the first field of view of the first virtual object refers to the range of vision that can be seen when observing the virtual scene from the perspective of the first virtual object. The virtual objects within the first field of view are traversed, and the type of each traversed virtual object is determined. The types of virtual objects include a first virtual object and a second virtual object. The first virtual object is a marked object, and the second virtual object is an unmarked object; that is, the second virtual object is an object not used to perform floating.
[0099] In step 3023, in response to the presence of a first virtual object within the first field of view, the first virtual object is controlled to float.
[0100] For example, if no first virtual object, i.e. no marked object, is found within the field of view, the process ends.
[0101] In some embodiments, step 302 can be implemented by: controlling the 3D model of the first virtual object to be in a hidden state, and setting the texture material covering the surface of the 3D model as the drawing target (Mesh Renderer), wherein the drawing target is used for display, the 3D model in the hidden state occupies space in the virtual scene, and the texture material does not occupy space in the virtual scene; controlling the texture material to float.
[0102] For example, the mesh renderer is driven by a visual effects system used to render special effects assets in a virtual scene. By setting texture assets as the rendering targets for special effects, the movement of the texture assets within the image can be controlled by driving the effects, allowing the texture assets to float while maintaining the positional information of the 3D model. Since texture assets do not occupy space, no physical collision calculations are needed during the floating process, saving computational resources. (Reference) Figure 5C , Figure 5C This is a third schematic diagram of the human-computer interaction interface provided in this application embodiment; the virtual scene includes a first virtual object 503C and a virtual object 504C, the original position 501C of the first virtual object is the static mesh of the first virtual object, and the display position 502C displays the texture material of the first virtual object. Therefore, the user can see the following screen in the virtual scene: the virtual object floats and there is no virtual object at the original position of the virtual object.
[0103] In this embodiment, only the texture material of the virtual object is controlled to float, while the three-dimensional model of the virtual object does not need to participate in the physical simulation, which saves the computing resources of the virtual scene. Only the graphics processor needs to operate, thus avoiding the lag of the central processing unit of the virtual scene.
[0104] In some embodiments, step 302 can be implemented by: controlling the first virtual object to rise according to a pre-configured trajectory; and controlling the first virtual object to float at the pre-configured height in response to the first virtual object's current height reaching the pre-configured height.
[0105] For example, the pre-configured trajectory can be preset by the technician, and the pose of the first virtual object can change when the first virtual object floats at the pre-configured height.
[0106] In some embodiments, step 302 can be implemented by: controlling the first virtual object to rise, and controlling the displacement of the first virtual object in the horizontal direction according to the change in the line of sight of the first virtual object, wherein the change in line of sight is an angular change in the horizontal direction, and the length of the displacement is positively correlated with the angular change; in response to the current height of the first virtual object reaching a pre-configured height, controlling the first virtual object to stop moving in the horizontal direction, and controlling the first virtual object to float at the pre-configured height.
[0107] For example, changes in gaze direction can be generated by the user controlling the orientation of the virtual object's head, such as by using a mouse, keyboard, joystick, or inertial sensor to adjust the virtual object's facing direction. (Reference) Figure 7B , Figure 7B This is the eighth schematic diagram of the human-computer interaction interface provided in the embodiments of this application; there is a motion trajectory between the original position 702B and the current position 701B of the virtual object. When the virtual object floats upward, the line of sight of the virtual object 703B is shifted by an angle of 1, and the motion trajectory forms a displacement of D.
[0108] In this embodiment, the movement direction of the virtual object is controlled by the gaze direction of the virtual object, and the movement trajectory of the virtual object is generated in real time by the gaze direction of the virtual object, without the need to extract and store the movement trajectory of the virtual object, thus saving storage resources.
[0109] In some embodiments, step 302 can be implemented in the following ways: Based on the first motion trajectory of the first virtual object in the horizontal direction, the first virtual object is controlled to float in the vertical direction with a second motion trajectory, wherein the second motion trajectory is the projection of the first motion trajectory in the vertical direction, and the movement speed of the first virtual object is positively correlated with the movement speed of the first virtual object; in response to the first virtual object's current height reaching a preset height, the first virtual object is controlled to float at the preset height.
[0110] For example, the second motion trajectory is the vertical projection of the first motion trajectory. The projection method could be to rotate the first motion trajectory horizontally 90 degrees to the right of the virtual object, and then rotate the rotated first motion trajectory vertically upwards to form the second motion trajectory. (Reference) Figure 7A , Figure 7A This is the seventh schematic diagram of the human-computer interaction interface provided in the embodiments of this application; there is a motion trajectory between the original position 702A and the current position 701A of the virtual object. When the virtual object floats upward, the second motion trajectory of the virtual object is synchronously controlled according to the first motion trajectory of the virtual object 703A.
[0111] In this embodiment, the floating of virtual objects is controlled by the movement of virtual objects, which enriches the interactive forms. The movement trajectory of virtual objects is generated in real time through the movement trajectory of virtual objects, eliminating the need to extract and store the movement trajectory of virtual objects, thus saving storage resources.
[0112] In some embodiments, when step 302 is performed, a scene of the first virtual object floating is displayed in the first view of the first virtual object and the second view of the second virtual object, wherein the first virtual object and the second virtual object are in the same camp; in the third view of the third virtual object, a three-dimensional model of the first virtual object and texture material covering the surface of the three-dimensional model are displayed at the original position of the first virtual object, wherein the third virtual object and the first virtual object are in different camps.
[0113] For example, floating and transparency effects can apply only to the current user's virtual character, or to virtual objects of the same faction as the current user's virtual character, while the original model is displayed in the user interface for virtual objects of other factions. (Reference) Figure 8A , Figure 8A This is the tenth schematic diagram of the human-computer interaction interface provided in this application embodiment. The virtual scene includes a first virtual object 803A holding a virtual prop 804A. When the first virtual object is not floating, it is displayed at its original position 802A in the field of view of the first virtual object 803A. In response to the first virtual object floating, the floating first virtual object is displayed at its current position 801A. Due to the movement of the first virtual object, a third virtual object 805A is also displayed in the field of view of the first virtual object 803A. Since the third virtual object 805A is not the virtual object that triggered the first virtual object to float, the first virtual object remains at its original position 802A in the field of view of the third virtual object 805A.
[0114] In this embodiment, displaying a third virtual object following the virtual object facilitates user observation of the virtual scene and expands the field of view of the virtual object. In multiplayer online virtual scenes, it is necessary to synchronize the operations and scene information of each player in real time. In online game scenarios, only the relevant information of the virtual object that triggers the floating of the virtual object (such as position, status, etc.) needs to be transmitted and synchronized over the network, without needing to transmit the data of all objects. This reduces the amount of network data transmitted, lowers the network bandwidth requirements, and improves the game's response speed and stability.
[0115] In some embodiments, when there is an occlusion relationship between the first virtual object and the third virtual object at the original position, and the first virtual object is not floating, the third virtual object is hidden in the first view of the first virtual object; when the first virtual object is controlled to float, the third virtual object is displayed in the first view of the first virtual object; in response to an attack operation by the first virtual object against the third virtual object, the damage value suffered by the third virtual object is displayed according to the impact resistance parameter of the first virtual object and the penetration performance parameter of the attack operation, wherein the attack operation passes through the original position of the first virtual object.
[0116] For example, when a virtual object is floating, if a virtual object is hiding behind its 3D model, the obscured virtual object can be revealed. Since the 3D model remains in its original position, when the first virtual object shoots at the 3D model of the virtual object using a virtual prop, the physical blocking effect of the transparent 3D model on the attack still needs to be considered. For instance, if a third virtual object is hiding behind a virtual object, the damage value received by the third virtual object is determined by the impact resistance parameter and the penetration performance parameter of the attack operation. Assuming the impact resistance parameter and the penetration performance parameter of the attack operation are expressed as percentages, where the impact resistance parameter is the probability that the virtual object resists impact, and the penetration performance parameter is the probability that the attack operation penetrates the object, then the damage value equals the original damage value of the virtual prop. (Penetration performance parameters - impact resistance parameters).
[0117] In this embodiment, displaying a third virtual object following the virtual object facilitates user observation of the virtual scene and expands the field of view of the virtual object. It also facilitates interaction between users and enriches the interaction mechanisms within the virtual scene.
[0118] In some embodiments, after step 302, in response to the first virtual object floating at a pre-configured height for a pre-configured duration, the first virtual object is controlled to land, wherein the landing position of the first virtual object is the original position of the three-dimensional model of the first virtual object.
[0119] For example, the virtual object begins to descend after floating for a preset duration. The original position of the first virtual object's 3D model refers to its position when it is not floating. The preset duration can be set according to the actual application scenario.
[0120] In some embodiments, after step 302, if the first virtual object is floating, the first virtual object is controlled to land in response to the interaction behavior of the first virtual object satisfying the landing conditions, wherein the landing conditions include at least one of the following: Condition 1: The first virtual object repeatedly triggers the pre-configured skill in the virtual scene; For example, the landing of a virtual object can be achieved by repeatedly executing the floating condition. That is, the landing condition can be the repeated execution of the content corresponding to the floating condition. (See reference) Figure 5B In response to a trigger operation on skill control 501B, skill control 501B switches to... Figure 5A The skill control 504A in the middle, and the first virtual object is switched to Figure 5A The scene in the video.
[0121] Condition 2: The current position of the first virtual object is outside the pre-configured area.
[0122] Condition 3: The first virtual object reuses a pre-configured virtual item.
[0123] Condition 4: The first virtual object and the virtual machine in the virtual scene repeatedly performed interactive behavior.
[0124] For example, landing conditions 2 to 4 are the reverse execution of floating conditions, and the principle is similar, so they will not be repeated here.
[0125] In this embodiment of the application, by setting landing conditions, the landing process of virtual objects in the virtual scene is made controllable, avoiding the continuous floating of virtual objects in the virtual scene, saving the computing resources of the virtual scene, enriching the visual effects of the virtual scene, and also avoiding the lag of the virtual scene.
[0126] In some embodiments, after step 302, in response to a location selection operation in the virtual scene, the selected target location is highlighted. In response to a pathfinding operation between the target location and the current location of the first virtual object in the virtual scene, the locations of obstacles in the virtual scene are determined, wherein the obstacle locations include the original locations of the first virtual object before it floats; based on the obstacle locations, the target location, and the current location of the first virtual object, a path trajectory between the target location and the current location of the first virtual object is generated and displayed, wherein the path trajectory does not pass through the obstacle locations.
[0127] For example, highlighting the selected target location can be achieved through specular highlighting, outlining with a bounding box, or marking with a marker. When the first virtual object floats, the root coordinates of its static mesh remain unchanged, not affecting path generation during the pathfinding process. Therefore, the first virtual object acts as an obstacle in the virtual scene. (Reference) Figure 8B , Figure 8BThis is the eleventh schematic diagram of the human-computer interaction interface provided in this application embodiment. The virtual object floats from its original position 802B to its current position 801B. Point B is the target position, and point A is the current position of the virtual object 803B. The shortest path between point B and point A is a line segment passing through the original position 802B of the virtual object. However, the original position 802B of the virtual object still contains a hidden 3D model of the virtual object. Therefore, the path between point B and point A bypasses the original position 802B of the virtual object.
[0128] In this embodiment, the position coordinates of the virtual object remain unchanged. Thus, the floating virtual object acts as an obstacle on the ground and participates in the path generation for pathfinding. Regardless of how the object floats in the virtual scene, the path in the virtual scene is calculated based on the obstacle information of the original map. There is no need to change the floating of the object in the virtual scene, which saves the computing resources required to calculate the path in the virtual scene.
[0129] In this embodiment, a first virtual object and a first virtual object are displayed in a virtual scene. In response to the interactive behavior of the first virtual object satisfying floating conditions, the first virtual object is controlled to float. Multiple floating conditions are available, increasing the freedom of interaction between virtual objects. These various floating conditions correspond to different interactive behaviors, providing users with rich operational options, reducing operational difficulty, and improving interaction efficiency. By triggering the floating effect of the virtual object through conditions, compared to related technologies that set virtual objects to continuous floating, there is no need to maintain the continuous floating effect of the virtual object. Resources related to the object's floating are only loaded and processed when the interactive behavior of the first virtual object satisfies the floating conditions, thus saving computational resources required by the virtual scene. Maintaining the position of the virtual object's 3D model and controlling only the floating of the virtual object's texture material eliminates the need to adjust the resources required for the virtual object's physical collision, further saving computational resources of the virtual scene.
[0130] The following will describe an exemplary application of the virtual object interaction method of this application in a real-world application scenario.
[0131] In client-side games using related technologies, the floating effect of objects within a scene is primarily achieved by editing each side of the skeletal mesh individually, including its motion characteristics, floating parameters, and even creating independent animation sequence files. For example, in specific levels of a game, editing virtual objects within the skeletal mesh creates a floating effect, enhancing the game's visual presentation and atmosphere.
[0132] However, floating objects in virtual scenes only exist in a static, swaying state, exhibiting a limited visual experience. Users lack the means to input actions to alter their movement. Interaction with floating objects is limited to specific combat phases within a level, resulting in low freedom of interaction between virtual objects. Furthermore, this floating mechanism requires skeletal animation, which necessitates a division of labor among technical personnel, leading to low production efficiency. Running skeletal animation also consumes significant computing resources required by the virtual scene, and multiple floating virtual objects can cause lag or stuttering.
[0133] This application provides a method for interacting with virtual objects. Based on a Visual Special Effects (VFX) container system (e.g., Niagara system), using a static mesh in a conventional scene without creating actual animation sequences, designated virtual objects are pre-marked. When the interactive behavior of a virtual object meets preset conditions, it is set as the rendering target of the visual effects system's mesh renderer, and the original static mesh is hidden. This allows the virtual object to perform motion actions similar to driving particles: rising, floating, and falling back to its original position.
[0134] refer to Figure 4A , Figure 4A This is a schematic diagram of the third process of the virtual object interaction method provided in the embodiments of this application; it will be combined with Figure 4A The steps shown are explained. Figure 4A The entity responsible for executing the steps is Figure 1A or Figure 1B Terminal device 400.
[0135] In step 401A, in response to the virtual object's interactive behavior in the virtual scene satisfying the floating condition, the type of virtual object within the pre-configured range of the virtual object is detected.
[0136] For example, the floating condition is a pre-configured condition. When the floating condition is met, it controls the pre-configured virtual objects in the virtual scene to float. The pre-configured range of the virtual object refers to the pre-configured range centered on the virtual object; the specific size can be set according to the actual application scenario. The types of virtual objects include marked objects and unmarked objects. The marked object (the first virtual object mentioned above) is the object used to perform the floating action. The following is an example of the floating condition: triggering a pre-configured skill and executing the corresponding interactive behavior. Interactive behaviors include, but are not limited to, the virtual object running, walking, jumping, etc.
[0137] Figure 5AThis is a first schematic diagram of a human-computer interaction interface provided in an embodiment of this application. The virtual scene 501A in the human-computer interaction interface includes a first virtual object 502A, a first virtual object 503A, and a skill control 504A. The skill control 504A is used to trigger a virtual skill that causes the virtual object to float. In response to the triggering operation of the skill control 504A, the skill control 504A is displayed in another display mode, which indicates that the first virtual object 502A is in the state of using a skill.
[0138] Figure 5B This is a second schematic diagram of the human-computer interaction interface provided in the embodiments of this application; the skill control 504A, displayed in other ways, is represented as... Figure 5B Skill control 501B in the middle, in the skill control with Figure 5B When displayed in the specified manner, in response to the first virtual object 502A, pre-configured interactive behaviors are performed (e.g.: Figure 5B (The virtual object in the middle has been moved), showing the first virtual object 503A floating.
[0139] In step 402A, if a marked object exists within the pre-configured range, the original model of the marked object is set to a hidden state, and the texture material of the marked object is set as the drawing target of the effects renderer.
[0140] For example, a virtual object consists of a static mesh (e.g., a 3D model) and a mesh asset. A mesh asset is, for example, a texture overlaid on the 3D model. Visual effects systems are typically used to control the representation of special effects and materials. Setting a texture as the rendering target of the effects renderer means setting floating objects in the scene as mesh renderers that can be driven by the visual effects system. This achieves a control system that calls upon the graphics processor for high-performance computation of the floating object's representation. By setting a specified mesh asset as the rendering target of the mesh renderer—that is, by rendering the texture of the virtual object through the visual effects system—and controlling the floating of the texture, a floating similar to special effects materials can be achieved; and by hiding the original model's form, the floating of the texture can be driven by the visual effects system, resulting in a natural floating object appearance.
[0141] To ensure that pathfinding remains unaffected within the original virtual scene, the collision positions and logic of floating objects remain unchanged. The actual root coordinate system (RCS) of the floating objects also remains unchanged. The root coordinate system is the fundamental coordinate system in the scene, used to uniformly define and describe the position and orientation of all objects. It serves as a global, fixed, and unified reference frame, ensuring the consistency and stability of the scene.
[0142] In some embodiments, in response to repeated triggering of the skill control, Figure 5B The screen switched to Figure 5A In this scenario, the virtual object lands. That is, the virtual object stops moving, floats for a certain duration, and then lands. The landing position is the same as its original position before floating. During the floating process, the object's mesh data is not modified, so the root coordinates of the virtual object do not change, and the object returns to its original position after floating.
[0143] In step 403A, the texture material of the marked object is controlled to float.
[0144] In this embodiment, since the static mesh relies neither on skeletons nor on action sequences, there is almost no performance overhead when the virtual object is not floating. When the virtual object is floating, the required rendering processing is implemented by the graphics processor driving the mesh renderer. The swaying effect of the floating object is a rigid body simulation, which is a simulation without deformation. (Reference) Figure 5C , Figure 5C This is a third schematic diagram of the human-computer interaction interface provided in this application embodiment; the virtual scene includes a first virtual object 503C and a virtual object 504C, the original position 501C of the first virtual object is the static mesh of the first virtual object, and the display position 502C displays the texture material of the first virtual object. Therefore, the user can see the following screen in the virtual scene: the virtual object floats and there is no virtual object at the original position of the virtual object.
[0145] refer to Figure 4B , Figure 4B This is a schematic diagram of the fourth process of the virtual object interaction method provided in the embodiments of this application; Figure 4B yes Figure 4A One implementation of the steps in the process.
[0146] In step 401B, objects in the virtual scene are detected in response to the floating condition being met.
[0147] For example, before step 401B is executed, a technician (e.g., an artist or programmer) sets up a marker object in the virtual scene to perform the floating action.
[0148] In step 402B, it is determined whether a marked object exists.
[0149] If a marked object exists, steps 403B and 404B are executed simultaneously. In step 403B, the original model of the marked object is hidden. In step 404B, the texture material corresponding to the marked object is set as the drawing target of the effects renderer.
[0150] If no marked object exists, the process ends.
[0151] In step 405B, a screen showing the marked object rising is displayed according to the pre-configured parameters.
[0152] For example, the pre-configured parameters include: the maximum height the object can reach, the time required for the object to reach the maximum height from its original position, and the duration the object floats at the maximum height. These pre-configured parameters are set by technical personnel. The floating height can be controlled independently based on the default values.
[0153] In step 406B, in response to the marked object reaching a preset height, a screen showing the marked object floating at the preset height is displayed.
[0154] The floating process of virtual objects can be configured by artists, supporting different floating types for different objects, which can be achieved by adjusting the fade-out time. Based on the floating height and floating duration, the floating objects driven by the visual effects system have different rising rates and rhythms. Fade-out time refers to the effect of gradually decreasing volume or brightness in audio or video editing. In this application embodiment, the fade-out time is used as a preset time, which includes: the time required for the object to move from its original position to its maximum height, and the duration the object floats at its maximum height. (Continue to refer to...) Figure 5C The first virtual object 503C and several other virtual objects 505C in the virtual scene have different floating heights and floating postures.
[0155] The virtual object interaction method provided in this application has the following effects: High degree of freedom: Players have the ability to change the movement state of floating objects. That is, by turning on and off the corresponding skill controls, players can continuously activate or deactivate the corresponding behavior of floating objects, resulting in higher interactivity and operational freedom.
[0156] High production efficiency: By leveraging the underlying technology of the visual effects system to drive the mesh renderer, art editors can quickly configure tools, significantly improving the project team's efficiency in configuring floating objects, while maintaining stable performance. The elimination of the need to generate animation sequences also greatly saves production time. The floating object mechanism driven by the visual effects system effectively categorizes and layers interactive and static, non-interactive objects within the scene, providing more tools and methods for level and mission design within the game.
[0157] Extremely low performance overhead: Because static meshes are used instead of skeletal meshes, and when the floating object effect is enabled, the static mesh is set as the mesh renderer of the visual effects system, while the original model is hidden. Therefore, the overall atmosphere of the floating objects is driven by the graphics processor, eliminating central processing unit overhead. The number, type, and movement trajectory of floating objects within the scene have virtually no performance limitations.
[0158] The following description continues to illustrate the exemplary structure of the virtual object interaction device 455 provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2 As shown, the software modules in the interactive device 455 for virtual objects stored in the memory 450 may include: Display module 4551 is used to display a virtual scene, wherein the virtual scene includes a first virtual object and a first virtual object; display module 4551 is also used to control the first virtual object to float in response to the interactive behavior of the first virtual object satisfying a floating condition, wherein the floating condition includes at least one of the following: The first virtual object triggers a pre-configured skill and performs a pre-configured interactive behavior in the virtual scene; the first virtual object arrives at a pre-configured area in the virtual scene; the first virtual object uses a pre-configured virtual prop; the first virtual object performs an interactive behavior with a virtual machine in the virtual scene.
[0159] In some embodiments, the display module 4551 is configured to control the first virtual object to rise according to a first speed, wherein the first speed is a ratio between a pre-configured height and a pre-configured rise time; and to control the first virtual object to float at the pre-configured height in response to the first virtual object's current height reaching the pre-configured height.
[0160] In some embodiments, the rendering module 4552 is configured to: mark at least one virtual object among a plurality of virtual objects as a first virtual object before controlling the first virtual object to float, wherein the first virtual object is an object for floating; detect virtual objects within a first field of view of the first virtual object in response to the interactive behavior of the first virtual object satisfying the floating condition; and proceed to the step of controlling the first virtual object to float in response to the presence of the first virtual object within the first field of view.
[0161] In some embodiments, the display module 4551 is used to control the three-dimensional model of the first virtual object to be in a hidden state, and to set the texture material covering the surface of the three-dimensional model as a drawing target, wherein the drawing target is used for display, the three-dimensional model in the hidden state occupies space in the virtual scene, and the texture material does not occupy space in the virtual scene; and to control the texture material to float.
[0162] In some embodiments, the display module 4551 is configured to control the first virtual object to rise according to a pre-configured trajectory; and to control the first virtual object to float at the pre-configured height in response to the first virtual object's current height reaching the pre-configured height.
[0163] In some embodiments, the display module 4551 is used to control the first virtual object to rise, and Based on the change in the gaze direction of the first virtual object, control the displacement of the first virtual object in the horizontal direction, wherein the change in gaze direction is an angular change in the horizontal direction, and the length of the displacement is positively correlated with the angular change; in response to the first virtual object's current height reaching a pre-configured height, control the first virtual object to stop displacing in the horizontal direction, and control the first virtual object to float at the pre-configured height.
[0164] In some embodiments, the display module 4551 is used for controlling the floating of the first virtual object, including: Based on the first motion trajectory of the first virtual object in the horizontal direction, the first virtual object is controlled to float in the vertical direction with a second motion trajectory, wherein the second motion trajectory is the projection of the first motion trajectory in the vertical direction, and the movement speed of the first virtual object is positively correlated with the movement speed of the first virtual object; in response to the first virtual object's current height reaching a preset height, the first virtual object is controlled to float at the preset height.
[0165] In some embodiments, the display module 4551 is configured to, before controlling the first virtual object to float, display a skill control in a first graphic, wherein the first graphic represents that the virtual skill corresponding to the skill control has not been triggered, when the floating condition is that the first virtual object triggers a pre-configured skill and performs a pre-configured interactive behavior in the virtual scene; in response to a triggering operation on the skill control, display the skill control in a second graphic, wherein the second graphic represents that the virtual skill corresponding to the skill control has been triggered; and in response to the first virtual object performing the pre-configured interactive behavior associated with the virtual skill, proceed to the step of controlling the first virtual object to float.
[0166] In some embodiments, the display module 4551 is configured to, when the floating condition is that the first virtual object has reached a pre-configured area in the virtual scene, display the pre-configured area in the virtual scene in a first display mode before controlling the first virtual object to float, wherein the first display mode is different from the display mode of other areas outside the pre-configured area; and in response to the first virtual object reaching the pre-configured area in the virtual scene, proceed to the step of controlling the first virtual object to float.
[0167] When the floating condition is that the first virtual object has performed an interactive behavior with the virtual machine switch in the virtual scene, before controlling the first virtual object to float, in response to the distance between the current position of the first virtual object and the position of the virtual machine switch being less than a distance threshold, a first prompt message is displayed, wherein the first prompt message is used to indicate that the virtual machine switch can be used to perform interactive behavior; in response to the first virtual object having performed an interactive behavior with the virtual machine switch in the virtual scene, the process proceeds to the step of controlling the first virtual object to float.
[0168] In some embodiments, the display module 4551 is configured to, when the floating condition is that the first virtual object uses a pre-configured virtual prop, display a first virtual prop before controlling the first virtual object to float, wherein the first virtual prop is obtained by the first virtual object from the virtual scene or held by the first virtual object; in response to a trigger operation for the first virtual prop, display a plurality of the first virtual props in the virtual scene in a second display mode, wherein the second display mode is different from the display mode of virtual props other than the first virtual prop; and in response to a selection operation for any one of the first virtual props, control the selected first virtual object to float.
[0169] In some embodiments, the display module 4551 is configured to, when the virtual prop is a virtual attack prop and the first virtual object is controlled to float, adjust the floating state of the first virtual object in response to an attack operation by the first virtual object based on the virtual attack prop against the first virtual object in at least one of the following ways according to the parameters of the interactive operation: The floating duration of the first virtual object is extended according to the number of times the attack operation is executed, wherein the number of executions is positively correlated with the extended floating duration; the movement direction of the first virtual object during the floating process is adjusted according to a first direction from the center point of the first virtual object to the hit position, wherein the hit position is the position where the first virtual object is attacked by the attack operation, and the first direction is opposite to the movement direction.
[0170] In some embodiments, the display module 4551 is configured to, when controlling the first virtual object to float, display the image of the first virtual object floating in the first view of the first virtual object and the second view of the second virtual object, wherein the first virtual object and the second virtual object are in the same camp; and in the third view of the third virtual object, display the three-dimensional model of the first virtual object and the texture material covering the surface of the three-dimensional model at the original position of the first virtual object, wherein the third virtual object and the first virtual object are in different camps.
[0171] In some embodiments, the display module 4551 is configured to: hide the third virtual object in the first view of the first virtual object when there is an occlusion relationship between the first virtual object and the third virtual object at the original position and the first virtual object is not floating; display the third virtual object in the first view of the first virtual object when the first virtual object is controlled to float; and display the damage value suffered by the third virtual object in response to an attack operation by the first virtual object against the third virtual object, based on the impact resistance parameter of the first virtual object and the penetration performance parameter of the attack operation, wherein the attack operation passes through the original position of the first virtual object.
[0172] In some embodiments, the display module 4551 is configured to, after controlling the first virtual object to float, control the first virtual object to land in response to the first virtual object floating at a pre-configured height for a pre-configured duration, wherein the landing position of the first virtual object is at the original position of the three-dimensional model of the first virtual object.
[0173] In some embodiments, the display module 4551 is configured to, after controlling the first virtual object to float, and while the first virtual object is floating, control the first virtual object to land in response to the interaction behavior of the first virtual object satisfying a landing condition, wherein the landing condition includes at least one of the following: The first virtual object repeatedly triggers the pre-configured skill in the virtual scene; the current position of the first virtual object is outside the pre-configured area; the first virtual object repeatedly uses the pre-configured virtual props; the first virtual object repeatedly performs interactive behavior with the virtual machine in the virtual scene.
[0174] In some embodiments, the display module 4551 is configured to, after controlling the first virtual object to float, in response to a location selection operation in the virtual scene, highlight the selected target location; in response to a pathfinding operation between the target location in the virtual scene and the current location of the first virtual object, determine the location of an obstacle in the virtual scene, wherein the obstacle location includes the original location of the first virtual object before it floats; generate a path trajectory between the target location and the current location of the first virtual object based on the obstacle location, the target location, and the current location of the first virtual object, and display the path trajectory, wherein the path trajectory does not pass through the obstacle location.
[0175] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. An electronic device's processor reads the computer program or computer-executable instructions from the computer-readable storage medium and executes the computer program or computer-executable instructions, causing the electronic device to perform the virtual object interaction method described above in this application.
[0176] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the virtual object interaction method provided in this application embodiment, for example, such as... Figure 3A The interactive methods for virtual objects are shown.
[0177] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.
[0178] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, 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 stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0179] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, 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 co-located files (e.g., a file that stores one or more modules, subroutines, or code sections).
[0180] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0181] In summary, this application embodiment displays a first virtual object and a first virtual object in a virtual scene; in response to the interactive behavior of the first virtual object satisfying the floating conditions, the first virtual object is controlled to float. Multiple floating conditions are available, increasing the freedom of interaction between virtual objects. Multiple floating conditions correspond to different interactive behaviors, providing users with rich operational options, reducing operational difficulty and improving interaction efficiency. By triggering the floating effect of virtual objects through conditions, compared to related technologies that set virtual objects to continuous floating, there is no need to maintain the continuous floating effect of virtual objects. Resources related to object floating are only loaded and processed when the interactive behavior of the first virtual object satisfies the floating conditions, thus saving computational resources required by the virtual scene. Maintaining the position of the virtual object's 3D model and controlling only the floating of the virtual object's texture materials eliminates the need to adjust the resources required for the virtual object's physical collision, further saving computational resources of the virtual scene.
[0182] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A method for interacting with virtual objects, characterized in that, The method includes: Displaying a virtual scene, wherein the virtual scene includes a first virtual object and a first virtual object; At least one of a plurality of virtual objects is designated as the first virtual object, wherein the first virtual object is an object used for floating; In response to the interaction behavior of the first virtual object satisfying the floating condition, if the first virtual object is detected to exist within the first field of view of the first virtual object, the three-dimensional model of the first virtual object is controlled to be in a hidden state, and the texture material covering the surface of the three-dimensional model is set as the drawing target, wherein the drawing target is used to display the space occupied by the three-dimensional model in the virtual scene in the hidden state, and the texture material does not occupy the space in the virtual scene; Controlling the first virtual object to float, wherein the floating conditions include at least one of the following: The first virtual object triggers a pre-configured skill and executes a pre-configured interactive behavior in the virtual scene; The first virtual object has arrived at the pre-configured area in the virtual scene; The first virtual object uses pre-configured virtual items; The first virtual object interacted with the virtual machine in the virtual scene.
2. The method of claim 1, wherein, The control of the first virtual object to float includes: The first virtual object is controlled to rise at a first speed, wherein the first speed is the ratio between a pre-configured height and a pre-configured rise time; In response to the first virtual object's current height reaching the pre-configured height, the first virtual object is controlled to float at the pre-configured height.
3. The method according to claim 2, characterized in that, The control of the first virtual object to float includes: Control the first virtual object to rise according to a pre-configured trajectory; In response to the first virtual object's current height reaching the pre-configured height, the first virtual object is controlled to float at the pre-configured height.
4. The method according to claim 2, characterized in that, The control of the first virtual object to float includes: Control the first virtual object to rise, and Based on the change in the gaze direction of the first virtual object, the displacement of the first virtual object in the horizontal direction is controlled, wherein the change in gaze direction is an angular change in the horizontal direction, and the length of the displacement is positively correlated with the angular change; In response to the first virtual object's current height reaching the pre-configured height, the first virtual object is controlled to stop moving in the horizontal direction, and the first virtual object is controlled to float at the pre-configured height.
5. The method according to claim 2, characterized in that, The control of the first virtual object to float includes: Based on the first horizontal motion trajectory of the first virtual object, the first virtual object is controlled to float in the vertical direction with a second motion trajectory, wherein the second motion trajectory is the projection of the first motion trajectory in the vertical direction, and the movement speed of the first virtual object is positively correlated with the movement speed of the first virtual object. In response to the first virtual object's current height reaching the pre-configured height, the first virtual object is controlled to float at the pre-configured height.
6. The method according to claim 1, characterized in that, When the floating condition is that the first virtual object triggers a pre-configured skill and performs a pre-configured interactive behavior in the virtual scene, the method further includes, before controlling the first virtual object to float: The skill control is displayed in a first graphic, wherein the first graphic represents that the virtual skill corresponding to the skill control has not been triggered; In response to a trigger operation on the skill control, the skill control is displayed in a second graphic, wherein the second graphic represents that the virtual skill corresponding to the skill control is triggered; In response to the first virtual object performing the pre-configured interactive behavior associated with the virtual skill, the process proceeds to the step of controlling the first virtual object to float.
7. The method according to claim 1, characterized in that, When the floating condition is that the first virtual object has reached a pre-configured area in the virtual scene, the method further includes, before controlling the first virtual object to float: The pre-configured area is displayed in the virtual scene in a first display mode, wherein the first display mode is different from the display mode of other areas outside the pre-configured area; In response to the first virtual object reaching a pre-configured area in the virtual scene, the process proceeds to the step of controlling the first virtual object to float. When the floating condition is that the first virtual object has performed an interactive behavior with a virtual machine in the virtual scene, the method further includes, before controlling the first virtual object to float: In response to the distance between the current position of the first virtual object and the position of the virtual machine switch being less than a distance threshold, a first prompt message is displayed, wherein the first prompt message is used to indicate that the virtual machine switch can be used to perform interactive behavior; In response to the first virtual object interacting with the virtual machine in the virtual scene, the process proceeds to the step of controlling the first virtual object to float.
8. The method according to claim 1, characterized in that, If the floating condition is that the first virtual object uses a pre-configured virtual prop, the method further includes the following steps before controlling the first virtual object to float: Display a first virtual prop, wherein the first virtual prop is obtained by the first virtual object from the virtual scene, or is held by the first virtual object; In response to a trigger operation on the first virtual prop, multiple first virtual props in the virtual scene are displayed in a second display mode, wherein the second display mode is different from the display mode of virtual props other than the first virtual prop; In response to a selection operation for any of the first virtual props, control the selected first virtual object to float.
9. The method according to claim 8, characterized in that, When the virtual prop is a virtual attack prop, the method further includes, when controlling the first virtual object to float: In response to an attack operation by the first virtual object against the first virtual object based on the virtual attack prop, the floating state of the first virtual object is adjusted according to the parameters of the interaction operation in at least one of the following ways: The floating duration of the first virtual object is extended according to the number of times the attack operation is executed, wherein the number of executions is positively correlated with the extended floating duration; The direction of motion of the first virtual object during its floating process is adjusted according to a first direction pointing from the center point of the first virtual object to the hit position, wherein the hit position is the position where the first virtual object is attacked by the attack operation, and the first direction is opposite to the direction of motion.
10. The method according to any one of claims 1 to 9, characterized in that, When the first virtual object is controlled to float, the image of the first virtual object floating is displayed in the first view of the first virtual object and the second view of the second virtual object, wherein the first virtual object and the second virtual object are in the same camp. In the third view of the third virtual object, at the original position of the first virtual object, the three-dimensional model of the first virtual object and the texture material covering the surface of the three-dimensional model are displayed, wherein the third virtual object and the first virtual object are in different camps.
11. The method according to claim 10, characterized in that, The method further includes: When there is an occlusion relationship between the first virtual object and the third virtual object at the original position, and the first virtual object is not floating, the third virtual object is hidden in the first view of the first virtual object. When the first virtual object is controlled to float, the third virtual object is displayed in the first view of the first virtual object; In response to an attack operation by the first virtual object against the third virtual object, the damage value suffered by the third virtual object is displayed based on the impact resistance parameter of the first virtual object and the penetration performance parameter of the attack operation, wherein the attack operation passes through the original position of the first virtual object.
12. The method according to any one of claims 1 to 9, characterized in that, After controlling the first virtual object to float, the method further includes: In response to the first virtual object floating at a pre-configured height for a pre-configured duration, the first virtual object is controlled to land, wherein the landing position of the first virtual object is at the original position of the three-dimensional model of the first virtual object.
13. The method according to any one of claims 1 to 9, characterized in that, After controlling the first virtual object to float, the method further includes: When the first virtual object is floating, in response to the interaction behavior of the first virtual object satisfying the landing conditions, the first virtual object is controlled to land, wherein the landing conditions include at least one of the following: The first virtual object repeatedly triggers the pre-configured skill in the virtual scene; The current position of the first virtual object is outside the pre-configured area; The first virtual object reused pre-configured virtual items; The first virtual object repeatedly performed interactive behavior with the virtual machine in the virtual scene.
14. The method according to any one of claims 1 to 9, characterized in that, After controlling the first virtual object to float, the method further includes: In response to a location selection operation in the virtual scene, the selected target location is highlighted; In response to a pathfinding operation between a target location in the virtual scene and the current location of the first virtual object, the location of an obstacle in the virtual scene is determined, wherein the location of the obstacle includes the original location of the first virtual object before it floats. Based on the obstacle location, the target location, and the current location of the first virtual object, a path trajectory between the target location and the current location of the first virtual object is generated and displayed, wherein the path trajectory does not pass through the obstacle location.
15. An interactive device for virtual objects, characterized in that, The device includes: A display module is used to display a virtual scene, wherein the virtual scene includes a first virtual object and a first virtual object; A rendering module is used to mark at least one virtual object among a plurality of virtual objects as the first virtual object, wherein the first virtual object is an object used for floating; The rendering module is further configured to respond to the interaction behavior of the first virtual object satisfying the floating condition, and if the first virtual object is detected to exist within the first field of view of the first virtual object, control the three-dimensional model of the first virtual object to be in a hidden state, and set the texture material covering the surface of the three-dimensional model as the drawing target, wherein the drawing target is used to display the space occupied by the three-dimensional model in the virtual scene in the hidden state, and the texture material does not occupy the space in the virtual scene; The display module is further configured to control the floating of the first virtual object, wherein the floating conditions include at least one of the following: The first virtual object triggers a pre-configured skill and executes a pre-configured interactive behavior in the virtual scene; The first virtual object has arrived at the pre-configured area in the virtual scene; The first virtual object uses pre-configured virtual items; The first virtual object interacted with the virtual machine in the virtual scene.
16. The apparatus according to claim 15, characterized in that, The display module is further configured to control the first virtual object to rise at a first speed, wherein the first speed is the ratio between a pre-configured height and a pre-configured rise time; In response to the first virtual object's current height reaching the pre-configured height, the first virtual object is controlled to float at the pre-configured height.
17. The apparatus according to claim 16, characterized in that, The display module is also used to control the first virtual object to rise according to a pre-configured trajectory; In response to the first virtual object's current height reaching the pre-configured height, the first virtual object is controlled to float at the pre-configured height.
18. The apparatus according to claim 16, characterized in that, The display module is also used to control the first virtual object to rise, and Based on the change in the gaze direction of the first virtual object, the displacement of the first virtual object in the horizontal direction is controlled, wherein the change in gaze direction is an angular change in the horizontal direction, and the length of the displacement is positively correlated with the angular change; In response to the first virtual object's current height reaching the pre-configured height, the first virtual object is controlled to stop moving in the horizontal direction, and the first virtual object is controlled to float at the pre-configured height.
19. The apparatus according to claim 16, characterized in that, The display module is further configured to control the first virtual object to float in the vertical direction with a second motion trajectory based on the first motion trajectory in the horizontal direction of the first virtual object, wherein the second motion trajectory is the projection of the first motion trajectory in the vertical direction, and the movement speed of the first virtual object is positively correlated with the movement speed of the first virtual object. In response to the first virtual object's current height reaching the pre-configured height, the first virtual object is controlled to float at the pre-configured height.
20. The apparatus according to claim 15, characterized in that, The display module is further configured to, when the floating condition is that the first virtual object triggers a pre-configured skill and performs a pre-configured interactive behavior in the virtual scene, display a skill control in a first graphic before controlling the first virtual object to float, wherein the first graphic represents that the virtual skill corresponding to the skill control has not been triggered; In response to a trigger operation on the skill control, the skill control is displayed in a second graphic, wherein the second graphic represents that the virtual skill corresponding to the skill control is triggered; In response to the first virtual object performing the pre-configured interactive behavior associated with the virtual skill, the process proceeds to the step of controlling the first virtual object to float.
21. The apparatus according to claim 15, characterized in that, The display module is further configured to, when the floating condition is that the first virtual object has reached the pre-configured area in the virtual scene, display the pre-configured area in the virtual scene in a first display mode before controlling the first virtual object to float, wherein the first display mode is different from the display mode of other areas outside the pre-configured area; In response to the first virtual object reaching a pre-configured area in the virtual scene, the process proceeds to the step of controlling the first virtual object to float. When the floating condition is that the first virtual object has performed an interactive action with a virtual machine in the virtual scene, before controlling the first virtual object to float, the display module is further configured to: In response to the distance between the current position of the first virtual object and the position of the virtual machine switch being less than a distance threshold, a first prompt message is displayed, wherein the first prompt message is used to indicate that the virtual machine switch can be used to perform interactive behavior; In response to the first virtual object interacting with the virtual machine in the virtual scene, the process proceeds to the step of controlling the first virtual object to float.
22. The apparatus according to claim 15, characterized in that, The display module is further configured to display the first virtual prop before controlling the first virtual object to float when the floating condition is that the first virtual object has used a pre-configured virtual prop, wherein the first virtual prop is obtained by the first virtual object from the virtual scene or is held by the first virtual object; In response to a trigger operation on the first virtual prop, multiple first virtual props in the virtual scene are displayed in a second display mode, wherein the second display mode is different from the display mode of virtual props other than the first virtual prop; In response to a selection operation for any of the first virtual props, control the selected first virtual object to float.
23. The apparatus according to claim 22, characterized in that, The display module is further configured to, when the virtual prop is a virtual attack prop, adjust the floating state of the first virtual object in response to an attack operation by the first virtual object based on the virtual attack prop against the first virtual object, in at least one of the following ways according to the parameters of the interactive operation, when the first virtual object is controlled to float: The floating duration of the first virtual object is extended according to the number of times the attack operation is executed, wherein the number of executions is positively correlated with the extended floating duration; The direction of motion of the first virtual object during its floating process is adjusted according to a first direction pointing from the center point of the first virtual object to the hit position, wherein the hit position is the position where the first virtual object is attacked by the attack operation, and the first direction is opposite to the direction of motion.
24. The apparatus according to any one of claims 15 to 23, characterized in that, The display module is further configured to, when controlling the first virtual object to float, display the image of the first virtual object floating in the first field of view of the first virtual object and the second field of view of the second virtual object, wherein the first virtual object and the second virtual object are in the same camp; In the third view of the third virtual object, at the original position of the first virtual object, the three-dimensional model of the first virtual object and the texture material covering the surface of the three-dimensional model are displayed, wherein the third virtual object and the first virtual object are in different camps.
25. The apparatus according to claim 24, characterized in that, The display module is further configured to hide the third virtual object in the first view of the first virtual object when there is an occlusion relationship between the first virtual object and the third virtual object at the original position and the first virtual object is not floating. When the first virtual object is controlled to float, the third virtual object is displayed in the first view of the first virtual object; In response to an attack operation by the first virtual object against the third virtual object, the damage value suffered by the third virtual object is displayed based on the impact resistance parameter of the first virtual object and the penetration performance parameter of the attack operation, wherein the attack operation passes through the original position of the first virtual object.
26. The apparatus according to any one of claims 15 to 23, characterized in that, The display module is further configured to, after controlling the first virtual object to float, control the first virtual object to land in response to the first virtual object floating at a pre-configured height for a pre-configured duration, wherein the landing position of the first virtual object is at the original position of the three-dimensional model of the first virtual object.
27. The apparatus according to any one of claims 15 to 23, characterized in that, The display module is further configured to, after controlling the first virtual object to float, and while the first virtual object is floating, control the first virtual object to land in response to the interaction behavior of the first virtual object satisfying a landing condition, wherein the landing condition includes at least one of the following: The first virtual object repeatedly triggers the pre-configured skill in the virtual scene; The current position of the first virtual object is outside the pre-configured area; The first virtual object reused pre-configured virtual items; The first virtual object repeatedly performed interactive behavior with the virtual machine in the virtual scene.
28. The apparatus according to any one of claims 15 to 23, characterized in that, The display module is further configured to, in response to a location selection operation in the virtual scene, highlight the selected target location after the first virtual object is controlled to float. In response to a pathfinding operation between a target location in the virtual scene and the current location of the first virtual object, the location of an obstacle in the virtual scene is determined, wherein the location of the obstacle includes the original location of the first virtual object before it floats. Based on the obstacle location, the target location, and the current location of the first virtual object, a path trajectory between the target location and the current location of the first virtual object is generated and displayed, wherein the path trajectory does not pass through the obstacle location.
29. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions or computer programs. A processor, configured to execute computer-executable instructions or computer programs stored in the memory, implements the interactive method of the virtual object as described in any one of claims 1 to 14.
30. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the interactive method of the virtual object as described in any one of claims 1 to 14.
31. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the interactive method of the virtual object according to any one of claims 1 to 14.
Citation Information
Patent Citations
Virtual unmanned aerial vehicle control method and device, storage medium and electronic device
CN111111218A
