Virtual-world display method and apparatus, and device and storage medium

By switching perspectives in the virtual world and hiding content that should not be seen, the information leakage caused by perspective switching is solved, ensuring balance and consistency of the user experience.

WO2024244647A1PCT designated stage expired Publication Date: 2024-12-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/083642
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-29
Filing Date
2024-03-25
Publication Date
2024-12-05

AI Technical Summary

Technical Problem

Perspective switching or perspective change in the virtual world may cause users to receive additional information that they should not have received, affecting the balance and user experience of the application.

Method used

By providing a virtual world display method, allowing the first client and the second client to switch viewing angles, ensuring that the viewing range of the second viewing angle is different from that of the first viewing angle, and hidden after the viewing angle is switched Virtual objects that cannot be observed in the first perspective ensure that the user does not observe content that should not be seen through the second perspective.

Benefits of technology

It effectively solves the adverse effects of perspective switching, avoids showing users information that users should not have received, and ensures balance and consistency of user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024083642_05122024_PF_FP_ABST
    Figure CN2024083642_05122024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a virtual-world display method and apparatus, and a device and a storage medium, which are applied to the technical field of computers. The method comprises: displaying a first virtual-world picture, wherein the first virtual-world picture comprises a picture of a virtual world which is observed by using a first angle of view of a first virtual object (410); in response to a first-angle-of-view switching operation, switching the first angle of view of the first virtual object to a second angle of view, wherein the field of view of the second angle of view is different from the field of view of the first angle of view (430); and displaying a second virtual-world picture, wherein the second virtual-world picture comprises a picture of the virtual world which is observed by using the second angle of view of the first virtual object, and wherein if there is a third virtual object within a difference set range of the field of view of the second angle of view and the field of view of the first angle of view, the third virtual object is invisible in the second virtual-world picture (450).
Need to check novelty before this filing date? Find Prior Art

Description

Virtual world display method, device, equipment and storage medium

[0001] This application claims priority to Chinese patent application No. 202310621895.X, filed on May 29, 2023, entitled “Virtual World Display Method, Device, Equipment and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] The embodiments of the present application relate to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for displaying a virtual world. Background Art

[0003] For applications that allow virtual objects to observe the virtual world from different perspectives, perspective switching or perspective changes may cause users to receive additional information that they should not have received.

[0004] For example, in a first-person game, user A plays the game from the default first-person perspective of a virtual object. When user A selects a maneuver to attract enemy fire, the user interface switches from the first-person perspective to the third-person perspective, allowing them to view the maneuver performed by the virtual object they control. However, virtual objects that were obstructed from user A's first-person perspective may become visible to user A in the third-person perspective because they are no longer obstructed. This allows user A to observe virtual objects that were not visible from the default first-person perspective, potentially shifting the game situation in user A's favor. This phenomenon can seriously affect the balance of the application and the user experience.

[0005] Therefore, how to solve the adverse effects of perspective switching or perspective changing and avoid showing users information that they should not receive is a problem that needs to be solved.

[0006] Summary of the Invention

[0007] This application provides a method, device, equipment, and storage medium for displaying a virtual world. The technical solution is as follows:

[0008] According to one aspect of the present application, a method for displaying a virtual world is provided. The method is performed by a first client and a second client, and the method includes:

[0009] The first client displays a first virtual world screen, the first virtual world screen including a screen observed from a first perspective of a first virtual object; in response to a first perspective switching operation, switches the first perspective of the first virtual object to a second perspective, the second perspective having a visual range different from the visual range of the first perspective; and displays a second virtual world screen, the second virtual world screen including a screen observed from the second perspective of the first virtual object, and virtual objects displayed in the second virtual world screen being a subset of the virtual objects displayed in the first virtual world screen;

[0010] The second client displays a third virtual world screen, wherein the third virtual world screen includes a screen viewing the virtual world from a third perspective of the second virtual object, and a third virtual object located within a target space in the virtual world is displayed in the third virtual world screen and is not displayed in the first virtual world screen and the second virtual world screen;

[0011] Among them, the target space range is the overlapping range of the visual range of the third perspective and the visual range of the second perspective, and the target space range is the non-overlapping range of the visual range of the third perspective and the visual range of the first perspective.

[0012] According to one aspect of the present application, a method for displaying a virtual world is provided. The method is executed by a first client and includes:

[0013] displaying a first virtual world picture, wherein the first virtual world picture includes a picture of the virtual world observed from a first perspective of a first virtual object;

[0014] In response to a first perspective switching operation, switching the first perspective of the first virtual object to a second perspective, wherein a visual range of the second perspective is different from a visual range of the first perspective;

[0015] A second virtual world screen is displayed, wherein the second virtual world screen includes a screen of the virtual world observed using a second perspective of the first virtual object, and when a third virtual object exists in a difference range between a visual range of the second perspective and a visual range of the first perspective, the third virtual object is not visible in the second virtual world screen.

[0016] According to one aspect of the present application, a device for displaying a virtual world is provided, the device comprising:

[0017] A display module, configured to display a first virtual world image, wherein the first virtual world image includes an image of the virtual world observed from a first perspective of a first virtual object;

[0018] a switching module, configured to switch the first perspective of the first virtual object to a second perspective in response to a first perspective switching operation, wherein a visual range of the second perspective is different from a visual range of the first perspective;

[0019] The display module is further configured to display a second virtual world screen, wherein the second virtual world screen includes a screen obtained by observing the virtual world from a second perspective of the first virtual object, and when a third virtual object exists within a difference between a visible range of the second perspective and a visible range of the first perspective, the third virtual object is not visible in the second virtual world screen.

[0020] According to another aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the virtual world display method as described above.

[0021] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the virtual world display method as described above.

[0022] According to another aspect of the present application, a computer program product is provided. The computer program product stores a computer program, and the computer program is loaded and executed by a processor to implement the virtual world display method as described above.

[0023] According to another aspect of the present application, a chip is provided, wherein the chip includes a programmable logic circuit and / or program instructions, and a computer device equipped with the chip is used to implement the virtual world display method as described above.

[0024] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:

[0025] Supports switching the perspective of observing the virtual world. After the perspective is switched, even if there is a third virtual object in the difference range between the second perspective's visible range and the first perspective's visible range, the third virtual object will not be visible in the second virtual world screen. This helps to solve the adverse effects of perspective switching or perspective changes, avoids showing users information that they should not receive, and ensures that users will not observe virtual objects that cannot be observed in the first perspective through the second perspective. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] FIG1 shows a schematic diagram of a display of a virtual world provided by an exemplary embodiment of the present application;

[0027] FIG2 shows a schematic diagram of a display of a virtual world provided by an exemplary embodiment of the present application;

[0028] FIG3 shows a structural block diagram of a computer system provided by an exemplary embodiment of the present application;

[0029] FIG4 is a schematic diagram showing a flow chart of a method for displaying a virtual world provided by an exemplary embodiment of the present application;

[0030] FIG5 is a schematic diagram showing a flow chart of a method for displaying a virtual world provided by an exemplary embodiment of the present application;

[0031] FIG6 shows a schematic diagram of a camera model provided by an exemplary embodiment of the present application;

[0032] FIG7 shows a schematic diagram of types of virtual objects provided by an exemplary embodiment of the present application;

[0033] FIG8 shows a schematic diagram of types of virtual objects provided by an exemplary embodiment of the present application;

[0034] FIG9 shows a schematic diagram of a display of a virtual world provided by an exemplary embodiment of the present application;

[0035] FIG10 shows a schematic diagram of a display of a virtual world provided by an exemplary embodiment of the present application;

[0036] FIG11 shows a schematic diagram of a display of a virtual world provided by an exemplary embodiment of the present application;

[0037] FIG12 shows a schematic diagram of a display of a virtual world provided by an exemplary embodiment of the present application;

[0038] FIG13 shows a schematic diagram of a display of a virtual world provided by an exemplary embodiment of the present application;

[0039] FIG14 is a schematic flow chart showing a method for displaying a virtual world according to an exemplary embodiment of the present application;

[0040] FIG15 shows a schematic diagram of a display of a virtual world provided by an exemplary embodiment of the present application;

[0041] FIG16 shows a schematic diagram of displaying a virtual world provided by an exemplary embodiment of the present application;

[0042] FIG17 shows a schematic diagram of displaying a virtual world provided by an exemplary embodiment of the present application;

[0043] FIG18 is a schematic structural diagram of a virtual world display device provided by an exemplary embodiment of the present application;

[0044] FIG19 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application;

[0045] FIG20 shows a structural block diagram of a server provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0046] First, a brief introduction to the relevant technologies involved in the embodiments of this application is given:

[0047] A virtual world is a virtual world displayed or provided by an application client when it is running on a terminal. The application includes but is not limited to game applications, extended reality (XR) applications, social applications, interactive entertainment applications, metaverse applications, etc. The virtual world can be a simulation of the real world, a semi-simulated and semi-fictitious environment, or a purely fictitious environment. The virtual world can be any one of a two-dimensional virtual world, a 2.5-dimensional virtual world, and a three-dimensional virtual world, and the embodiments of the present application are not limited to this. The following embodiments are illustrated by taking a three-dimensional virtual world as an example.

[0048] Virtual objects are movable objects in a virtual world. These movable objects can be virtual characters, virtual animals, animated characters, and so on. For example, people, animals, plants, oil drums, walls, rocks, and so on displayed in a three-dimensional virtual world. Alternatively, virtual objects are three-dimensional models created using animation skeletal technology. Each virtual object has its own unique shape and volume in the three-dimensional virtual world and occupies a portion of the space within the three-dimensional virtual world.

[0049] User Interface (UI) controls are any visual controls or elements that can be seen on the user interface of an application, such as pictures, input boxes, text boxes, buttons, labels and other controls. Some of these UI controls respond to user operations. For example, a user triggers a perspective switching control corresponding to a perspective switching, thereby changing the perspective for observing the virtual world. Exemplarily, UI controls also include controls that cannot be seen on the user interface of an application but can respond to user operations. For example, there is a position on the user interface, and when a user clicks on the position, the perspective for observing the virtual world can be changed. The UI controls involved in the embodiments of the present application include, but are not limited to, at least one of: a performance control, a perspective switching control, and a position change control.

