Method for displaying virtual objects, display device, terminal device and computer program

The method addresses incomplete display of distant virtual objects and messages by controlling their visibility on the user interface, ensuring full visibility and enhancing user interaction in virtual communication systems.

JP2025500025APending Publication Date: 2025-01-07TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
JP2024532289
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-10-13
Filing Date
2023-09-11
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Existing virtual communication systems face limitations in displaying virtual objects and their associated social messages when they are located far apart, leading to incomplete or inaccessible information due to screen size constraints, which affects user interaction and experience.

Method used

A method and apparatus for displaying virtual objects and their social messages by controlling their display on a user interface based on their location relative to a master-controlled virtual object, ensuring complete visibility and efficient resource usage.

Benefits of technology

Enables complete display of virtual objects and their messages when they are outside the visible area, enhancing user interaction and communication experience by reducing processing overhead and improving display efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025500025000001_ABST
    Figure 2025500025000001_ABST
Patent Text Reader

Abstract

The present application discloses a method, an apparatus, a device and a storage medium for displaying a virtual object, and relates to the field of computer and Internet technology. The method includes the steps of: displaying a first region of a virtual communication scene and at least one virtual object located in the first region in a user interface (320); and controlling the display of the first virtual object in the user interface and the display of the social message of the first virtual object when the first virtual object in the virtual communication scene has a social message to be shown and the first virtual object is located outside a second region of the virtual communication scene (340), the second region being the whole or a part of the first region. The present application facilitates access to the social message of a user and allows a complete image of the first virtual object to be viewed, thereby making the display of the first virtual object and the social message of the first virtual object more complete.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application filed on October 13, 2022, bearing application number 202211255861.5 and entitled "Method, apparatus, device and storage medium for displaying virtual objects," the entire contents of which are incorporated herein by reference.

[0002] TECHNICAL FIELD The embodiments of the present application relate to the field of computer and Internet technologies, and in particular to a method, an apparatus, a device and a storage medium for displaying a virtual object. [Background technology]

[0003] With the development of Internet technology, virtual communication is becoming a popular communication method for people. In the virtual communication scene, the virtual object is accompanied by a social message, for example, after the first virtual object sends a message to the user's master-control virtual object, the social message is displayed above the head of the first virtual object.

[0004] In the related art, due to the size limitation of the user interface, the user interface displays a screen of a virtual communication scene in a certain area range centered on the master control virtual object. When the distance between the first virtual object and the master control virtual object is far, the first virtual object and its social message are not necessarily displayed completely in the user interface. Summary of the Invention [Means for solving the problem]

[0005] The embodiments of the present application provide a method, apparatus, device and storage medium for displaying a virtual object. The above technical solutions are as follows:

[0006] According to one aspect of an embodiment of the present application, there is provided a method for displaying a virtual object, the method being executed by a terminal device, the method comprising:

[0007] displaying in a user interface a first area of ​​a virtual communication scene and at least one virtual object located in the first area;

[0008] and controlling, when a first virtual object in the virtual communication scene has a social message to be shown, if the first virtual object is located outside a second area of ​​the virtual communication scene, to display the first virtual object on the user interface and to display the social message of the first virtual object, wherein the second area is all or a portion of the first area.

[0009] According to one aspect of an embodiment of the present application, there is provided a display device for a virtual object, the device comprising:

[0010] a region display module adapted to display a first region of a virtual communication scene in a user interface and at least one virtual object located in the first region;

[0011] and an object display module used to control displaying the first virtual object in the user interface and displaying the social message of the first virtual object when the first virtual object in the virtual communication scene has a social message to be shown and the first virtual object is located outside a second area of ​​the virtual communication scene, the second area being all or a portion of the first area.

[0012] According to one aspect of an embodiment of the present application, there is provided a terminal device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to realize the above method.

[0013] According to one aspect of an embodiment of the present application, there is provided a computer-readable storage medium having a computer program stored thereon, the computer program being loaded and executed by a processor to implement the above method.

[0014] According to one aspect of an embodiment of the present application, there is provided a computer program product including a computer program, the computer program being stored in a computer-readable storage medium, a processor of a terminal device reading the computer program from the computer-readable storage medium, and the processor executing the computer program, whereby the terminal device performs the method. Effect of the Invention

[0015] The technical solutions provided by the embodiments of the present application may have the following beneficial effects:

[0016] When a first region of a virtual communication scene is displayed on a user interface, and the first virtual object has a social message to be displayed and the first virtual object is located outside a second region of the virtual communication scene, the first virtual object and its social message are controlled to be displayed on the user interface. By displaying the first virtual object located outside the second region and having a social message to be displayed on the user interface, when the first virtual object is away from the master control virtual object, the present application makes it possible to completely display the first virtual object and the social message of the first virtual object on the user interface, so that the user can directly view the first virtual object and can view the social message of the first virtual object, thereby making the display of the first virtual object and the social message more complete. [Brief description of the drawings]

[0017] [Figure 1] 1 is a schematic diagram of an implementation environment of a solution provided by one embodiment of the present application; [Diagram 2] FIG. 1 is a schematic diagram of an application scenario of the solution provided by one embodiment of the present application; [Diagram 3] 1 is a flowchart of a method for displaying a virtual object provided by an embodiment of the present application. [Figure 4] 1 is a schematic diagram of a virtual communication scene of a virtual object provided by one embodiment of the present application. [Diagram 5] 1 is a schematic diagram of a virtual object user interface provided by one embodiment of the present application. [Figure 6] FIG. 2 is a schematic diagram of the interactable area of ​​a virtual object and the dimensions of a user interface provided by one embodiment of the present application. [Figure 7]FIG. 2 is a coordinate schematic diagram of a user interface of a virtual object provided by one embodiment of the present application. [Figure 8] 4 is a flowchart of a method for displaying a virtual object provided by another embodiment of the present application. [Figure 9] FIG. 2 is a schematic diagram of controlling a display mode of a virtual object provided by one embodiment of the present application. [Figure 10] 4 is a flowchart of a method for displaying a virtual object provided by another embodiment of the present application. [Figure 11] FIG. 2 is a schematic diagram of a pose of a virtual object provided by one embodiment of the present application. [Figure 12] 4 is a flowchart of a method for displaying a virtual object provided by another embodiment of the present application. [Figure 13] FIG. 4 is a schematic diagram of a user interface provided by another embodiment of the present application. [Figure 14] FIG. 2 is a block diagram of a method for displaying a virtual object provided by one embodiment of the present application. [Figure 15] FIG. 2 is a block diagram of a method for displaying a virtual object provided by another embodiment of the present application. [Figure 16] FIG. 2 is a block diagram of a virtual object display device provided by one embodiment of the present application. [Figure 17] FIG. 2 is a block diagram of a display device for a virtual object provided by another embodiment of the present application. [Figure 18] FIG. 2 is a configuration block diagram of a terminal device provided by one embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] In order to make the objectives, technical solutions and advantages of the present application clearer, the following describes the embodiments of the present application in more detail in conjunction with the accompanying drawings.

[0019] Please refer to Fig. 1, in which a schematic diagram of an implementation environment of the solution provided by one embodiment of the present application is shown. The implementation environment of the solution may include a terminal device 10 and a server 20.

[0020] The terminal device 10 includes, but is not limited to, electronic devices such as mobile phones, tablet PCs, intelligent voice dialogue devices, game consoles, wearable devices, multimedia playback devices, PCs (Personal Computers), in-vehicle terminals, smart home appliances, etc. A client of a target application program (such as a game application program) may be installed in the terminal device 10. Optionally, the target application program may be an application program that needs to be downloaded and installed, or an application program that can be started and used by clicking, and the embodiments of the present application are not limited thereto.

[0021] In the embodiment of the present application, the target application program may be any one of a social application program, a simulation program, a battle royale shooting game, a virtual reality (VR) application program, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a multiplayer gunfight survival game, a third-person shooting game (TPS), a multiplayer online battle arena game (MOBA), a simulation game (SLG), and an interactive entertainment application program. In addition, for different application programs, the layout modes of the virtual communication scenes supported by them are different, and the embodiment of the present application is not limited thereto. Optionally, a client of the above application program is running on the terminal device 10.

