Identifier display method and device based on virtual scene, equipment, medium and product
By adjusting the display position of element markers in the virtual scene, the problem of UI icon misalignment when observing the use of props was solved, thus improving the user experience.
Patent Information
- Application Number
- CN202410566686.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2025-11-11
AI Technical Summary
In virtual scenes, when using observation tools, the UI icons of the character icons are misaligned due to different FOVs, which affects the user experience.
By determining the positional relationship of the first scene elements in the prop observation screen, the display position of the element markers is adjusted to match the scene elements after secondary rendering, thus avoiding misalignment.
Ensure that the element identifiers match the scene elements after secondary rendering when observing the use of props, avoid misalignment issues, and improve user experience.
Smart Images

Figure CN120919637A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device, medium and product for displaying identifiers based on virtual scenes. Background Technology
[0002] In some applications that include virtual scenes, users can control a master virtual object to observe the virtual scene using observation tools, such as virtual scopes or virtual telescopes. When the master virtual object uses an observation tool to observe the virtual scene, the terminal will perform secondary rendering based on the scene image observed by the camera attached to the tool, and paste the secondary rendered image into the field of view of the observation tool.
[0003] In virtual environments, role identifiers are often used to label the virtual teammates of the main virtual object. In related technologies, these role identifiers are typically presented using user interface (UI) icons.
[0004] However, when the character icons are displayed as UI icons, the difference between the field of view (FOV) within and outside the viewport of the virtual scene can cause UI icon misalignment. For example, the FOV of the second-rendered view from a virtual scope may differ from the actual FOV of the virtual scene. The observed virtual teammate may be enlarged after the second rendering, but the UI icon will still appear in its actual position within the virtual scene, resulting in a misalignment between the UI icon and the virtual teammate. Summary of the Invention
[0005] This application provides a method, apparatus, device, medium, and product for displaying identifiers based on a virtual scene. The technical solution is as follows:
[0006] On the one hand, a method for displaying identifiers based on a virtual scene is provided, the method comprising:
[0007] Displays a first scene element in a virtual scene, and the first scene element is displayed with an element identifier. The element identifier is an identifier superimposed on the virtual scene screen to mark the first scene element.
[0008] In response to receiving an operation to use an observation prop, an observation screen for observing the virtual scene through the observation prop is displayed. The observation prop has a corresponding observation display area, which includes the area that needs to be rendered twice when observing the virtual scene through the observation prop.
[0009] Based on the first positional relationship between the first scene element and the observation display area in the prop observation screen, and the second positional relationship between the first display position of the element identifier and the observation display area determined based on the first scene element, the element identifier is rendered and displayed.
[0010] On the other hand, a signage display device based on a virtual scene is provided, the device comprising:
[0011] The first display module is used to display the first scene element in the virtual scene. The first scene element is displayed with an element identifier. The element identifier is an identifier superimposed on the virtual scene screen to mark the first scene element.
[0012] The first display module is further configured to respond to receiving an operation to use an observation prop, and display an observation screen of the virtual scene observed through the observation prop, wherein the observation prop has an observation display area, and the observation display area includes an area that needs to be rendered twice when observing the virtual scene through the observation prop;
[0013] The second display module is used to render and display the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the observation display area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the observation display area.
[0014] In some optional embodiments, the observation display area corresponding to the observation prop includes a preset division area and a first scene observation area, wherein the first scene observation area is used to display the virtual scene observed through the observation prop;
[0015] The second display module is further configured to render and display the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the first scene observation area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the preset division area.
[0016] In some optional embodiments, the second display module is further configured to render and display the element identifier in the preset division area when the first scene element is located within the first scene observation area and the first display position corresponding to the element identifier is located within the preset division area.
[0017] In some optional embodiments, the second display module is further configured to hide the element identifier when the first scene element is located within the first scene observation area and the first display position corresponding to the element identifier is located outside the preset division area.
[0018] In some optional embodiments, the second display module is further configured to render and display the element identifier in the second scene observation area when the first scene element is located outside the first scene observation area and the first display position corresponding to the element identifier is located outside the preset division area. The second scene observation area is used to display a virtual scene outside the field of view of the observation prop.
[0019] In some alternative embodiments, the apparatus further includes:
[0020] The region determination module is used to determine the first scene observation region based on the field of view of the observation prop; and to move a specified edge in the first scene observation region as an adjustment edge to obtain the preset division region after the specified edge has been moved a preset distance.
[0021] In some optional embodiments, the region determination module is further configured to determine the magnification information of the observation prop; and obtain the preset distance that is positively correlated with the magnification information.
[0022] In some alternative embodiments, the apparatus further includes:
[0023] The location acquisition module is used to acquire the second display position of the first scene element in the prop observation screen;
[0024] The position determination module is used to determine the first display position of the element identifier in the prop observation screen based on the second display position.
[0025] In some optional embodiments, the second display position is the position of the first scene element in the scene space of the virtual scene, where the scene space is the three-dimensional space where the virtual scene is located;
[0026] The location determination module further includes:
[0027] The conversion unit is used to convert the second display position into a third display position in the screen space according to the coordinate transformation relationship between the scene space and the screen space, wherein the screen space is a two-dimensional space superimposed on the prop observation screen;
[0028] A first determining unit is configured to determine the first display position in the screen space based on the third display position and the identifier offset, wherein the identifier offset is used to indicate the offset of the first display position of the element identifier relative to the third display position.
[0029] In some optional embodiments, the first determining unit is further configured to determine the first display position in the screen space based on the third display position and the first identifier offset when the first scene element is located in the first scene observation area, wherein the first scene observation area is used to display the virtual scene observed through the observation prop; and to determine the first display position in the screen space based on the third display position and the second identifier offset when the first scene element is located in the second scene observation area, wherein the second scene observation area is used to display the virtual scene outside the prop's field of view.
[0030] In some optional embodiments, the location determination module further includes:
[0031] The first acquisition unit is used to acquire the magnification information of the observation prop when the first scene element is located in the first scene observation area;
[0032] The first determining unit is further configured to determine the first identifier offset based on the magnification information; and to determine the first display position in the screen space based on the third display position and the first identifier offset.
[0033] In some optional embodiments, the first display module is further configured to display the element identifier in the virtual scene in a first display mode;
[0034] The second display module is also used to display the element identifier in the prop observation screen in a second display mode.
[0035] In some optional embodiments, the second display module further includes:
[0036] The second acquisition unit is used to acquire distance information between the first scene element and the main virtual object;
[0037] The second determining unit is used to determine the identifier transparency corresponding to the element identifier based on the distance information;
[0038] A display unit is used to display the element identifier on the prop viewing screen according to the identifier transparency.
[0039] In some optional embodiments, the second determining unit is further configured to determine the first display position of the element identifier on the prop viewing screen;
[0040] The second display module further includes:
[0041] The recognition unit is used to recognize the color value of the background element corresponding to the first display position;
[0042] The second determining unit is further configured to determine the identifier color corresponding to the identifier element based on the background element color value;
[0043] The display unit is also used to display the element identifier on the prop observation screen according to the identifier color.
[0044] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the virtual scene-based identification display method as described in any of the above embodiments of this application.
[0045] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set, or instruction set is stored in the storage medium, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the virtual scene-based identification display method as described in any of the embodiments of this application above.
[0046] On the other hand, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the virtual scene-based identifier display methods described in the above embodiments.
[0047] The technical solution provided in this application includes at least the following beneficial effects:
[0048] In a virtual scene including first scene elements, these elements are labeled with element identifiers. When a user controls a main virtual object to observe the virtual scene using an observation tool, to avoid misalignment between the observed first scene elements and element identifiers, the rendering of the element identifiers is determined based on a first positional relationship between the first scene elements on the screen and the observation display area, and a second positional relationship between the first display position of the element identifiers on the screen and the observation display area. The first display position of the element identifiers on the screen is determined based on the first scene elements. That is, when the observation tool is activated, the terminal performs secondary rendering of the virtual scene observed through the tool. During this secondary rendering, the first scene elements are used to determine the first display position of the element identifiers on the screen. Simultaneously, the aforementioned first and second positional relationships ensure the accuracy of the first display position, ensuring that the final rendered element identifier position matches the second-rendered first scene elements, thus avoiding misalignment. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a diagram illustrating misaligned UI icons in a related technology.
[0051] Figure 2 This is a schematic diagram of the interface of a virtual scene-based identifier display method provided in an exemplary embodiment of this application;
[0052] Figure 3 This is a structural block diagram of a computer system provided in an exemplary embodiment of this application;
[0053] Figure 4 This is a flowchart of a virtual scene-based identifier display method provided in an exemplary embodiment of this application;
[0054] Figure 5 This is a schematic diagram illustrating the division of a preset division region and a first scene observation region provided in an exemplary embodiment of this application;
[0055] Figure 6 This is a flowchart of a virtual scene-based identifier display method provided in an exemplary embodiment of this application;
[0056] Figure 7This is a rendering display diagram of an element identifier provided in an exemplary embodiment of this application;
[0057] Figure 8 This is a rendering display diagram of an element identifier provided in an exemplary embodiment of this application;
[0058] Figure 9 This is a rendering display diagram of an element identifier provided in an exemplary embodiment of this application;
[0059] Figure 10 This is a flowchart of a virtual scene-based identifier display method provided in an exemplary embodiment of this application;
[0060] Figure 11 This is a flowchart of a virtual scene-based identifier display method provided in an exemplary embodiment of this application;
[0061] Figure 12 This is a structural block diagram of a signage display device based on a virtual scene provided in an exemplary embodiment of this application;
[0062] Figure 13 This is a structural block diagram of a signage display device based on a virtual scene provided in an exemplary embodiment of this application;
[0063] Figure 14 This is a structural block diagram of a terminal provided in an exemplary embodiment of this application. Detailed Implementation
[0064] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0065] First, a brief introduction to the terms used in the embodiments of this application will be given.
[0066] Virtual scene: A virtual scene is a scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of a real scene, a semi-simulated / semi-fictional scene, or a purely fictional scene. A virtual scene can be any of the following: two-dimensional, 2.5-dimensional, or three-dimensional; this application does not limit it to any particular type.
[0067] Scene elements are virtual models used to mimic the scenery within a virtual scene. For example, scene elements occupy a certain volume within the virtual scene. Examples of scene elements include: virtual terrain, virtual buildings, virtual flora and fauna, virtual props, virtual vehicles, and virtual objects. For instance, virtual terrain includes: ground, mountains, rivers, rocks, steps, etc.; virtual buildings include: houses, walls, containers, and internal facilities such as doors, windows, tables, chairs, cabinets, and beds; virtual flora and fauna include: trees, flowers, and birds; virtual props include: virtual attack items, first-aid kits, and airdrops; virtual vehicles include: cars, ships, and helicopters; and virtual objects include: people, animals, and anime characters.
[0068] Optionally, scene elements have corresponding element identifiers, which are used to label scene elements. For example, if the scene elements mentioned above are virtual objects in a virtual team, the element identifiers are used to indicate the virtual objects' numbers within the virtual team. Optionally, the element identifiers of the scene elements can be presented in the following ways: 1. Treating the element identifiers as part of the 3D virtual scene, with actual 3D scene coordinates within the virtual scene; 2. Presenting the element identifiers as UI icons.
[0069] Virtual characters / objects: These refer to movable objects in a virtual scene. These movable objects can be virtual objects, virtual animals, anime characters, etc., such as people, animals, plants, oil drums, walls, and stones displayed in a 3D virtual scene. Optionally, virtual objects are 3D models created based on animation skeletal technology. Each virtual object has its own shape and volume in the 3D virtual scene, occupying a portion of the space within the 3D virtual scene.
[0070] Virtual items are items that can be used directly or indirectly within a virtual environment. Virtual items possess specific functions, attributes, appearances, or value within the virtual environment. Virtual items include, but are not limited to, virtual equipment (such as staves, speed boots, etc.), virtual decorations (such as skins, pets, etc.), and virtual props (such as buff items, debuff items, etc.) that can enhance the user experience or the abilities of virtual characters.
[0071] Observation props: These are virtual props used to observe virtual scenes. Optionally, the observation props can be virtual scopes mounted on virtual attack props, such as red dot sights, holographic sights, 2x scopes (abbreviated as: 2x scope), 4x scopes (abbreviated as: 4x scope), and 8x scopes (abbreviated as: 8x scope), etc.; or, the observation props can be directly used virtual telescopes, virtual glasses, virtual goggles, etc.
[0072] The virtual camera is a crucial component in a virtual scene, determining the content and perspective the user sees on the screen. The virtual camera's position in three-dimensional space determines the viewpoint, its orientation determines the viewing direction, and its field of view (FOV) determines the size of the virtual scene displayed on the screen. Typically, users cannot directly observe the virtual camera within the virtual scene.
[0073] Optionally, when the user-controlled master virtual object observes the virtual scene from a first-person perspective, the virtual camera is attached to the head position of the master virtual object; when the user-controlled master virtual object observes the virtual scene from a third-person perspective, the virtual camera is attached to the position behind the character of the master virtual object.
[0074] The aforementioned observation prop is bound to a virtual camera. When the user controls the main virtual object to observe the virtual environment using the observation prop, the terminal will perform secondary rendering based on the scene observed by the virtual camera bound to the observation prop, and paste the secondary rendered image into the field of view area of the observation prop.
[0075] When the main virtual object observes scene elements in the virtual scene through the observation prop, the presentation of scene elements in related technologies is generally implemented as follows: 1. When the element identifier is regarded as part of the three-dimensional virtual scene, the element identifier is rendered a second time according to the three-dimensional scene coordinates corresponding to the element identifier, so as to display the element identifier on the observation screen corresponding to the observation prop; 2. The element identifier is displayed directly through the UI icon; 3. The display and hiding of the UI icon of the element identifier is controlled by judging whether to perform secondary rendering, that is, when secondary rendering is performed, the UI icon of the element identifier is temporarily hidden.
[0076] However, the above solution has at least the following problems:
[0077] 1. There is a problem with the recognizability of element icons in 3D virtual scenes. Character icons in 3D virtual scenes will gradually become smaller or blurry as the distance increases, resulting in loss of information transmission and strong conflict with the sense of immersion.
[0078] 2. Directly displaying element identifiers via UI icons can cause UI icon misalignment issues during the secondary rendering of the observed props. For example, a virtual scope renders an in-scope view, but does not use the position corresponding to the UI icon in the in-scope view. In the magnified view inside the scope, the UI icon still appears in the actual position in the scene. Because the FOV inside and outside the scope is different, a misalignment problem will occur.
[0079] like Figure 1As shown, it illustrates a UI icon misalignment in the related technology. In the virtual scene screen 110, there is a teammate virtual object 111, which corresponds to an object identifier 112. The main virtual object is equipped with a virtual attack tool, which is equipped with a virtual scope 113. The object identifier 112 is located to the left of the crosshair of the virtual attack tool and is a certain distance away from the crosshair. When the master virtual object opens the virtual scope 113 to observe the teammate virtual object 111 in the virtual scene, the scope screen 120 is displayed. In the scope screen 120, the scope area 121 containing the virtual scope 113 is displayed. The teammate virtual object 111 and its corresponding object identifier 112 are displayed in the scope area 121. At this time, the teammate virtual object 111 in the scope area 121 is still to the left of the crosshair. However, since the FOV inside and outside the scope area 121 is different, that is, the distance between the teammate virtual object 111 and the crosshair is magnified by the virtual scope 113, the distance between the teammate virtual object 111 and the crosshair seen in the scope area 121 is greater than the distance in the actual scene, and the size of the teammate virtual object 111 is also magnified. At this time, the object identifier 112 is still displayed according to the position of the teammate virtual object 111 in the actual scene (that is, the position of the object identifier 112 on the screen in the virtual scene screen 110), which causes the object identifier 112 to be misaligned to the right of the teammate virtual object 111. The misalignment problem will cause the object identifier 112 to be ambiguous in its labeling of the teammate virtual object 111.
[0080] 3. If UI icons are hidden during secondary rendering, information obtained by users will be missed, reducing the amount of information users can obtain when using observation tools and lowering the user experience.
[0081] In this embodiment, within a virtual scene including first scene elements, the first scene elements are labeled using element identifiers. When a user controls a main virtual object to observe the virtual scene using an observation tool, to avoid misalignment between the observed first scene elements and element identifiers, the rendering of the element identifiers is determined based on a first positional relationship between the first scene elements in the image and the observation display area, and a second positional relationship between the first display position of the element identifiers in the image and the observation display area. The first display position of the element identifiers in the image is determined based on the first scene elements. That is, when the observation tool is activated, the terminal performs secondary rendering on the virtual scene observed through the tool. During this secondary rendering, the first scene elements determine the first display position of the element identifiers in the image. Simultaneously, the first and second positional relationships ensure the accuracy of the first display position, ensuring that the final rendered element identifier position matches the second-rendered first scene elements, thus avoiding misalignment.
[0082] like Figure 2 The diagram illustrates an interface schematic of a virtual scene-based identifier display method provided in an exemplary embodiment of this application. A teammate virtual object 211 is displayed in the virtual scene screen 210. This teammate virtual object 211 corresponds to an object identifier 212. The controlling virtual object is equipped with a virtual attack tool, which is equipped with a virtual scope 213. When the main virtual object opens the virtual scope 213 to observe the teammate virtual object 211 in the virtual scene, the scope screen 220 is displayed. In the scope screen 220, there is a scope area 221 containing the virtual scope 213. The scope area 221 displays the teammate virtual object 211 and its corresponding object identifier 212. The position of the object identifier 212 is determined according to the position of the teammate virtual object 211 in the scope screen 220 implemented by secondary rendering. At the same time, both the object identifier 212 and the teammate virtual object 211 are located within the scope area 221, which together serve as the judgment condition for rendering and displaying the object identifier 212, ensuring the position matching of the object identifier 212 and the teammate virtual object 211 in the secondary rendering screen, so that no misalignment problem occurs.
[0083] Figure 3 A structural block diagram of a computer system provided in an exemplary embodiment of this application is shown. The computer system 300 includes a terminal 320 and a server 340.
[0084] Terminal 320 has an application installed and running that supports virtual environments. This application can be any of the following: virtual reality application, 3D map application, third-person shooter (TPS) game, first-person shooter (FPS) game, multiplayer online battle arena (MOBA) game, or multiplayer shooting survival game.
[0085] The device type of terminal 320 includes at least one of the following: game console, desktop computer, smartphone, tablet computer, e-book reader, Moving Picture Experts Group Audio Layer III (MP3) player, Moving Picture Experts Group Audio Layer IV (MP4) player, and laptop computer. The following embodiments use a desktop computer as an example.
[0086] Terminal 320 is connected to server 340 via wireless or wired network.
[0087] Those skilled in the art will understand that the number of the aforementioned devices can be more or less. For example, there may be only one device, or there may be dozens or hundreds of devices, or even more. This application does not limit the number or type of devices.
[0088] Server 340 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 340 is used to provide background services for applications supporting a three-dimensional virtual environment. Optionally, server 340 undertakes the primary computing task, and terminal 320 undertakes the secondary computing task; or, server 340 undertakes the secondary computing task, and terminal 320 undertakes the primary computing task; or, server 340 and terminal 320 collaborate on computing using a distributed computing architecture.
[0089] It is worth noting that the aforementioned server 340 can be implemented as a physical server or as a cloud server. Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Cloud technology is a collective term for network technologies, information technologies, integration technologies, management platform technologies, and application technologies applied in the cloud computing business model. It can form resource pools, allowing for flexible and convenient on-demand use.
[0090] Schematic illustration: Terminal 320 runs an application providing a virtual scene. Terminal 320 displays the virtual scene through the application. Server 340 synchronizes virtual scene data to terminal 320. This virtual scene data includes the distribution of virtual elements in the virtual scene. For example, server 340 synchronizes the movement of virtual objects controlled by other players in the virtual scene to terminal 320 via data stream. Based on the virtual scene data sent by server 340, terminal 320 displays a first scene element and its corresponding element identifier in the virtual scene. Terminal 320 receives an observation tool usage operation and responds by displaying an observation tool screen for observing the virtual scene using the observation tool. This observation tool screen includes an observation display area corresponding to the observation tool. When displaying the observation tool screen, for the element identifier corresponding to the first scene element in the virtual scene, terminal 320 renders and displays the element identifier based on a first positional relationship between the first scene element in the observation tool screen and the observation display area, and a second positional relationship between the first display position of the element identifier in the observation tool screen and the observation display area, determined based on the first scene element. When the position of the first scene element in the virtual scene changes, the terminal 320 determines the position of the first scene element and the position of the element identifier corresponding to the first scene element from the virtual scene data synchronized by the server 340. Then, based on the first positional relationship between the first scene element in the prop observation screen and the observation display area, and the second positional relationship between the first display position of the element identifier in the prop observation screen and the observation display area determined based on the first scene element, the element identifier is rendered in real time.
[0091] In some embodiments, the method provided in this application can be applied to cloud gaming scenarios, thereby enabling the cloud server to perform data logic calculations during the game process, while the terminal is responsible for displaying the game interface.
[0092] In some embodiments, the server 340 described above can also be implemented as a node in a blockchain system.
[0093] Based on the above-described terminology and application scenarios, the identification display method based on virtual scenes provided in this application will be explained, taking the execution of this method by a terminal as an example. Figure 4 As shown, the method includes the following steps 410 to 430.
[0094] Step 410: Display the first scene element in the virtual scene, with an element identifier displayed for each element.
[0095] The virtual scene is a scene provided by the application when it runs on the terminal. Optionally, the virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene. Illustratively, the terminal displays a virtual scene interface through the application, which includes a virtual scene view where the main virtual object observes the virtual scene.
[0096] In some embodiments, the virtual scene view is an image of the virtual scene observed from the perspective of the main virtual object. Optionally, the virtual scene view can be displayed from the first-person perspective of the main virtual object, or from the third-person perspective of the main virtual object. The first-person perspective is the viewpoint from which the main virtual object can observe the scene in the virtual scene; the image from this first-person perspective does not include the main virtual object itself, for example, only its arm and the virtual props it holds are visible. The third-person perspective is the viewpoint from which the main virtual object is observed through a camera model in the virtual scene; the image from this third-person perspective includes the main virtual object itself, and the camera model is usually located behind the main virtual object, observing it from behind; for example, it can see the 3D model of the main virtual object and the virtual props it holds.
[0097] In a schematic representation, the first scene element is a virtual model used to mimic the scene's appearance. Optionally, the first scene element may include virtual terrain, virtual buildings, virtual flora and fauna, virtual props, virtual vehicles, virtual objects, etc.
[0098] In this embodiment of the application, the element identifier corresponding to the first scene element is an identifier superimposed on the virtual scene screen for labeling the first scene element.
[0099] In some embodiments, the rendering of the element identifier of the first scene element is independent of the scene rendering of the virtual scene; that is, the element identifier is displayed on the virtual scene screen corresponding to the virtual scene through overlay. In some embodiments, the element identifier of the first scene element can be implemented as a UI icon.
[0100] Step 420: In response to receiving the observation prop usage operation, display the prop observation screen for observing the virtual scene through the observation prop.
[0101] The aforementioned observation prop is a virtual prop used for observing virtual scenes. Optionally, the aforementioned observation prop can be a virtual sight mounted on a virtual attack prop, such as a red dot sight, a holographic sight, a 2x sight (abbreviated as: 2x scope), a 4x sight (abbreviated as: 4x scope), and an 8x sight (abbreviated as: 8x scope), etc.; or, the aforementioned observation prop can be a directly usable virtual telescope, virtual glasses, virtual goggles, etc.
[0102] In some embodiments, the above-mentioned observation tools can realize observation functions such as magnified observation, imaging observation, and night vision observation of virtual scenes. Among them, magnified observation is used to indicate the magnification of scene elements in the virtual scene, imaging observation is used to indicate the thermal imaging of scene elements in the virtual scene that meet the specified type, and night vision observation is used to indicate the visualization of scene elements in the dark virtual environment.
[0103] In this embodiment, the observation prop is directly or indirectly held by the master virtual object in the virtual scene. Optionally, the observation prop can be directly displayed in the virtual scene screen. For example, the master virtual object holds a virtual attack prop equipped with a virtual scope; or, the observation prop cannot be directly observed from the virtual scene screen. For example, the virtual scene screen is a first-person view, and the observation prop is a virtual goggle worn on the head of the master virtual object. The user can turn the virtual goggle on and off using a designated control.
[0104] Schematic illustration: When the master virtual object holds an observation tool, the aforementioned observation tool usage operation controls the observation tool to switch from a closed state to an open state. When the observation tool is open, the user can observe the virtual scene through it. In one example, taking a virtual scope mounted on a virtual attack tool as the observation tool, the aforementioned observation tool usage operation is implemented as a scope-opening operation for the virtual scope, which controls the virtual scope to switch from the non-scoped state to the scoped state.
[0105] Optionally, the method of receiving observation prop usage operations includes at least one of the following:
[0106] First, receive shortcut key operation signals; when the shortcut key operation signal corresponds to the target shortcut key, it is confirmed that the observation tool use operation has been received.
[0107] As an illustration, when the terminal is a desktop computer or laptop, the shortcut key operation signal can be triggered by input operations from an external input device, such as by clicking the right mouse button; when the terminal is a mobile terminal such as a mobile phone or tablet, the shortcut key operation signal can be triggered by triggering a physical button on the mobile terminal, or by triggering an auxiliary input device connected to the mobile terminal.
[0108] Second, the virtual scene interface also includes the prop usage control corresponding to the observation prop. When a trigger operation is received on the prop usage control, it is determined that the observation prop usage operation has been received.
[0109] As an illustration, when the terminal is a terminal with a touch screen, the observation prop usage operation can also be determined by triggering the prop usage control on the touch screen. Optionally, the above-mentioned triggering operation of the prop usage control can be implemented as at least one of the following: a single click, a double click, or a continuous press operation on the prop usage control.
[0110] In this embodiment of the application, when the observation prop is in the activated state, the terminal displays the prop observation screen for observing the virtual scene through the observation prop.
[0111] Schematic illustration: In response to receiving an operation to use the observation prop, the terminal will switch the virtual scene screen displayed on the virtual scene interface to the prop observation screen. In some embodiments, the aforementioned virtual scene screen is a screen obtained by observing the virtual scene through a first virtual camera, which is a virtual camera bound to the main virtual object. Optionally, the aforementioned prop observation screen is a screen obtained by observing the virtual scene through a second virtual camera, or the aforementioned prop observation screen is a combination of a first screen obtained by observing the virtual scene through the first virtual camera and a second screen obtained by observing the virtual scene through the second virtual camera, wherein the second virtual camera is a virtual camera bound to the observation prop, used to implement secondary rendering when the observation prop observes the virtual scene.
[0112] In this embodiment of the application, the observation prop corresponds to an observation display area. The observation display area is the area in the prop observation screen that corresponds to the observation prop. The observation display area includes the area that needs to be rendered twice when observing the virtual scene through the observation prop. In one example, the observation display area is the area in the prop observation screen that completely selects the observation prop.
[0113] Optionally, the observation display area can be implemented as a region of at least one shape, such as a rectangular region, a triangular region, a circular region, or an elliptical region.
[0114] Optionally, the aforementioned observation display area can be one area of the prop observation screen, or it can be multiple areas of the prop observation screen. Optionally, the multiple areas of the screen can be discrete areas, or the multiple areas of the screen can be overlapping areas.
[0115] Optionally, the observation display area can be implemented in a shape that fits the field of view area of the observation prop. For example, when the observation prop is a virtual scope, the observation display area can be implemented as a circular area that fits the eyepiece area of the virtual scope. Alternatively, the observation display area can be implemented as a polygonal shape that includes the field of view area of the observation prop.
[0116] Step 430: Based on the first positional relationship between the first scene element in the prop observation screen and the observation display area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the observation display area, render and display the element identifier.
[0117] Optionally, the aforementioned observation display area can be used to indicate the actual virtual scene position corresponding to the prop's field of view area of the aforementioned observation prop, and / or, the aforementioned observation display area can be used to indicate the secondary rendering position corresponding to the prop's field of view area of the aforementioned observation prop. Wherein, the aforementioned actual virtual scene position is used to indicate the position within the scene space corresponding to the virtual scene, and the aforementioned secondary rendering position is used to indicate the position of the virtual scene where prop imaging occurs after passing through the observation prop.
[0118] In some embodiments, the observation display area corresponding to the observation prop includes a preset division area and a first scene observation area, wherein the first scene observation area is used to display the virtual scene observed through the observation prop. The preset division area is used to indicate the secondary rendering position corresponding to the prop's field of view area, and the first scene observation area is used to indicate the actual virtual scene position corresponding to the prop's field of view area.
[0119] In some embodiments, the area of the preset division region includes the area of the first scene observation region, that is, the area size of the preset division region is greater than the area size of the first scene observation region, and the first scene observation region is within the preset division region.
[0120] Optionally, the aforementioned preset division region can be implemented as a region of at least one shape, such as a rectangular region, a triangular region, a circular region, or an elliptical region.
[0121] Optionally, the first scene observation area can be implemented as a region of at least one shape, such as a rectangular region, a triangular region, a circular region, or an elliptical region.
[0122] Optionally, the shape of the preset division area can be the same as the shape of the first scene observation area, or the shape of the preset division area can be different from the shape of the first scene observation area.
[0123] In one example, such as Figure 5 The diagram illustrates the division of a preset area and a first scene observation area according to an exemplary embodiment of this application. Taking a virtual scope as the observation tool, the virtual scope has a circular sight area 501, which serves as the eyepiece of the virtual scope. The first scene observation area 502 is a square area containing the sight area 501, and the preset area 503 is a rectangular area containing the first scene observation area 502. It is worth noting that the preset area 503 can be an area obtained by extending the first scene observation area 502 in one direction, or it can be an area obtained by extending the first scene observation area 502 in multiple directions. Figure 5 The region inclusion relationship between the preset division region 503 and the first scene observation region 502 is only shown as an example.
[0124] Schematic, the element identifier is rendered and displayed based on the first positional relationship between the first scene element in the prop observation screen and the first scene observation area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the preset division area.
[0125] Optionally, the first positional relationship mentioned above may include the first scene element being located within the first scene observation area or the first scene element being located outside the first scene observation area.
[0126] Optionally, the second positional relationship mentioned above may include the element identifier being located within a preset division area or the element identifier being located outside the preset division area.
[0127] Optionally, based on the first positional relationship between the first scene element and the first scene observation area in the prop observation screen, and based on the second positional relationship between the element identifier and the preset division area in the prop observation screen, the rendering and display of the element identifier can be achieved as follows:
[0128] The first method is to render and display the element identifier in the first display style when the first scene element is located outside the first scene observation area and the element identifier is located outside the preset division area.
[0129] The second method is to render and display the element identifier in the second display style when the first scene element is located within the first scene observation area and the element identifier is located within the preset division area.
[0130] The third method is to render and display the element identifier in the third display style when the first scene element is located within the first scene observation area and the element identifier is located outside the preset division area.
[0131] Fourth, when the first scene element is outside the first scene observation area and the element identifier is within the preset division area, the element identifier is rendered and displayed in the third display style.
[0132] Optionally, the first, second, and third display styles can be methods of displaying element identifiers with different transparency; alternatively, the first, second, and third display styles can be methods of displaying element identifiers with different identifier colors; alternatively, the first, second, and third display styles can be methods of displaying element identifiers with different identifier shapes; alternatively, the first, second, and third display styles can be methods of displaying element identifiers with different identifier sizes.
[0133] Schematic illustration: The first display position of the element identifier is determined based on the first scene element. Optionally, the first display position can be determined based on the second display position of the first scene element, that is, the position of the element identifier in the image is determined based on the position of the first scene element.
[0134] Optionally, the first display position can be a position located in the direction specified by the second display position. The first display position can be above, below, to the left, to the right, etc. of the second display position. For example, when the first scene element is a virtual teammate object, the object identifier is set on the top of the teammate virtual object's head or the bottom of its feet.
[0135] In some embodiments, the first display position of the element identifier is determined based on the position of the first scene element in the virtual scene. In some embodiments, the first display position of the element identifier in the prop viewing screen needs to be determined before rendering and displaying the element identifier. Illustratively, the second display position of the first scene element in the prop viewing screen is obtained, and the first display position of the element identifier in the prop viewing screen is determined based on the second display position. That is, the second display position corresponding to the first scene element in the prop viewing screen is first determined, and then the first display position of the element identifier in the prop viewing screen is determined based on the second display position.
[0136] In some embodiments, the first display position is the position of the second display position at a preset offset in a specified direction.
[0137] In summary, within a virtual scene including the first scene elements, these elements are labeled using element identifiers. When a user controls the main virtual object to observe the virtual scene using an observation tool, to avoid misalignment between the observed first scene elements and element identifiers, the rendering of the element identifiers is determined based on a first positional relationship between the first scene elements and the observation display area, and a second positional relationship between the first display position of the element identifiers and the observation display area. The first display position of the element identifiers is determined based on the first scene elements. That is, when the observation tool is activated, the terminal performs secondary rendering on the virtual scene observed through the tool. During this secondary rendering, the first scene elements determine the first display position of the element identifiers. Simultaneously, the aforementioned first and second positional relationships ensure the accuracy of the first display position, ensuring that the final rendered element identifier position matches the second-rendered first scene elements, thus preventing misalignment.
[0138] Please refer to Figure 6 This document illustrates a flowchart of a virtual scene-based identifier display method provided by an exemplary embodiment of this application. In this embodiment, the observation display area corresponding to the observation prop includes a preset division area and a first scene observation area. The element identifier is rendered and displayed by a first positional relationship between a first scene element in the prop observation screen and the first scene observation area, and a second positional relationship between the element identifier in the prop observation screen and the preset division area. The method includes steps 431 to 433, where steps 431 to 433 are subordinate steps to step 430, and are executed after step 420.
[0139] Step 431: When the first scene element is located within the first scene observation area and the first display position corresponding to the element identifier is located within the preset division area, render and display the element identifier within the preset division area.
[0140] In this embodiment, the observation display area corresponding to the observation prop includes a preset division area and a first scene observation area. The first scene observation area is used to display the virtual scene observed through the observation prop. The preset division area indicates the secondary rendering position corresponding to the prop's field of view, and the first scene observation area indicates the actual virtual scene position corresponding to the prop's field of view.
[0141] In this embodiment of the application, the area of the preset division region includes the area of the first scene observation region.
[0142] Optionally, the aforementioned preset division region can be implemented as a region of at least one shape, such as a rectangular region, a triangular region, a circular region, or an elliptical region.
[0143] Optionally, the first scene observation area can be implemented as a region of at least one shape, such as a rectangular region, a triangular region, a circular region, or an elliptical region.
[0144] In some embodiments, the first scene observation area is an area associated with the field of view of the observation prop, and the preset division area is an area determined based on the first scene observation area. Illustratively, the first scene observation area is determined based on the field of view of the observation prop, and a specified edge in the first scene observation area is used as an adjustment edge and its position is moved parallel to the edge to obtain the preset division area after the specified edge has been moved a preset distance.
[0145] That is, the first scene observation area can indicate the area that the observation prop can observe through the prop's field of view when observing the virtual scene. By adjusting the specified edges based on the first scene observation area, the preset division area after edge expansion can be quickly obtained. This preset division area is regarded as the actual affected area of the observation prop's secondary rendering, thereby ensuring that the position of the element identifier determined according to the first scene element can be displayed normally even if it does not appear in the field of view of the observation prop, so as to accurately provide the user with the identification information of scene elements.
[0146] Optionally, the preset distance for the specified edge to move can be a pre-configured fixed value; or, the preset distance for the specified edge to move can be a distance value associated with the magnification of the virtual scene by the observation prop.
[0147] Optionally, the specified edge can be implemented as one edge in the first scene observation area, or it can be implemented as multiple edges in the first scene observation area.
[0148] In some embodiments, before using a specified edge in the first scene observation area as an adjustment edge to move the edge position parallel to obtain a preset division area after the specified edge has moved a preset distance, the magnification information of the observation prop is determined, and a preset distance that is positively correlated with the magnification information is obtained.
[0149] In some embodiments, a correspondence table between magnification information and preset distance is obtained. The correspondence table indicates the preset distance of movement of a specified side under different magnifications corresponding to the observation prop. The magnification and the preset distance are positively correlated, that is, the larger the magnification, the greater the preset distance of movement of the specified side and the larger the area size of the preset division region.
[0150] The size of the preset division area is determined by the magnification of the observation prop. The size of the preset division area can be adaptively adjusted according to the observation prop with different magnification, thereby ensuring the accuracy of the display of the identification information of scene elements in observation prop scenes with different magnification.
[0151] In this embodiment of the application, when the first scene element is located within the first scene observation area and the element identifier is located within the preset division area, it means that the first scene element is located within the actual virtual scene area mapped by the prop vision area of the observation prop, and the element identifier is located within the secondary rendering area corresponding to the prop vision area of the observation prop. That is, when the user observes the virtual scene through the observation prop, the first scene element can be observed within the prop vision area.
[0152] In the above situation, since the user has already observed the first scene element within the prop's field of view, and the element identifier of the first scene element has not left the secondary rendering area, it is necessary to render and display the element identifier in the preset division area.
[0153] In one example, such as Figure 7 The diagram illustrates the rendering and display of an element identifier provided in an exemplary embodiment of this application. In the virtual scene interface 700, when the virtual scope 701, serving as an observation tool, is in the scope-open state, the virtual scope 701 corresponds to a first scene observation area 710 and a preset division area 720. At this time, the teammate virtual object 702, serving as a first scene element, is located within the first scene observation area 710, and the object identifier 703 of the teammate virtual object 702 is located within the preset division area 720. Therefore, the object identifier 703 is rendered and displayed in the preset division area 720.
[0154] In some embodiments, when the first scene element is located within the first scene observation area and the element identifier is located within a preset division area, the element identifier is rendered and displayed in the preset division area using a second display style.
[0155] Optionally, the second display style is used to indicate at least one of the following when the element is displayed: the element's transparency, color, shape, and size.
[0156] Step 432: When the first scene element is located within the first scene observation area and the first display position corresponding to the element identifier is located outside the preset division area, hide the element identifier.
[0157] In this embodiment of the application, when the first scene element is located within the first scene observation area and the element identifier is located outside the preset division area, it means that the first scene element is located within the actual virtual scene area mapped by the prop vision area of the observation prop, but the element identifier is located outside the secondary rendering area corresponding to the prop vision area of the observation prop. That is, when the user observes the virtual scene through the observation prop, the first scene element can be observed within the prop vision area, but the first scene element may be obscured by the invisible part of the observation prop.
[0158] In the above situation, although the user has observed some of the first scene elements within the prop's field of view, the element identifiers of the first scene elements are hidden because they are outside the secondary rendering area.
[0159] Alternatively, hiding the element identifier can be implemented as follows:
[0160] The first method involves controlling the transparency of the element's identifier. For example, the transparency of the element's identifier is adjusted to 100%, making it impossible for the user to see the identifier in the item viewing screen.
[0161] The second method involves controlling the hiding of element icons through a UI state manager. For illustration, the application's background provides a UI state manager that can control the display and hiding of UI icons on the interface. This UI state manager can be used to control the UI icon corresponding to an element icon to enter a hidden state.
[0162] The third method involves removing element identifiers from the virtual scene interface. For example, when element identifiers need to be hidden, the application directly removes the UI icon corresponding to the element identifier that is overlaid on the item viewing screen.
[0163] In one example, such as Figure 8 The diagram illustrates a rendering display of an element identifier provided in an exemplary embodiment of this application. In the virtual scene interface 800, when the virtual scope 801, serving as an observation tool, is in the scope-open state, the virtual scope 801 corresponds to a first scene observation area 810 and a preset division area 820. At this time, the teammate virtual object 802, serving as a first scene element, is located within the first scene observation area 810, and the object identifier of the teammate virtual object 802 is located outside the preset division area 820. Therefore, the aforementioned object identifier is hidden in the virtual scene interface 800.
[0164] Step 433: When the first scene element is located outside the first scene observation area and the first display position corresponding to the element identifier is located outside the preset division area, the element identifier is rendered and displayed in the second scene observation area.
[0165] The aforementioned second scene observation area is used to display virtual scenes outside the field of view of the observation prop.
[0166] In this embodiment of the application, the image content in the first scene observation area is obtained by capturing and rendering the scene image through the second virtual camera bound to the observation prop, and the image content in the second scene observation area is obtained by capturing and rendering the scene image through the second virtual camera. The second virtual camera is a virtual camera bound to the main virtual object for direct observation of the virtual scene.
[0167] In this embodiment of the application, when the first scene element is located outside the first scene observation area and the element identifier is located outside the preset division area, it means that both the first scene element and the element identifier are located outside the secondary rendering area corresponding to the prop vision area of the observation prop. That is, the first scene element is completely located outside the prop identification area of the observation prop.
[0168] In the above situation, since the first scene element is completely outside the prop's field of view, the element identifier can be directly rendered and displayed in the second scene observation area in the prop observation screen.
[0169] In one example, such as Figure 9 The diagram illustrates a rendering display of an element identifier provided in an exemplary embodiment of this application. In the virtual scene interface 900, when the virtual scope 901, serving as an observation tool, is in the scope-open state, the virtual scope 901 corresponds to a first scene observation area 910 and a preset division area 920. At this time, the teammate virtual object 902, serving as a first scene element, is located outside the first scene observation area 910. Simultaneously, the object identifier 903 of the teammate virtual object 902 is located outside the preset division area 920. Therefore, the teammate virtual object 902 and the object identifier 903 are directly displayed outside the field of view of the virtual scope 901 in the virtual scene interface 900.
[0170] In summary, within a virtual scene including the first scene elements, these elements are labeled using element identifiers. When a user controls the main virtual object to observe the virtual scene using an observation tool, to avoid misalignment between the observed first scene elements and element identifiers, the rendering of the element identifiers is determined based on a first positional relationship between the first scene elements and the observation display area, and a second positional relationship between the first display position of the element identifiers and the observation display area. The first display position of the element identifiers is determined based on the first scene elements. That is, when the observation tool is activated, the terminal performs secondary rendering on the virtual scene observed through the tool. During this secondary rendering, the first scene elements determine the first display position of the element identifiers. Simultaneously, the aforementioned first and second positional relationships ensure the accuracy of the first display position, ensuring that the final rendered element identifier position matches the second-rendered first scene elements, thus preventing misalignment.
[0171] In this embodiment, the accuracy of the first display position determined based on the first scene element is ensured by the first positional relationship between the first scene element and the first scene observation area, and the second positional relationship between the first display position of the element identifier and the preset division area. This takes into account three situations: both the first scene element and the element identifier are in the secondary rendering area of the observation prop; the first scene element is partially obscured by the observation prop, causing the element identifier not to enter the secondary rendering area; and neither the first scene element nor the element identifier appears in the secondary rendering area of the observation prop. Corresponding rendering and display methods for the identifier element are provided for different situations, ensuring the accuracy of the identifier element display position, avoiding misalignment with scene elements, and improving the accuracy of the identifier information indication.
[0172] Please refer to Figure 10 This document illustrates a flowchart of a virtual scene-based identifier display method provided by an exemplary embodiment of this application. In this embodiment, the identifier of a first scene element is displayed based on its position in the prop viewing screen. The method includes steps 1021 to 1022, wherein steps 1021 to 1022 are performed before step 430.
[0173] Step 1021: Obtain the second display position of the first scene element in the prop observation screen.
[0174] Optionally, the first scene element can be implemented as a static scene element, such as virtual buildings, virtual plants, virtual props, etc. in a virtual scene; or, the first virtual scene element can be implemented as a dynamic scene element, such as virtual objects, virtual vehicles, etc. in a virtual scene.
[0175] In some embodiments, when the first scene element is implemented as a static scene element, the terminal pre-stores the position information of the static scene element in the virtual scene. That is, the terminal reads the second display position of the first scene element in the prop observation screen from the preset storage area. The second display position is the position of the first scene element in the scene space (World Space) of the virtual scene, and the scene space is the three-dimensional space where the virtual scene is located.
[0176] In other embodiments, when the first scene element is implemented as a dynamic scene element, the terminal receives virtual scene data continuously transmitted by the server. This virtual scene data is used to indicate the real-time position of the dynamic scene element in the virtual scene. The aforementioned virtual scene data includes a second display position corresponding to the first scene element.
[0177] Optionally, the second display position can be a location area indicated by multiple coordinate points; or, the second display position can also be a location point indicated by a single coordinate point, wherein the location point can be implemented as the center of the element model or the centroid of the element model of the first scene element.
[0178] Step 1022: Determine the first display position of the element identifier in the prop observation screen based on the second display position.
[0179] In some embodiments, the first display position is the position of the second display position in a specified direction. For example, when the first scene element is a teammate virtual object, the object identifier, which serves as the element identifier, is displayed above the teammate virtual object.
[0180] In some embodiments, the first display position is a specified identifier offset from the second display position, wherein the identifier offset is used to indicate the offset of the first display position of the element identifier relative to the second display position.
[0181] In some embodiments, since the element identifier is superimposed on the prop viewing screen, it is necessary to convert the second display position in three-dimensional space into a two-dimensional space corresponding to the screen, thereby determining the first position information corresponding to the element identifier in the screen space, which is the two-dimensional space superimposed on the prop viewing screen. Illustratively, based on the coordinate transformation relationship between scene space and screen space, the second display position is converted into a third display position in the screen space. The first display position in the screen space is determined based on the third display position and the identifier offset, whereby the identifier offset indicates the offset of the first display position of the element identifier relative to the third display position.
[0182] In some embodiments, the second display position is indicated by a three-dimensional coordinate point in a preset three-dimensional coordinate system corresponding to the scene space, and the third display position is indicated by a two-dimensional coordinate point in a preset two-dimensional coordinate system corresponding to the screen space. Converting the second display position in the scene space into the third display position in the screen space can be achieved by: obtaining a preset projection matrix, multiplying the three-dimensional coordinate point in the above-mentioned three-dimensional coordinate system with the preset projection matrix to obtain the two-dimensional coordinate point in the above-mentioned two-dimensional coordinate system, and using the two-dimensional coordinate point as the third display position.
[0183] Since the element identifier is displayed overlaid on the virtual scene interface, the position information corresponding to the element identifier is in screen space. By converting the position information of the first scene element in the scene space into the position information in the screen space, and then determining the position of the element identifier based on the position of the first scene element in the screen space, the consistency of spatial coordinates when determining the position can be guaranteed, making the final determined first display position more intuitive, and making the positional correspondence between the element identifier and the first scene element observed by the user more accurate.
[0184] The prop observation screen includes a first scene observation area and a second scene observation area. The first scene observation area is used to display the virtual scene observed through the observation prop, and the second scene observation area is used to display the virtual scene outside the field of view of the observation prop.
[0185] In some embodiments, different identifier offsets are used to determine the first display position when the first scene element is located in different scene observation areas. Illustratively, when the first scene element is located in the first scene observation area, the first display position in screen space is determined based on the third display position and the first identifier offset; when the first scene element is located in the second scene observation area, the first display position in screen space is determined based on the third display position and the second identifier offset. Optionally, the first identifier offset is greater than the second identifier offset.
[0186] Optionally, the first identifier offset may be a fixed value preset by the system, or the first identifier offset may be determined according to a specified determination rule.
[0187] When the first scene element is within the first scene's observation area, it undergoes secondary rendering due to the observation prop. However, when the first scene element is within the second scene's observation area, it is still rendered and displayed as the original virtual scene, meaning no secondary rendering occurs. When the first scene element is rendered secondary, a different offset is used compared to when it is not rendered secondary, thus making the positional relationship between the superimposed element identifier and the first scene element more accurate.
[0188] In some embodiments, when the first scene element is located in the first scene observation area, the magnitude of the first identifier offset is associated with the magnification of the observation prop. Illustratively, when the first scene element is located in the first scene observation area, the magnification information of the observation prop is obtained, the first identifier offset is determined based on the magnification information, and a first display position in screen space is determined according to the third display position and the first identifier offset.
[0189] In some embodiments, there is a preset correspondence between the magnification information and the first identifier offset. Schematic, the corresponding relationship table is obtained, and the corresponding first identifier offset can be obtained by querying the magnification information of the observation prop according to the relationship table.
[0190] The higher the magnification of the observation prop, the larger the volume of scene elements at the same distance within the observation prop's field of view will be. Therefore, associating the first identifier offset with the magnification of the observation prop can ensure that the positional relationship between the element identifier and the scene elements remains stable, and will not cause the distance between the element identifier and the scene elements to become too close visually due to the increase in the size of the scene elements, thereby improving the display effect of the element identifier.
[0191] Optionally, the second identifier offset can be a fixed value preset by the system, or the second identifier offset can be determined according to a specified determination rule.
[0192] In some embodiments, distance information between a first scene element and a main virtual object is obtained, a second identifier offset is determined based on the distance information, and a first display position in screen space is determined based on a third display position and the second identifier offset.
[0193] In summary, within a virtual scene including the first scene elements, these elements are labeled using element identifiers. When a user controls the main virtual object to observe the virtual scene using an observation tool, to avoid misalignment between the observed first scene elements and element identifiers, the rendering of the element identifiers is determined based on a first positional relationship between the first scene elements and the observation display area, and a second positional relationship between the first display position of the element identifiers and the observation display area. The first display position of the element identifiers is determined based on the first scene elements. That is, when the observation tool is activated, the terminal performs secondary rendering on the virtual scene observed through the tool. During this secondary rendering, the first scene elements determine the first display position of the element identifiers. Simultaneously, the aforementioned first and second positional relationships ensure the accuracy of the first display position, ensuring that the final rendered element identifier position matches the second-rendered first scene elements, thus preventing misalignment.
[0194] In this embodiment, the first display position of the element identifier is determined according to the second display position corresponding to the first scene element, which can ensure the positional relationship between the element identifier and the first scene element and avoid the misalignment of the element identifier and the first scene element.
[0195] Please refer to Figure 11 This document illustrates a flowchart of a virtual scene-based identifier display method provided by an exemplary embodiment of this application. In this embodiment, the identifier of a first scene element is displayed based on its position in the prop viewing screen. The method includes the following steps 1101 to 1104.
[0196] Step 1101: Display the first scene element in the virtual scene.
[0197] In this embodiment of the application, the first scene element is displayed with an element identifier, which is an identifier superimposed on the virtual scene screen to mark the first scene element.
[0198] In this embodiment, the virtual scene is viewed from the perspective of the controlling virtual object. It is illustrated that the virtual scene is displayed in the virtual scene interface provided by the application.
[0199] Step 1102: Display the element identifier in the virtual scene using the first display method.
[0200] In this embodiment of the application, in the virtual scene image of the virtual scene viewed from the perspective of the master virtual object, the element identifier corresponding to the first scene element is displayed in a first display mode.
[0201] Optionally, the first display method can be implemented by treating the element identifier as part of the virtual scene, and rendering the element identifier corresponding to the first scene element while rendering the virtual scene.
[0202] Optionally, the first display method can be implemented by displaying element identifiers through UI icons, that is, the element identifiers of the first scene elements are displayed as UI icons, and the rendering of the element identifiers and the rendering of the virtual scene are independent of each other.
[0203] Step 1103: In response to receiving the observation prop usage operation, display the prop observation screen for observing the virtual scene through the observation prop.
[0204] In this embodiment, upon receiving an operation to use the observation tool, an observation screen for observing the virtual scene using the observation tool is displayed in the virtual scene interface. Each observation tool corresponds to an observation display area, which is the area requiring secondary rendering when observing the virtual scene using the observation tool. The observation tool is a virtual tool used for observing a virtual scene.
[0205] In this embodiment of the application, the observation prop corresponds to an observation display area. The observation display area is the area in the prop observation screen that corresponds to the observation prop. The observation display area is the area that needs to be rendered twice when observing the virtual scene through the observation prop. In one example, the observation display area is the area in the prop observation screen that completely selects the observation prop.
[0206] Step 1104: Based on the first positional relationship between the first scene element in the prop observation screen and the observation display area, and the second positional relationship between the first display position of the element identifier in the prop observation screen and the observation display area determined based on the first scene element, display the element identifier in the prop observation screen in a second display mode.
[0207] Optionally, the aforementioned observation display area can be used to indicate the actual virtual scene position corresponding to the prop's field of view area of the aforementioned observation prop, and / or, the aforementioned observation display area can be used to indicate the secondary rendering position corresponding to the prop's field of view area of the aforementioned observation prop. Wherein, the aforementioned actual virtual scene position is used to indicate the position within the scene space corresponding to the virtual scene, and the aforementioned secondary rendering position is used to indicate the position of the virtual scene where prop imaging occurs after passing through the observation prop.
[0208] Optionally, the first positional relationship includes the first scene element being within the observation display area and the first scene element being outside the observation display area; optionally, the second positional relationship includes the first display position corresponding to the element identifier being within the observation display area and the first display position corresponding to the element identifier being outside the observation display area.
[0209] In this embodiment, when the observation prop is in the closed state, the virtual scene interface displays the virtual scene screen; when the observation prop is in the open state, the virtual scene interface displays the prop observation screen. The element identifier of the first scene element in the virtual scene is displayed in different ways in the virtual scene screen and the prop observation screen.
[0210] In this embodiment of the application, in order to avoid the identification problem of element identifiers when the observation prop is in the open state, the second display method is to display the element identifiers through UI icons.
[0211] In some embodiments, when the observation prop is in the active state, the second display mode of the element identifier can be implemented as a display mode associated with the identifier's transparency. Illustratively, distance information between the first scene element and the main virtual object is obtained, the identifier transparency corresponding to the element identifier is determined based on the distance information, and the element identifier is displayed on the prop observation screen according to the identifier transparency. Optionally, the distance between the first scene element and the main virtual object indicated by the aforementioned distance information and the identifier transparency of the element identifier can be positively correlated or negatively correlated; this is not limited here.
[0212] In other embodiments, to ensure the display effect of the element identifier when the observation prop is in the active state, the first display method can be implemented as a display method associated with the identifier color. Illustratively, a first display position of the element identifier on the prop observation screen is determined, the background element color value corresponding to the first display position is identified, the identifier color corresponding to the identifier element is determined based on the background element color value, and the element identifier is displayed on the prop observation screen according to the identifier color.
[0213] Optionally, when determining the identifier color corresponding to the identifier element based on the background element color value, the identifier color can be determined through a preset color reference table. For example, the preset color reference table can be obtained, and the identifier color corresponding to the background element color value can be retrieved from the table to display the element identifier. For instance, when the background element color is black, the identifier color can be white.
[0214] Optionally, when determining the identifier color corresponding to the identifier element based on the background element color value, a preset color calculation formula can be used to determine the identifier color. For example, the preset color calculation formula can be obtained by substituting the background element color value into the formula. For instance, (y1,y2,y3)=(|x1-255|,|x2-255|,|x3-255|), where (y1,y2,y3) are the color intensities of the identifier color in the three RGB channels, and (x1,x2,x3) are the color intensities of the background element color in the three RGB channels.
[0215] When displaying identifier elements, the identifier color is determined based on the background color of the identifier element. This ensures the visibility of the identifier element in the screen, thereby guaranteeing the effectiveness of conveying the identifier information of the scene elements and improving the user's gaming experience.
[0216] In summary, within a virtual scene including the first scene elements, these elements are labeled using element identifiers. When a user controls the main virtual object to observe the virtual scene using an observation tool, to avoid misalignment between the observed first scene elements and element identifiers, the rendering of the element identifiers is determined based on a first positional relationship between the first scene elements and the observation display area, and a second positional relationship between the first display position of the element identifiers and the observation display area. The first display position of the element identifiers is determined based on the first scene elements. That is, when the observation tool is activated, the terminal performs secondary rendering on the virtual scene observed through the tool. During this secondary rendering, the first scene elements determine the first display position of the element identifiers. Simultaneously, the aforementioned first and second positional relationships ensure the accuracy of the first display position, ensuring that the final rendered element identifier position matches the second-rendered first scene elements, thus preventing misalignment.
[0217] In this embodiment, different display methods are used to display element identifiers when the observation prop is in a closed state and an open state, which can more clearly distinguish the screen displayed in the virtual scene interface when the observation prop is in different states and quickly identify state changes. At the same time, it also makes the display of element identifiers adaptable to the secondary rendering screen of the observation prop. For example, when the observation prop is a night vision observation prop, the virtual scene screen displays a virtual scene in a night state when it is not turned on, and the visibility of element identifiers and first scene elements is low. When the night vision observation prop is turned on, a display method with high visibility is required to display element identifiers and first scene elements so that the display effect of element identifiers fits the observation prop and improves the accuracy of information transmission of element identifiers under the observation prop.
[0218] It should be noted that this application may display prompt interfaces, pop-ups, or output voice prompts before and during the collection of user data. These prompt interfaces, pop-ups, or voice prompts are used to inform the user that their data is being collected. This ensures that the application only begins the steps for collecting user data after receiving confirmation from the user regarding the prompt interface or pop-up; otherwise (i.e., without user confirmation), the steps for collecting user data end, meaning no user data is collected. In other words, all user data collected in this application is collected with the user's consent and authorization, and the collection, use, and processing of related user data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0219] Please refer to Figure 12 The diagram illustrates a block diagram of a virtual scene-based signage display device according to an exemplary embodiment of this application. The device includes the following modules:
[0220] The first display module 1210 is used to display a first scene element in a virtual scene. The first scene element is correspondingly displayed with an element identifier. The element identifier is an identifier superimposed on the virtual scene screen for marking the first scene element.
[0221] The first display module 1210 is also configured to respond to receiving an observation prop usage operation and display a prop observation screen for observing the virtual scene through the observation prop, wherein the observation prop has an observation display area, and the observation display area includes an area that needs to be rendered twice when observing the virtual scene through the observation prop;
[0222] The second display module 1220 is used to render and display the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the observation display area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the observation display area.
[0223] In some optional embodiments, the observation display area corresponding to the observation prop includes a preset division area and a first scene observation area, wherein the first scene observation area is used to display the virtual scene observed through the observation prop;
[0224] The second display module 1220 is further configured to render and display the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the first scene observation area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the preset division area.
[0225] In some optional embodiments, the second display module 1220 is further configured to render and display the element identifier in the preset division area when the first scene element is located within the first scene observation area and the first display position corresponding to the element identifier is located within the preset division area.
[0226] In some optional embodiments, the second display module 1220 is further configured to hide the element identifier when the first scene element is located within the first scene observation area and the first display position corresponding to the element identifier is located outside the preset division area.
[0227] In some optional embodiments, the second display module 1220 is further configured to render and display the element identifier in the second scene observation area when the first scene element is located outside the first scene observation area and the first display position corresponding to the element identifier is located outside the preset division area. The second scene observation area is used to display a virtual scene outside the field of view of the observation prop.
[0228] In some alternative embodiments, such as Figure 13 As shown, the device further includes:
[0229] The region determination module 1230 is used to determine the first scene observation region based on the field of view of the observation prop; and to move a specified edge in the first scene observation region as an adjustment edge to obtain the preset division region after the specified edge has been moved a preset distance.
[0230] In some optional embodiments, the region determination module 1230 is further configured to determine the magnification information of the observation prop; and obtain the preset distance that is positively correlated with the magnification information.
[0231] In some alternative embodiments, the apparatus further includes:
[0232] The location acquisition module 1240 is used to acquire the second display position of the first scene element in the prop observation screen;
[0233] The position determination module 1250 is used to determine the first display position of the element identifier in the prop observation screen based on the second display position.
[0234] In some optional embodiments, the second display position is the position of the first scene element in the scene space of the virtual scene, where the scene space is the three-dimensional space where the virtual scene is located;
[0235] The position determination module 1250 further includes:
[0236] The conversion unit 1251 is used to convert the second display position into a third display position in the screen space according to the coordinate transformation relationship between the scene space and the screen space, wherein the screen space is a two-dimensional space superimposed on the prop observation screen;
[0237] The first determining unit 1252 is configured to determine the first display position in the screen space based on the third display position and the identifier offset, wherein the identifier offset is used to indicate the offset of the first display position of the element identifier relative to the third display position.
[0238] In some optional embodiments, the first determining unit 1252 is further configured to determine the first display position in the screen space based on the third display position and the first identifier offset when the first scene element is located in the first scene observation area, wherein the first scene observation area is used to display the virtual scene observed through the observation prop; and to determine the first display position in the screen space based on the third display position and the second identifier offset when the first scene element is located in the second scene observation area, wherein the second scene observation area is used to display the virtual scene outside the prop's field of view.
[0239] In some optional embodiments, the position determination module 1250 further includes:
[0240] The first acquisition unit 1253 is used to acquire the magnification information of the observation prop when the first scene element is located in the first scene observation area;
[0241] The first determining unit 1252 is further configured to determine the first identifier offset based on the magnification information; and to determine the first display position in the screen space based on the third display position and the first identifier offset.
[0242] In some optional embodiments, the first display module 1210 is further configured to display the element identifier in the virtual scene in a first display mode;
[0243] The second display module 1220 is also used to display the element identifier in the prop observation screen in a second display mode.
[0244] In some optional embodiments, the second display module 1220 further includes:
[0245] The second acquisition unit 1221 is used to acquire distance information between the first scene element and the main virtual object;
[0246] The second determining unit 1222 is used to determine the transparency of the element identifier based on the distance information;
[0247] Display unit 1223 is used to display the element identifier on the prop viewing screen according to the identifier transparency.
[0248] In some optional embodiments, the second determining unit 1222 is further configured to determine the first display position of the element identifier on the prop viewing screen;
[0249] The second display module 1220 further includes:
[0250] The recognition unit 1224 is used to recognize the color value of the background element corresponding to the first display position;
[0251] The second determining unit 1222 is further configured to determine the identifier color corresponding to the identifier element based on the background element color value;
[0252] The display unit 1223 is also used to display the element identifier on the prop observation screen according to the identifier color.
[0253] It should be noted that the virtual scene-based signage display device provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the virtual scene-based signage display device and the virtual scene-based signage display method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0254] Figure 14A structural block diagram of a terminal 1400 provided in an exemplary embodiment of this application is shown. The terminal 1400 may be a smartphone, tablet computer, Moving Picture Experts Group Audio Layer III (MP3) player, Moving Picture Experts Group Audio Layer IV (MP4) player, laptop computer, or desktop computer. The terminal 1400 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.
[0255] Typically, terminal 1400 includes a processor 1401 and a memory 1402.
[0256] Processor 1401 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1401 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 1401 may also include a main processor and a coprocessor. The main processor, also known as a central processing unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1401 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1401 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.
[0257] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1402 is used to store at least one instruction, which is executed by the processor 1401 to implement the virtual scene-based identifier display method provided in the method embodiments of this application.
[0258] This is illustrative; terminal 1400 also includes other components, as those skilled in the art will understand. Figure 14 The structure shown does not constitute a limitation on terminal 1400 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0259] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. This program can be stored in a computer-readable storage medium, which may be a computer-readable storage medium included in the memory described in the above embodiments; or it may be a standalone computer-readable storage medium not assembled into the terminal. The computer-readable storage medium stores at least one instruction, at least one program segment, a code set, or an instruction set. The at least one instruction, the at least one program segment, the code set, or the instruction set is loaded and executed by the processor to implement any of the virtual scene-based identification display methods described in the above embodiments.
[0260] Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM). The sequence numbers of the embodiments in this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0261] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0262] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for displaying identifiers based on a virtual scene, characterized in that, The method includes: Displays a first scene element in a virtual scene, and the first scene element is displayed with an element identifier. The element identifier is an identifier superimposed on the virtual scene screen to mark the first scene element. In response to receiving an operation to use an observation prop, an observation screen for observing the virtual scene through the observation prop is displayed. The observation prop has a corresponding observation display area, which includes the area that needs to be rendered twice when observing the virtual scene through the observation prop. Based on the first positional relationship between the first scene element and the observation display area in the prop observation screen, and the second positional relationship between the first display position of the element identifier and the observation display area determined based on the first scene element, the element identifier is rendered and displayed.
2. The method according to claim 1, characterized in that, The observation display area corresponding to the observation prop includes a preset division area and a first scene observation area, wherein the first scene observation area is used to display the virtual scene observed through the observation prop. The step of rendering and displaying the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the observation display area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the observation display area, includes: Based on the first positional relationship between the first scene element and the first scene observation area in the prop observation screen, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the preset division area, the element identifier is rendered and displayed.
3. The method according to claim 2, characterized in that, The step of rendering and displaying the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the first scene observation area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the preset division area, includes: When the first scene element is located within the first scene observation area, and the first display position corresponding to the element identifier is located within the preset division area, the element identifier is rendered and displayed within the preset division area.
4. The method according to claim 2, characterized in that, The step of rendering and displaying the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the first scene observation area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the preset division area, includes: When the first scene element is located within the first scene observation area, and the first display position corresponding to the element identifier is located outside the preset division area, the element identifier is hidden.
5. The method according to claim 2, characterized in that, The step of rendering and displaying the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the first scene observation area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the preset division area, includes: When the first scene element is located outside the first scene observation area, and the first display position corresponding to the element identifier is located outside the preset division area, the element identifier is rendered and displayed in the second scene observation area. The second scene observation area is used to display a virtual scene outside the field of view of the observation prop.
6. The method according to any one of claims 2 to 5, characterized in that, The method further includes: The observation area of the first scene is determined based on the field of view of the observation prop; The specified edge in the first scene observation area is used as the adjustment edge and its position is moved parallel to obtain the preset division area after the specified edge is moved by a preset distance.
7. The method according to claim 6, characterized in that, Before moving a specified edge in the first scene observation area as an adjustment edge to a parallel position to obtain the preset division area after the specified edge has been moved a preset distance, the method further includes: Determine the magnification information of the observation tool; Obtain the preset distance that has a positive correlation with the magnification information.
8. The method according to any one of claims 1 to 5, characterized in that, Before rendering and displaying the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the observation display area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the observation display area, the method further includes: Obtain the second display position of the first scene element in the prop observation screen; The first display position of the element identifier in the prop observation screen is determined based on the second display position.
9. The method according to claim 8, characterized in that, The second display position is the position of the first scene element in the scene space of the virtual scene, where the scene space is the three-dimensional space where the virtual scene is located; Determining the first display position of the element identifier on the prop viewing screen based on the second display position includes: Based on the coordinate transformation relationship between the scene space and the screen space, the second display position is converted into a third display position in the screen space, where the screen space is a two-dimensional space superimposed on the prop observation screen; The first display position in the screen space is determined based on the third display position and the identifier offset, wherein the identifier offset is used to indicate the offset of the first display position of the element identifier relative to the third display position.
10. The method according to claim 9, characterized in that, Determining the first display position in the screen space based on the third display position and the identifier offset includes: When the first scene element is located in the first scene observation area, the first display position in the screen space is determined according to the third display position and the first identifier offset. The first scene observation area is used to display the virtual scene observed through the observation prop. When the first scene element is located in the second scene observation area, the first display position in the screen space is determined according to the third display position and the second identifier offset. The second scene observation area is used to display a virtual scene outside the field of view of the observation prop.
11. The method according to claim 10, characterized in that, When the first scene element is located in the first scene observation area, determining the first display position in the screen space based on the third display position and the first identifier offset includes: When the first scene element is located in the first scene observation area, obtain the magnification information of the observation prop; The first identifier offset is determined based on the magnification information; The first display position in the screen space is determined based on the third display position and the first identifier offset.
12. The method according to any one of claims 1 to 5, characterized in that, Before displaying the observation tool view of the virtual scene through the observation tool in response to receiving the observation tool usage operation, the method further includes: The element identifier is displayed in the virtual scene in a first display mode; The rendering of the element identifier includes: The element identifier is displayed in a second display mode in the prop observation screen.
13. The method according to claim 12, characterized in that, The display of the element identifier on the prop viewing screen in a second display mode includes: Obtain the distance information between the first scene element and the main virtual object; The transparency of the element identifier is determined based on the distance information. The element identifier is displayed on the prop viewing screen according to the transparency of the identifier.
14. The method according to claim 12, characterized in that, The display of the element identifier on the prop viewing screen in a second display mode includes: Determine the first display position of the element identifier on the prop viewing screen; Identify the color value of the background element corresponding to the first display position; The logo color corresponding to the logo element is determined based on the background element color value; The element identifier is displayed on the prop viewing screen according to the identifier color.
15. A signage display device based on a virtual scene, characterized in that, The device includes: The first display module is used to display the first scene element in the virtual scene. The first scene element is displayed with an element identifier. The element identifier is an identifier superimposed on the virtual scene screen to mark the first scene element. The first display module is further configured to respond to receiving an operation to use an observation prop, and display an observation screen of the virtual scene observed through the observation prop, wherein the observation prop has an observation display area, and the observation display area includes an area that needs to be rendered twice when observing the virtual scene through the observation prop; The second display module is used to render and display the element identifier based on the first positional relationship between the first scene element in the prop observation screen and the observation display area, and the second positional relationship between the first display position of the element identifier determined based on the first scene element and the observation display area.
16. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one program, which is loaded and executed by the processor to implement the virtual scene-based identifier display method as described in any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the virtual scene-based identification display method as described in any one of claims 1 to 14.
18. A computer program product, characterized in that, It includes a computer program or instructions that, when executed by a processor, implement the virtual scene-based identification display method as described in any one of claims 1 to 14.