[0050] The method provided in this application can be applied to applications that support virtual worlds. Exemplarily, applications that support virtual worlds are applications in which users can control the movement of virtual objects in the virtual world. Exemplarily, the method provided in this application can be applied to: Virtual Reality (VR) applications, Augmented Reality (AR) applications, social applications, interactive entertainment applications, metaverse applications, three-dimensional map programs, VR games, AR games, Shooting Games (STG), First-Person Shooting Games (FPS), Third-Person Shooting Games (TPS), Fighting Games (FTG), Action Games (ACT), Multiplayer Online Battle Arena (MOBA) games, Real-Time Strategy Games (RTS), Massive / Massively Multiplayer Online Games (MMOG), and any of the programs in arcade games. The following embodiments are illustrated by applications in games.

[0051] In some embodiments, the application program may be a shooting game, a racing game, a role-playing game, an adventure game, a sandbox game, a tactical competitive game, or the like. The client may support at least one of the following operating systems: Windows, Apple, Android, iOS, and Linux, and clients with different operating systems may be interconnected. In some embodiments, the client is a program suitable for use on a mobile terminal with a touch screen.

[0052] In some embodiments, the client is an application developed based on a 3D engine, such as the 3D engine is a Unity engine.

[0053] When a user controls a virtual object in a virtual world, they may switch their perspective, such as from a first-person to a third-person perspective, or change their viewing angle, such as from a smaller visual range to a larger one. The visual range refers to the range visible to the user from a certain viewing angle. The visual range at a given viewing angle can be represented by at least one of the following: size or displayed content.

[0054] As shown in FIG1 , user A uses a first-person perspective to control a virtual object 101 to move in the virtual world. Blocked by a virtual wall 102 , no other virtual objects are displayed on the user interface except the virtual object 101 .

[0055] As shown in Figure 2, user A switches the first-person perspective to a third-person perspective. At this time, the user interface shows that there is a virtual object 103 on the back of the wall 102. In other words, after the perspective is switched, user A can see objects or virtual objects that cannot be seen in the first-person perspective through the third-person perspective.

[0056] It is understandable that this phenomenon will seriously affect the balance of the above-mentioned games, VR, AR, interactive entertainment and other applications, causing users to receive additional information that they should not receive through perspective switching or perspective changes, seriously affecting the user experience.

[0057] Based on the above problems, the present application proposes a method for displaying a virtual world, which helps to solve the adverse effects caused by perspective switching or perspective changes and avoids displaying information to users that they should not receive.

[0058] 3 shows a block diagram of a computer system according to an exemplary embodiment of the present application. The computer system 300 includes at least one of a first client 310 , a server 320 , and a second client 330 .

[0059] The first client 310 has installed and runs applications that support the virtual world, such as game applications, XR applications, virtual social applications, interactive entertainment applications, metaverse applications, etc. The first client 310 is a terminal used by a first user.

[0060] In some embodiments, the first client 310 may be considered as a first user using the first client 310 .

[0061] The first client 310 is connected to the server 320 via a wireless network or a wired network.

[0062] The server 320 includes one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Schematically, the server 320 includes a processor 321 and a memory 322, which in turn includes a receiving module 3221, a display module 3222, and a control module 3223. The server 320 is used to provide background services for applications that support the virtual world. Optionally, the server 320 performs the primary computing tasks, while the first client 310 and the second client 330 perform the secondary computing tasks; alternatively, the server 320 performs the secondary computing tasks, while the first client 310 and the second client 330 perform the primary computing tasks; alternatively, the server 320, the first client 310, and the second client 330 perform the primary computing tasks; alternatively, the server 320, the first client 310, and the second client 330 utilize a distributed computing architecture for collaborative computing.

[0063] The second client 330 has an application program supporting the virtual world installed and running. The second client 330 is a terminal used by the second user.

[0064] In some embodiments, the second client 330 may be considered as a second user using the second client 330 .

[0065] Optionally, there is only the first user in the current field of view; or, there is only the second user in the current field of view; or, there is only the first user in the current game; or, there is only the second user in the current game; or, there is only the first user in the current battlefield; or, there is only the second user in the current battlefield.

[0066] Optionally, the first user and the second user may or may not be in the same field of view; or, the first user and the second user may or may not be in the same game; or, the first user and the second user may or may not be in the same battlefield. Optionally, the first user and the second user may belong to the same team, the same organization, have a friendship relationship, or have temporary communication permissions.

[0067] Optionally, the applications installed on the first client 310 and the second client 330 are the same, or the applications installed on the two clients are the same type of applications on different control system platforms. The first client 310 can generally refer to one of multiple clients, and the second client 330 can generally refer to one of multiple clients. This embodiment only uses the first client 310 and the second client 330 as an example. The device types of the first client 310 and the second client 330 are the same or different, and the device types include but are not limited to: at least one of a smartphone, a tablet computer, an e-book reader, a laptop computer, a desktop computer, a television, an AR terminal, a VR terminal, a mixed reality (Mediated Reality, MR) terminal, an XR terminal, a baffle reality (BR) terminal, a cinematic reality (CR) terminal, and a deceived reality (DR) terminal. The following embodiments are illustrated by taking the terminal including a smartphone as an example.

[0068] Those skilled in the art will appreciate that the number of the above-mentioned clients or users may be more or less. For example, the above-mentioned client or user may be only one, or the above-mentioned clients or users may be dozens or hundreds, or even more. The embodiments of the present application do not limit the number of clients or users and the device types.