[0022] The virtual communication scene is a scene displayed (or provided) when a client of a target application program (e.g., a game application) is executed on a terminal device, and the virtual communication scene refers to a scene in which a virtual object is created to perform an activity (e.g., a game match), such as a virtual house, a virtual island, a virtual map, etc. The virtual communication scene may be an environment that simulates the real world, a semi-simulated semi-fictional environment, or a purely fictional environment. The virtual communication scene may be a 2D virtual environment, a 2.5D virtual environment, or a 3D virtual environment, and the embodiments of the present application are not limited thereto.

[0023] The virtual object refers to a virtual character, a virtual vehicle, a virtual item, etc. that the user account operates in the target application program, and the present application is not limited thereto. For example, in the case where the target application program is a social application program, the virtual object refers to a game character that the user account operates in the social application program. The virtual object may be in the form of a person, an animal, a video, or other forms, and the embodiments of the present application are not limited thereto. The virtual object may be displayed in a three-dimensional form or in a two-dimensional form, and the embodiments of the present application are not limited thereto. Optionally, when the virtual communication scene is a three-dimensional virtual environment, the virtual object is a three-dimensional solid model created based on skeletal animation technology. Each virtual object has a shape and a volume in the three-dimensional virtual environment, and occupies a part of the space in the three-dimensional virtual environment. The activity of the virtual object includes, but is not limited to, at least one of adjusting the posture of the body, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, and throwing. Generally speaking, the virtual object is a virtual person, such as a photorealistic human character or a cartoon-style human character.

[0024] The server 20 is used to provide background services to clients of a target application program in the terminal device 10. For example, the server 20 may be a standalone physical server, a server cluster or a distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), big data, and artificial intelligence platforms, but is not limited thereto.

[0025] In some embodiments, the terminal device 10 includes a first terminal device 11 (not shown) and a second terminal device 12 (not shown), where a first client of a target application program is installed on the first terminal device, and a second client of the target application program is installed on the second terminal device, where a first virtual object is controlled by a first user account of a first user in the first client of the target application program, and a master control virtual object is controlled by a second user account of a second user in the second client of the target application program. Optionally, the first virtual object and the master control virtual object are in a virtual communication scene. Optionally, the first virtual object and the master control virtual object may be friends, belong to the same camp, party, or community, or have temporary communication rights. Optionally, the first virtual object and the master control virtual object may not be friends, and belong to different camps, parties, or communities. Optionally, the clients installed on the first terminal device and the second terminal device are the same, or the clients installed on the two terminals are the same kind of clients on different operating systems (Android or IOS). The first terminal device may generally refer to one of a plurality of terminal devices, and the second terminal device may generally refer to another one of the plurality of terminal devices, and this embodiment will be described only as an example of the first terminal device and the second terminal device.

[0026] The terminal device 10 and the server 20 can communicate with each other through the Internet, which may be a wired Internet or a wireless Internet.

[0027] Please refer to FIG. 2, in which a schematic diagram of an application scenario of the solution for displaying virtual objects provided by one embodiment of the present application is shown.

[0028] As shown in sub-figure a of FIG. 2, the first virtual object and its social message 201 cannot be completely displayed on the user interface 200, and according to sub-figure a, it can be seen that the first virtual object and its social message 201 are only partially displayed on the user interface 200. In sub-figure b of FIG. 2, the first virtual object and its social message are not displayed on the user interface 210, but are displayed on the user interface 210 in the form of an indicator 202 and an indicator 203. The indicator can represent the user avatar who sent the message, and can point to the direction where the first virtual object is located. If the user moves the screen along the direction, the corresponding first virtual object can be found.

[0029] In the related art, when the first virtual object is far away from the master control virtual object, one can be shown in the form of sub-figure a and the other can be shown in the form of sub-figure b, but it is certain that neither of the two display forms can fully display the first virtual object and its social messages. In a virtual communication scene, after a virtual object sends a message, a message bubble is generally displayed above the virtual object's head, and the user can click on the bubble to view the unread message. Due to the limited screen size, there will inevitably be a situation where the information of a virtual object that is just partially displayed on the screen is missing, and especially when the message bubble is not displayed, the user cannot know that a message has been sent from the virtual object. For example, as shown in sub-figure a of FIG. 2, the user does not realize that a message has been sent from the upper left virtual object. In the related art, even if the direction where the virtual object is located is indicated, the specific location still needs to be searched for by the user, and in some cases may be far away. When the number of unread contents increases, a large number of user avatars are densely lined up on the edge of the entire screen, which hinders normal use. When moving the screen, the front end needs to calculate the direction in real time, which consumes more performance, so the technical solutions provided in the related art are disadvantageous to users in receiving messages in a timely manner and have poor interactivity.

[0030] Differently, the technical solution provided by the embodiments of the present application can control the first virtual object to be displayed on the user interface, and can also display the social message. As shown in sub-figure c of Fig. 2, the first virtual object and its social message 204 are displayed on the user interface 220, and it can be seen that the first virtual object and its social message 204 are completely displayed on the user interface 220. The technical solution provided by the embodiments of the present application completely displays the first virtual object on the user interface, allowing the user to see the whole picture of the virtual object at a glance, which is advantageous for the user to technically obtain the social message, and enhances the user's communication experience.

[0031] Please refer to FIG. 3, which shows a flowchart of a method for displaying a virtual object provided by one embodiment of the present application. An execution subject of each step in the method may be a terminal device 10 in the implementation environment of the solution shown in FIG. 1, for example, an execution subject of each step may be a client of a target application program. In the following method embodiment, for convenience of description, only the case where an execution subject of each step is a "client" will be introduced and described. The method may include at least one of the following steps (320 to 340).

[0032] Step 320: Displaying, in a user interface, a first region of the virtual communication scene and at least one virtual object located in the first region.

[0033] Virtual communication scene: a scene displayed (or provided) when an application program is executed on a terminal. The virtual communication scene may be a simulated real world, or a semi-simulated, semi-fictional three-dimensional world, or even a purely fictional three-dimensional world. The virtual communication scene may be any one of a two-dimensional virtual environment, a two-and-a-half-dimensional virtual environment, and a three-dimensional virtual environment. Optionally, the virtual communication scene is also used for a virtual environment battle between at least two virtual objects, and the virtual communication scene has virtual resources available to the at least two virtual objects.

[0034] Virtual object: refers to a manipulable object and a non-manipulable object in a virtual communication scene. The manipulable object may be at least one of a virtual person, a virtual animal, and a cartoon character. The non-manipulable object may be at least one of a virtual building, a virtual plant, and a virtual terrain. Optionally, when the virtual communication scene is a three-dimensional virtual environment, the virtual object may be a three-dimensional solid model, and each virtual object has a shape and a volume in the three-dimensional virtual environment, and occupies a part of the space in the three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual object realizes different appearances by wearing different skins. In some implementations, the virtual object may also be realized by a 2.5-dimensional or two-dimensional model, and the embodiments of the present application are not limited thereto. In general, according to different control methods of the virtual object, the virtual object can be divided into a user-controlled virtual object and a server-controlled virtual object, among which, the user-controlled virtual object is an object controlled by the client and can be manipulated in the virtual communication scene. The server-controlled virtual object is a virtual object controlled by an automatic control algorithm or an artificial intelligence application on a client or a server. The server-controlled virtual object includes a manipulable object and a non-manipulable object in a virtual communication scene. In general, the non-manipulable object can respond to or affect the activity of the manipulable object, for example, the manipulable object can destroy the non-manipulable object, or the manipulable object can hide its online status when the manipulable object enters the non-manipulable object. In general, the master-controlled virtual object in this application is a virtual object controlled by a client. In general, the first virtual object in this application can be a virtual object controlled by another client or a server.

[0035] In the embodiment of the present application, the user interface may be regarded as a display screen of a terminal device corresponding to a master control virtual object, and the size, brightness, etc. of the user interface are not limited by the present application. In the embodiment of the present application, the area of ​​the virtual communication scene displayed on the user interface is regarded as a first area.

[0036] In some embodiments, as shown in FIG. 4, a first virtual object 401 is present in the virtual communication scene 400, and a first region of the virtual communication scene 400 is displayed in the user interface 410. At least one virtual object (not shown) is present in the first region of the displayed virtual communication scene 400. In some embodiments, the user interface 410 displays the first region identified from the virtual communication scene 400 centered on the master-control virtual character. In some other embodiments, the user interface can display another region of the virtual communication scene 400 in response to a first operation of the user. The present application does not limit the type of the first operation. Optionally, the first operation is a swipe operation, and when the user swipes the screen, the user interface 410 displays another region of the virtual communication scene 400, and the master-control virtual object is no longer displayed in the center position of the user interface 410.

[0037] Step 340: If a first virtual object in the virtual communication scene has a social message to be shown, and if the first virtual object is located outside a second area of ​​the virtual communication scene, controlling displaying the first virtual object in the user interface and displaying the social message of the first virtual object, wherein the second area is all or a portion of the first area.

[0038] Social Message: In a social application scene, any information related to a virtual object can be regarded as a social message. Optionally, the social message is at least one of the number of messages sent by the first virtual object to the master-control virtual object and the specific content of the message. Optionally, the social message is at least one of the status, moment, and dynamics posted by the first virtual object. The present application does not limit the specific type or content of the social message. The social message to be shown can be regarded as a social message that has not yet been accessed or viewed by the current user.

[0039] Second area: The whole or a part of the first area. Like the first area, the second area is also a part of the virtual communication scene. As shown in FIG. 4, the second area 420 is a part of the first area, and the second area is inside the first area.

[0040] In some embodiments, when the first virtual object in the virtual communication scene does not have a social message to be displayed, the first virtual object is not controlled to be displayed in the user interface. When the first virtual object does not have a social message to be displayed, for example, when the social message is the number of unread messages, if the master control virtual object does not receive a message from the first virtual object, it indicates that the current user does not need to see the first virtual object in particular. Therefore, in order to save processing overhead, when the first virtual object in the virtual communication scene does not have a social message to be displayed, the first virtual object is not controlled to be displayed in the user interface.

[0041] In some embodiments, when the first virtual object is located inside the second region of the virtual communication scene, the first virtual object is not controlled to be displayed in the user interface. Considering that the second region is the whole or part of the first region and the user interface displays the first region, when the first virtual object is located inside the second region of the virtual communication scene, the first virtual object is already displayed in the user interface.

[0042] In some embodiments, when a first virtual object in a virtual communication scene has a social message to be displayed, and the first virtual object is located outside the second area of ​​the virtual communication scene, the first virtual object is controlled to be displayed in the user interface, and the social message of the first virtual object is controlled to be displayed. In the embodiments of the present application, the user interface is controlled to display the first virtual object only when the first virtual object in the virtual communication scene has a social message to be displayed and the first virtual object is located outside the second area of ​​the virtual communication scene. That is, the user interface is controlled to display the first virtual object only when the first virtual object needs to be displayed (has a social message to be displayed but is not displayed in the user interface). Thus, the technical solution provided by the embodiments of the present application controls to display the first virtual object and the social message only when necessary, thereby saving the processing overhead of the device and improving the accuracy and efficiency of controlling the display of the virtual object.

[0043] In some embodiments, there are various ways to control the display of the first virtual object on the user interface. Optionally, the first virtual object can be directly transmitted to a target position in the first area, so that the user can directly see that the first virtual object appears at the target position, where the target position refers to the position where the first virtual object will eventually arrive. The technical solution provided by the embodiments of the present application controls the display of the first virtual object in the first area by direct transmission, and after determining the target position, the virtual object can be directly displayed at the target position, which contributes to reducing the cost of controlling the movement of the virtual object, reducing the processing overhead of the device, and improving the display efficiency of the first virtual object.

[0044] Optionally, the first virtual object is controlled to move to a target position within the first area so that the user can visually recognize the movement of the first virtual object, for example, the first virtual object is controlled to move to the target position in a posture such as running, walking, etc. The technical solution provided by the embodiment of the present application controls the first virtual object to move into the first area, thereby displaying the first virtual object on the user interface, thereby providing the user with a more realistic communication experience.

[0045] Optionally, the display area of ​​the user interface is adjusted in a manner similar to the user's screen swipe, so that the user interface displays the existence area of ​​the first virtual object. Since such display is also a slow-moving manner, the area is displayed with continuity. The technical solution provided by the embodiment of the present application displays the existence area of ​​the first virtual object on the user interface with a slow movement by directly adjusting the display area of ​​the user interface, similarly bringing the user a more realistic communication experience, such as the user discovering the first virtual object along with the movement of the user interface, and when the first virtual object is a fixed object, for example, the first virtual object is a house, this method is closer to reality, thus bringing a better user experience.

[0046] Optionally, directly adjust the display area of ​​the user interface to control the user interface to change from directly displaying the first area to displaying the existence area of ​​the first virtual object. The technical solution provided by the embodiments of the present application directly adjusts the display area of ​​the user interface based on the existence area of ​​the first virtual object, which can similarly reduce the processing overhead of the device and improve the display efficiency of the first virtual object.

[0047] In some embodiments, when the first virtual object is located outside the second region of the virtual communication scene and the first virtual object is located in a fourth region of the virtual communication scene, the step of controlling displaying the first virtual object in the user interface and displaying the social message of the first virtual object is performed, and the first region is a part of the fourth region. In some embodiments, when the first virtual object exists outside the fourth region of the virtual communication scene, the first virtual object is not controlled to be displayed in the user interface. Since the first region is a part of the fourth region, the fourth region is a larger region than the first region, and therefore, by defining the fourth region, it is possible to not control the first virtual object to be displayed in the user interface when the first virtual object is far away from the location of the first region of the master control virtual object. In the technical solution provided by the embodiments of the present application, the control of not controlling the first virtual object to be displayed in the user interface when the first virtual object is far away from the master control virtual object is due to consideration of the problem of device processing overhead and also to control the number of virtual objects to be displayed on the user interface. If the area of ​​the virtual objects to be displayed is not limited, all the first virtual objects will be displayed on the user interface, and the number of virtual objects on the user interface will be excessive, which is likely to degrade the user experience. That is, when the first virtual object is in the fourth area and not in the second area, controlling the display of the first virtual object on the user interface can suppress the number of virtual objects displayed on the user interface, and can avoid interfering with normal use by the user without excessively consuming the processing cost of the device.

[0048] Fourth area: Similar to the first area, the fourth area is also the whole or part of the virtual communication scene. In the embodiment of the present application, the range of the fourth area is larger than the range of the second area, and a ring-shaped area may be formed between the fourth area and the second area.

[0049] As shown in FIG. 5, when the first virtual object 501 is located outside the second area 503 of the virtual communication scene and the first virtual object 501 is located in the fourth area 500 of the virtual communication scene, the first virtual object 501 is controlled to be displayed on the user interface 502.

[0050] In some embodiments, when there are a plurality of first virtual objects to be display-controlled, the priority of the plurality of first virtual objects is scored, and the order of the plurality of first virtual objects to be display-controlled is determined based on the level of the priority score. In some embodiments, the level of the priority score is related to at least one of the interaction frequency between the first virtual object and the master control virtual object, the intimacy relationship, the length of the acquaintance period, the number of unread messages, and the like. In some embodiments, the influence factors of the plurality of priority scores have different weights. The priority score may be determined based on determining a model with a score, such as a neural network model. In some embodiments, the plurality of first virtual objects may be controlled to be displayed in the user interface one after another, that is, after one first virtual object is displayed in the user interface, the next first virtual object is controlled to be displayed in the user interface. The technical solution provided by the embodiments of the present application controls the display order of the first virtual objects based on the level of the priority score, so that the display of the first virtual objects can better meet the actual needs of the user and improve the fun of the virtual communication scene.

[0051] In some embodiments, the second area is a portion of the first area, and the dimensions of the annular area outside the bounding box of the second area and inside the bounding box of the fourth area are related to the dimensions of an interaction range of the first virtual object, and the first virtual object and the social message of the first virtual object are displayed within the interaction range of the first virtual object.

[0052] In some embodiments, the interaction area is an area that can include the first virtual object and the social message of the first virtual object. In some embodiments, the interaction area is a matrix interactive box, in which the first virtual object and the social message of the first virtual object are present. As shown in FIG. 6, subfigure a shows the interaction area of ​​the first virtual object, where the length of the interaction area is m and the width of the interaction area is n, where m and n are positive numbers, and the interaction area includes the first virtual object 601 and the social message 600 of the first virtual object 601.

[0053] In some embodiments, the dimensions of the first region correspond to the dimensions of the user interface, as shown in subfigure b of FIG. 6, where the length of the first region is W and the width is H, and W and H are positive numbers.