[0069] It should be noted that the information involved in this application (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the information involved in this application is obtained with full authorization, and the client and server only cache the information during the program operation, and will not solidify the storage and reuse the relevant data of the information.

[0070] FIG4 is a flow chart illustrating a method for displaying a virtual world according to an exemplary embodiment of the present application. This embodiment illustrates the method as being executed by the first client 310 and / or server 320 and / or second client 330 shown in FIG3 . The method includes at least some of the following steps:

[0071] Step 410: Displaying a first virtual world image, where the first virtual world image includes an image of the virtual world observed from a first perspective of a first virtual object;

[0072] The client displays a user interface. The user interface is the interface of the application displayed on the client. Exemplarily, the user interface includes a first virtual world screen and UI controls located on the first virtual world screen.

[0073] The first virtual object is a virtual object controlled by the first user and can be a virtual person, a virtual animal, an animated character, a simulated character, etc., such as a person, an animal, a plant, an oil drum, a wall, a stone, etc. displayed in a three-dimensional virtual world.

[0074] The first virtual object can move in the virtual world, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, shooting, throwing, performing, attacking other virtual objects, using virtual props to attack other virtual objects, and using virtual props to charge and attack other virtual objects.

[0075] Step 430: In response to the first perspective switching operation, switch the first perspective of the first virtual object to a second perspective;

[0076] The viewing angle is the angle from which the virtual world is viewed. The visual range is the range that can be observed by the user at a certain viewing angle. For example, the visual range at a certain viewing angle can be represented by at least one of the range size and displayed content.

[0077] The visual range of the second viewing angle is different from the visual range of the first viewing angle. Optionally, the different visual ranges may be different in size, or in all or part of the displayed content within the visual range.

[0078] Switching the perspective refers to switching the perspective of observing the virtual world. Optionally, the perspective of observing the virtual world includes at least one of the first perspective or the second perspective.

[0079] Exemplarily, the first perspective includes a first-person perspective, and the second perspective includes a third-person perspective. Alternatively, the visual range of the first perspective is a subset of the visual range of the second perspective. For example, the visual range of the first perspective includes display content A and display content B, and the visual range of the second perspective includes display content A, display content B, display content C, and display content D. Alternatively, the visual range of the second perspective includes the visual range of the first perspective. For example, the visual range of the second perspective is a circular range with a virtual item as the center and a radius of 10 cm, and the visual range of the first perspective is a circular range with the above virtual item as the center and a radius of 7 cm.

[0080] The first perspective switching operation is used to switch the first perspective of the first virtual object to the second perspective. Exemplarily, the first perspective switching operation includes at least one of a touch operation, a gesture operation, a key operation, a click operation, a slide operation, and a drag operation. Click operations include but are not limited to single-click and double-click operations, and press operations include but are not limited to short press and long press operations.

[0081] The first perspective of the first virtual object is switched to the second perspective, that is, the perspective of the first user observing the virtual world is switched from the first perspective of the first virtual object to the second perspective.

[0082] Step 450: Display a second virtual world screen, where the second virtual world screen includes a screen of the virtual world observed from a second perspective of the first virtual object, and when a third virtual object exists within a difference range between a visible range of the second perspective and a visible range of the first perspective, the third virtual object is not visible in the second virtual world screen.

[0083] In response to the first perspective switching operation, a user interface is displayed, where the user interface includes a second virtual world screen and UI controls located on the second virtual world screen.

[0084] The third virtual object is a virtual object controlled by the second user and can be a virtual person, a virtual animal, an animated character, a simulated character, etc., such as a person, an animal, a plant, an oil drum, a wall, a stone, etc. displayed in a three-dimensional virtual world.

[0085] The third virtual object can move in the virtual world, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, shooting, throwing, performing, attacking other virtual objects, using virtual props to attack other virtual objects, and using virtual props to charge and attack other virtual objects.

[0086] Because the visual range of the second perspective differs from the visual range of the first perspective, a difference range exists between the visual range of the second perspective and the visual range of the first perspective. Specifically, this difference range refers to the range formed by the different portions between the visual ranges of the second perspective and the first perspective. For example, the visual range of the first perspective includes display content A and display content B, and the visual range of the second perspective includes display content A, display content B, display content C, and display content D. The difference range between the visual range of the second perspective and the visual range of the first perspective refers to the range corresponding to display content C and display content D. For another example, the visual range of the second perspective is a circular range centered on a virtual object with a radius of 10 cm, while the visual range of the first perspective is a circular range centered on the virtual object with a radius of 7 cm. The difference range between the visual range of the second perspective and the visual range of the first perspective refers to the range formed by the different portions between the two circular ranges of different sizes. When the third virtual object exists in the difference range, the third virtual object is invisible in the second virtual world screen.

[0087] That is to say, although there is a third virtual object in the difference range of the visual range of the second perspective and the visual range of the first perspective, the third virtual object cannot be observed in the second virtual world screen; or it can be understood that although there is a third virtual object in the difference range of the visual range of the second perspective and the visual range of the first perspective, the third virtual object is not displayed in the second virtual world screen; or it can be understood that although there is a third virtual object in the difference range of the visual range of the second perspective and the visual range of the first perspective, the first virtual object or the first user cannot see the third virtual object under the second perspective of the first virtual object.

[0088] It should be noted that the above embodiments of steps 410, 430, and 450 describe the screen displayed by the first client. Based on the above embodiments, for the second client, the second client also displays a third virtual world screen, which includes a screen viewing the virtual world from a third perspective of the second virtual object. The third virtual object located within the target spatial range of the virtual world is displayed in the third virtual world screen and is not displayed in the first and second virtual world screens. The target spatial range is the overlapped visible range of the third perspective and the visible range of the second perspective, and the target spatial range is the non-overlapping visible range of the third perspective and the visible range of the first perspective.

[0089] In summary, the method provided in this embodiment supports switching the perspective of observing the virtual world. After the perspective is switched, even if there is a third virtual object in the difference range between the visible range of the second perspective and the visible range of the first perspective, the third virtual object is invisible in the second virtual world screen. This helps to solve the adverse effects brought about by perspective switching or perspective changes, avoids displaying information to users that users should not receive, and ensures that users will not observe virtual objects that cannot be observed in the first perspective through the second perspective.

[0090] In some embodiments, step 410 may be implemented as step 510, step 430 may be implemented as step 520, and step 450 may be implemented as steps 530, 540, 550, 560, and 570. FIG5 shows a flow chart of a method for displaying a virtual world provided by an exemplary embodiment of the present application. This embodiment is described using the method executed by the first client 310 and / or server 320 and / or second client 330 shown in FIG3 as an example. The method includes at least some of the following steps:

[0091] Step 510: Displaying a first virtual world image, where the first virtual world image includes an image of the virtual world observed from a first perspective of a first virtual object;

[0092] The client displays a user interface. The user interface is the interface of the application displayed on the client. Exemplarily, the user interface includes a first virtual world screen and UI controls located on the first virtual world screen.

[0093] The first virtual object is a virtual object controlled by a first user.

[0094] In the embodiments of the present application, virtual objects may be virtual characters, virtual animals, cartoon characters, simulated characters, etc., such as characters, animals, plants, oil drums, walls, stones, etc. displayed in a three-dimensional virtual world. Different virtual objects may have the same or different forms, and different virtual objects may have the same or different appearances.

[0095] Virtual objects can move in the virtual world, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, shooting, throwing, performing, attacking other virtual objects, using virtual props to attack other virtual objects, and using virtual props to charge and attack other virtual objects.

[0096] Step 520: In response to the first perspective switching operation, switch the first perspective of the first virtual object to a second perspective;

[0097] The visual range of the second viewing angle is different from the visual range of the first viewing angle. Optionally, the different visual ranges may be different in size, or in all or part of the displayed content within the visual range.

[0098] In the embodiments of this application, the perspective refers to the angle from which the virtual world is viewed through the camera model. Perspective switching refers to switching the perspective from which the virtual world is viewed. In some embodiments, the camera model may be referred to simply as a camera.

[0099] The first perspective of the first virtual object is bound to the first camera. That is, the first perspective of the first virtual object is the perspective of the virtual world viewed through the first camera. The second perspective of the first virtual object is bound to the second camera. That is, the second perspective of the first virtual object is the perspective of the virtual world viewed through the second camera. The first camera can be referred to as the first camera model, and the second camera can be referred to as the second camera model.

[0100] The following describes perspective using a virtual object as an example. Optionally, the camera model automatically follows the virtual object in the virtual world. Specifically, when the virtual object's position changes, the camera model follows the virtual object's position in the virtual world, and the camera model remains within a preset distance range of the virtual object. Optionally, during this automatic following process, the relative position of the camera model and the virtual object remains unchanged.

[0101] The camera model is a three-dimensional model located around a virtual object in the virtual world. When using a first-person perspective, the camera model is located near the virtual object's head, on the virtual object's head, or in the virtual object's eyes.

[0102] In some embodiments, when a first-person perspective is adopted, the viewing direction of the camera model is the same as the viewing direction of the eye portion.

[0103] When using a third-person perspective, the camera model can be located behind the virtual object and bound to it; alternatively, the camera model can be located at any position within a preset distance from the virtual object, allowing the virtual object in the virtual world to be viewed from different angles. For example, the camera model can be located to the left of the virtual object at a preset distance; another example, the camera model can be located to the right of the virtual object at a preset distance; another example, the camera model can be located in front of the left of the virtual object at a preset distance; another example, the camera model can be located behind the right of the virtual object at a preset distance, and so on. Alternatively, when the third-person perspective is an over-the-shoulder perspective of the virtual object, the camera model can be located behind the virtual object at a preset distance, such as at the head and shoulders of the virtual character. Alternatively, when the third-person perspective is a bird's-eye view of the virtual object, the camera model can be located above the virtual object's head at a preset distance, such as at the upper left or upper right of the virtual character. A bird's-eye view is a perspective from which the virtual world is viewed from above.

[0104] In some embodiments, when a third-person perspective is used, the camera model is positioned around the virtual object, and the virtual object remains centered within the camera model's field of view.

[0105] In some embodiments, the viewing direction of the camera model bound to the third-person perspective is consistent with the viewing direction of the camera model bound to the first-person perspective.

[0106] Optionally, the camera model is not actually displayed in the virtual world, that is, the camera model is not displayed in the virtual world displayed by the user interface.

[0107] The camera model is located at an arbitrary position at a preset distance from the virtual object as an example for explanation. Optionally, one perspective corresponds to one camera model, or one perspective is bound to one camera model. The camera model can rotate with the virtual object as the rotation center, such as rotating the camera model with any point of the virtual object as the rotation center. During the rotation process, the camera model not only rotates in angle, but also shifts in displacement. During the rotation, the distance between the camera model and the rotation center remains unchanged, that is, the camera model is rotated on the surface of a sphere with the rotation center as the center of the sphere, wherein any point of the virtual object can be the head, torso, or any point around the virtual object of the virtual object. This embodiment of the present application does not limit this. Optionally, when the camera model observes the virtual world, the center of the perspective of the camera model points to the direction of the point on the sphere where the camera model is located pointing to the center of the sphere.

[0108] Optionally, the camera model can also observe the virtual object at preset angles in different directions of the virtual object.

[0109] Schematically, please refer to Figure 6. A point is determined in the virtual object 11 as the rotation center 12, and the camera model can rotate around the rotation center 12. When the camera model rotates around the rotation center 12, the viewing direction of the camera model also changes with the rotation of the camera model. Optionally, the first viewing angle of the virtual object 11 is bound to the first camera, and the first camera is configured with an initial position, such as the position of the virtual object's brain, that is, position 13. Schematically, a viewing angle switching operation is performed to switch the first viewing angle of the virtual object 11 to a second viewing angle, and the second viewing angle is bound to the second camera, and the second camera is also configured with an initial position, such as the initial position is position 14. Therefore, after performing the viewing angle switching operation, the camera model observing the virtual world is switched from the first camera to the second camera, and the position of the camera model observing the virtual world is also switched from position 13 to position 14 accordingly.

[0110] In some embodiments, the first perspective of the first virtual object includes a first-person perspective of the first virtual object, and the second perspective of the first virtual object includes a third-person perspective of the first virtual object.

[0111] In some embodiments, the visual range of the first perspective of the first virtual object is a subset of the visual range of the second perspective of the first virtual object. For example, the visual range of the first perspective of the first virtual object includes display content A and display content B, and the visual range of the second perspective of the first virtual object includes display content A, display content B, display content C, and display content D. Alternatively, the visual range of the second perspective of the first virtual object includes the visual range of the first perspective of the first virtual object. For example, the visual range of the second perspective of the first virtual object is a circular range with a virtual item as the center and a radius of 10 cm, and the visual range of the first perspective of the first virtual object is a circular range with the virtual item as the center and a radius of 7 cm.

[0112] The first perspective switching operation is used to switch the first perspective of the first virtual object to the second perspective. Exemplarily, the first perspective switching operation includes at least one of a touch operation, a gesture operation, a key operation, a click operation, a slide operation, a drag operation, and a press operation. Click operations include but are not limited to single-click and double-click operations, and press operations include but are not limited to short press and long press operations.

[0113] The first perspective of the first virtual object is switched to the second perspective, that is, the perspective of the first user observing the virtual world is switched from the first perspective of the first virtual object to the second perspective.

[0114] In some embodiments, the first user performs at least one of a touch operation, a key operation, a click operation, a slide operation, a press operation, etc. on the UI control to perform a first perspective switching operation to switch the first perspective of the first virtual object to a second perspective.

[0115] In some embodiments, the first user performs at least one of a key operation on the keyboard, a click operation on the mouse, a sliding operation on the mouse, etc. to perform a first perspective switching operation to switch the first perspective of the first virtual object to a second perspective.

[0116] In some embodiments, the first user performs a gesture operation to perform a first perspective switching operation to switch the first perspective of the first virtual object to a second perspective.

[0117] In some embodiments, the first user performs at least one of a drag operation, a slide operation, a click operation, a press operation, etc. on the user interface to perform a first perspective switching operation to switch the first perspective of the first virtual object to a second perspective.

[0118] In some embodiments, the UI control is a perspective switching control, which is dedicated to perspective switching operations, such as the UI control is used to switch from a first perspective to a second perspective, and / or, to switch from a second perspective to a first perspective.

[0119] In some embodiments, the UI control is a functional control related to perspective switching. For example, the UI control itself is used for performing or displaying functions, and the perspective switching is automatically performed after the user performs an operation on the UI control.

[0120] Exemplarily, the UI control is a performance control. When a user touches the UI control, an action list is displayed on the user interface. The action list contains one or more user-selectable performance actions, such as dancing, clapping, making a heart shape, bowing, and attracting fire. The action list displays the performance actions using at least one of text, images, and animations. When a user swipes or touches the action list and selects the performance action "dance," the user's perspective of the virtual world automatically switches from the first perspective to the second perspective. From the second perspective, the user can observe the virtual object "dancing." Optionally, after the "dance" ends, the user's perspective of the virtual world automatically switches from the second perspective back to the first perspective. The first perspective is the default perspective in the game; for example, when a virtual object is in combat, running, crawling, or stationary, the first user's perspective of the virtual world defaults to the first perspective. The second perspective is an optional or non-default perspective in the game; for example, when a virtual object is performing, the first user's perspective of the virtual world is the second perspective.

[0121] Step 530: performing ray detection on the virtual object within the visual range of the first viewing angle based on the first camera, and determining whether the virtual object is at least one of a visible type or an invisible type;

[0122] Ray detection involves emitting rays from the center point of a camera toward a virtual object to determine whether the virtual object is visible or invisible. In this embodiment, ray detection involves emitting rays from the center point of a first camera toward a virtual object within the visible range of a first viewing angle.

[0123] In some embodiments, a ray is emitted from the center point of the first camera to a virtual object within the visible range of the first perspective; a virtual object corresponding to a collision body model that intersects with the ray is determined to be a visible type; a virtual object corresponding to a collision body model that does not intersect with the ray is determined to be an invisible type; wherein the virtual object is located inside the collision body model.

[0124] In some embodiments, virtual objects corresponding to collision models that intersect with the ray are marked as visible, while virtual objects corresponding to collision models that do not intersect with the ray are marked as invisible. Alternatively, virtual objects corresponding to collision models that intersect with the ray are marked, while virtual objects corresponding to collision models that do not intersect with the ray are not marked.

[0125] The collision model is invisible in the virtual world. Each virtual object has a corresponding collision model. The collision model is larger than the virtual object itself and is located outside the virtual object itself, while the virtual object itself is located inside the collision model. For example, the collision model is a 3D cylinder, which is located outside the virtual object itself, while the virtual object itself is located inside the 3D cylinder model.

[0126] Since the collision body model is larger than the virtual object body, performing ray detection on the collision body model has higher accuracy than performing ray detection on the virtual object body, which is beneficial to reducing the probability of misjudgment.

[0127] In some embodiments, the ray may be blocked by a virtual object or object in the virtual scene, that is, it can be considered that the ray cannot penetrate the virtual object or object in the virtual scene. The intersection of the collision body model and the ray means that the ray is not blocked and directly hits the collision body model. For example, as shown in Figure 7(a), the ray emitted from the center point of the camera 701 is not blocked and directly hits the collision body model 702. There is a virtual object 703 inside the collision body model 702. The collision body model 702 is a frame structure outside the virtual object 703. Then, the virtual object 703 is determined to be a visible type. In contrast, there is no intersection between the collision body model and the ray, which means that the ray is blocked and fails to directly hit the collision body model. For example, as shown in Figure 7(b), the ray emitted from the center point of the camera 701 is blocked by the virtual object 704 and fails to directly hit the collision body model 705. There is a virtual object 706 inside the collision body model 705, and the collision body model 705 is a frame structure outside the virtual object 706. Therefore, the virtual object 706 is determined to be an invisible type.

[0128] In some embodiments, the ray will not be blocked by the virtual objects or objects in the virtual scene, that is, it can be considered that the ray can penetrate the virtual objects or objects in the virtual scene. The intersection of the collision body model and the ray means that there are no other virtual objects or objects on the portion of the ray between the starting point of the ray and the collision body model. For example, as shown in Figure 8(a), a ray is emitted from the center point of the camera 701, and there are no other virtual objects or virtual objects on the portion of the ray between the center point of the camera 701 and the collision body model 702. There is a virtual object 703 inside the collision body model 702, and the collision body model 702 is a frame structure outside the virtual object 703. Then, the virtual object 703 is determined to be a visible type. Relatively speaking, there is no intersection between the collision body model and the ray, which means that there are other virtual objects or objects on the ray portion between the starting point of the ray and the collision body model. For example, as shown in Figure 8(b), a ray is emitted from the center point of the camera 701, and there is a virtual object 704 on the ray portion between the center point of the camera 701 and the collision body model 705. There is a virtual object 706 inside the collision body model 705, and the collision body model 705 is a frame structure outside the virtual object 706. Therefore, the virtual object 706 is determined to be an invisible type.

[0129] It should be understood that the camera 701, collision body model 702, and collision body model 705 in FIG. 7 and FIG. 8 are actually invisible, that is, the camera model and the collision body model around the virtual object are not displayed on the user interface.

[0130] Step 540: Determine, based on the second camera, a virtual object located within the visible range of the second viewing angle;

[0131] The virtual world is observed through a second camera, which is bound to a second perspective of the first virtual object. Based on the second camera, it is determined whether there are virtual objects within the visual range of the second perspective. If there are virtual objects within the visual range of the second perspective, the number, posture, location, type, etc. of the virtual objects within the visual range of the second perspective are further determined. The types of virtual objects include visible and / or invisible types.

[0132] Step 550: Determine the invisible virtual object located within the visible range of the second viewing angle as the third virtual object;

[0133] The second camera can determine virtual objects within the visible range of the second perspective, and determine the virtual objects determined to be invisible as the third virtual objects. In other words, the third virtual objects are virtual objects that are invisible within the visible range of the second perspective.

[0134] In some embodiments, a virtual object of a visible type located within the visual range of the second viewing angle is determined as the fourth virtual object. In other words, the fourth virtual object is a virtual object of a visible type located within the visual range of the second viewing angle.

[0135] The visible type and the invisible type are determined in step 530 based on the visual range of the first viewing angle.

[0136] Step 560: If there is an invisible third virtual object within the visible range of the second perspective, the third virtual object within the visible range of the second perspective is not rendered, thereby obtaining a second virtual world image.

[0137] Rendering refers to the process of calculating and combining the model, light source, material, texture, camera and other elements in the three-dimensional virtual world to generate a two-dimensional image. In this embodiment, virtual scenes within the visual range of different perspectives can be obtained through rendering.

[0138] When rendering the virtual scene within the second perspective's visible range, if an invisible third virtual object exists within the second perspective's visible range, the third virtual object within the second perspective's visible range is not rendered, resulting in the second virtual world image. This step can also be understood as blocking the third virtual object within the second perspective's visible range, so that the third virtual object is not displayed in the second virtual world image.

[0139] In some embodiments, if a fourth virtual object of a visible type also exists within the visible range of the second perspective, the fourth virtual object of the visible type within the visible range of the second perspective is rendered. In other words, when rendering the virtual scene within the visible range of the second perspective, if a fourth virtual object of a visible type also exists within the visible range of the second perspective, then the fourth virtual object within the visible range of the second perspective is rendered to obtain the second virtual world image.

[0140] In some embodiments, there is both an invisible third virtual object and a visible fourth virtual object within the visible range of the second perspective. Therefore, when rendering the virtual scene within the visible range of the second perspective, the third virtual object within the visible range of the second perspective is not rendered, and the fourth virtual object within the visible range of the second perspective is rendered to obtain a second virtual world picture.

[0141] Step 570: Display the second virtual world screen;

[0142] The second virtual world picture includes a picture of the virtual world observed from a second perspective of the first virtual object.

[0143] In some embodiments, the second virtual world screen displays a fourth virtual object of a visible type, and / or does not display a third virtual object of an invisible type.

[0144] In some embodiments, steps 530 to 570 are performed in real time. That is, after the first perspective switching operation is executed, step 530 is repeated continuously, i.e., ray detection is performed on virtual objects within the visible range of the first perspective in real time and dynamically based on the first camera, and the virtual objects are determined to be visible and / or invisible. Thus, steps 540 to 570 are performed in real time and dynamically, ensuring that the second virtual world image is updated in real time and providing real-time feedback on the virtual objects within the visible range of the first perspective and the types of the virtual objects.

[0145] Step 580: In response to the second perspective switching operation or the expiration time of the first perspective switching operation, switching the second perspective of the first virtual object to the first perspective;

[0146] The second perspective switching operation is used to switch the second perspective of the first virtual object to the first perspective. Exemplarily, the second perspective switching operation includes at least one of a touch operation, a gesture operation, a key operation, a click operation, a slide operation, a drag operation, and a press operation. Click operations include but are not limited to single clicks and double clicks, and press operations include but are not limited to short presses and long presses.

[0147] The second perspective of the first virtual object is switched to the first perspective, that is, the perspective of the first user observing the virtual world is switched from the second perspective of the first virtual object to the first perspective.

[0148] In some embodiments, the first user performs at least one of a touch operation, a key operation, a click operation, a slide operation, a press operation, etc. on the UI control to perform a second perspective switching operation to switch the second perspective of the first virtual object to the first perspective.

[0149] In some embodiments, the first user performs at least one of a key operation on the keyboard, a click operation on the mouse, a sliding operation on the mouse, etc. to perform a second perspective switching operation to switch the second perspective of the first virtual object to the first perspective.

[0150] In some embodiments, the first user performs a gesture operation to perform a second perspective switching operation to switch the second perspective of the first virtual object to the first perspective.

[0151] In some embodiments, the first user performs at least one of a drag operation, a slide operation, a click operation, a press operation, etc. on the user interface to perform a second perspective switching operation to switch the second perspective of the first virtual object to the first perspective.

[0152] In some embodiments, the first perspective switching operation has an expiration time. That is, if the first perspective switching operation reaches a certain duration, the first perspective switching operation will fail, and the second perspective will switch back to the first perspective. Optionally, the expiration time of the first perspective switching operation is preset, or determined by the first user, or the expiration time of the first perspective switching operation is immediately reached when an expiration event is satisfied. Optionally, the expiration event includes but is not limited to: at least one of: the first virtual object changing state, the first virtual object changing action, the first virtual object being attacked, the first virtual object changing position, and the first client exiting the application.

[0153] For example, after executing a first perspective switching operation, the first perspective of a first virtual object switches to a second perspective, and the preset expiration time for the first perspective switching operation is 10 seconds. However, if the first virtual object is attacked 5 seconds into the first perspective switching operation, the expiration time for the first perspective switching operation is increased to 5 seconds. In other words, if the first virtual object is attacked, the second perspective of the first virtual object immediately switches back to the first perspective.

[0154] Step 590: Stop performing ray detection on virtual objects within the visible range of the first viewing angle based on the first camera.

[0155] When the second perspective of the first virtual object is switched to the first perspective, ray detection based on the first camera on the virtual object within the visual range of the first perspective is stopped.

[0156] That is, within the invalid time of the first perspective switching operation, ray detection is not performed on the virtual objects within the viewing range of the first perspective based on the first camera.

[0157] In summary, the method provided in this embodiment supports switching the perspective of observing the virtual world. After the perspective is switched, even if there is a third virtual object of a visible type within the visible range of the second perspective, the third virtual object is invisible in the second virtual world screen. This helps to solve the adverse effects of perspective switching or perspective changes, avoids displaying information to users that users should not receive, and ensures that users will not observe virtual objects that cannot be observed in the first perspective through the second perspective.

[0158] When features related to perspective switching, such as performances and display actions, are introduced into the game, it can prevent users from using such features to "cheat" and prevent users from deliberately observing virtual objects or objects that should not be observed by switching perspectives, thereby affecting the balance of the game and user experience.

[0159] Next, step 530 of "performing ray detection on the virtual object within the visible range of the first viewing angle based on the first camera to determine whether the virtual object is a visible type and / or an invisible type" will be further explained.

[0160] In some embodiments, taking into account the volume of the virtual object, the accuracy and simplicity of ray detection, several key points are set on the virtual object, and ray detection is performed on the key points of the virtual object within the visible range of the first perspective of the first camera to determine whether the virtual object is a visible type and / or an invisible type.

[0161] In some embodiments, the virtual object includes m key points. The m key points include at least two key points selected from the group consisting of a head key point, a left arm key point, a right arm key point, a left hand key point, a right hand key point, an abdomen key point, a left leg key point, a right leg key point, a left foot key point, a right foot key point, and a waist key point. m is a positive integer greater than or equal to 2.

[0162] In some embodiments, ray detection is performed on m key points of the virtual object within the visible range of the first viewing angle based on the first camera, thereby determining whether the virtual object is of a visible type and / or an invisible type.

[0163] In some embodiments, a ray is emitted from the center of the first camera to m key points, and a virtual object corresponding to a collision body model in which at least one of the m key points intersects with the ray is determined to be a visible type; and a virtual object corresponding to a collision body model in which none of the m key points intersects with the ray is determined to be an invisible type.

[0164] In some embodiments, n key points are selected from the m key points based on at least one of system performance, the pose of the virtual object, the form of the virtual object, the type of the virtual scene, and the number of virtual objects within the visual range of the first perspective. n is a positive integer less than or equal to m.

[0165] Optionally, the system performance is characterized by at least one of the following performance parameters: central processing unit (CPU) performance, graphics processing unit (GPU) performance, computing speed, storage speed, storage capacity, running memory, and battery temperature.

[0166] In some embodiments, when system performance is greater than or equal to a first threshold, n is equal to m, i.e., ray detection is performed on m key points of the virtual object within the visual range of the first perspective based on the first camera. When system performance is less than the first threshold, n is less than m, i.e., ray detection is performed on n key points of the virtual object within the visual range of the first perspective based on the first camera. The first threshold is preset, determined by the first user, or adjusted based on actual technical needs.

[0167] Exemplarily, the m key points include: at least two of the following: head key points, left arm key points, right arm key points, left hand key points, right hand key points, abdomen key points, left leg key points, right leg key points, left foot key points, right foot key points, and waist key points. If the system performance is lower than the first threshold, n key points are selected from the m key points, and the n key points include: at least one of the following: head key points, left hand key points, right hand key points, left foot key points, and right foot key points.

[0168] For example, when the virtual object is in a standing position, if n key points are selected from m key points, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, and the right foot key point. When the virtual object is in a prone position, if n key points are selected from m key points, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the waist key point. When the virtual object is in a supine position, if n key points are selected from m key points, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the abdomen key point. When the virtual object is in a crouching position, if n key points are selected from m key points, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the waist key point.

[0169] Exemplarily, when the virtual object is in human form, n is equal to m. When the virtual object is in animal form, n key points are selected from the m key points, where the n key points include at least one of a head key point, an abdomen key point, a waist key point, a left foot key point, and a right foot key point.

[0170] For example, if the virtual scene is a land scene, and n key points are selected from m key points, the n key points include at least one of the following: the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, the abdomen key point, the left leg key point, the right leg key point, the left foot key point, the right foot key point, and the waist key point. If the virtual scene is an ocean scene, and n key points are selected from m key points, the n key points include at least one of the following: the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, and the waist key point. If the virtual scene is a sky scene, and n key points are selected from m key points, the n key points include at least one of the following: the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, the left leg key point, the right leg key point, the left foot key point, the right foot key point, and the abdomen key point.

[0171] Exemplarily, when the number of virtual objects within the visible range of the first perspective is greater than or equal to a second threshold, the n key points include: at least one of a head key point, a left hand key point, a right hand key point, a left foot key point, and a right foot key point. When the number of virtual objects within the visible range of the first perspective is less than the second threshold, the n key points include: at least one of a head key point, a left hand key point, a right hand key point, a left foot key point, a right foot key point, an abdomen key point, and a waist key point.

[0172] In some embodiments, ray detection is performed on n key points of the virtual object within the visible range of the first viewing angle based on the first camera, thereby determining whether the virtual object is of a visible type and / or an invisible type.

[0173] In some embodiments, a ray is emitted from the center of the first camera to n key points, and a virtual object corresponding to a collision body model in which at least one of the n key points intersects with the ray is determined to be a visible type; a virtual object corresponding to a collision body model in which none of the n key points intersects with the ray is determined to be an invisible type.

[0174] Performing ray detection on several key points of virtual objects helps reduce the complexity of ray detection, improve the simplicity and speed of ray detection, make the results of ray detection more accurate, support faster exchange of ray detection results between the client and the server, and reduce latency.

[0175] Based on system performance, the posture of the virtual object, the form of the virtual object, the type of virtual scene, and the number of virtual objects within the visible range of the first-person perspective, several key points are selected on the virtual object, which can effectively improve the flexibility of ray detection and the robustness of the virtual world display method provided by the embodiments of the present application, support flexible and rapid acquisition of accurate ray detection results in various scenarios, and enhance user experience.

[0176] 9 to 13 are schematic diagrams showing a display of a virtual world provided by an exemplary embodiment of the present application.

[0177] Taking the first perspective as a first-person perspective as an example, the virtual world observed by user A using the first perspective of virtual object 901 is shown in Figure 9. In the first virtual world screen shown in Figure 9, in addition to virtual object 901, virtual objects 902 and 903 are also displayed.

[0178] Taking the first perspective switching operation as an example of a touch operation on the UI control 904, as shown in Figure 10, after user A touches the UI control 904, the user interface displays an interaction list 905. User A selects the "dance" action in the interaction list 905, and the virtual object 901 enters the "dance" state. At the same time, the first perspective switches to the second perspective.

[0179] For example, the second perspective is a third-person perspective, and the camera model bound to the third-person perspective is located above and behind the virtual object 901.

[0180] If the virtual world display method provided by the embodiments of the present application is not adopted, as shown in FIG11 , a virtual object 907 can be observed behind cover 906 from the second perspective of virtual object 901. However, virtual object 907 is actually invisible from the first perspective of virtual object 901. This may cause user A to receive information that should not be received after switching from the first perspective to the second perspective: the existence of virtual object 907 behind cover 906, thereby affecting the balance of the game.

[0181] If the virtual world display method provided by the embodiments of the present application is employed, as shown in FIG12 , when the perspective of virtual object 901 switches to the second perspective, if it is determined that virtual object 907 exists within the visible range of virtual object 901's second perspective, and virtual object 907 is not visible within the visible range of virtual object 901's first perspective, virtual object 907 is not rendered. Since virtual objects 902 and 903 exist within the visible range of virtual object 901's second perspective, and virtual objects 902 and 903 are visible within the visible range of virtual object 901's first perspective, virtual objects 902 and 903 are rendered. This results in the second virtual world screen shown in FIG12 , which displays virtual objects 901, 902, and 903, but does not display virtual object 907.

[0182] After the perspective of virtual object 901 switches to the second perspective, ray detection is repeatedly and dynamically performed on virtual objects within the visual range of the first perspective in real time. When it is detected that virtual object 907 is no longer completely obscured by cover 906 and is visible within the visual range of the first perspective, virtual object 907 is rendered, as shown in FIG13 . This allows the second virtual world screen to dynamically display virtual object 907 in real time, ensuring that after the first perspective switch operation is executed, user A receives real-time information indicating that the virtual object has entered or exited the visual range of the first perspective.

[0183] When the first perspective switching operation reaches the expiration time, for example, when the "dancing" state reaches the preset expiration time, the second perspective switches back to the first perspective, and the user interface redisplays the first virtual world screen.

[0184] FIG14 is a flow chart illustrating a method for displaying a virtual world according to an exemplary embodiment of the present application. This embodiment illustrates the method as being executed by the first client 310 and / or server 320 and / or second client 330 shown in FIG3 . The method includes at least some of the following steps:

[0185] Step 1401: receiving an instruction to switch to a second perspective;

[0186] The first user uses the first client 310 to observe the virtual world through the first perspective of the first virtual object.

[0187] In some embodiments, the first client receives an instruction from the first user to switch the first perspective of the first virtual object to the second perspective, and the first client switches the first perspective of the first virtual object to the second perspective.

[0188] In some embodiments, the first client receives an instruction from the first user to switch the first perspective of the first virtual object to the second perspective, the first client transmits the instruction to the server, the server receives the instruction to switch the first perspective of the first virtual object to the second perspective, and the server switches the first perspective of the first virtual object to the second perspective.

[0189] Step 1402: Detect whether there are other virtual objects within the visual range of the first perspective;

[0190] Other virtual objects refer to virtual objects other than the first virtual object.

[0191] In some embodiments, the first client detects whether there are other virtual objects within the visual range of the first perspective at this time.

[0192] In some embodiments, the server detects whether there are other virtual objects within the visual range of the first perspective at this time.

[0193] If the detection result shows that there are other virtual objects within the visible range of the first perspective, step 1403 is executed.

[0194] If the detection result shows that there are no other virtual objects within the visible range of the first perspective, step 1404 is executed.

[0195] Step 1403: Perform ray detection on the collision body models of other virtual objects;

[0196] The relevant content of step 1403 can be referred to the content related to the radiographic detection in the previous text, and will not be repeated here.

[0197] After executing step 1403 , proceed to step 1405 and / or step 1406 .

[0198] In some embodiments, step 1403 is performed by the first client, or step 1403 is performed by the server, or step 1403 is performed by the first client and the server.

[0199] Step 1405: The virtual objects that fail the ray detection are considered as invisible virtual objects;

[0200] The virtual object that fails the ray detection refers to the virtual object corresponding to the collision body model that does not intersect with the ray.

[0201] In some embodiments, virtual objects corresponding to collision volume models that do not intersect with the ray are marked as invisible. Alternatively, virtual objects that are considered invisible are not marked.

[0202] In some embodiments, step 1405 is performed by the first client, or step 1405 is performed by the server, or step 1405 is performed by the first client and the server.

[0203] Step 1406: The virtual object that passes the ray detection is considered as a visible virtual object;

[0204] The virtual object passed by the ray detection refers to the virtual object corresponding to the collision body model that intersects with the ray.

[0205] In some embodiments, the virtual objects corresponding to the collision volume models that intersect with the ray are marked as visible. Alternatively, the virtual objects that are considered to be visible are marked.

[0206] In some embodiments, step 1406 is performed by the first client, or step 1406 is performed by the server, or step 1406 is performed by the first client and the server.

[0207] Step 1407: Render only the virtual objects that are considered visible in the second perspective;

[0208] In some embodiments, under the second perspective, the first client only renders virtual objects marked as visible, and does not render virtual objects marked as invisible.

[0209] In some embodiments, the first client only renders marked virtual objects (ie, virtual objects that are considered visible) in the second perspective, and does not render unmarked virtual objects (ie, virtual objects that are considered invisible).

[0210] In some embodiments, under the second perspective, the server only renders virtual objects marked as visible types and does not render virtual objects marked as invisible types.

[0211] In some embodiments, the server only renders marked virtual objects (ie, virtual objects that are considered visible) in the second perspective, and does not render unmarked virtual objects (ie, virtual objects that are considered invisible).

[0212] Step 1404: Continue to loop and perform ray detection until the first virtual object is no longer in the second viewing angle.

[0213] That is, while the first user is using the first client 310 to observe the virtual world through the second perspective of the first virtual object, the first client 310 cyclically detects whether there are other virtual objects within the visible range of the first perspective, and performs ray detection on the collision volume models of the other virtual objects. While the first user is using the first client 310 to observe the virtual world through the first perspective of the first virtual object, the first client 310 cyclically detects whether there are other virtual objects within the visible range of the first perspective, and ... the collision volume models of the other virtual objects.

[0214] In summary, the method provided in this embodiment supports switching the perspective of observing the virtual world. After the perspective is switched, even if there is a third virtual object of a visible type within the visible range of the second perspective, the third virtual object is invisible in the second virtual world screen. This helps to solve the adverse effects of perspective switching or perspective changes, avoids displaying information to users that users should not receive, and ensures that users will not observe virtual objects that cannot be observed in the first perspective through the second perspective.

[0215] 15 to 17 are schematic diagrams showing a method for displaying a virtual world according to an exemplary embodiment of the present application.

[0216] As shown in Figure 15, the first client 1501 displays a first virtual world screen 1502. The first virtual world screen 1502 includes a screen for observing the virtual world from a first perspective of a first virtual object 1503.

[0217] In response to the first perspective switching operation, the first client 1501 switches the first perspective of the first virtual object 1503 to a second perspective. The second perspective has a different visual range than the first perspective. For example, the first perspective of the first virtual object 1503 is a first-person perspective of the first virtual object 1503, and the second perspective of the first virtual object 1503 is a third-person perspective of the first virtual object 1503.

[0218] As shown in FIG16 , in response to the first perspective switching operation, first client 1501 displays a second virtual world screen 1504. Second virtual world screen 1504 includes a screen viewing the virtual world from the second perspective of first virtual object 1503. Furthermore, the virtual objects displayed in second virtual world screen 1504 are a subset of the virtual objects displayed in first virtual world screen 1502.

[0219] In some embodiments, the virtual objects displayed in the second virtual world screen 1504 are the same as the virtual objects displayed in the first virtual world screen 1502 .

[0220] In some embodiments, the virtual objects displayed in the second virtual world screen 1504 are a proper subset of the virtual objects displayed in the first virtual world screen 1502 .

[0221] For example, only the first virtual object 1503 is displayed in the second virtual world screen 1504; or, from the second perspective, only a portion of the virtual objects displayed in the first virtual world screen 1502 can be observed, and the second virtual world screen 1504 only displays a portion of the virtual objects displayed in the first virtual world screen 1502; or, the virtual world range corresponding to the second virtual world screen 1504 is smaller than the virtual world range corresponding to the first virtual world screen 1502, and the virtual objects displayed in the second virtual world screen 1504 are a portion of the virtual objects displayed in the first virtual world screen 1502.

[0222] As shown in FIG17 , the second client 1505 displays a third virtual world screen 1506. The third virtual world screen 1506 includes a screen viewing the virtual world from a third perspective of the second virtual object 1507. A third virtual object 1508 located within a target space in the virtual world is displayed in the third virtual world screen 1506 and is not displayed in the first virtual world screen 1502 or the second virtual world screen 1504.

[0223] The target space range is an overlapping range of the third perspective visible range and the second perspective visible range, and the target space range is a non-overlapping range of the third perspective visible range and the first perspective visible range.

[0224] 18 shows a schematic diagram of a virtual world display device according to an exemplary embodiment of the present application, wherein the device comprises: a display module 181 , a switching module 183 , a processing module 185 , and at least some of the modules in a determination module 187 .

[0225] The display module 181 is configured to display a first virtual world image, wherein the first virtual world image includes an image of the virtual world observed from a first perspective of a first virtual object;

[0226] a switching module 183 for switching the first perspective of the first virtual object to a second perspective in response to a first perspective switching operation, wherein the second perspective has a different visual range than the first perspective;

[0227] The display module 181 is also used to display a second virtual world screen, which includes a screen of the virtual world observed from a second perspective of the first virtual object, and when a third virtual object exists in a difference range between a visual range of the second perspective and a visual range of the first perspective, the third virtual object is not visible in the second virtual world screen.

[0228] In some embodiments, the device further includes a processing module 185 configured to, if an invisible third virtual object exists within the visible range of the second perspective, not render the third virtual object within the visible range of the second perspective, thereby obtaining the second virtual world image;

[0229] The display module 181 is further configured to display the second virtual world image;

[0230] The apparatus further includes a determining module 187 configured to determine the invisible type based on a visual range of the first viewing angle.

[0231] In some embodiments, the processing module 185 is further configured to render the fourth virtual object within the visible range of the second perspective if there is a fourth virtual object of a visible type within the visible range of the second perspective;

[0232] The determination module 187 is further configured to determine the visibility type based on the visual range of the first viewing angle.

[0233] In some embodiments, the first perspective is bound to a first camera, and the second perspective is bound to a second camera;

[0234] The determining module 187 is further configured to perform ray detection on the virtual object within the visible range of the first viewing angle based on the first camera, and determine whether the virtual object is of the visible type and / or the invisible type;

[0235] determining, based on the second camera, a virtual object located within a visible range of the second viewing angle;

[0236] A virtual object of the invisible type located within the visible range of the second viewing angle is determined as the third virtual object.

[0237] In some embodiments, the determination module 187 is further configured to determine a virtual object of the visible type located within the visible range of the second viewing angle as the fourth virtual object.

[0238] In some embodiments, the determining module 187 is further configured to emit a ray from the center point of the first camera to a virtual object within a visible range of the first viewing angle;

[0239] Determine the virtual object corresponding to the collision volume model that intersects with the ray as a visible type;

[0240] Determine the virtual object corresponding to the collision volume model that has no intersection with the ray as an invisible type;

[0241] Wherein, the virtual object is located inside the collision body model.

[0242] In some embodiments, the virtual object includes n key points, where n is an integer greater than or equal to 1;

[0243] The determining module 187 is further configured to emit rays from the center point of the first camera to the n key points;

[0244] Determine the virtual object corresponding to the collision volume model where at least one key point among the n key points intersects with the ray as the visible type;

[0245] The virtual object corresponding to the collision volume model in which none of the n key points and the rays intersect is determined to be the invisible type.

[0246] In some embodiments, the determining module 187 is further configured to select the n key points from the m key points based on at least one of system performance, the posture of the virtual object, the form of the virtual object, the scene type of the virtual world, and the number of virtual objects within the visual range of the first perspective;

[0247] Among them, the m key points include at least two of the head key point, left arm key point, right arm key point, left hand key point, right hand key point, abdomen key point, left leg key point, right leg key point, left foot key point, right foot key point, and waist key point, m is a positive integer greater than or equal to 2, and m is greater than or equal to n.

[0248] In some embodiments, the determining module 187 is further configured to:

[0249] In a case where the system performance is higher than or equal to a first threshold, n is equal to m;

[0250] When the system performance is lower than the first threshold, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, and the right foot key point.

[0251] In some embodiments, the determining module 187 is further configured to:

[0252] When the posture of the virtual object is in a standing state, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, and the right foot key point;

[0253] When the posture of the virtual object is in a prone state, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the waist key point;

[0254] When the posture of the virtual object is in a supine state, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the abdomen key point;

[0255] When the posture of the virtual object is in a squatting state, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the waist key point.

[0256] In some embodiments, the determining module 187 is further configured to:

[0257] In the case where the virtual object is in human form, n is equal to m;

[0258] When the virtual object is in an animal form, the n key points include at least one of the head key point, the abdomen key point, the waist key point, the left foot key point, and the right foot key point.

[0259] In some embodiments, the determining module 187 is further configured to:

[0260] In a case where the type of the virtual scene is a land scene, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, the abdomen key point, the left leg key point, the right leg key point, the left foot key point, the right foot key point, and the waist key point;

[0261] In a case where the type of the virtual scene is an ocean scene, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, and the waist key point;

[0262] When the type of the virtual scene is a sky scene, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, the left leg key point, the right leg key point, the left foot key point, the right foot key point, and the abdomen key point.

[0263] In some embodiments, the determining module 187 is further configured to:

[0264] When the number of virtual objects within the visual range of the first perspective is greater than or equal to a second threshold, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, and the right foot key point;

[0265] When the number of virtual objects within the visible range of the first perspective is less than a second threshold, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, the right foot key point, the abdomen key point, and the waist key point.

[0266] In some embodiments, the switching module 183 is further configured to switch the second perspective of the first virtual object to the first perspective in response to a second perspective switching operation;

[0267] Alternatively, in response to the expiration time of the first perspective switching operation, the second perspective of the first virtual object is switched to the first perspective.

[0268] In some embodiments, the determination module 187 is further configured to stop performing ray detection on virtual objects within the visible range of the first viewing angle based on the first camera.

[0269] In some embodiments, the first perspective of the first virtual object includes a first-person perspective of the first virtual object, and the second perspective of the first virtual object includes a third-person perspective of the first virtual object.

[0270] In some embodiments, the visual range of the first perspective of the first virtual object is a subset of the visual range of the second perspective of the first virtual object.

[0271] In summary, the device provided in the embodiment of the present application supports switching the perspective of observing the virtual world. After the perspective is switched, even if there is a third virtual object in the difference range between the visual range of the second perspective and the visual range of the first perspective, the third virtual object is invisible in the second virtual world screen. This helps to solve the adverse effects brought about by perspective switching or perspective changes, avoids displaying information to users that users should not receive, and ensures that users will not observe virtual objects that cannot be observed in the first perspective through the second perspective.

[0272] It should be noted that the aforementioned embodiments illustrate the division of the functional modules described above only as an example of the virtual world display process. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, i.e., the internal structure of the device can be divided into different functional modules to perform all or part of the functions described above. The specific implementation process is detailed in the method embodiments and will not be further elaborated here.

[0273] Figure 19 shows a block diagram of a terminal 1900 according to an exemplary embodiment of the present application. Terminal 1900 may be at least one of a smartphone, a tablet computer, an e-book reader, a laptop computer, a desktop computer, a television, an AR terminal, a VR terminal, an MR terminal, or an XR terminal. Terminal 1900 may also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other similar names.

[0274] Typically, the terminal 1900 includes a processor 1901 and a memory 1902 .

[0275] Processor 1901 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 1901 may be implemented in at least one hardware form: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). Processor 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, processor 1901 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 1901 may also include an AR processor, which is used to handle computing operations related to augmented reality. In some embodiments, processor 1901 may also include an artificial intelligence (AI) processor, which is used to handle computing operations related to machine learning.

[0276] Memory 1902 may include one or more computer-readable storage media, which may be non-transitory. Memory 1902 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1902 is used to store at least one instruction, which is executed by processor 1901 to implement the virtual world display method provided in the method embodiments of this application.

[0277] In some embodiments, terminal 1900 may optionally include a peripheral device interface 1903 and at least one peripheral device. The processor 1901, memory 1902, and peripheral device interface 1903 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1903 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1904, a display screen 1905, a camera assembly 1906, an audio circuit 1907, and a power supply 1908.

[0278] The peripheral device interface 1903 can be used to connect at least one peripheral device related to input / output (I / O) to the processor 1901 and the memory 1902. In some embodiments, the processor 1901, the memory 1902, and the peripheral device interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1901, the memory 1902, and the peripheral device interface 1903 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0279] The radio frequency circuit 1904 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 1904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1904 can communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or wireless fidelity (Wi-Fi) networks. In some embodiments, the radio frequency circuit 1904 may also include circuits related to near field communication (NFC), which is not limited in this application.

[0280] The display screen 1905 is used to display a user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1905 is a touch screen display, the display screen 1905 also has the ability to collect touch signals on the surface or above the surface of the display screen 1905. The touch signal can be input as a control signal to the processor 1901 for processing. In this case, the display screen 1905 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1905, which is set on the front panel of the terminal 1900; in other embodiments, there can be at least two display screens 1905, which are respectively set on different surfaces of the terminal 1900 or in a folding design; in still other embodiments, the display screen 1905 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal 1900. Even more, the display screen 1905 can be set as a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1905 can be made of materials such as liquid crystal display (LCD) and organic light-emitting diode (OLED).