[0054] In some embodiments, as shown in FIG. 7, a two-dimensional coordinate system is established by setting the top left corner vertex of the first region 701 as the origin (0,0), the horizontal right direction as the x-axis, and the vertical down direction as the y-axis. The center of the interaction range 700 of the first virtual object is regarded as the position of the first virtual object in the virtual communication scene. The dimensions of the annular region formed between the second region 702 and the fourth region 703 are related to the interaction range 700 of the first virtual object. As can be seen from FIG. 6, the length of the interaction range 700 is m and the width is n, and the length of the first region is W and the width is H. According to the established two-dimensional coordinate system, it can be seen that the coordinates of the four vertices of the second region are (m / 2,n / 2), (Wm / 2,n / 2), (m / 2,Hn / 2), and (Wm / 2,Hn / 2), respectively. The coordinates of the four vertices of the fourth region are (-m / 2,-n / 2), (W+m / 2,-n / 2), (-m / 2,H+n / 2), and (W+m / 2,H+n / 2), respectively.

[0055] In some embodiments, the center position (x,y) of the interaction range 700 is controlled to display a first virtual object in the user interface when the center position is within the fourth region 703 but outside the second region 702.

[0056] In an embodiment of the present application, the region to which the first virtual object belongs is determined based on the position of the first virtual object or the position of the interaction range of the first virtual object, and the position of the first virtual object may be the position of the center point of the first virtual object or the position of a specific part of the first virtual object (e.g., the position of the foot). The position of the interaction range of the first virtual object may be the position of the center point of the interaction range or other positions, and the center point may be the center of gravity or the orthocenter, and the present application is not limited thereto.

[0057] In the embodiment of the present application, the above method allows the first virtual object and its social message, which are not displayed in the original display range of the second area, to be displayed in the original display range of the second area. That is, the first virtual object and its social message are displayed within the display range in which the second area exists on the user interface.

[0058] In some embodiments, the method further includes step 330 (not shown).

[0059] Step 330: determining a region extent of at least one of the second region and the fourth region.

[0060] In the embodiment of the present application, the area of ​​the second area and / or the fourth area may be preset or may be readjusted according to the user's setting. Optionally, after the user selects another virtual communication scene, another dimension of the first virtual object, or adjusts the dimension of the master control virtual object, the area range of the second area and / or the fourth area is also changed correspondingly. The dimension of the virtual object refers to the dimension of the model of the virtual object or the dimension of the interactable area where the virtual object exists.

[0061] In some other embodiments, a border of the second region and / or the fourth region may be displayed on the user interface in response to the user's region adjustment operation, the displayed border is editable, and the user can set the region range of the second region and / or the fourth region by dragging the border. The region adjustment operation may be an operation such as a long press or click of a widget by the user, or an operation such as a swipe of the screen, and the present application does not limit the specific type of operation, and all operations for a user to adjust a region may be included in the protection scope of the present application.

[0062] In some embodiments, step 330 includes steps 330-1 through 330-3 (not shown).

[0063] Step 330-1: Determine an optimal interaction distance of the master control virtual object based on a dimensional relationship between the first region and the master control virtual object.

[0064] In some embodiments, the first region is a matrix region of W×H, and the dimensions of the interaction area in which the master control virtual object exists are L×Z, and in some embodiments, (WL) / 2, (HZ) / 2 are identified as right angles, and the length of the hypotenuse of the right triangle is determined as the optimal interaction distance of the master control virtual object, where L and Z are positive numbers, W is greater than L, and H is greater than Z.

[0065] Step 330-2: The range of the second region is determined to be a circular region having the optimal interaction distance as its radius and the position of the master control virtual object as its center.

[0066] Step 330-3: Determine a region extent of a fourth region based on the first region and the optimal interaction distance, where the distance from a point in the fourth region to a bounding box of the first region is less than the optimal interaction distance.

[0067] In some embodiments, the first region is a matrix region of W×H, the dimensions of the interactable range in which the master control virtual object exists are L×Z, and in some embodiments, a rectangular range with the master control virtual object at its center and a length and width of (WL) / 2, (HZ) / 2 is determined as the second region. The fourth region is a rectangular range with the master control virtual object at its center and a length and width of W+L / 2, H+Z / 2.

[0068] In some other embodiments, the first region is a matrix region of W×H, and the dimensions of the interactable region in which the first virtual object exists are m×n, and in some embodiments, a rectangular region is determined with Wm and Hn as its length and width, centered on the master control virtual object, and the fourth region is a rectangular region with W+m and H+n as its length and width, centered on the master control virtual object.

[0069] In some other embodiments, the virtual communication scene is a three-dimensional scene, and the area displayed by the user interface is converted into the three-dimensional scene by coordinate system transformation accordingly, and corresponds to the first area in the three-dimensional scene, and the points of the first area in the three-dimensional scene can be completely mapped onto the user interface. The other second and fourth areas are similar to this, and therefore the description thereof is omitted in this application.

[0070] The technical solution provided by the embodiment of the present application does not limit the method of determining the area range of the second area and / or the fourth area, and may determine the second area and the fourth area based on the dimensions of the first virtual object or the dimensions of the interactable area in which the first virtual object exists, or may determine the second area and the fourth area based on the dimensions of the master control virtual object or the dimensions of the interactable area of ​​the master control virtual object. In addition, the second area and the fourth area may be centered on the center of the area of ​​the virtual communication scene currently displayed by the user interface, in addition to centering on the position of the master control virtual object or the position of the interactable area of ​​the master control virtual object. After the dimensions of the second area and the fourth area are determined, the application does not limit which area to specifically center. Therefore, the technical solution provided by the embodiment of the present application makes the determined second and fourth areas more suitable for the actual first virtual object by combining the determination of the second and fourth areas with the interaction range of the first virtual object, and also considers the suppression of processing costs, so that the cost consumed for display control of the first virtual object is minimized while the efficiency is maximized. Of course, by combining the dimensions of the master control virtual object and the dimensions of the first area to determine the optimal interaction distance, and further determining the second and / or fourth areas based on the optimal interaction distance, the determined second and / or fourth areas can be more suitable for the user interface, and when the user is looking at them, the determined second and / or fourth areas also have a more comfortable display appearance for the user.

[0071] The technical solutions provided by the embodiments of the present application provide various methods for determining the area range of the second area and / or the fourth area, enriching the area determination methods, and at the same time allowing the user to manually adjust the area, thus improving interactivity and enriching the application strategies of social application scenarios.

[0072] In the technical solution provided by the embodiment of the present application, when a first area of ​​a virtual communication scene is displayed on a user interface, a first virtual object has a social message to be displayed, and the first virtual object is located outside a second area of ​​the virtual communication scene, the first virtual object and its social message are controlled to be displayed on the user interface. By displaying the first virtual object located outside the second area and having a social message to be displayed on the user interface, when the first virtual object is far away from the master control virtual object, the first virtual object and the social message of the first virtual object can be completely displayed on the user interface, and the user can directly view the first virtual object and can also access the social message to be displayed of the first virtual object, which makes it convenient for the user to check the social message and at the same time, can see the complete image of the first virtual object, thereby making the display of the first virtual object and the social message more complete, improving the fun of the social application and improving the interactivity.

[0073] Please refer to FIG. 8, which shows a flowchart of a method for displaying a virtual object provided by another embodiment of the present application. The execution subject of each step in the method may be the terminal device 10 in the implementation environment of the solution shown in FIG. 1, for example, the execution subject of each step may be a client of a target application program. In the following method embodiment, for convenience of description, only the case where the execution subject of each step is a "client" will be introduced and described. The method may include at least one of the following steps (320 to 360):

[0074] Step 320, displaying in a user interface a first area of ​​the virtual communication scene and at least one virtual object located in the first area.

[0075] Step 322: determining whether the first virtual object is a first type object.

[0076] If so, execute step 350; if not, execute step 360.

[0077] Class 1 object: a movable object, including but not limited to a virtual person, a virtual vehicle, a virtual toy, a virtual tool, etc. Class 1 corresponds to class 2 objects, which are immovable objects, including but not limited to quest NPCs (Non-Player Characters) that appear in fixed positions, immovable virtual buildings, immovable virtual scenery, etc., and the specific class 1 objects and class 2 objects are not limited in this application.