[0281] The camera component 1906 is used to capture images or videos. Optionally, the camera component 1906 includes a front camera and a rear camera. Typically, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR shooting function or other fusion shooting functions. In some embodiments, the camera component 1906 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0282] The audio circuit 1907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals for input to the processor 1901 for processing, or input to the radio frequency circuit 1904 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal 1900. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1901 or the radio frequency circuit 1904 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1907 may also include a headphone jack.

[0283] Power supply 1908 is used to power various components in terminal 1900. Power supply 1908 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1908 includes a rechargeable battery, the rechargeable battery can be wired or wirelessly rechargeable. A wired rechargeable battery is charged via a wired line, while a wireless rechargeable battery is charged via a wireless coil. The rechargeable battery can also support fast charging technology.

[0284] In some embodiments, the terminal 1900 further includes one or more sensors 1909 . The one or more sensors 1909 include, but are not limited to, an acceleration sensor 1910 , a gyroscope sensor 1911 , a pressure sensor 1912 , an optical sensor 1913 , and a proximity sensor 1914 .

[0285] The accelerometer 1910 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal 1900. For example, the accelerometer 1910 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 1901 can control the display screen 1905 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1910. The accelerometer 1910 can also be used to collect game or user motion data.

[0286] The gyroscope sensor 1911 can detect the orientation and rotation angle of the terminal 1900. It can also work with the accelerometer 1911 to collect the user's 3D movements on the terminal 1900. Based on the data collected by the gyroscope sensor 1911, the processor 1901 can implement the following functions: motion sensing (for example, changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0287] The pressure sensor 1912 can be provided on the side frame of the terminal 1900 and / or below the display screen 1905. When the pressure sensor 1912 is provided on the side frame of the terminal 1900, it can detect the user's gripping signal of the terminal 1900, and the processor 1901 can perform left-hand or right-hand recognition or shortcut operations based on the gripping signal collected by the pressure sensor 1912. When the pressure sensor 1912 is provided below the display screen 1905, the processor 1901 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 1905. Operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0288] Optical sensor 1913 is used to detect ambient light intensity. In one embodiment, processor 1901 can control the display brightness of display screen 1905 based on the ambient light intensity detected by optical sensor 1913. Specifically, when the ambient light intensity is high, the display brightness of display screen 1905 is increased; when the ambient light intensity is low, the display brightness of display screen 1905 is decreased. In another embodiment, processor 1901 can also dynamically adjust the shooting parameters of camera assembly 1906 based on the ambient light intensity detected by optical sensor 1913.

[0289] Proximity sensor 1914, also known as a distance sensor, is typically located on the front panel of terminal 1900. Proximity sensor 1914 is used to measure the distance between the user and the front of terminal 1900. In one embodiment, when proximity sensor 1914 detects that the distance between the user and the front of terminal 1900 is gradually decreasing, processor 1901 controls display screen 1905 to switch from a screen-on state to a screen-off state. When proximity sensor 1914 detects that the distance between the user and the front of terminal 1900 is gradually increasing, processor 1901 controls display screen 1905 to switch from a screen-off state to a screen-on state.

[0290] The memory also includes one or more programs, which are stored in the memory and include a method for displaying a virtual world provided in an embodiment of the present application.

[0291] Those skilled in the art will understand that the structure shown in FIG19 does not constitute a limitation on the terminal 1900 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0292] FIG20 shows a structural block diagram of a server 2000 provided in an exemplary embodiment of the present application.

[0293] Typically, the server 2000 includes a processor 2001 and a memory 2002 .

[0294] Processor 2001 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 2001 may be implemented in at least one of the following hardware forms: a DSP, an FPGA, or a PLA. Processor 2001 may also include a main processor and a coprocessor. The main processor is a processor (also known as a CPU) that processes data in an awake state; the coprocessor is a low-power processor that processes data in a standby state.