[0078] In the embodiment of the present application, different classifications are made according to the different types of virtual objects in order to take into account the adaptability of the user, and for the movable first type object, the first virtual object is moved into the second region to be displayed on the user interface, but because the first virtual object is a movable object, it can be controlled to move the first virtual object, i.e., to come into the second region in a walking or running manner, which is more suitable for the image of the virtual object itself and contributes to enhancing the user's experience of the communication scene. For the immovable second type object, the third region in which the first virtual object is located is displayed on the user interface, allowing the user to clearly and intuitively view the first virtual object.

[0079] Of course, the present application does not impose the above-mentioned limitations on the first class object, and the first class object may further be an object within a threshold range from the master control virtual object, and the second class object may be an object outside the threshold range from the master control virtual object. When the first virtual object is close to the master control virtual object, the first virtual object can be controlled to move into the second area, but when the first virtual object is far away from the master control virtual object, the third area in which the first virtual object exists is directly displayed on the user interface.

[0080] Step 350: if a first virtual object in the virtual communication scene has a social message to be shown, and if the first virtual object is located outside a second area of ​​the virtual communication scene, controlling moving the first virtual object from outside the second area to a second area displayed on the user interface and displaying the social message of the first virtual object, the second area being all or a portion of the first area.

[0081] If the first virtual object is a first type object, step 350 is performed.

[0082] The second region includes an area on a border of the second region and an area inside the border of the second region. In some embodiments, the first virtual object is controlled to move from outside the second region to an area on the border of the second region or an area inside the border of the second region.

[0083] The present application does not limit the method of controlling the first virtual object to move from outside the second area to within the second area, and may determine a target position of the first virtual object in the second area and directly display the first virtual object at the target position, or may control the first virtual object to walk or run to the target position by movement. Please refer to the above examples, and the description thereof will be omitted here.

[0084] As shown in sub-figure a of Fig. 9, when a first virtual object 900 has a social message to be displayed in a virtual communication scene, if the first virtual object 900 is located outside a second region 920 of the virtual communication scene, the first virtual object is controlled to move from outside the second region 920 to the second region 920 displayed by the user interface, and the first virtual object and the social message 902 of the first virtual object are displayed on the user interface, as shown in sub-figure b of Fig. 9. In this case, the first virtual object 900 is regarded as a first type object.

[0085] Step 360: if a first virtual object in the virtual communication scene has a social message to be shown, and the first virtual object is located outside the second region of the virtual communication scene, displaying a third region in which the first virtual object of the virtual communication scene is included in the user interface, and displaying the social message of the first virtual object, where the second region is all or a portion of the first region.

[0086] If the first virtual object is not a first class object, optionally if the first virtual object is a second class object, step 360 is performed.

[0087] As shown in sub-figure c of Fig. 9, when a first virtual object 950 in a virtual communication scene has a social message to be displayed, if the first virtual object 950 is located outside the second region 960 of the virtual communication scene, a third region 930 of the virtual communication scene is displayed in the user interface, as shown in sub-figure d, and the first virtual object and the social message 940 of the first virtual object are also displayed in the user interface. In this case, the first virtual object 950 is regarded as a second type object.

[0088] Third area: a separate area in a virtual communication scene different from the first area, in which a first virtual object exists, and optionally, the third area is an area centered on the first virtual object and having a region range of the target dimension, and the present application does not limit the size of the target dimension.

[0089] The technical solution provided by the embodiment of the present application is that, if the first virtual object is a first class object, the first virtual object is controlled to move to a second area, so that the first virtual object can be completely displayed on the user interface by moving the virtual object, and if the first virtual object is not the first class object, a third area of ​​the virtual communication scene is displayed on the user interface, so that the user can easily access the social messages of the first virtual object and intuitively view the image of the first virtual object. By dividing the object types of the first virtual object and using different display control methods for different types of virtual objects, the display efficiency of the virtual objects can be further improved by adapting to the characteristics of different virtual objects and matching the images of different virtual objects.

[0090] Please refer to FIG. 10, which shows a flowchart of a method for displaying a virtual object provided by another embodiment of the present application. The execution subject of each step in the method may be the terminal device 10 in the implementation environment of the solution shown in FIG. 1, for example, the execution subject of each step may be a client of a target application program. In the following method embodiment, for convenience of description, only the case where the execution subject of each step is a "client" will be introduced and described. The method may include at least one of the following steps (320 to 352):

[0091] Step 320, displaying in a user interface a first area of ​​the virtual communication scene and at least one virtual object located in the first area.

[0092] Step 351: When a first virtual object in a virtual communication scene has a social message to be displayed, and the first virtual object is located outside a second area of ​​the virtual communication scene, determining movement parameters of the first virtual object based on a first position which is a current position of the first virtual object and a second position which is a destination of the first virtual object, and displaying the social message of the first virtual object, wherein the second position is located within the second area, and the second area is the entire or partial area of ​​the first area.

[0093] In some examples, the second location is any location within the second region, and optionally, the second location is any location within a first threshold range around the master control virtual object, and optionally, the region within the first threshold range around the master control virtual object is smaller than the second region.

[0094] The movement parameters include, but are not limited to, the direction in which the virtual object should move, the route along which it moves, the speed at which it moves, and the like.

[0095] In some embodiments, a distance to which the virtual object should move is determined based on the second position and the first position. In some embodiments, if both the second position and the first position have coordinates, the first position and the second position can provide a distance that the first virtual object needs to move horizontally and vertically. In some embodiments, the coordinates of the first position are (1,1) and the coordinates of the second position are (3,5), which means that the first virtual object needs to move a distance of 2 units horizontally and 4 units vertically. In some embodiments, based directly on the principle that a straight line between two points is the shortest, the first virtual object is directly controlled to move according to a straight line direction from the first position to the second position. In some other embodiments, when an obstacle exists between the first position and the second position and it is impossible to move the first virtual object directly according to a straight line direction from the first position to the second position, the movement route is adaptively adjusted according to the position of the obstacle. In some alternative embodiments, the movement of the first virtual object follows certain rules, for example, if the first virtual object is only movable horizontally or vertically, it is moved horizontally a distance of 2 units towards the second location and vertically a distance of 4 units towards the second location.

[0096] In some embodiments, the moving speed of the first virtual object may be preset, or may be adjusted by the user in response to a speed adjustment operation by the user. The speed adjustment operation may be an operation such as a long press or click of a widget by the user, or an operation such as a swipe of the screen. The present application does not limit the specific type of operation, and any operation by the user to adjust the speed of a virtual object may be included in the scope of protection of the present application.

[0097] In some other embodiments, the time it takes for the first virtual object to move from the start of its movement to the second position can be set in advance, and the movement speed of the first virtual object can be determined based on the time and the determined movement route.

[0098] In some embodiments, before step 351, the method further includes step 351-1 (not shown).

[0099] In some embodiments, the second location is on a border of the second region.

[0100] Step 351-1: The position point on the bounding box of the second region that is closest to the first position is determined as the second position.

[0101] In some embodiments, a position where a center point of a first virtual object is located is considered to be a first position of the first virtual object.

[0102] As shown in Fig. 7, a position w1 where the center point of the first virtual object exists is regarded as the first position of the first virtual object. At this time, point w1, which is the first position of the first virtual object, is outside the second region 702, and point w2 is determined on the frame line of the second region 702 so that point w2 is the point closest to point w1 from the second region 702. In the diagram shown in Fig. 7, the line connecting point w1 and point w2 is perpendicular to the x-axis.

[0103] The technical solution provided by the embodiments of the present application determines a position point on the bounding frame of the second area that is closest to the first position as the second position, obtains a direction and a position offset amount of the first virtual object based on the first position and the second position, and determines an offset parameter of the first area based on the second position and the first position, thereby realizing complete display of the first virtual object and the social messages of the first virtual object with minimal movement cost, thereby reducing the processing overhead of the device and speeding up the display efficiency of the virtual objects.

[0104] Step 352: Controlling the first virtual object to move from the first position to the second position based on the movement parameter.

[0105] In some embodiments, the movement parameter is the displacement of the first virtual object in the horizontal and vertical directions.