[0295] In some embodiments, the processor 2001 may be integrated with a GPU, which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2001 may also include an AI processor, which is used to process computing operations related to machine learning.

[0296] Memory 2002 may include one or more computer-readable storage media, which may be non-transitory. Memory 2002 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 2002 is used to store at least one instruction, which is executed by processor 2001 to implement the virtual world display method provided in the method embodiment of the present application.

[0297] In some embodiments, the server 2000 may further optionally include an input interface 2003 and an output interface 2004. The processor 2001, the memory 2002, and the input interface 2003 and the output interface 2004 may be connected via a bus or signal lines. Each peripheral device may be connected to the input interface 2003 and the output interface 2004 via a bus, signal lines, or a circuit board. The input interface 2003 and the output interface 2004 may be used to connect at least one I / O-related peripheral device to the processor 2001 and the memory 2002. In some embodiments, the processor 2001, the memory 2002, and the input interface 2003 and the output interface 2004 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2001, the memory 2002, and the input interface 2003 and the output interface 2004 may be implemented on a separate chip or circuit board, which is not limited in this embodiment of the present application.

[0298] Those skilled in the art will appreciate that the structure shown above does not limit the server 2000 , and the server 2000 may include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.

[0299] In an exemplary embodiment, a computer device is further provided. The computer device includes a processor and a memory. The memory stores a computer program. The computer program is loaded and executed by the processor to implement the virtual world display method described above.