[0106] In some embodiments, let the position of the first virtual object be (x, y), and let the displacement required to move the first virtual object on the x-axis be X'. When the position of the center point of the first virtual object (the first position) is -m / 2 < x < m / 2, X' = m / 2 - x; when the position of the center point of the first virtual object (the first position) is m / 2 ≤ x ≤ W - m / 2, X' = 0; when the position of the center point of the first virtual object (the first position) is W - m / 2 < x < W + m / 2, X' = W - m / 2 - x. The displacement X' may be negative, indicating movement in the opposite direction of the x-axis.

[0107] In some embodiments, let the displacement required to move the first virtual object on the y-axis be Y'. When the position of the center point of the first virtual object (the first position) is -n / 2 < y < n / 2, Y' = n / 2 - x; when the position of the center point of the first virtual object (the first position) is n / 2 ≤ x ≤ H - n / 2, Y' = 0; when the position of the center point of the first virtual object (the first position) is H - n / 2 < x < H + n / 2, Y' = H - n / 2 - Y.

[0108] In some embodiments, it is expressed as vector a = (X', Y'), and vector a represents the displacement vector of the first virtual object.

[0109] In some embodiments, the movement vector a of the first virtual object is controlled within a certain period of time.

[0110] In some embodiments, after step 352, it further includes step 353 (not shown).

[0111] In some embodiments, the first virtual object is displayed in the first form during movement, and the first virtual object is displayed in the second form during non-movement, and the first form is different from the second form.

[0112] In some embodiments, the first form is a moving form and the second form is a normal form. In some embodiments, the moving form includes a running form, a slow walking form, a fast walking form, a driving form, etc. The normal form includes a standing form, a sitting form, a lying form, etc. This application does not limit the specific form type of the first form or the second form.

[0113] As shown in subfigure a of Fig. 11, the first form 111 of the first virtual object is a moving form, i.e. the first virtual object is displayed in the user interface as an image of a moving object. As shown in subfigure b of Fig. 11, the second form 112 of the first virtual object is a normal form.

[0114] The technical solutions provided by the embodiments of the present application distinguish the first virtual object into a first form and a second form, thereby facilitating the user to distinguish whether the first virtual object is in a moving process or a non-moving process, and facilitating the user to give reminders, while at the same time showing the first virtual object in a realistic form, thereby increasing the interest of communication scenes.

[0115] In step 353, if the first virtual object satisfies the first condition, controlling the first virtual object to return from the second position to the first position.

[0116] In some embodiments, when the first virtual object satisfies the first condition, the first virtual object is controlled to return to the first position. In some embodiments, the position of the first virtual object stored in the server is not changed, and the position of the first virtual object is changed only in the terminal device, i.e., the positions of different virtual objects displayed in the user interface are different for each user, but the position of each virtual object on the server is not actually changed. In some other embodiments, the positions of each virtual object in the server can be synchronized, but this application is not limited thereto. By controlling the first virtual object to return to the first position when the first virtual object satisfies the first condition, the user interface can be cleaned up so that the virtual objects on the user interface do not become more and more numerous, which affects the user's use and viewing. Similarly, the first virtual object can be controlled to return to the first position to enrich the means of communication and increase the fun of communication.

[0117] In some embodiments, the first condition includes at least one of the following: the first virtual object is fully displayed in the user interface for an amount of time equal to or greater than a threshold, a social message for the first virtual object is read, or an associated quest for the first virtual object is completed.

[0118] Optionally, when the length of time during which the first virtual object is moved and controlled to be displayed on the user interface is equal to or greater than a threshold, for example, the threshold is 5 minutes, and the first virtual object is controlled to be returned to the first position immediately after the display time reaches 5 minutes. This controls the first virtual object to be returned to the first position to avoid wasting resources when the user is busy with other things and does not check the user interface, and contributes to reducing the processing overhead of the device.

[0119] Optionally, when the social message of the first virtual object is accessed by the user, the first virtual object is controlled to return to the first position. If the social message is an unread message sent from the first virtual object to the user, when the user accesses the social message, the social message of the first virtual object is deemed to have been read, and the first virtual object is controlled to return to the first position. The technical solution provided by the embodiment of the present application controls the first virtual object to return to the first position when the social message is accessed by the user, thereby saving the moving time of the virtual object, reducing the waste of resources, and more quickly cleaning up the user's user interface to prepare for the next display of the first virtual object.

[0120] Optionally, when the corresponding quest of the first virtual object is completed by the user, control the first virtual object to return to the first position, for example, when the quest of the first virtual object is "collect 100 life points", control the first virtual object to return to the first position when the quest is completed. This is also for the consideration of saving processing overhead and cleaning up the user interface, which can further enhance the user's communication experience.

[0121] In an embodiment of the present application, by determining a first position and a second position and controlling and moving the first virtual object based on the movement parameters, the movement of the virtual object can be made more purposeful, so that it is possible to more quickly determine how to move the first virtual object, and thus improve the display speed of the virtual object.

[0122] Please refer to FIG. 12, which shows a flowchart of a method for displaying a virtual object provided by another embodiment of the present application. The execution subject of each step in the method may be the terminal device 10 in the implementation environment of the solution shown in FIG. 1, for example, the execution subject of each step may be a client of a target application program. In the following method embodiment, for convenience of description, only the case where the execution subject of each step is a "client" will be introduced and described. The method may include at least one of the following steps (320 to 363):

[0123] Step 320, displaying in a user interface a first area of ​​the virtual communication scene and at least one virtual object located in the first area.

[0124] Step 361: when a first virtual object in the virtual communication scene has a social message to be shown, and the first virtual object is located outside a second area of ​​the virtual communication scene, determining an offset parameter of the first area based on a first position which is a current position of the first virtual object, and displaying the social message of the first virtual object, wherein the second area is the whole or part of the first area.

[0125] In some embodiments, step 361 includes at least one of the following steps (steps 361-1 to 361-2, not shown):

[0126] Step 361-1: determining as a third location a location point on the bounding box of the second region that is closest to the first location.

[0127] Step 361-2: determining an offset parameter of the first region based on a first position, which is a current position of the first virtual object, and a third position of the second region.

[0128] In some embodiments, as shown in FIG. 13, in a virtual communication scene, the position point w3 of the center point of the first virtual object 1300 is the first position, and the point w4 on the second region 1320 is the position point with the closest distance to the point w3 on the second region, and therefore the point w4 is the third position, and an offset parameter is determined based on the first position and the third position, and the line connecting the point w3 and the point w4 shown in the figure is perpendicular to the horizontal direction, and therefore the offset parameter shown in FIG. 13 is only a vertical offset, and optionally, the distance from the point w3 to the point w4 is 5, and the offset parameter of the first region is determined as 5, and the first region 1310 is moved vertically upward by 5 units to obtain a modified first region, i.e., the third region 1330.

[0129] In some embodiments, the offset parameter of the first region is also the offset parameter of the screen, but has a scaling difference from the offset value of the screen when corresponding to a particular virtual communication scene.

[0130] Step 362: adjusting a position of the first region in the virtual communication scene based on the offset parameter, and determining the adjusted first region as a third region, wherein the third region contains the first virtual object.

[0131] Step 363, displaying a third region in a user interface.

[0132] In some embodiments, after step 363, the method further includes step 364 (not shown).

[0133] Step 364: if the first virtual object satisfies the first condition, switching the area displayed in the user interface from the third area back to the first area.

[0134] In some embodiments, the first condition includes at least one of the following: the first virtual object is fully displayed in the user interface for an amount of time equal to or greater than a threshold, a social message for the first virtual object is read, or an associated quest for the first virtual object is completed.

[0135] The technical solution provided by the embodiments of the present application allows the user interface to display the third area, thereby directly showing the first virtual object, enriching the means of communication and making the communication more interesting.

[0136] The technical solution provided by the embodiments of the present application determines a position point on the bounding frame of the second area that is closest to the first position as the third position, obtains a direction and a position offset amount of the first virtual object based on the first position and the third position, and determines an offset parameter of the first area based on the third position and the first position, thereby realizing complete display of the first virtual object and the social messages of the first virtual object with minimal movement cost, thereby reducing the processing overhead of the device and speeding up the display efficiency of the virtual objects.

[0137] Optionally, when the length of time during which the first virtual object is moved and controlled to be displayed on the user interface is equal to or greater than a threshold, the area displayed on the user interface is switched back from the third area to the first area, for example, the threshold is 5 minutes, and the area displayed on the user interface is immediately switched back from the third area to the first area when the display time reaches 5 minutes. This contributes to reducing the processing overhead of the device by switching the area displayed on the user interface back from the third area to the first area to avoid wasting resources when the user is busy with other things and does not check the user interface.

[0138] Optionally, when the social message of the first virtual object is accessed by the user, the area displayed in the user interface is switched back from the third area to the first area. If the social message is an unread message sent from the first virtual object to the user, when the user accesses the social message, the social message of the first virtual object is deemed to have been read, and the area displayed in the user interface is switched back from the third area to the first area. The technical solution provided by the embodiment of the present application can save the area switching time, reduce the waste of resources, and prepare for the next display of the first virtual object by switching the area displayed in the user interface back from the third area to the first area when the social message is confirmed by the user.

[0139] Optionally, when the corresponding quest of the first virtual object is completed by the user, the area displayed on the user interface is switched from the third area back to the first area, for example, when the quest of the first virtual object is "collect 100 life points", the area displayed on the user interface is switched from the third area back to the first area when the quest is completed or after the user accepts the quest. This is also for the consideration of saving processing overhead and cleaning up the user interface, which can further enhance the user's communication experience.

[0140] In an embodiment of the present application, by determining the first position and the third position and determining the position of the third area based on the offset parameter, the display of the user interface can be made more purposeful, so that the area to be displayed on the user interface can be determined more quickly and the display speed of the virtual object can be improved.

[0141] Please refer to FIG. 14, which shows a block diagram of a method for displaying a virtual object provided by one embodiment of the present application. The execution subject of each step in the method may be a terminal device 10 in the implementation environment of the solution shown in FIG. 1, for example, the execution subject of each step may be a client of a target application program. For convenience of description, the following method embodiment will only be introduced and described when the execution subject of each step is a "client". The method may include at least one of the following steps (P1 to P5):

[0142] Step P1: A step of stopping moving the screen.

[0143] It starts detecting unread messages after the user swipes the screen and pauses for 2 seconds.

[0144] Step P2: detecting whether a character at the edge of the screen has an unread message.

[0145] When a character having an unread message is detected at an edge and its center point falls within a specified region, it is determined that the character needs to move its position.

[0146] Step P3 is a step of calculating the distance the character should move.

[0147] Step P4: switching the character to a walking mode and moving the character a specified distance.

[0148] After the distance and direction to be moved by the character are calculated, the character is caused to move the specified distance in a walking posture.

[0149] Step P5 completes the movement and returns to the message position.

[0150] Once the movement is complete, the character returns to a standing position with an unread message.

[0151] Please refer to Fig. 15, which shows a block diagram of a method for displaying a virtual object provided by another embodiment of the present application. The method can include at least one of the following steps (S1 to S6):

[0152] Step S1: A client presentation layer receives a message sent from a character in a back-end logic layer.

[0153] Step S2: After the user's swipe stops for 2 s, cycle detection is triggered.

[0154] Step S3, where the presentation layer of the client has detected a character at the end that has an unread message.

[0155] Step S4: the client presentation layer calculates the distance the character should move.

[0156] Step S5: switching the character to a moving state and moving the character.

[0157] The movement state here is the state of the character moving, similar to the walking mode described above.

[0158] Step S6: switching to a message state after stopping the movement.

[0159] The message state here is the state of the character at rest, similar to the message pose above.

[0160] The following are apparatus embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.

[0161] Please refer to FIG. 16, which shows a block diagram of a display device of a virtual object provided by one embodiment of the present application. The device has a function of implementing the above-mentioned method examples, and the function can be implemented by hardware or by executing corresponding software by hardware. The device may be the above-mentioned terminal device, or may be provided in the terminal device. As shown in FIG. 16, the device 1600 may include a region display module 1610 and an object display module 1620.

[0162] The area display module 1610 is used for displaying, on a user interface, a first area of ​​a virtual communication scene and at least one virtual object located in the first area.

[0163] The object display module 1620 is used to control displaying a first virtual object in the virtual communication scene in the user interface and displaying the social message of the first virtual object when the first virtual object has a social message to be shown and is located outside a second area of ​​the virtual communication scene, the second area being all or a portion of the first area.

[0164] In some embodiments, as shown in FIG. 17, the object display module 1620 includes an object movement sub-module 1622 .

[0165] The object movement submodule 1622 is used for controlling the movement of the first virtual object from outside the second area to within the second area displayed on the user interface.

[0166] In some embodiments, as shown in FIG. 17, the object movement sub-module 1622 includes a parameter determination unit 1622a and a movement control unit 1622b.

[0167] The parameter determination unit 1622a is used to determine a movement parameter of the first virtual object based on a first position, which is a current position of the first virtual object, and a second position, which is a destination of the first virtual object, where the second position is within the second region.

[0168] The movement control unit 1622b is used for controlling the movement of the first virtual object from the first position to the second position based on the movement parameter.

[0169] In some embodiments, as shown in FIG. 17, the object movement sub-module 1622 further includes a position determination unit 1622c.

[0170] The position determining unit 1622c is used to determine, as the second position, a position point on the bounding box of the second region that has the closest distance to the first position.

[0171] In some embodiments, the movement control unit 1622b is further used to control the first virtual object to move from the second position back to the first position when the first virtual object satisfies a first condition.

[0172] In some embodiments, the first virtual object is displayed in a first form while moving, and the first virtual object is displayed in a second form while not moving, the first form being different from the second form.

[0173] In some embodiments, as shown in FIG. 17, the object display module 1620 further includes a scene display sub-module 1624 .

[0174] The scene display sub-module 1624 is used for displaying a third region of the virtual communication scene on the user interface, where the third region includes the first virtual object.

[0175] In some embodiments, as shown in FIG. 17, the scene display sub-module 1624 includes a parameter determination unit 1624a, a region adjustment unit 1624b, and a region display unit 1624c.

[0176] The parameter determination unit 1624a is used for determining an offset parameter of the first region based on a first position, which is the current position of the first virtual object.

[0177] The region adjustment unit 1624b is used for adjusting a position of the first region in the virtual communication scene based on the offset parameter, and determining the adjusted first region as the third region.

[0178] The area display unit 1624c is used to display the third area on the user interface.

[0179] In some embodiments, the parameter determination unit 1624a is used to determine a location point on the bounding box of the second region that has a closest distance to the first location as a third location.

[0180] The parameter determination unit 1624a is further used for determining the offset parameter of the first region based on the first position, which is the current position of the first virtual object, and the third position of the second region.

[0181] In some embodiments, the area display unit 1624c is further used to switch the area displayed in the user interface from the third area back to the first area when the first virtual object satisfies a first condition.

[0182] In some embodiments, the first condition includes at least one of the following: the first virtual object is fully displayed in the user interface for an amount of time equal to or greater than a threshold, a social message of the first virtual object is read, or an associated quest of the first virtual object is completed.

[0183] In some embodiments, the object display module 1620 is used to perform the step of controlling the display of the first virtual object in the user interface and the display of a social message of the first virtual object when the first virtual object is located outside a second area of ​​the virtual communication scene and when the first virtual object is located in a fourth area of ​​the virtual communication scene, the first area being a portion of the fourth area.

[0184] In some embodiments, the second area is a portion of the first area, and the dimensions of an annular area outside a bounding box of the second area and inside a bounding box of the fourth area are related to the dimensions of an interaction range of the first virtual object, and the first virtual object and a social message of the first virtual object are displayed within the interaction range of the first virtual object.

[0185] In some embodiments, as shown in FIG. 17, the apparatus further includes a region determination module 1630 .

[0186] The region determination module 1630 is used to determine a region extent of at least one of the second region and the fourth region.

[0187] In some embodiments, the region determination module 1630 is used to determine an optimal interaction distance for the master control virtual object based on a dimensional relationship between the first region and a master control virtual object.

[0188] The area determination module 1630 is further used to determine a circular area having the optimal interaction distance as a radius and the current position of the master control virtual object as a center as an area range of the second area.

[0189] The region determination module 1630 is further used to determine a region extent of the fourth region based on the first region and the optimal interaction distance, where a distance from a point in the fourth region to a bounding box of the first region is shorter than the optimal interaction distance.