[0300] In an exemplary embodiment, a chip is further provided. The chip includes a programmable logic circuit and / or program instructions. A server or terminal equipped with the chip is used to implement the virtual world display method described above.

[0301] In an exemplary embodiment, a computer-readable storage medium is also provided, storing at least one program. When executed by a processor, the program is used to implement the virtual world display method described above. Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, or an optical data storage device.

[0302] In an exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program. The computer program is stored in a computer-readable storage medium. A processor reads the computer program from the computer-readable storage medium and executes the computer program to implement the virtual world display method described above.

Claims

1. A method for displaying a virtual world, characterized in that: The method is performed by a first client and a second client, and includes: The first client displays a first virtual world screen, the first virtual world screen includes a screen observed from a first perspective of the first virtual object; in response to a first perspective switching operation, the first perspective of the first virtual object is switched to a second perspective, the visual range of the second perspective is different from the visual range of the first perspective; and displays a second virtual world screen, the second virtual world screen includes a screen observed from the second perspective of the first virtual object, and virtual objects displayed in the second virtual world screen are a subset of virtual objects displayed in the first virtual world screen; The second client displays a third virtual world screen, wherein the third virtual world screen includes a screen of observing the virtual world from a third perspective of the second virtual object, and a third virtual object located in a target space range in the virtual world is displayed in the third virtual world screen, and is not displayed in the first virtual world screen and the second virtual world screen; Among them, the target space range is the overlapping range of the visual range of the third perspective and the visual range of the second perspective, and the target space range is the non-overlapping range of the visual range of the third perspective and the visual range of the first perspective.

2. The method according to claim 1, characterized in that The displaying of the second virtual world screen includes: If there is an invisible third virtual object within the visible range of the second viewing angle, the third virtual object within the visible range of the second viewing angle is not rendered to obtain the second virtual world picture; Displaying the second virtual world screen; The invisible type is determined based on the viewing angle visible range of the first viewing angle.

3. The method according to claim 2, characterized in that The method further comprises: If there is still a fourth virtual object of a visible type within the visible range of the second viewing angle, rendering the fourth virtual object within the visible range of the second viewing angle; The visible type is determined based on the visual range of the first viewing angle.

4. The method according to claim 2 or 3, characterized in that: The first viewing angle is bound to a first camera, and the second viewing angle is bound to a second camera; The method further comprises: Performing ray detection on a virtual object within a visible range of the first viewing angle based on the first camera, determining that the virtual object is at least one of the visible type or the invisible type; Determine, based on the second camera, a virtual object located within a visible range of the second viewing angle; A virtual object of the invisible type that is within the visible range of the second viewing angle is determined as the third virtual object.

5. The method according to claim 4, characterized in that The method further comprises: A virtual object of the visible type that is within the visible range of the second viewing angle is determined as the fourth virtual object.

6. The method according to claim 4 or 5, characterized in that: The performing ray detection on the virtual object within the visible range of the first viewing angle based on the first camera to determine that the virtual object is at least one of the visible type or the invisible type includes: emitting rays from the center point of the first camera to virtual objects within the visible range of the first viewing angle; Determine the virtual object corresponding to the collision volume model that intersects with the ray as the visible type; Determine the virtual object corresponding to the collision volume model that has no intersection with the ray as the invisible type; Wherein, the virtual object is located inside the collision volume model.

7. The method according to claim 6, characterized in that The virtual object includes n key points, where n is an integer greater than or equal to 1; The performing ray detection on the virtual object within the visible range of the first viewing angle based on the first camera to determine that the virtual object is at least one of the visible type or the invisible type includes: Emitting rays from the center point of the first camera to the n key points; Determine the virtual object corresponding to the collision volume model in which at least one key point among the n key points intersects with the ray as the visible type; The virtual object corresponding to the collision volume model in which the n key points and the rays have no intersection is determined as the invisible type.

8. The method according to claim 7, characterized in that The method further comprises: Selecting the n key points from the m key points based on at least one of system performance, a posture of the virtual object, a form of the virtual object, a scene type of the virtual world, and a number of virtual objects within a visible range of the first viewing angle; Among them, the m key points include at least two of the head key point, left arm key point, right arm key point, left hand key point, right hand key point, abdomen key point, left leg key point, right leg key point, left foot key point, right foot key point, and waist key point, m is a positive integer greater than or equal to 2, and m is greater than or equal to n.

9. The method according to claim 8, characterized in that The selecting the n key points from the m key points based on at least one of system performance, the posture of the virtual object, the form of the virtual object, the scene type of the virtual world, and the number of virtual objects within the visual range of the first viewing angle includes at least one of the following: In the case where the system performance is higher than or equal to a first threshold, n is equal to m; In a case where the system performance is lower than the first threshold, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, and the right foot key point; When the number of virtual objects within the visible range of the first perspective is greater than or equal to a second threshold, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, and the right foot key point; When the number of virtual objects within the visible range of the first perspective is less than a second threshold, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, the right foot key point, the abdomen key point, and the waist key point; When the posture of the virtual object is in a standing state, the n key points include at least one of the head key point, the left hand key point, the right hand key point, the left foot key point, and the right foot key point; When the posture of the virtual object is in a prone state, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the waist key point; When the posture of the virtual object is in a supine state, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the abdomen key point; When the posture of the virtual object is in a crouching state, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left leg key point, the right leg key point, and the waist key point; In the case where the virtual object is in human form, n is equal to m; When the virtual object is in an animal form, the n key points include at least one of the head key point, the abdomen key point, the waist key point, the left foot key point, and the right foot key point; In the case where the type of the virtual scene is a land scene, the n key points include the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, the abdomen key point, the left leg key point, the right leg key point, the left foot key point, the right foot key point, and the waist key point. at least one; In the case where the type of the virtual scene is an ocean scene, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, and the waist key point; When the type of the virtual scene is a sky scene, the n key points include at least one of the head key point, the left arm key point, the right arm key point, the left hand key point, the right hand key point, the left leg key point, the right leg key point, the left foot key point, the right foot key point, and the abdomen key point.

10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: In response to a second perspective switching operation, switching the second perspective of the first virtual object to the first perspective; or, In response to the expiration time of the first perspective switching operation, the second perspective of the first virtual object is switched to the first perspective.

11. The method according to claim 10, characterized in that After switching the second perspective of the first virtual object to the first perspective, the method further includes: Stop performing ray detection on virtual objects within the visible range of the first viewing angle based on the first camera.

12. The method according to any one of claims 1 to 11, characterized in that: The first perspective includes a first-person perspective, the second perspective includes a third-person perspective, and the third perspective includes one of the first-person perspective and the third-person perspective; or, The perspective visible range of the first perspective of the first virtual object is a subset of the perspective visible range of the second perspective of the first virtual object, the perspective visible range of the third perspective of the second virtual object has a non-overlapping range with the perspective visible range of the first perspective of the first virtual object, and the perspective visible range of the third perspective of the second virtual object has an overlapping range with the perspective visible range of the second perspective of the first virtual object.

13. A method for displaying a virtual world, characterized in that: The method is performed by a first client, and includes: Displaying a first virtual world picture, wherein the first virtual world picture includes a picture of the virtual world observed from a first perspective of a first virtual object; In response to a first perspective switching operation, switching the first perspective of the first virtual object to a second perspective, wherein a visual range of the second perspective is different from a visual range of the first perspective; A second virtual world screen is displayed, wherein the second virtual world screen includes a screen of the virtual world observed from a second perspective of the first virtual object, and when a third virtual object exists in a difference range between a visual range of the second perspective and a visual range of the first perspective, the third virtual object is not visible in the second virtual world screen.

14. The method according to claim 13, characterized in that The first perspective of the first virtual object includes a first-person perspective of the first virtual object, and the second perspective of the first virtual object includes a third-person perspective of the first virtual object; or, The visual range of the first perspective of the first virtual object is a subset of the visual range of the second perspective of the first virtual object.

15. A display device for a virtual world, characterized in that: The device comprises: A display module, configured to display a first virtual world picture, wherein the first virtual world picture includes a picture of the virtual world observed from a first perspective of a first virtual object; a switching module, configured to switch the first perspective of the first virtual object to a second perspective in response to a first perspective switching operation, wherein a visual range of the second perspective is different from a visual range of the first perspective; The display module is further used to display a second virtual world picture, wherein the second virtual world picture includes a picture of the virtual world observed from a second perspective of the first virtual object, and the visual range of the second perspective is the same as that of the first virtual object. When a third virtual object exists in the difference range of the visual range of the first perspective, the third virtual object is not visible in the second virtual world screen.

16. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the method for displaying a virtual world as claimed in any one of claims 1 to 12 or 13 to 14.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the method for displaying a virtual world as described in any one of claims 1 to 12 or 13 to 14.

18. A computer program product, characterized in that The computer program product stores a computer program, and the computer program is loaded and executed by a processor to implement the method for displaying a virtual world as described in any one of claims 1 to 12 or 13 to 14.

19. A chip, characterized in that: The chip includes at least one of a programmable logic circuit or a program instruction, and a computer device equipped with the chip is used to implement the method for displaying a virtual world as described in any one of claims 1 to 12 or 13 to 14.

Citation Information

Patent Citations

  • Virtual environment visual angle switching method, equipment and storage medium

    CN108717733A

  • Method and device for view angle adjustment in virtual environment, equipment and readable storage medium

    CN110465073A

  • Generating an augmented view of a location of interest

    EP2911041A1

  • Systems and methods for interactive gaming with non-player engagement

    US20160263477A1