[0190] In addition, the device provided by the above embodiment is merely an example of the division of the above functional modules in realizing the functions, and in actual application, the above functions can be assigned to be realized by different functional modules as necessary, that is, the internal structure of the device can be divided into different functional modules to realize all or part of the above functions. In addition, the device provided by the above embodiment belongs to the same concept as the method embodiment, and the specific realization process thereof is described in detail in the method embodiment, so it will not be repeated here.

[0191] Please refer to FIG. 18, which shows a configuration block diagram of a terminal device 1800 provided by an embodiment of the present application. The terminal device 1800 may be the terminal device 10 in the implementation environment shown in FIG. 1, for implementing the method for displaying a virtual object provided in the above embodiment. Specifically,

[0192] Generally, the terminal device 1800 includes a processor 1801 and a memory 1802 .

[0193] The processor 1801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1801 may be implemented in at least one of the following hardware forms: DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1801 may also include a main processor and a coprocessor, where the main processor is a processor also called a CPU (Central Processing Unit) for processing data in a wake-up state, and the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1801 may be integrated with a GPU (Graphics Processing Unit), where the GPU is used to render and draw content to be displayed by the display. In some embodiments, the processor 1801 may further include an AI (Artificial Intelligence) processor, where the AI ​​processor is used to process computational operations related to machine learning.

[0194] The memory 1802 may include one or more computer-readable storage media, which may be non-transitory. The memory 1802 may further include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1802 is used to store computer programs, which are configured to be executed by one or more of the processors to realize the method for displaying a virtual object.

[0195] In some embodiments, the terminal device 1800 may optionally include a peripheral interface 1803 and at least one peripheral. The processor 1801, the memory 1802, and the peripheral interface 1803 may be connected via a bus or signal lines. Each peripheral may be connected to the peripheral interface 1803 by a bus, signal lines, or a circuit board. Specifically, the peripheral includes at least one of a radio frequency circuit 1804, a display 1805, an audio circuit 1807, and a power supply 1808.

[0196] As will be appreciated by those skilled in the art, the configuration shown in FIG. 18 is not intended to limit the terminal device 1800 and may include more or fewer components than those shown, combine some components, or employ different arrangements of components.

[0197] In an exemplary embodiment, a computer-readable storage medium is further provided, the storage medium storing a computer program, the computer program being executed by a processor to realize the method for displaying a virtual object.

[0198] Optionally, the computer-readable storage medium may include a ROM (Read-Only Memory), a RAM (Random Access Memory), an SSD (Solid State Drives), or an optical disk, etc. The random access memory may include a ReRAM (Resistance Random Access Memory) and a DRAM (Dynamic Random Access Memory).

[0199] In an exemplary embodiment, a computer program product is further provided, the computer program product including a computer program, the computer program being stored in a computer-readable storage medium, a processor of a terminal device reading the computer program from the computer-readable storage medium, and the processor executing the computer program such that the terminal device performs the method for displaying a virtual object.

[0200] It should be understood that "multiple" as used herein means two or more than two. "And / or" represents the related relationship of related objects, and indicates that there may be three kinds of relationships, for example, A and / or B can indicate three situations: A alone, both A and B, and B alone. The symbol " / " generally indicates that related objects are in an "or" relationship. In addition, the numbering of steps described in this specification is merely an illustrative example of a possible execution order between steps, and in some other embodiments, the above steps may also be executed out of the numbering order, such as two different numbered steps being executed simultaneously, or two different numbered steps being executed in a reverse order to the order shown in the drawings, and this is not limited in the embodiments of the present application.

[0201] The above are only illustrative examples of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for displaying a virtual object, which is executed by a terminal device, comprising: displaying a first area of ​​a virtual communication scene in a user interface and at least one virtual object located in the first area; When a first virtual object in the virtual communication scene has a social message to be shown, if the first virtual object is located outside a second area of ​​the virtual communication scene, controlling displaying the first virtual object in the user interface and displaying the social message of the first virtual object, wherein the second area is a whole or partial area of ​​the first area; The method includes:

2. The step of controlling the display of the first virtual object in the user interface further comprises: The method of claim 1 , comprising controlling the first virtual object to move from outside the second region to the second region displayed in the user interface.

3. The step of controlling the first virtual object to move from outside the second area to the second area displayed on the user interface includes: determining a movement parameter of the first virtual object based on a first position that is a current position of the first virtual object and a second position that is a destination of the first virtual object, the second position being within the second region; and controlling the first virtual object to move from the first position to the second position based on the movement parameter.

4. prior to the step of determining a movement parameter of the first virtual object based on a first position that is a current position of the first virtual object and a second position that is a destination of the first virtual object, The method of claim 3 , further comprising the step of determining as the second location a location point on a bounding box of the second region that is closest in distance to the first location.

5. after the step of controlling the first virtual object to move from the first position to the second position based on the movement parameter, The method of claim 3 , further comprising controlling the first virtual object to return from the second position to the first position if the first virtual object satisfies a first condition.

6. The method of claim 2 , wherein the first virtual object is displayed in a first form while moving and the first virtual object is displayed in a second form while not moving, the first form and the second form being different.

7. The step of controlling the display of the first virtual object in the user interface further comprises: The method of claim 1 , further comprising displaying a third region of the virtual communication scene in the user interface, the third region including the first virtual object.

8. The step of displaying a third region of the virtual communication scene on the user interface comprises: determining an offset parameter of the first area based on a first position that is a current position of the first virtual object; adjusting a position of the first region in the virtual communication scene based on the offset parameter, and determining the adjusted first region as the third region; and displaying the third region in the user interface.

9. The step of determining an offset parameter of the first area based on a first position that is a current position of the first virtual object includes: determining a position point on a boundary frame of the second region that is closest to the first position as a third position; and determining the offset parameter of the first region based on the first position, the first position being a current position of the first virtual object, and the third position of the second region.

10. after the step of displaying a third region of the virtual communication scene on the user interface, The method of claim 7 , further comprising: if the first virtual object satisfies a first condition, switching the area displayed in the user interface from the third area back to the first area.

11. The first condition is: The time during which the first virtual object is completely displayed on the user interface is equal to or greater than a threshold value; The social message of the first virtual object has been read; a quest associated with the first virtual object is completed.

12. The method comprises:

2. The method of claim 1, further comprising: when the first virtual object is located outside a second area of ​​the virtual communication scene and the first virtual object is located in a fourth area of ​​the virtual communication scene, performing the step of controlling displaying the first virtual object in the user interface and displaying a social message of the first virtual object, wherein the first area is a portion of the fourth area.

13. The method of claim 12, wherein the second area is a portion of the first area, and a dimension of an annular area outside a bounding box of the second area and inside a bounding box of the fourth area is related to a dimension of an interaction range of the first virtual object, and the first virtual object and a social message of the first virtual object are displayed within the interaction range of the first virtual object.

14. The method of claim 12 , further comprising determining a region extent of at least one of the second region and the fourth region.

15. The step of determining a region extent of at least one of the second region and the fourth region further comprises: determining an optimal interaction distance of the master control virtual object based on a dimensional relationship between the first region and the master control virtual object; determining a circular area having a radius equal to the optimal interaction distance and a center equal to the current position of the master control virtual object as a range of the second area; 15. The method of claim 14, further comprising: determining a region extent of the fourth region based on the first region and the optimal interaction distance, wherein a distance from a point in the fourth region to a bounding box of the first region is less than the optimal interaction distance.

16. an area display module adapted to display a first area of ​​a virtual communication scene in a user interface and at least one virtual object located in the first area; and an object display module used to control displaying the first virtual object in the user interface and displaying the social message of the first virtual object when the first virtual object in the virtual communication scene has a social message to be shown and the first virtual object is located outside a second area of ​​the virtual communication scene, the second area being the entire or partial area of ​​the first area.

17. A terminal device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement a method according to any one of claims 1 to 15.

18. A computer program causing a computer to implement the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Method and system for interaction between virtual images, terminal and server

    CN107741809A

  • Virtual object interaction method and device, storage medium and electronic equipment

    CN114425167A

  • Method, device, equipment and computer program for controlling virtual objects in a virtual scene

    JP2022540283A

  • VIDEO GAME DEVICE, VIDEO GAME PROGRESS CONTROL METHOD, PROGRAM AND RECORDING MEDIUM

    JP3795856B2

  • Systems and methods for prioritizing notifications on mobile devices

    US20140229880A1