Virtual scene display method and device, equipment, storage medium and program product

The sight-obstructing special effects are displayed through the lighting direction matching relationship of virtual lighting props, which solves the problem of single function of virtual lighting props, improves game experience and interaction efficiency, and reduces the attack probability of virtual objects.

CN118615699APending Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310245717.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing virtual lighting props have a single function in games and cannot effectively improve the game experience and human-computer interaction efficiency. Especially in dark environments, it is difficult to suppress attacks by virtual objects through other operations.

Method used

Through the lighting direction matching relationship of virtual lighting props, the line of sight occlusion effect is displayed to interfere with the attacks of virtual objects, improving game fun and interaction efficiency.

Benefits of technology

The line-of-sight blocking function of virtual lighting props has been enhanced, reducing the attack probability of virtual objects, improving the game experience and player operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118615699A
    Figure CN118615699A
Patent Text Reader

Abstract

The invention discloses a virtual scene display method and device, equipment, a storage medium and a program product, and relates to the field of virtual environments. The method comprises the steps that a virtual scene is displayed at the view angle of a first virtual object, the virtual scene comprises a second virtual object, and the second virtual object is equipped with a virtual lighting prop; receiving a motion control operation on the first virtual object; and when the second virtual object is in the visual angle range of the first virtual object, the virtual illumination prop equipped by the second virtual object is in an illumination state, and the standing position of the first virtual object is matched with the illumination direction of the virtual illumination prop, the illumination special effect is displayed. Therefore, by means of the special illumination effect generated by the virtual illumination prop, the attack form of sight shielding and interference on the first virtual object according with the illumination direction matching relation can be carried out, the effective attack probability of the first virtual object is reduced, and the man-machine interaction efficiency is improved. The method can be applied to various scenes such as cloud technology and artificial intelligence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of virtual environments, and in particular to a virtual scene display method, device, equipment, storage medium and program product. Background Art

[0002] With the improvement of cultural and entertainment living standards, people's life experience and requirements for virtual scenes are getting higher and higher. Games, as a way of expressing virtual scenes, have become a channel for many people to release stress. In current game applications, players use virtual props to make the game process more interesting.

[0003] In the related art, players use the prop functions of virtual props to achieve different operation forms during the game process. When in a dark game environment, players can use virtual lighting props (such as flashlights, etc.) to achieve lighting functions to improve the efficiency of exploring the virtual environment.

[0004] However, the functions of virtual lighting props in games are relatively simple and cannot provide players with a good gaming experience. Moreover, when players use virtual lighting props, it is not convenient to suppress attacks from other virtual objects by performing other prop operations. This not only lacks fun in the game, but also greatly reduces the efficiency of human-computer interaction during the game. Summary of the invention

[0005] The embodiments of the present application provide a virtual scene display method, device, equipment, storage medium and program product, which can use virtual lighting props to block the line of sight of a first virtual object that matches the lighting direction, interfere with the attack form of the first virtual object, reduce the effective attack probability of the first virtual object, and improve the efficiency of human-computer interaction. The technical solution is as follows.

[0006] In one aspect, a virtual scene display method is provided, the method comprising:

[0007] Displaying a virtual scene from the perspective of a first virtual object, wherein the virtual scene includes a second virtual object, and the second virtual object is equipped with a virtual lighting prop;

[0008] receiving a motion control operation on the first virtual object, wherein the motion control operation is used to control the first virtual object to move in the virtual scene;

[0009] When the second virtual object is within the viewing angle of the first virtual object, the virtual lighting props equipped by the second virtual object are in an illuminated state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting props, a lighting effect is displayed, and the lighting effect is used to block the line of sight under the viewing angle of the first virtual object on the virtual scene.

[0010] On the other hand, a virtual scene display method is provided, the method comprising:

[0011] displaying a virtual scene including a first virtual object, the virtual scene being displayed from the perspective of a second virtual object, the second virtual object being equipped with a virtual lighting prop;

[0012] receiving a prop control operation on the virtual lighting prop, wherein the prop control operation is used to adjust a prop state of the virtual lighting prop to a lighting state;

[0013] When the first virtual object is within the viewing angle of the second virtual object and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop, an illumination light column is displayed, and the illumination light column is used to display the illumination effect to block the line of sight under the viewing angle of the first virtual object on the virtual scene.

[0014] In another aspect, a virtual scene display device is provided, the device comprising:

[0015] A scene display module, configured to display a virtual scene from the perspective of a first virtual object, wherein the virtual scene includes a second virtual object, and the second virtual object is equipped with a virtual lighting prop;

[0016] an operation receiving module, configured to receive a motion control operation on the first virtual object, wherein the motion control operation is used to control the first virtual object to move in the virtual scene;

[0017] A special effects display module is used to display an illumination special effect when the second virtual object is within the viewing angle of the first virtual object, the virtual lighting props equipped by the second virtual object are in an illuminated state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting props. The illumination special effect is used to block the line of sight under the viewing angle of the first virtual object on the virtual scene.

[0018] In another aspect, a virtual scene display device is provided, the device comprising:

[0019] A scene display module, configured to display a virtual scene including a first virtual object, wherein the virtual scene is displayed from the perspective of a second virtual object, wherein the second virtual object is equipped with a virtual lighting prop;

[0020] An operation receiving module, used for receiving a prop control operation on the virtual lighting prop, wherein the prop control operation is used for adjusting the prop state of the virtual lighting prop to a lighting state;

[0021] A special effects display module is used to display an illumination light column when the first virtual object is within the viewing angle of the second virtual object and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop. The illumination light column is used to display the illumination special effect to block the line of sight under the observation angle of the first virtual object of the virtual scene.

[0022] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a virtual scene display method as described in any of the above-mentioned embodiments of the present application.

[0023] On the other hand, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and 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 a virtual scene display method as described in any of the above-mentioned embodiments of the present application.

[0024] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the virtual scene display method described in any of the above embodiments.

[0025] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0026] The virtual scene is displayed from the perspective of the first virtual object, and the first virtual object is controlled to move in the virtual scene based on the motion control operation of the first virtual object. When the second virtual object is within the perspective of the first virtual object, the virtual lighting props equipped by the second virtual object are in the illuminated state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting props, the illumination effect of blocking the line of sight of the first virtual object to the virtual scene is displayed. In addition to the lighting effect of the virtual lighting props, based on the matching relationship between the lighting directions of the first virtual object and the virtual lighting props, the virtual lighting props are given a line of sight blocking effect, so that with the help of the virtual lighting props, the line of sight of the first virtual object that meets the matching relationship is blocked, the attack form of the first virtual object is interfered with, the effective attack probability of the first virtual object is reduced, and the fun of the game is improved. It can also avoid the inefficient problem that when the player uses the lighting virtual props, additional operations are required to interfere with the first virtual object, and the efficiency of human-computer interaction is fully improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 is a structural block diagram of an electronic device provided by an exemplary embodiment of the present application;

[0029] Figure 2 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;

[0030] Figure 3 is a flow chart of a virtual scene display method provided by an exemplary embodiment of the present application;

[0031] Figure 4 is a schematic diagram of an interface for displaying a virtual light column in a virtual scene provided by an exemplary embodiment of the present application;

[0032] Figure 5 is a flow chart of a virtual scene display method provided by another exemplary embodiment of the present application;

[0033] Figure 6 is a schematic diagram of an interface for displaying illumination effects provided by an exemplary embodiment of the present application;

[0034] Figure 7 is a schematic diagram of an interface for displaying illumination effects provided by another exemplary embodiment of the present application;

[0035] Figure 8 is a schematic diagram of an interface for displaying illumination effects provided by yet another exemplary embodiment of the present application;

[0036] Fig. 9 is a schematic diagram of interference range provided by an exemplary embodiment of the present application;

[0037] Fig.10 is a flowchart of a virtual scene display method provided by another exemplary embodiment of the present application;

[0038] Fig.11 is a flowchart of a virtual scene display method provided by another exemplary embodiment of the present application;

[0039] Fig.12 is a schematic diagram of the positional relationship between an irradiator and an irradiated person provided by an exemplary embodiment of the present application;

[0040] Fig.13 is a schematic diagram of a brightness curve of an angle-halo special effect provided by an exemplary embodiment of the present application;

[0041] Fig.14 is a schematic diagram of a brightness curve of a distance-halo special effect provided by an exemplary embodiment of the present application;

[0042] Fig.15 is a schematic diagram of an interface of a halo effect provided by an exemplary embodiment of the present application;

[0043] Fig.16 is a schematic diagram of an interface of a halo effect provided by another exemplary embodiment of the present application;

[0044] Fig.17 is a schematic diagram of an interface for disappearance of illumination special effects provided by an exemplary embodiment of the present application;

[0045] Fig.18 is a flowchart of a method for displaying a virtual scene corresponding to a second virtual object provided by an exemplary embodiment of the present application;

[0046] Fig.19 is a structural block diagram of a virtual scene display device provided by an exemplary embodiment of the present application;

[0047] Fig. 20 is a structural block diagram of a virtual scene display device provided by another exemplary embodiment of the present application;

[0048] Fig.21 is a structural block diagram of a virtual scene display device provided by another exemplary embodiment of the present application;

[0049] Fig. 22It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0051] First, a brief introduction is given to the terms involved in the embodiments of the present application.

[0052] Virtual scene: a virtual scene displayed (or provided) when an application is running on a terminal. The virtual scene can be a simulation of a real scene, a semi-simulation and semi-fictitious scene, or a purely fictitious scene. 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, and this application does not limit this. The following embodiments are illustrated by taking a three-dimensional virtual scene as an example.

[0053] Virtual model: a model used to simulate a real scene in a virtual scene. Exemplarily, a virtual model occupies a certain volume in a virtual scene. Exemplarily, virtual models include: terrain models, building models, animal and plant models, virtual prop models, virtual vehicle models, and virtual object models. For example, terrain models include: ground, mountains, water, stones, steps, etc.; building models include: houses, walls, containers, and fixed facilities inside buildings: tables, chairs, cabinets, beds, etc.; animal and plant models include: trees, flowers, birds, etc.; virtual prop models include: virtual attack props, medicine boxes, airdrops, etc.; virtual vehicle models include: cars, ships, helicopters, etc.; virtual object models include: people, animals, cartoon characters, etc.

[0054] Virtual character / virtual object: refers to an active object in a virtual scene. The active object can be a virtual object, a virtual animal, an animated character, etc., such as a person, an animal, a plant, an oil drum, a wall, a stone, etc. displayed in a three-dimensional virtual scene. Optionally, the virtual object is a three-dimensional stereo model created based on animation skeleton technology. Each virtual object has its own shape and volume in a three-dimensional virtual scene and occupies a part of the space in the three-dimensional virtual scene.

[0055] In the related art, players use the prop functions of virtual props to achieve different operation forms during the game. When in a dark game environment, players can use virtual lighting props (such as flashlights, etc.) to achieve lighting functions to improve the efficiency of exploring the virtual environment. However, the functions of virtual lighting props in the game are relatively single, and they cannot provide players with a good gaming experience and lack the fun of the game.

[0056] In an embodiment of the present application, a virtual scene display method is provided, which can use virtual lighting props to block the line of sight of a first virtual object that meets the lighting direction matching relationship, interfere with the attack form of the first virtual object, reduce the effective attack probability of the first virtual object, and improve the efficiency of human-computer interaction. The virtual scene display method obtained by training for this application includes at least one of a variety of virtual scenes such as virtual shooting scenes and virtual battle scenes when applied. It is worth noting that the above application scenarios are only illustrative examples. The virtual scene display method provided in this embodiment can also be applied to other scenarios, and the embodiment of the present application does not limit this.

[0057] It should be noted that before collecting relevant data of users and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0058] The terminal in the present application can be a desktop computer, a laptop computer, a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, etc. The terminal has installed and runs an application that supports a virtual environment, such as an application that supports a three-dimensional virtual environment. The application can be any one of a virtual reality application, a three-dimensional map program, a third-person shooter game (TPS), a first-person shooter game (FPS), and a multiplayer online tactical competitive game (MOBA). Optionally, the application can be a stand-alone application, such as a stand-alone three-dimensional game program, or a network-connected application.

[0059] Figure 1 The electronic device 100 includes an operating system 120 and an application 122 .

[0060] The operating system 120 is the underlying software that provides application programs 122 with secure access to the computer's hardware.

[0061] The application 122 is an application that supports a virtual environment. Optionally, the application 122 is an application that supports a three-dimensional virtual environment. The application 122 may be any one of a virtual reality application, a three-dimensional map program, a TPS game, an FPS game, a MOBA game, and a multiplayer gunfight survival game. The application 122 may be a stand-alone application, such as a stand-alone three-dimensional game program, or a network-connected application.

[0062] Figure 2 The computer system 200 includes a first device 220 , a server 240 , and a second device 260 .

[0063] The first device 220 is installed and runs an application that supports a virtual environment. The application may be any one of a virtual reality application, a three-dimensional map program, a TPS game, an FPS game, a MOBA game, and a multiplayer shooter survival game. The first device 220 is a device used by a first user, and the first user uses the first device 220 to control a first virtual object in a virtual environment to perform an activity, the activity including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. Schematically, the first virtual object is a first virtual character, such as a simulated character or an anime character.

[0064] The first device 220 is connected to the server 240 via a wireless network or a wired network.

[0065] The server 240 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 240 is used to provide background services for applications that support a three-dimensional virtual environment. Optionally, the server 240 undertakes the main computing work, and the first device 220 and the second device 260 undertake the secondary computing work; or, the server 240 undertakes the secondary computing work, and the first device 220 and the second device 260 undertake the main computing work; or, the server 240, the first device 220, and the second device 260 adopt a distributed computing architecture to perform collaborative computing.

[0066] The second device 260 is installed and runs an application that supports a virtual environment. The application can be any one of a virtual reality application, a three-dimensional map program, an FPS game, a MOBA game, and a multiplayer shooter survival game. The second device 260 is a device used by a second user, and the second user uses the second device 260 to control a second virtual object in the virtual environment to perform an activity, and the activity includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. Schematically, the second virtual object is a second virtual character, such as a simulated character or an anime character.

[0067] Optionally, the first virtual character and the second virtual character are in the same virtual environment. Optionally, the first virtual character and the second virtual character may belong to the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first virtual character and the second virtual character may also belong to different teams, different organizations, or two hostile groups.

[0068] Optionally, the applications installed on the first device 220 and the second device 260 are the same, or the applications installed on the two devices are the same type of applications on different control system platforms. The first device 220 may generally refer to one of a plurality of devices, and the second device 260 may generally refer to one of a plurality of devices. This embodiment is only illustrated by the first device 220 and the second device 260. The device types of the first device 220 and the second device 260 are the same or different, and the device types include: at least one of a game console, a desktop computer, a smart phone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, and a laptop computer. The following embodiments are illustrated by the device being a desktop computer.

[0069] Those skilled in the art will appreciate that the number of the above devices may be more or less. For example, the above device may be only one, or the above devices may be dozens or hundreds, or more. The embodiment of the present application does not limit the number and type of devices.

[0070] It is worth noting that the server 240 can be implemented as a physical server or a cloud server in the cloud, where cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or a local area network to achieve data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool and be used on demand, which is flexible and convenient.

[0071] In some embodiments, the method provided in the embodiments of the present application can be applied to a cloud gaming scenario, so that the calculation of data logic during the game is completed through the cloud server, while the terminal is responsible for the display of the game interface.

[0072] In some embodiments, the server 240 may also be implemented as a node in a blockchain system.

[0073] In combination with the above-mentioned noun introduction and application scenarios, the virtual scene display method provided by the present application is described. Taking the application of the method to a terminal as an example, Figure 3 As shown, the method includes the following steps 310 to 330.

[0074] Step 310: Display the virtual scene from the perspective of the first virtual object.

[0075] Schematically, the first virtual object is a virtual object controlled by a player, and the player operates the first virtual object through a terminal to play the game in a virtual scene corresponding to the game. The virtual scene displayed on the terminal is a scene displayed from the perspective of the first virtual object, that is, the virtual scene is a scene corresponding to the first virtual object. The perspective of the first virtual object includes a first-person perspective and a third-person perspective.

[0076] The first-person perspective is used to instruct the player to observe from the perspective of the first virtual object. When the perspective of the first virtual object is the first-person perspective, the displayed virtual scene is the scene that the first virtual object can observe, and the first virtual object is not included in the virtual scene at this time.

[0077] The third-person perspective is used to indicate that the player observes through a game perspective that is independent of the virtual object in the game. When the perspective of the first virtual object is the third-person perspective, the displayed virtual scene is usually implemented as the entire scene in the game, a selected part of the scene, etc., and the virtual scene at this time includes the first virtual object. Optionally, the virtual scene displayed in the third-person perspective can also be divided into a close view, a medium view, and a long view.

[0078] Among them, the virtual scene is presented through the camera in the game. In the first-person perspective, the camera is located near the head of the virtual object (such as: next to the head, on the head, etc.); in the third-person perspective, the camera is located in the virtual scene and can capture the first virtual object.

[0079] In the third-person perspective, close shot is used to indicate that the shooting distance between the camera and the object is close, and the captured content is a partial content of the object (such as above the neck, above the waist, etc.); medium shot is used to indicate that the shooting distance between the camera and the object is far, and the captured content is most of the object (such as above the knees, etc.); long shot is used to indicate that the shooting distance between the camera and the object is far, and the captured content is the entire content of the object (that is, the entire object appears in the long shot).

[0080] In some embodiments, the perspective of the first virtual object is determined based on a default operation of the game; or, the perspective of the first virtual object is determined based on a custom selection operation of the player, etc.

[0081] The virtual scene includes a second virtual object.

[0082] Illustratively, the second virtual object is another virtual object in the game except the first virtual object. For example, the second virtual object is a virtual object controlled by another player; or the second virtual object is a virtual object assigned by the system by default.

[0083] In some embodiments, the second virtual object and the first virtual object are virtual objects belonging to the same camp, that is, the first virtual object and the second virtual object are teammates during the game; or, the second virtual object and the first virtual object are virtual objects belonging to different camps, that is, the first virtual object and the second virtual object are hostile during the game.

[0084] The second virtual object is equipped with virtual lighting props.

[0085] The virtual lighting props are virtual props with lighting functions, which are used to provide lighting effects. Optionally, the virtual lighting props are virtual props collected by the second virtual object during the game; or, the virtual lighting props are virtual props that the second virtual object chooses to equip before the game starts; or, the virtual lighting props are virtual props that the system configures to the second virtual object by default, etc.

[0086] Illustratively, the virtual lighting prop is implemented as at least one of virtual lighting props such as a virtual flashlight, a virtual torch, and a virtual light bulb.

[0087] Step 320: Receive a motion control operation on the first virtual object.

[0088] The motion control operation is used to control the first virtual object to move in the virtual scene.

[0089] Optionally, the action includes at least one of movement and various actions. Movement refers to the first virtual object moving from a first position to a second position in the virtual scene, that is, there is a change in position; various actions refer to the first virtual object performing jumping, crawling, flipping, etc. in the virtual scene.

[0090] Illustratively, the player controls the first virtual object to perform corresponding operations in the virtual scene through different functional controls. For example, the player controls the first virtual object to move in the virtual scene through a movement control; or the player controls the first virtual object to jump in the virtual scene through a jump control.

[0091] In some embodiments, the motion control operation is implemented by controlling a virtual joystick. For example, the virtual joystick is presented as a circle, and based on a sliding operation on the virtual joystick, the process of adjusting the moving direction of the first virtual object is implemented.

[0092] Optionally, a motion control operation on the first virtual object is received, and the first virtual object moves from a first position to a second position along a moving direction in the virtual scene. For example, based on a sliding operation of the player on the virtual joystick to the right, the first virtual object moves from a first position to a second position along a right direction in the virtual scene, etc.

[0093] Step 330, when the second virtual object is within the viewing angle of the first virtual object, the virtual lighting props equipped by the second virtual object are in an illuminated state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting props, display the illumination effect.

[0094] The viewing angle range of the first virtual object is used to indicate the range that can be observed by the first virtual object.

[0095] Illustratively, the virtual scene is a scene displayed from the perspective of the first virtual object. When the perspective of the first virtual object is implemented as a first-person perspective, the perspective range of the first virtual object can be implemented as the virtual scene displayed from the first-person perspective; when the perspective of the first virtual object is implemented as a third-person perspective, the perspective range of the first virtual object is a range determined based on the position of the first virtual object in the virtual scene, that is, the virtual scene displayed from the third-person perspective is different from the perspective range of the first virtual object.

[0096] In some embodiments, the viewing angle range of the first virtual object is a viewing angle range preset by the system. Optionally, the viewing angle range of the first virtual object includes at least one of a distance range and an angle range.

[0097] For example, the viewing angle range of the first virtual object set by the system is jointly determined by the distance range and the angle range, where the distance range is 0-100m and the angle range is 120°, that is, the viewing angle range of the first virtual object is a fan-shaped area formed with the first virtual object as the vertex, an angle of 120° and a radius of 100m.

[0098] The lighting status is used to indicate that the virtual lighting props are turned on and play a lighting function.

[0099] Illustratively, under the condition that the second virtual object is equipped with a virtual lighting prop, when a start operation of the virtual lighting prop is received, the virtual lighting prop is in an illumination state. For example: under the condition that the second virtual object is equipped with a virtual lighting prop, a switch control corresponding to the virtual lighting prop is displayed, and in response to receiving a trigger operation of the switch control, the virtual lighting prop is in an illumination state.

[0100] In some embodiments, based on the second virtual object being within the viewing angle of the first virtual object and the virtual lighting props equipped by the second virtual object being in an illuminated state, the second virtual object and a prop operation animation of the second virtual object using the virtual lighting props are displayed in the virtual scene displayed from the viewing angle of the first virtual object.

[0101] In the prop operation animation, the virtual light beam presented by the virtual lighting prop based on the lighting status is displayed. Figure 4 , which is a schematic diagram of an interface showing a virtual light column in a virtual scene. The schematic diagram of the interface is a schematic diagram when the perspective of the first virtual object is implemented as a first-person perspective, including a second virtual object 410, the second virtual object 410 is equipped with a virtual lighting prop 420, and the virtual lighting prop 420 is in an illuminated state at this time, and a virtual light column 430 presented by the virtual lighting prop 420 based on the illuminated state is displayed. The virtual light column 430 is presented in a "semi-transparent" state and will not block other virtual elements such as a virtual vehicle 440.

[0102] In some embodiments, when the second virtual object is within the viewing angle of the first virtual object and the virtual lighting prop equipped by the second virtual object is in an illuminated state, the lighting direction of the virtual lighting prop is determined.

[0103] Schematically, the lighting direction is the prop direction of the virtual lighting prop, which is used to indicate the direction in which the virtual lighting prop illuminates. Figure 4 As shown, the lighting direction of the virtual lighting prop 420 is the left front of the first virtual object, which is the direction of the second virtual object 410.

[0104] Optionally, when the virtual lighting prop is implemented as a virtual flashlight, the lighting direction of the virtual lighting prop is usually implemented as the prop orientation (the direction in which the virtual lighting prop emits light); when the virtual lighting prop is implemented as a virtual light bulb, the lighting direction of the virtual lighting prop is usually implemented as a circular area centered on the virtual lighting prop, etc.

[0105] In some embodiments, after determining the lighting direction, a matching relationship between the position of the first virtual object in the virtual scene and the lighting direction is determined.

[0106] The position includes at least one of an object position and a position orientation. The object position is used to indicate the coordinates of the first virtual object in the virtual scene; the position orientation refers to the orientation of the virtual object at the location, which is usually implemented as the facial orientation of the virtual object. Figure 4 As shown, the position orientation of the second virtual object 410 is the left direction. The position orientation of the first virtual object is used to indicate the orientation of the first virtual object at the location.

[0107] After determining the lighting direction of the virtual lighting prop, the facial orientation of the first virtual object at the position is determined, and the facial orientation is used as the position orientation of the first virtual object, thereby determining the matching relationship between the position orientation and the lighting direction.

[0108] Optionally, the matching relationship includes at least a direction matching relationship between the position orientation and the lighting direction. For example, if the angle between the position orientation and the lighting direction meets a preset angle matching relationship, the position orientation and the lighting direction are considered to meet the direction matching relationship.

[0109] Optionally, the matching relationship also includes a position matching relationship between the object position of the first virtual object and the prop position of the virtual lighting prop. For example, if the distance between the object position and the prop position meets a preset distance matching relationship, it is considered that the distance matching relationship between the object position and the prop position meets the distance matching relationship.

[0110] In some embodiments, the matching relationship is used to indicate the relative position relationship between the position of the first virtual object and the interference range indicated by the lighting direction, and the matching relationship includes: matching between the first virtual object and the lighting direction, and mismatching between the first virtual object and the lighting direction.

[0111] Illustratively, the interference range indicated by the lighting direction is determined according to the lighting direction. After the object position of the first virtual object is determined, it is determined whether the object position is within the interference range. If the object position of the first virtual object is within the interference range, it is deemed that the first virtual object and the lighting direction match; if the object position of the first virtual object is not within the interference range, it is deemed that the first virtual object and the lighting direction do not match.

[0112] Optionally, when the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop, a lighting effect is displayed, wherein the lighting effect is used to block the line of sight of the first virtual object under the observation angle of the virtual scene.

[0113] In a schematic manner, line of sight occlusion is used to indicate that the first virtual object cannot fully observe the virtual scene within the field of view. For example, the illumination effect can block the second virtual object, so that the first virtual object cannot observe the second virtual object, which is beneficial for the second virtual object to protect itself through virtual lighting props; or the illumination effect can block the specified object in the specified area, so that the first virtual object cannot effectively observe the specified object, which is beneficial to avoid the first virtual object and the second virtual object from competing for the specified object, etc.

[0114] In an optional embodiment, a lighting effect centered on a virtual lighting prop is displayed.

[0115] Optionally, the virtual lighting prop is used as the center of the lighting effect to display a lighting effect with a divergent effect, wherein the divergent effect refers to an effect of gradually weakening outwards with the virtual lighting prop as the highest brightness point.

[0116] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0117] In summary, the virtual scene is displayed from the perspective of the first virtual object, and the first virtual object is controlled to move in the virtual scene based on the motion control operation of the first virtual object. When the second virtual object is within the perspective of the first virtual object, the virtual lighting props equipped by the second virtual object are in the illuminated state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting props, the illumination effect of blocking the line of sight from the first virtual object's observation perspective of the virtual scene is displayed. In addition to the lighting effect of the virtual lighting props, based on the matching relationship between the lighting directions of the first virtual object and the virtual lighting props, the virtual lighting props are given a line of sight blocking effect, so that with the help of the virtual lighting props, the line of sight of the first virtual object that meets the matching relationship is blocked, the attack form of the first virtual object is interfered with, the effective attack probability of the first virtual object is reduced, and the fun of the game is improved. It can also avoid the inefficient problem that when the player uses the lighting virtual props, additional operations are required to interfere with the first virtual object, and the efficiency of human-computer interaction is fully improved.

[0118] In an optional embodiment, whether the first virtual object is within the interference range that can produce a visual interference effect is determined based on the interval distance between the first virtual object and the second virtual object, and the matching relationship between the first virtual object and the lighting direction of the virtual lighting prop. Figure 5 As shown above Figure 3 The illustrated embodiment may also be implemented as the following steps 510 to 530 .

[0119] Step 510: Display the virtual scene from the perspective of the first virtual object.

[0120] Schematically, the first virtual object is a virtual object controlled by a player, and the player operates the first virtual object through a terminal to play the game in a virtual scene corresponding to the game. The perspective of the first virtual object includes a first-person perspective and a third-person perspective.

[0121] The virtual scene includes a second virtual object, and the second virtual object is equipped with a virtual lighting prop.

[0122] Illustratively, the second virtual object is a virtual object other than the first virtual object in the game; the virtual lighting prop is a virtual prop with lighting function, which is used to provide lighting effects.

[0123] In some embodiments, the virtual lighting props are implemented as independent virtual props, for example, the virtual lighting props are implemented as virtual flashlights, virtual torches, etc., and the player can equip and operate the virtual lighting props independently.

[0124] In some embodiments, the virtual lighting prop is implemented as an auxiliary virtual prop, for example, the virtual lighting prop is implemented as a virtual flashlight accessory, which is used to be assembled on other virtual props to achieve a lighting function.

[0125] Step 520: Receive a motion control operation on the first virtual object.

[0126] The motion control operation is used to control the first virtual object to move in the virtual scene.

[0127] Illustratively, the player controls the first virtual object to perform corresponding operations in the virtual scene through different functional controls. Optionally, a motion control operation on the first virtual object is received, and a movement animation of the first virtual object moving from a first position to a second position along a moving direction is displayed.

[0128] Step 530: when the second virtual object is within the viewing angle of the first virtual object, the virtual lighting prop equipped by the second virtual object is in an illuminated state, and in response to the first virtual object being within the interference range corresponding to the lighting direction of the virtual lighting prop, a lighting effect is displayed.

[0129] In some embodiments, under the condition that the second virtual object is within the viewing angle of the first virtual object and the virtual lighting props equipped by the second virtual object are in an illuminated state, the relative position relationship between the position of the first virtual object and the interference range indicated by the lighting direction is determined.

[0130] The relative position relationship is used to indicate whether the position of the first virtual object is within the interference range corresponding to the lighting direction.

[0131] When the relative position relationship indicates that the first virtual object is within the interference range corresponding to the lighting direction of the virtual lighting prop, the lighting effect is displayed.

[0132] The interference range is used to indicate the range of the visual interference effect on the first virtual object.

[0133] Indicatively, Figure 6 As shown, it is a schematic diagram of an interface for displaying illumination effects, which is a schematic diagram when the perspective of the first virtual object is implemented as a first-person perspective. The first virtual object (not shown in the figure) conducts a virtual battle with the second virtual object 620 (blocked) through a virtual attack prop 610, wherein the second virtual object 620 is within the perspective range of the first virtual object, and the second virtual object 620 is equipped with a virtual lighting prop (blocked) and is in an illuminated state. Since the first virtual object is within the interference range corresponding to the lighting direction of the virtual lighting prop, the illumination effect 630 is displayed.

[0134] Among them, the illumination effect 630 blocks the line of sight of the first virtual object's observation of the virtual scene, blocking virtual elements including the second virtual object 620, making it impossible for the first virtual object to fully observe the virtual scene within the field of view, including making it impossible for the first virtual object to observe the second virtual object 620 within the field of view.

[0135] Illustratively, the illumination effect is implemented as a highlight flash effect. Under the highlight flash effect, the first virtual object cannot effectively observe the area blocked by the highlight flash effect, which helps to reduce the probability of the first virtual object effectively attacking the blocked area.

[0136] like Figure 6 As shown, since the area blocked by the lighting effect 630 cannot be effectively observed, when the first virtual object attacks the second virtual object 620 through the virtual attack prop 610, since the second virtual object 620 is located in the blocked area of ​​the lighting effect 630, it is difficult for the first virtual object to effectively attack the second virtual object 620, so that the second virtual object 620 improves its own defense capability with the help of the virtual lighting prop.

[0137] In an optional embodiment, a lighting effect centered on a virtual lighting prop is displayed.

[0138] Optionally, the virtual lighting prop is used as the center of the lighting effect to display a lighting effect with a divergent effect, wherein the divergent effect refers to an effect of gradually weakening outwards with the virtual lighting prop as the highest brightness point.

[0139] Indicatively, the virtual lighting prop is used as the center of the illumination effect, and the center is the highest brightness point of the illumination effect, and the brightness of the illumination effect gradually decreases outwards. Figure 6 As shown, the special effect center 631 of the illumination special effect 630 is the point with the highest brightness, and the brightness effect of the illumination special effect gradually decreases outward from the point with the highest brightness.

[0140] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0141] In an optional embodiment, in response to the angle between the object orientation of the first virtual object and the lighting direction being smaller than a preset angle threshold, the lighting effect is displayed.

[0142] Illustratively, when determining the relative position relationship between the position of the first virtual object and the interference range indicated by the lighting direction, the angle between the object orientation of the first virtual object and the lighting direction is determined.

[0143] The object orientation is used to indicate the direction the first virtual object faces. The facial orientation of the first virtual object is used as the object orientation of the first virtual object, and the angle between the object orientation and the lighting direction of the virtual lighting prop is determined, and the angle is compared with a preset angle threshold.

[0144] The preset angle threshold is a preset angle threshold used to limit the interference range corresponding to the lighting direction. For example, the preset angle threshold is within a 90° range centered on the first virtual object.

[0145] When the angle between the object's direction and the lighting direction is less than the preset angle threshold, the lighting effect is displayed; when the angle between the object's direction and the lighting direction is greater than or equal to the preset angle threshold, the lighting effect is not displayed.

[0146] In some embodiments, the virtual lighting props also have a lighting function. When the virtual lighting props perform the lighting function, lighting effects are displayed. The lighting effects are used to increase the display brightness of the virtual scene without blocking the line of sight.

[0147] Optionally, when the angle between the object orientation and the lighting direction is greater than or equal to a preset angle threshold, the illumination effect is not displayed and the lighting effect is displayed.

[0148] In an optional embodiment, in response to the interval distance between the first virtual object and the virtual lighting prop being less than a preset distance threshold, the lighting effect is displayed based on the interval distance.

[0149] Illustratively, when determining the relative positional relationship between the position of the first virtual object and the interference range indicated by the lighting direction, the interval distance between the first virtual object and the virtual lighting prop is determined. Since the virtual lighting prop is a virtual prop held by the second virtual object, the interval distance between the first virtual object and the virtual lighting prop can be regarded as the interval distance between the first virtual object and the second virtual object.

[0150] After determining the interval distance between the first virtual object and the virtual lighting prop, the interval distance is compared with a preset distance threshold, wherein the preset distance threshold is a pre-set distance threshold used to limit the interference range corresponding to the lighting direction.

[0151] In some embodiments, when it is determined that the interval distance between the first virtual object and the virtual lighting prop is less than a preset distance threshold, the lighting effect is displayed based on the interval distance.

[0152] Optionally, the illumination effect is displayed based on the display brightness corresponding to the interval distance, wherein the display brightness is negatively correlated to the interval distance.

[0153] In an illustrative manner, after determining that the interval distance is less than the preset distance threshold, illumination effects of different brightness levels are displayed according to the difference in the interval distance. That is, when the interval distance is smaller, the display brightness of the illumination effect is higher, and when the interval distance is larger, the display brightness of the illumination effect is lower.

[0154] like Figure 7 As shown in FIG. 1 , a schematic diagram of an interface for displaying illumination effects is shown. The distance between the first virtual object (first-person perspective, not shown in the figure) holding the virtual attack prop 710 and the virtual lighting prop is small, and the display brightness of the illumination effect 720 displayed at this time is high; Figure 8 , which is another interface schematic diagram for displaying illumination effects. The first virtual object (first person perspective, not shown) holding the virtual attack prop 810 is relatively far away from the virtual illumination prop, and the illumination effect 820 displayed at this time has a relatively low display brightness.

[0155] In an optional embodiment, when the angle between the object orientation and the lighting direction is less than a preset angle threshold, and the interval distance between the first virtual object and the virtual lighting prop is less than a preset distance threshold, the lighting effect is displayed based on the interval distance between the first virtual object and the virtual lighting prop.

[0156] Schematically, the interference range of the lighting direction indication is determined by a preset distance threshold and a preset angle threshold, that is, the interference range is related to two influencing factors, namely, the distance factor and the angle factor.

[0157] like Fig. 9 , which is a schematic diagram of an interference range, wherein the interference range is determined based on a line segment OA 910 (preset distance threshold) and an angle A'OA" 920 (preset angle threshold).

[0158] Optionally, the interference range has multiple sub-interference ranges, and the multiple sub-interference ranges correspond to different illumination special effect intensities.

[0159] The multiple sub-interference ranges are multiple area ranges obtained after dividing the interference range based on a preset distance threshold. Schematically, after determining the preset distance threshold, the preset distance threshold is divided to obtain multiple sub-line segments, and based on the multiple sub-line segments and the preset angle threshold, the sub-interference ranges corresponding to the multiple sub-line segments are obtained, that is, the multiple sub-interference ranges after the interference range is divided are obtained.

[0160] Illustratively, when the preset distance threshold is divided to obtain multiple sub-segments, equal spacing division can be used to obtain multiple sub-segments, increasing spacing division can be used to obtain multiple sub-segments, random division can be used to obtain multiple sub-segments, etc.

[0161] like Fig. 9 As shown, after obtaining the interference range enclosed by the line segment OA910 and the angle A'OA"920, the line segment OA910 is divided to obtain sub-segment OC, sub-segment CD and sub-segment DA. Based on the sub-segment OC and the angle A'OA"920, the sub-interference range 931 corresponding to the sub-segment OC is obtained; based on the sub-segment CD and the angle A'OA"920, the sub-interference range 932 corresponding to the sub-segment CD is obtained; based on the sub-segment DC and the angle A'OA"920, the sub-interference range 933 corresponding to the sub-segment DC is obtained.

[0162] Optionally, in response to the first virtual object being in a first sub-interference range within the interference range, an illumination special effect with a first special effect intensity is displayed; in response to the first virtual object being in a second sub-interference range within the interference range, an illumination special effect with a second special effect intensity is displayed.

[0163] Among them, the first distance between the first sub-interference range and the virtual lighting prop is smaller than the second distance between the second sub-interference range and the virtual lighting prop, and the first special effect intensity is greater than the second special effect intensity.

[0164] In some embodiments, different sub-interference ranges are pre-configured with different interference effectiveness rates, where the interference effectiveness rates are used to indicate the rate of influence of line of sight interference on the first virtual object.

[0165] Optionally, the first sub-interference range is taken as an example for description. In response to the first virtual object being in the first sub-interference range within the interference range, an interference effectiveness rate corresponding to the first sub-interference range is acquired.

[0166] Indicatively, Fig. 9 As shown, when the first virtual object is in the first sub-interference range 931 within the interference range, the interference effectiveness rate corresponding to the first sub-interference range 931 is obtained.

[0167] Optionally, based on the residence time of the first virtual object in the first sub-interference range and the interference effective rate, an interference value corresponding to the first virtual object is acquired.

[0168] In an exemplary manner, the length of time the first virtual object stays in the first sub-interference range is counted, and the length of time is multiplied by the interference effectiveness rate corresponding to the first sub-interference range to obtain an interference value corresponding to the first sub-interference range. The interference value is used to indicate the degree of visual interference to the first virtual object.

[0169] In some embodiments, a lighting effect having a first effect intensity is displayed based on the interference value.

[0170] Illustratively, based on the calculation result of the interference value, the illumination special effect of the special effect intensity corresponding to the interference value is displayed.

[0171] For example, when the interference value is 100, the degree of visual interference to the first virtual object is relatively strong. At this time, the line of sight of the first virtual object is completely blocked, that is, the first virtual object cannot see the virtual scene at all (achieving a blinding effect); when the interference value is 30, the degree of visual interference to the first virtual object is relatively weak. At this time, the line of sight of the first virtual object is partially blocked, that is, the first virtual object cannot see part of the content in the virtual scene, etc.

[0172] In an optional embodiment, the second sub-interference range is used as an example for explanation. In response to the first virtual object being in the second sub-interference range within the interference range, the interference effectiveness rate corresponding to the second sub-interference range is obtained; based on the length of time the first virtual object stays in the second sub-interference range and the interference effectiveness rate, the interference value corresponding to the first virtual object is obtained; based on the interference value corresponding to the first virtual object, an illumination special effect with a first special effect intensity is displayed.

[0173] It is worth noting that the above interference effectiveness rate, interference value and the like are merely illustrative examples and are not limited to these in the embodiments of the present application.

[0174] In an optional embodiment, different sub-interference ranges are pre-configured with different interference thresholds, and the interference threshold is used to indicate an upper limit of an interference value in a corresponding sub-interference range.

[0175] Indicatively, Fig. 9 As shown, when the first virtual object is located in the first sub-interference range 931, based on the first interference threshold of the first sub-interference range 931, it is determined that the calculated interference value corresponding to the first virtual object should be within the first interference threshold. Optionally, if the illumination effect of the first sub-interference range 931 is the strongest, the first interference threshold is the maximum value among the multiple sub-interference ranges.

[0176] Similarly, when the first virtual object is located within the second sub-interference range 932, based on the second interference threshold of the second sub-interference range 932, it is determined that the calculated interference value corresponding to the first virtual object should be within the second interference threshold, and the second interference threshold is less than the first interference threshold, etc.

[0177] In an optional embodiment, different sub-interference ranges are pre-configured with different interference value intervals, and the interference value intervals are used to indicate the interference value range limit in the corresponding sub-interference range.

[0178] Indicatively, Fig. 9 As shown, when the first virtual object is located in the first sub-interference range 931, based on the first interference value interval of the first sub-interference range 931, it is determined that the calculated interference value corresponding to the first virtual object should be within the first interference value interval.

[0179] Similarly, when the first virtual object is within the second sub-interference range 932, based on the second interference value interval of the second sub-interference range 932, it is determined that the calculated interference value corresponding to the first virtual object should be within the second interference value interval. Optionally, the minimum value of the first interference value interval is greater than or equal to the maximum value of the second interference value interval. For example: the first interference value interval is (90, 100), and the second interference value interval is (40, 90); or, the first interference value interval is (90, 100), and the second interference value interval is (40, 60), etc.

[0180] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0181] To sum up, in addition to the lighting effect of the virtual lighting props, based on the matching relationship between the lighting direction of the first virtual object and the virtual lighting props, the line of sight blocking effect is increased for the virtual lighting props. Therefore, with the help of the virtual lighting props, the line of sight of the first virtual object that meets the matching relationship is blocked, the attack form of the first virtual object is interfered with, the effective attack probability of the first virtual object is reduced, the fun of the game is improved, and the inefficiency problem that the player needs to perform additional operations to interfere with the first virtual object when using the lighting virtual props is avoided, thereby fully improving the efficiency of human-computer interaction.

[0182] In an embodiment of the present application, an interference range that produces a visual interference effect on the first virtual object is determined based on the lighting direction, and illumination effects of different degrees are displayed differently according to the position of the first virtual object within the interference range. When the first virtual object and the second virtual object are closer and the angle is smaller, an illumination effect with a stronger degree of effect is displayed; when the first virtual object and the second virtual object are farther and the angle is larger, an illumination effect with a weaker degree of effect is displayed, thereby fully improving the simulation of the game, enhancing the fun of the game, and improving the player's sense of participation in the game.

[0183] In an optional embodiment, the lighting effect is used to reduce the effective attack probability of the first virtual object, so that the second virtual object can resist the attack process in the game with the help of virtual lighting props. Fig.10 As shown above Figure 3 The illustrated embodiment may also be implemented as the following steps 1010 to 1040 .

[0184] Step 1010: Display a virtual scene from the perspective of a first virtual object.

[0185] Schematically, the first virtual object is a virtual object controlled by a player, and the player operates the first virtual object through a terminal to play the game in a virtual scene corresponding to the game. The perspective of the first virtual object includes a first-person perspective and a third-person perspective.

[0186] The virtual scene includes a second virtual object, and the second virtual object is equipped with a virtual lighting prop.

[0187] Step 1010 has been described in the above steps 310 and 510 and will not be repeated here.

[0188] Step 1020: Receive a motion control operation on the first virtual object.

[0189] The motion control operation is used to control the first virtual object to move in the virtual scene.

[0190] Step 1020 has been described in the above steps 320 and 520 and will not be repeated here.

[0191] Step 1030: when the second virtual object is within the viewing angle of the first virtual object, the virtual lighting props equipped by the second virtual object are in an illuminated state, and in response to the position of the first virtual object in the virtual environment being within the interference range corresponding to the lighting direction of the virtual lighting props, a lighting effect is displayed.

[0192] Optionally, under the condition that the second virtual object is within the viewing angle of the first virtual object and the virtual lighting props equipped by the second virtual object are in an illuminated state, the relative position relationship between the position of the first virtual object in the virtual environment and the interference range indicated by the lighting direction is determined.

[0193] The relative position relationship is used to indicate whether the first virtual object is located within the interference range corresponding to the lighting direction. When the relative position relationship indicates that the first virtual object is within the interference range corresponding to the lighting direction of the virtual lighting prop, the lighting effect is displayed.

[0194] The interference range is used to indicate the range of the visual interference effect on the first virtual object.

[0195] In an optional embodiment, in response to the lighting direction of the virtual lighting prop pointing to the virtual reflective prop, a refraction direction corresponding to the lighting direction is determined; and the interference range is determined based on the refraction direction.

[0196] Schematically, the virtual reflective prop is a prop used to refract the light emitted by the virtual lighting prop. For example, the virtual reflective prop is implemented as a virtual mirror, virtual water flow, virtual screen and other items / props with reflective function. When the lighting direction of the virtual lighting prop points to the virtual reflective prop, the refraction direction that is symmetrical to the lighting direction is determined, and the interference range is determined based on the refraction direction.

[0197] Optionally, the interference range is determined by combining the refraction direction and the illumination direction. Schematically, the first interference range is determined according to the illumination direction, the second interference range is determined according to the refraction direction, and the union of the first interference range and the second interference range is used as the interference range; or the intersection of the first interference range and the second interference range is used as the interference range, etc.

[0198] In some embodiments, the content of determining the interference range according to the refraction direction refers to the content of determining the interference range according to the illumination direction, for example: predetermine a preset distance threshold and a preset angle threshold corresponding to the refraction direction, thereby determining the interference range corresponding to the refraction direction.

[0199] In an optional embodiment, the illumination effect is implemented as a flashing effect with gradually changing brightness; or, the illumination effect is implemented as a virtual smoke effect; or, the illumination effect is implemented as a flashing effect; or, the illumination effect is implemented as a virtual obstacle effect, etc.

[0200] Among them, the strobe effect is used to indicate a lighting effect with strong brightness, and the strong brightness is used to indicate a brightness that is sufficient to block the second virtual object and cause visual interference to the first virtual object; the flash effect is used to indicate a lighting effect that flashes at a certain frequency, etc.

[0201] Optionally, the illumination effect can be displayed in different styles based on the player's settings. For example, the player selects the illumination effect to be implemented as a flashing effect with a gradual brightness change, and can also select the color, shape, and other contents of the illumination effect; or the player selects the illumination effect to be implemented as virtual smoke and flashing effect, and when the level of the second virtual object is higher than that of the first virtual object, virtual smoke is displayed, and when the level of the second virtual object is lower than that of the first virtual object, a flashing effect is displayed, etc.

[0202] In an optional embodiment, in response to the display duration of the illumination special effect reaching a preset display duration, the display of the illumination special effect is cancelled.

[0203] Illustratively, the preset display time is used to indicate a preset display time, for example, the preset display time is 5 seconds. When the display time of the illumination special effect reaches the preset display time of 5 seconds, the illumination special effect is cancelled, that is, the illumination special effect that blocks the line of sight of the first virtual object is cancelled.

[0204] In an optional embodiment, a lighting effect is displayed based on the first object level of the first virtual object.

[0205] Illustratively, in response to the first object level of the first virtual object being in the first level range, an illumination effect of the second special effect intensity is displayed; in response to the first object level of the first virtual object being in the second level range, an illumination effect of the first special effect intensity is displayed.

[0206] Optionally, the first level range and the second level range are pre-set level ranges. For example, when the second virtual object is illuminated using a virtual lighting prop, the first object level of the first virtual object is determined.

[0207] Among them, the object level is used to measure the game level of the virtual object in numerical form. The object level includes multiple forms such as game level and object interaction level. The game level is implemented as a level determined based on historical game matches, or as a level determined based on the current game, etc.; the object interaction level is implemented as a level determined based on the interaction between virtual objects (for example, if the interaction frequency between the first virtual object and the second virtual object is high, then the object interaction level of the first virtual object and the second virtual object is high, etc.).

[0208] For example, after determining the first object level of the first virtual object, determine the level range that the first object level is in. If the preset first level range is (50, 100), the preset second level range is (0, 49), and the first object level of the first virtual object is 46, then it is determined that the first object level of the first virtual object is in the second level range, and the illumination special effect of the first special effect intensity corresponding to the second level range is displayed, such as: the illumination special effect of the first special effect intensity is an illumination special effect with a stronger special effect intensity; the illumination special effect of the second special effect intensity is an illumination special effect with a weaker special effect intensity, etc.

[0209] That is, when the second virtual object uses virtual lighting props to assist in causing visual interference to the first virtual object, based on the first object level of the first virtual object, the visual obstruction function of the illumination special effect generated by the virtual lighting props can be resisted to a corresponding degree. For example, the higher the first object level of the first virtual object, the smaller the special effect intensity of the illumination special effect caused by the second virtual object using the virtual lighting props. This helps the player controlling the first virtual object to upgrade the first object level as soon as possible to resist the visual obstruction function of the illumination special effect.

[0210] In an optional embodiment, a lighting effect is displayed based on the second object level of the second virtual object.

[0211] Illustratively, in response to the second object level of the second virtual object being in the first level range, an illumination effect of a first special effect intensity is displayed; in response to the second object level of the second virtual object being in the second level range, an illumination effect of a second special effect intensity is displayed.

[0212] Optionally, the first level range and the second level range are pre-set level ranges. For example, when the second virtual object is illuminated by a virtual lighting prop, the second object level of the second virtual object is determined.

[0213] For example, after determining the second object level of the second virtual object, determine the level range that the second object level is in. If the preset first level range is (50, 100), the preset second level range is (0, 49), and the second object level of the second virtual object is 46, then it is determined that the second object level of the second virtual object is in the second level range, and the illumination special effect of the second special effect intensity corresponding to the second level range is displayed, such as: the illumination special effect of the second special effect intensity is an illumination special effect with a weaker special effect intensity; the illumination special effect of the first special effect intensity is an illumination special effect with a stronger special effect intensity, etc.

[0214] That is, when the second virtual object uses virtual lighting props to assist in causing visual interference to the first virtual object, based on the second object level of the second virtual object, the visual blocking function of the virtual lighting props to generate illumination effects can be more fully utilized.

[0215] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0216] In an optional embodiment, the lighting effect is displayed based on a level difference between a first object level of the first virtual object and a second object level of the second virtual object.

[0217] Optionally, in response to a first object level of the first virtual object being not greater than a second object level of the second virtual object, the illumination effect is displayed; in response to a first object level of the first virtual object being greater than a second object level of the second virtual object, the illumination effect is not displayed.

[0218] Illustratively, when the second virtual object is illuminated using a virtual lighting prop, the first object level of the first virtual object and the second object level of the second virtual object are determined, and the first object level and the second object level are compared. For example, if the first object level of the first virtual object is 46 and the second object level of the second virtual object is 88, the first object level of the first virtual object is less than the second object level of the second virtual object, and the illumination effect is displayed; similarly, if the first object level of the first virtual object is 67 and the second object level of the second virtual object is 57, the first object level of the first virtual object is greater than the second object level of the second virtual object, and the illumination effect is not displayed.

[0219] Optionally, in response to the first object level of the first virtual object being not greater than the second object level of the second virtual object, an illumination effect of a first special effect intensity is displayed; in response to the first object level of the first virtual object being greater than the second object level of the second virtual object, an illumination effect of a second special effect intensity is displayed.

[0220] Illustratively, when the second virtual object is illuminated using a virtual lighting prop, the first object level of the first virtual object and the second object level of the second virtual object are determined, and the first object level and the second object level are compared. For example, if the first object level of the first virtual object is 46 and the second object level of the second virtual object is 88, the first object level of the first virtual object is less than the second object level of the second virtual object, and the illumination effect of the first special effect intensity is displayed; similarly, if the first object level of the first virtual object is 67 and the second object level of the second virtual object is 57, the first object level of the first virtual object is greater than the second object level of the second virtual object, and the illumination effect of the second special effect intensity is displayed, and so on.

[0221] That is: when the second virtual object uses virtual lighting props to assist in causing visual interference to the first virtual object, the first object level of the first virtual object and the second object level of the second virtual object can be combined to display the illumination effects produced by the virtual lighting props differently, which is conducive to promoting the first player who controls the first virtual object to upgrade the first object level as soon as possible to fully resist the visual obstruction function of the illumination effect; it is also conducive to promoting the second player who controls the second virtual object to upgrade the second object level as soon as possible to give full play to the visual obstruction function of the illumination effect.

[0222] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0223] Step 1040 , in response to the triggering target condition, weaken the special effect of the display illumination special effect, and display the virtual scene.

[0224] Illustratively, the target condition is a pre-set condition, and when the target condition is triggered, the special effect of the illumination special effect is weakened. Optionally, the target condition includes at least one of the following forms.

[0225] (1) In response to the second virtual object being outside the viewing range of the first virtual object, triggering a target condition.

[0226] Illustratively, when the second virtual object is not within the field of view of the first virtual object, the operation of the second virtual object using the virtual lighting props cannot be known by the first virtual object, and is therefore regarded as triggering the target condition, weakening the special effects of the display illumination effects, and displaying the virtual scene.

[0227] (2) In response to the virtual lighting prop equipped by the second virtual object being in an off state, triggering a target condition.

[0228] In an illustrative manner, when the player controlling the second virtual object turns off the virtual lighting props, the virtual lighting props will not produce any lighting effects, and therefore will not block the line of sight of the first virtual object. This is regarded as triggering the target condition, weakening the special effects of the illumination special effects, and displaying the virtual scene.

[0229] (3) In response to a mismatch between the lighting direction of the first virtual object and the virtual lighting prop, triggering a target condition.

[0230] Illustratively, the lighting direction mismatch is used to indicate that the first virtual object is not within the interference range determined based on the lighting direction, that is, although the second virtual object uses virtual lighting props to illuminate the lighting direction, the first virtual object does not exist within the interference range determined by the lighting direction, which is regarded as triggering the target condition, weakening the special effects of the illumination special effects, and displaying the virtual scene.

[0231] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0232] In an optional embodiment, when the special effect of the display illumination special effect is weakened, the display is weakened at a uniform speed.

[0233] Indicatively, after the target condition is triggered, the special effect of the illumination effect is evenly weakened, and after 3 seconds the illumination effect disappears, and the virtual scene without visual obstruction is displayed again.

[0234] For example, the illumination effect is implemented as a light ball. When the special effect of the illumination effect is weakened, a disappearing animation of the light ball gradually disappears until the virtual scene without visual obstruction is displayed again.

[0235] Optionally, the special effect is related to the interference value of the illumination special effect. When weakening the special effect of the illumination special effect, the interference value is changed at a uniform speed to achieve the purpose of weakening the special effect of the illumination special effect at a uniform speed.

[0236] For example: the interference value is 60. When the target condition is triggered and the special effects of the illumination special effects are weakened, the interference value is weakened at a uniform speed, and the special effects corresponding to the weakened interference value are displayed. For example: after 1 second, the speed is uniformly reduced to 30, and the special effects corresponding to the interference value of 30 are displayed, and there is also a slow weakening process within 1 second.

[0237] Optionally, when weakening the special effect of the illumination special effect, the display is weakened in a variable speed manner; or, the illumination special effect suddenly disappears in the virtual scene, etc. It should be noted that the above is only an illustrative example, and the embodiments of the present application do not limit this.

[0238] In an optional embodiment, the skill cooling effect is displayed after the illumination effect is displayed.

[0239] Among them, the skill cooling effect is used to reduce the attack frequency of the first virtual object launching a virtual attack on the second virtual object.

[0240] Optionally, after displaying the irradiation special effect, a failure screen of the attack function control is displayed, and the failure screen is regarded as a skill cooling special effect. The attack function control is used to indicate a control associated with a virtual attack operation, and the failure screen is used to indicate that the first virtual object cannot launch a virtual attack on the second virtual object through the attack function control, thereby effectively reducing the attack frequency of the first virtual object launching a virtual attack on the second virtual object.

[0241] In an optional embodiment, whether to display the illumination effect is determined according to the virtual camps to which the first virtual object and the second virtual object belong.

[0242] Optionally, in response to the first virtual object and the second virtual object belonging to different virtual camps, a lighting effect is displayed. Illustratively, when the first virtual object and the second virtual object are in a hostile relationship and the first virtual object is within the interference range, the second virtual object uses a line of sight blocking effect generated by a virtual lighting prop to act on the first virtual object, that is, a lighting effect is displayed, thereby effectively protecting the second virtual object through the line of sight blocking effect.

[0243] In an optional embodiment, when the second virtual object is within the viewing angle of the first virtual object and the virtual lighting props equipped by the second virtual object are in an illuminated state, in response to the first virtual object and the second virtual object belonging to the same virtual camp, a brightness enhancement animation is displayed.

[0244] The brightness enhancement animation includes an action in which the second virtual object provides lighting for the first virtual object through a virtual lighting prop.

[0245] Illustratively, when the first virtual object and the second virtual object are teammates, even if the first virtual object is within the interference range corresponding to the lighting direction, the line of sight obstruction effect produced by the second virtual object using virtual lighting props will not affect the first virtual object, that is, the lighting effects will not be displayed on the terminal interface corresponding to the first virtual object, thereby effectively avoiding the line of sight obstruction effect on the first virtual object in the same camp and affecting the virtual combat.

[0246] Therefore, displaying lighting effects differently according to the formation to which the virtual object belongs is not only helpful in avoiding damage to teammates in the process of using virtual lighting props, but also conducive to launching targeted attacks on the enemy in team battles.

[0247] To sum up, in addition to the lighting effect of the virtual lighting props, based on the matching relationship between the lighting direction of the first virtual object and the virtual lighting props, the line of sight blocking effect is increased for the virtual lighting props. Therefore, with the help of the virtual lighting props, the line of sight of the first virtual object that meets the matching relationship is blocked, the attack form of the first virtual object is interfered with, the effective attack probability of the first virtual object is reduced, the fun of the game is improved, and the inefficiency problem that the player needs to perform additional operations to interfere with the first virtual object when using the lighting virtual props is avoided, thereby fully improving the efficiency of human-computer interaction.

[0248] In an embodiment of the present application, a method for canceling the display of illumination special effects is introduced. In response to a trigger target condition, the special effect of the illumination special effects is weakened, and a virtual scene is displayed. The illumination special effects are displayed in a weakened manner, thereby enhancing the simulation sense of the game.

[0249] In an optional embodiment, the virtual lighting device is used to generate lighting effects in addition to the illumination effects. The lighting effects are used to enhance the display brightness of the virtual environment. The range for triggering the display of the lighting effects is the virtual lighting range corresponding to the virtual lighting props. The virtual lighting range is used to indicate the range of the lighting function of the virtual lighting props. Taking the virtual lighting props as a virtual flashlight as an example, the virtual scene is displayed by combining the virtual lighting range and the interference range. Schematically, Fig.11 As shown above Figure 3 The illustrated embodiment may also be implemented as the following steps 1110 to 1140 .

[0250] In step 1110, the person using the virtual flashlight.

[0251] The illuminator is used to indicate the second virtual object using the virtual lighting prop, and the virtual flashlight is the virtual lighting prop.

[0252] In some embodiments, based on the use of the virtual flashlight by the illuminator, two judgment paths are performed simultaneously, namely: the following steps 1120 and 1130 are performed simultaneously to display the virtual scene by integrating the virtual lighting range and the interference range.

[0253] Step 1120, determining whether the irradiated person is within the interference range.

[0254] The illuminated person is used to indicate a first virtual object controlled by the player.

[0255] Optionally, based on the illumination operation of the illuminator using the virtual flashlight, the illumination direction of the virtual flashlight is determined, and based on the illumination direction, the interference range corresponding to the virtual flashlight is determined.

[0256] Indicatively, Fig. 9As shown, the interference range is implemented as a fan-shaped area with the irradiator as the vertex, the preset distance threshold as the radius, and the preset angle threshold as the angle. When judging whether the irradiated person is within the interference range, it is judged whether the irradiated person is within the fan-shaped area where the screen blinding effect takes effect. Among them, the blinding effect is used to indicate the above-mentioned irradiation effect that blocks the line of sight of the first virtual object.

[0257] In some embodiments, when the irradiated person is outside the interference range (No), the determination process ends; when the irradiated person is within the interference range (Yes), step 1121 is executed.

[0258] Step 1121, determining the sub-interference range of the irradiated person within the interference range.

[0259] Illustratively, the interference range includes a plurality of pre-divided interference sub-ranges, and after determining that the irradiated person is within the interference range, the sub-interference range within the interference range where the irradiated person is located is determined.

[0260] like Fig. 9 As shown, it is determined whether the irradiated person is in sub-interference range 931, sub-interference range 932 or sub-interference range 933 within the interference range.

[0261] Step 1122, calculating in real time the interference value of the irradiated person within the sub-interference range.

[0262] Illustratively, after determining the sub-interference range in which the irradiated person is located, the interference value of the irradiated person in the sub-interference range is determined, and the interference value is used to indicate the degree of visual interference to the irradiated person.

[0263] In some embodiments, different sub-interference ranges correspond to different interference effectiveness rates, and the interference effectiveness rate is used to indicate the rate of influence of line of sight interference on the irradiated person.

[0264] Indicatively, the closer the pre-set sub-interference range is to the irradiator, the faster the interference takes effect; the farther the pre-set sub-interference range is from the irradiator, the slower the interference takes effect. Fig. 9 As shown, the interference effectiveness rate of the sub-interference range 931 is the largest, and the interference effectiveness rate of the sub-interference range 933 is the smallest.

[0265] Optionally, after determining the sub-interference range in which the irradiated person is located, the interference effectiveness rate corresponding to the sub-interference range in which the irradiated person is located is determined, and based on the interference effectiveness rate and the length of time the irradiated person stays in the sub-interference range, the interference value of the irradiated person in this sub-interference range is determined.

[0266] In schematic form, the interference value of the irradiated person in the sub-interference range is obtained by multiplying the interference effectiveness rate corresponding to the sub-interference range by the length of time the irradiated person stays in the sub-interference range.

[0267] like Fig. 9 As shown, when the irradiated person is in the sub-interference range 931, the interference effectiveness rate corresponding to the sub-interference range 931 is determined. If the irradiated person continues to move in the sub-interference range 931, the length of time the irradiated person stays in the sub-interference range 931 is counted, and the interference value of the irradiated person in the sub-interference range 931 is obtained by multiplying the interference effectiveness rate by the length of time.

[0268] Optionally, the plurality of sub-interference ranges respectively correspond to an interference value interval, and when the irradiated person moves between the plurality of sub-interference ranges, the interference value of the irradiated person within the sub-interference range is updated based on the interference value interval corresponding to the sub-interference range.

[0269] like Fig. 9 As shown, the irradiated person is initially located in the sub-interference range 931, the first stay time of the irradiated person in the sub-interference range 931 is counted, and the first interference value of the irradiated person in the sub-interference range 931 is obtained, and the first interference value is located in the first interference value interval corresponding to the sub-interference range 931, such as: the first interference value interval corresponding to the sub-interference range 931 is (0, 100), and the first interference value is calculated to be 80; when the irradiated person moves from the sub-interference range 931 to the sub-interference range 932, the second interference value interval corresponding to the sub-interference range 932 is determined, for example: the second interference value interval is (0, 60), if the first interference value is not in the second interference value interval, the first interference value is reduced to the second interference value interval, for example: after the first interference value 80 is reduced to 60, the interference value 60 is used as the updated interference value, etc.

[0270] Step 1123, outputting a blinding effect on the screen of the irradiated person according to the interference value.

[0271] Illustratively, after the interference value is determined, a blinding special effect on the screen of the irradiated person is determined based on the numerical value of the interference value. The blinding special effect is used to display a special effect that blocks the vision of the irradiated person.

[0272] Optionally, different interference values ​​correspond to different degrees of blinding effects. For example, when the interference value is 50, the blinding effect is the greatest, and when the interference value is 30, the blinding effect is smaller.

[0273] Step 1130, determining whether the illuminated person is within the virtual lighting range.

[0274] Illustratively, while determining whether the illuminated person is located in the interference range, it is also determined whether the illuminated person is located in the virtual lighting range, where the virtual lighting range is used to indicate the range within which the lighting function of the virtual lighting device (virtual flashlight) is exerted.

[0275] In some embodiments, the virtual lighting range is related to the lighting direction of the virtual flashlight, and the virtual lighting range is determined based on the lighting direction of the virtual flashlight.

[0276] Illustratively, the virtual lighting range is a fan-shaped area range of a certain area predetermined based on the lighting direction; or, the virtual lighting is a rectangular area range of a certain area predetermined based on the lighting direction, etc.

[0277] Optionally, when the illuminated person is not within the virtual lighting range, the process of determining whether the illuminated person is within the virtual lighting range is terminated; when the illuminated person is within the virtual lighting range, the following step 1031 is executed.

[0278] Step 1131, determine the angle between the irradiated person and the irradiator.

[0279] Illustratively, when it is determined that the illuminated person is located within the virtual lighting range, a first orientation of the illuminated person and a second orientation of the illuminator are determined, and an angle between the illuminated person and the illuminator is determined based on the first orientation and the second orientation.

[0280] like Fig.12 , which is a schematic diagram of the positional relationship between the irradiator and the irradiated person. The irradiator 1210 holds a virtual flashlight 1220 and irradiates with the virtual flashlight 1220, and the lighting direction is the same as the first direction 1221 of the irradiator; in addition, the second direction 1231 of the irradiated person 1230 is determined according to the position of the irradiated person 1230, and the angle between the first direction 1221 and the second direction 1231 is determined to obtain the angle between the irradiated person and the irradiator.

[0281] Step 11311, calculate and obtain the first brightness parameter of the halo special effect at this time.

[0282] Among them, the halo special effect is used to indicate the special effects displayed on the corresponding screen of the illuminated person. The halo special effect is the special effect produced by the virtual flashlight's lighting function.

[0283] Optionally, the display effect of the halo special effect is related to the angle between the illuminated person and the illuminator. Schematically, when the illuminated person is located within the virtual lighting range of the illuminator, a halo special effect can be generated at the tip of the model of the virtual flashlight of the illuminator.

[0284] In some embodiments, the first brightness parameter of the halo special effect is determined based on the angle between the illuminated person and the illuminator.

[0285] The brightness parameter is about a brightness influence parameter indicating the display of the halo special effect. Schematically, based on the angle between the irradiated person and the irradiator, a first brightness parameter related to the angle factor is determined.

[0286] Optionally, based on a preconfigured angle-halo special effect brightness curve, a first brightness parameter related to the angle factor is determined.

[0287] like Fig.13 As shown, the horizontal axis 1310 is the angle between the irradiator and the irradiated, and the vertical axis 1320 is the brightness of the halo effect. Fig.13 It can be seen that the smaller the angle between the irradiator and the illuminated, the brighter the brightness of the halo special effect will be; when the larger the angle between the irradiator and the illuminated, the darker the brightness of the halo special effect will be, until the angle between the irradiator and the illuminated reaches a larger angle, and the brightness of the halo special effect returns to 0.

[0288] In schematic form, when the angle between the irradiator and the irradiated is 0, the halo effect is 1, and "1" is used to indicate that the halo effect is the brightest; when the angle between the irradiator and the irradiated is 45°, the halo effect is 0, and "0" is used to indicate that the halo effect is not displayed.

[0289] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0290] Step 1132, determine the straight-line distance between the irradiated person and the irradiator.

[0291] Illustratively, when it is determined that the illuminated person is located within the virtual lighting range, a first position of the illuminated person and a second position of the illuminator are determined, and a straight-line distance between the illuminated person and the illuminator is determined based on the first position and the second position.

[0292] like Fig.12 , which is a schematic diagram of the positional relationship between the irradiator and the irradiated person. The first position of the irradiator 1210 and the second position of the irradiated person 1230 are determined, and the straight-line distance between the irradiated person 1230 and the irradiator 1210 is determined based on the first position and the second position.

[0293] Step 11321, calculate and obtain the second brightness parameter of the halo special effect at this time.

[0294] Optionally, the display effect of the halo special effect is not only related to the angle between the illuminated person and the illuminator, but also related to the distance between the illuminated person and the illuminator.

[0295] In some embodiments, the second brightness parameter of the halo effect is determined based on the straight-line distance between the illuminated person and the illuminating person.

[0296] The brightness parameter is about a brightness influence parameter indicating the display of the halo special effect. Schematically, based on the straight-line distance between the irradiated person and the irradiator, a second brightness parameter related to the distance factor is determined.

[0297] Optionally, based on a preconfigured distance-brightness curve of the halo special effect, a second brightness parameter related to the distance factor is determined.

[0298] like Fig.14 , which is a schematic diagram of the effect of distance on the halo effect. The horizontal axis 1410 is used to indicate the distance between the irradiator and the irradiated, and the vertical axis is the brightness of the halo effect. Fig.14 It can be seen that when the distance between the irradiator and the irradiated is smaller, the brightness of the halo effect will be brighter; as the distance between the irradiator and the irradiated increases, different linear change relationships will be used to represent the changing relationship between the distance and the halo effect. Generally speaking, it is shown as "when the distance between the irradiator and the irradiated is larger, the brightness of the halo effect will be darker", and until the distance between the irradiator and the irradiated reaches a larger distance, the brightness of the halo effect returns to 0.

[0299] Indicatively, when the distance between the irradiator and the irradiated is 0m-10m, the halo special effect is 1, and "1" is used to indicate that the halo special effect is the brightest; when the distance between the irradiator and the irradiated is between 10m-20m, the change in distance and the halo special effect conforms to the first linear change relationship, and the change range of the halo special effect is 1 to 0.6; when the distance between the irradiator and the irradiated is between 20m-35m, the change in distance and the halo special effect conforms to the second linear change relationship, and the change range of the halo special effect is 0 to 0; when the distance between the irradiator and the irradiated is above 35m, the halo special effect is 0, and "0" is used to indicate that the halo special effect is not displayed.

[0300] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0301] Step 1133: The first brightness parameter and the second brightness parameter work together to output a halo effect of a virtual flashlight.

[0302] Illustratively, after obtaining a first brightness parameter related to the angle factor and a second brightness parameter related to the distance, the halo effect of the virtual flashlight is obtained by combining the first brightness parameter and the second brightness parameter.

[0303] Optionally, a first weight value corresponding to the first brightness parameter and a second weight value corresponding to the second brightness parameter are pre-set, and a total brightness parameter is determined based on the first weight value, the second weight value, the first brightness parameter and the second brightness parameter; and a halo effect of the virtual flashlight is obtained based on the total brightness parameter.

[0304] Illustratively, the first brightness parameter is 1, and the first weight value of the first brightness parameter is 0.5; the second brightness parameter is 0.9, and the second weight value of the second brightness parameter is 0.5. After obtaining the first brightness parameter and the second brightness parameter, the first weight value, the first brightness parameter, the second weight value and the second brightness parameter are combined to obtain the halo effect of the virtual flashlight, such as: determining the total brightness parameter to be 0.75 (1*0.5+0.5*0.5), and displaying the halo effect of the virtual flashlight based on the total measurement parameter.

[0305] like Fig.15 , which is a schematic diagram of an interface for a halo effect. In the figure, the illuminated person holds a virtual attacking prop 1510, the angle between the illuminated person and the irradiator 1520 is small (the illuminated person and the irradiator 1520 are almost facing each other), the first brightness parameter is large (e.g., 1), but the illuminated person and the irradiator 1520 are far away, and the second brightness parameter is small (e.g., 0.1), so the halo effect of the virtual flashlight output by the first brightness parameter and the second brightness parameter is weak.

[0306] Similarly, if Fig.16 , which is another interface schematic diagram of the halo effect. In which, the illuminated person holds a virtual attack prop 1610, the illuminated person and the illuminator 1620 are at a relatively close distance, the second brightness parameter is relatively large (e.g., 0.8), but the angle between the illuminated person and the illuminator 1620 is relatively large, the first brightness parameter is relatively small (e.g., 0.2), and therefore the halo effect of the virtual flashlight output by the first brightness parameter and the second brightness parameter acting together is relatively weak.

[0307] Step 1140, combining the halo effect and the blinding effect to simulate the effect of being flashed by a virtual flashlight.

[0308] Illustratively, during the illumination process of the virtual flashlight, when the illuminated person is located in both the virtual illumination range and the interference range, the terminal screen corresponding to the illuminated person not only displays the halo effect corresponding to the virtual illumination range, but also displays the blinding effect corresponding to the interference range.

[0309] Optionally, the preset interference range is smaller than the virtual lighting range; or the preset virtual lighting range is equal to the interference range; or the preset interference range is larger than the virtual lighting range; or there is a partial overlap between the preset interference range and the virtual lighting range, etc.

[0310] Taking the pre-set interference range as smaller than the virtual lighting range as an example, when the illuminated person is within the interference range, the illuminated person is also within the virtual lighting range, and a halo effect and a blinding effect are displayed in combination on the terminal screen of the illuminated person; when the illuminated person is not within the interference range but within the virtual lighting range, a halo effect is displayed on the terminal screen of the illuminated person, and the blinding effect is not displayed, etc.

[0311] In an optional embodiment, as the position of the illuminated person or the illuminator changes, the relative position between the illuminated person or the illuminator changes, and the performance of the virtual flashlight flashing may also change. Optionally, the terminal determines the relative position between the illuminated person or the illuminator in real time, and updates the performance of the virtual flashlight flashing in real time.

[0312] Optionally, in response to the irradiated person moving out of the interference range, an animation of fading irradiation effects is displayed. Fig.17 As shown, when the illuminated person (not shown in the figure) moves out of the interference range, the illumination special effect 1710 slowly disappears until the virtual scene is redisplayed.

[0313] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0314] To sum up, in addition to the lighting effect of the virtual lighting props, based on the matching relationship between the lighting direction of the first virtual object and the virtual lighting props, the line of sight blocking effect is increased for the virtual lighting props. Therefore, with the help of the virtual lighting props, the line of sight of the first virtual object that meets the matching relationship is blocked, the attack form of the first virtual object is interfered with, the effective attack probability of the first virtual object is reduced, the fun of the game is improved, and the inefficiency problem that the player needs to perform additional operations to interfere with the first virtual object when using the lighting virtual props is avoided, thereby fully improving the efficiency of human-computer interaction.

[0315] The above content is an explanation of displaying a virtual scene from the perspective of a first virtual object (the illuminated person). In an optional embodiment, the content displayed on the virtual scene from the perspective of a second virtual object (the illuminator) is explained as follows, where the first virtual object is a virtual object controlled by a player, and the second virtual object is another virtual object controlled by another player. Fig.18 As shown, the content of the virtual scene displayed through the perspective of the second virtual object can be implemented as follows: Steps 1810 to 1830.

[0316] Step 1810: display a virtual scene including a first virtual object.

[0317] The virtual scene is displayed from the perspective of the second virtual object.

[0318] Illustratively, the first virtual object and the second virtual object are virtual objects controlled by different players. When the virtual scene is implemented as a scene displayed from the perspective of the second virtual object, the virtual scene is a scene screen displayed on the terminal controlling the second virtual object.

[0319] The second virtual object is equipped with virtual lighting props.

[0320] The virtual lighting props are virtual props with lighting functions, which are used to provide lighting effects. Schematically, the virtual lighting props are implemented as at least one of virtual lighting props such as virtual flashlights, virtual torches, and virtual light bulbs.

[0321] Step 1820: Receive a prop control operation for a virtual lighting prop.

[0322] Among them, the prop control operation is used to adjust the prop state of the virtual lighting prop to the lighting state.

[0323] Schematically, the prop state is used to describe the situation in which the virtual lighting prop is operated by the second virtual object. The prop state includes at least one of the multiple states such as illumination state, direction state, appearance state, duration state, etc.

[0324] The lighting state is used to describe the lighting condition of the virtual lighting props. For example, if the second virtual object turns off the virtual lighting props, the virtual lighting props are not in the lighting state; or, if the second virtual object turns on the virtual lighting props, the virtual lighting props are not in the lighting state; or, the default state after equipping the virtual lighting props is the lighting state; or, the default state after equipping the virtual lighting props is not in the lighting state, etc.

[0325] Optionally, the lighting state can also be used to indicate the lighting level state of the virtual lighting prop. For example, the virtual lighting prop has multiple lighting levels, and when the second virtual object makes the virtual lighting prop at the lighting level of the first level, the lighting state of the virtual lighting prop is weak; when the second virtual object makes the virtual lighting prop at the lighting level of the second level, the lighting state of the virtual lighting prop is strong, etc.

[0326] The direction state is used to describe the direction of the virtual lighting props. For example, if the second virtual object operates the virtual lighting props to illuminate straight ahead, the direction state of the virtual lighting props is straight ahead; or, if the second virtual object operates the virtual lighting props to illuminate obliquely ahead, the direction state of the virtual lighting props is obliquely ahead, etc.

[0327] Optionally, the direction state is the same as the object orientation of the second virtual object, for example, the prop orientation of the virtual lighting prop changes with the object orientation of the second virtual object. When the object orientation of the second virtual object is directly forward, the prop orientation of the virtual lighting prop is directly forward. Alternatively, the direction state is different from the object orientation of the second virtual object, that is, the second virtual object can control the virtual lighting prop to illuminate in a direction other than the object orientation. For example, the object orientation of the second virtual object is directly forward, but the second virtual object controls the prop orientation of the virtual lighting prop to be diagonally forward, etc.

[0328] The appearance state is used to describe the appearance of the virtual lighting props. For example, the appearance state includes the color and shape of the virtual lighting props.

[0329] The duration state is used to describe the duration of the lighting state of the virtual lighting prop. For example, if the virtual lighting prop requires the player controlling the second virtual object to continuously press the lighting control to play the lighting function, the duration state is determined based on the pressing time of the lighting control; or, if the virtual lighting prop is preset with a duration, when the player controlling the second virtual object turns on the virtual lighting prop, the terminal automatically triggers the duration countdown and uses the countdown as the duration state of the virtual lighting prop, etc.

[0330] In an optional embodiment, a movement control operation of the virtual lighting prop is received.

[0331] The movement control operation is used to adjust the lighting direction of the virtual lighting props.

[0332] Illustratively, when the object orientation is the same as the lighting direction, the player controlling the second virtual object changes the lighting direction of the virtual lighting prop by adjusting the object orientation of the second virtual object, and uses the adjustment operation of adjusting the object orientation of the second virtual object as the above-mentioned movement control operation.

[0333] Alternatively, when the object orientation is different from the lighting direction, the player controlling the second virtual object changes the lighting direction of the virtual lighting prop by adjusting the prop orientation of the virtual lighting prop, and uses the adjustment operation of adjusting the prop orientation of the virtual lighting prop as the above-mentioned movement control operation, etc.

[0334] In an optional embodiment, a switch control operation of a virtual lighting prop is received.

[0335] The switch control operation is used to adjust the lighting state of the virtual lighting props.

[0336] Schematically, the virtual lighting prop has two lighting states, on and off, which are realized by the prop on control. When the virtual lighting prop is not in the lighting state (the prop on control is in the off state), the virtual lighting prop enters the lighting state by triggering the prop on control; when the virtual lighting prop is in the lighting state (the prop on control is in the on state), the virtual lighting prop is not in the lighting state by triggering the prop on control. That is, the way of switching the lighting state is realized by the prop on control.

[0337] Schematically, the virtual lighting props can also have multiple lighting states with different lighting intensities, which are realized by the lighting adjustment control, which includes on, first gear, second gear and off. When the virtual lighting props are not in the lighting state (the lighting adjustment control is in the off state), the virtual lighting props enter the lighting state of the first gear by triggering the lighting adjustment control, and when the lighting adjustment control is triggered again, the virtual lighting props enter the lighting state of the second gear, and when the lighting adjustment control is triggered again, the virtual lighting props are not in the lighting state. That is: the way of adjusting the lighting state is realized by the lighting adjustment control.

[0338] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0339] Step 1830: Display the illumination light beam when the first virtual object is within the viewing angle of the second virtual object and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop.

[0340] The illumination light column is used to display an illumination effect to block the line of sight under the observation angle of the first virtual object to the virtual scene. Optionally, the illumination light column displayed under the observation angle of the second virtual object corresponds to the illumination effect displayed under the observation angle of the first virtual object, and the illumination effect is used to block the line of sight under the observation angle of the first virtual object to the virtual scene.

[0341] Illustratively, in a virtual scene displayed from the perspective of a second virtual object, when the lighting direction of a virtual lighting prop operated by the second virtual object matches the position of the first virtual object in the virtual scene, an illumination light column is displayed, thereby distinctively presenting the difference in special effects display between the illumination light column corresponding to the first virtual object and the illumination special effect corresponding to the second virtual object.

[0342] In some embodiments, when the lighting direction of the virtual lighting prop matches the position of the first virtual object in the virtual scene, an illumination light column of a first special effect is displayed; when the lighting direction of the virtual lighting prop does not match the position of the first virtual object in the virtual scene, an illumination light column of a second special effect is displayed.

[0343] The special effect condition is used to indicate the display condition of the illumination light column. Optionally, the special effect condition includes at least one of a plurality of conditions such as brightness intensity condition, color condition, style condition, etc.

[0344] Taking the special effects situation as an example of brightness intensity, when the lighting direction of the virtual lighting prop matches the position of the first virtual object in the virtual scene, a light column with higher brightness intensity is displayed; when the lighting direction of the virtual lighting prop does not match the position of the first virtual object in the virtual scene, a light column with lower brightness intensity is displayed.

[0345] Alternatively, taking the special effects situation as a color situation as an example, when the lighting direction of the virtual lighting prop matches the position of the first virtual object in the virtual scene, a red light beam is displayed; when the lighting direction of the virtual lighting prop does not match the position of the first virtual object in the virtual scene, a yellow light beam is displayed.

[0346] Alternatively, taking the special effects situation as a style situation as an example, when the lighting direction of the virtual lighting prop matches the position of the first virtual object in the virtual scene, a light column with a star special effect is displayed; when the lighting direction of the virtual lighting prop does not match the position of the first virtual object in the virtual scene, a light column without a star special effect is displayed, and so on.

[0347] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0348] In an optional embodiment, in response to the first virtual object being within the interference range corresponding to the lighting direction of the virtual lighting prop, the illumination light beam is displayed.

[0349] Illustratively, the lighting direction of the virtual lighting prop determines the interference range, and the interference range is used to indicate the effective range of blocking the line of sight of the first virtual object. Optionally, it is determined in real time whether the first virtual object is within the interference range; or it is determined periodically whether the first virtual object is within the interference range, etc.

[0350] In some embodiments, when the first virtual object is within the interference range, an illuminating light beam is displayed.

[0351] To sum up, in addition to the lighting effect of the virtual lighting props, based on the matching relationship between the lighting direction of the first virtual object and the virtual lighting props, the line of sight blocking effect is increased for the virtual lighting props. Therefore, with the help of the virtual lighting props, the line of sight of the first virtual object that meets the matching relationship is blocked, the attack form of the first virtual object is interfered with, the effective attack probability of the first virtual object is reduced, the fun of the game is improved, and the inefficiency problem that the player needs to perform additional operations to interfere with the first virtual object when using the lighting virtual props is avoided, thereby fully improving the efficiency of human-computer interaction.

[0352] In the embodiment of the present application, the content of the virtual scene is displayed from the perspective of the second virtual object. When the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop, the second virtual object can use the virtual lighting prop to block the line of sight of the first virtual object, and a beam of light can be displayed on the terminal screen controlling the second virtual object to prompt the player controlling the second virtual object that the first virtual object is suppressed by the virtual lighting device, which is conducive to fully improving the operating efficiency of the player controlling the second virtual object, and improving the player's user experience and human-computer interaction efficiency.

[0353] Fig.19 is a structural block diagram of a virtual scene display device provided by an exemplary embodiment of the present application. Fig.19 As shown, the device includes the following parts:

[0354] A scene display module 1910 is used to display a virtual scene from the perspective of a first virtual object, wherein the virtual scene includes a second virtual object, and the second virtual object is equipped with a virtual lighting prop;

[0355] An operation receiving module 1920, configured to receive a motion control operation on the first virtual object, wherein the motion control operation is used to control the first virtual object to move in the virtual scene;

[0356] The special effect display module 1930 is used to display a lighting special effect when the second virtual object is within the viewing angle of the first virtual object, the virtual lighting props equipped by the second virtual object are in an illuminated state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting props. The lighting special effect is used to block the line of sight of the first virtual object under the viewing angle of the virtual scene.

[0357] In an optional embodiment, the special effect display module 1930 is further configured to display the illumination special effect in response to the first virtual object being within an interference range corresponding to the lighting direction of the virtual lighting prop.

[0358] In an optional embodiment, the special effect display module 1930 is further configured to display the illumination special effect based on the interval distance between the first virtual object and the virtual lighting prop in response to the interval distance between the first virtual object and the virtual lighting prop being less than a preset distance threshold.

[0359] In an optional embodiment, the special effect display module 1930 is further used to display the illumination special effect in response to the angle between the object orientation of the first virtual object and the lighting direction being less than a preset angle threshold.

[0360] In an optional embodiment, the special effect display module 1930 is further used to display the illumination special effect based on the display brightness corresponding to the interval distance, wherein there is a negative correlation between the display brightness and the interval distance.

[0361] In an optional embodiment, the interference range has a plurality of sub-interference ranges, and the plurality of sub-interference ranges correspond to different illumination special effect intensities;

[0362] The special effect display module 1930 is also used to display an illumination special effect with a first special effect intensity in response to the first virtual object being within a first sub-interference range within the interference range; and to display an illumination special effect with a second special effect intensity in response to the first virtual object being within a second sub-interference range within the interference range; wherein a first distance between the first sub-interference range and the virtual lighting prop is less than a second distance between the second sub-interference range and the virtual lighting prop, and the first special effect intensity is greater than the second special effect intensity.

[0363] In an optional embodiment, the multiple sub-interference ranges respectively correspond to an interference rate, and the interference rate is used to indicate the degree of influence of line of sight interference on the first virtual object;

[0364] The special effect display module 1930 is also used to obtain an interference effectiveness rate corresponding to a first sub-interference range in response to the first virtual object being within the first sub-interference range within the interference range; obtain an interference value corresponding to the first virtual object based on the length of time the first virtual object stays within the first sub-interference range and the interference effectiveness rate; and display an illumination special effect with a first special effect intensity based on the interference value.

[0365] In an optional embodiment, the special effects display module 1930 is also used to display the lighting special effects with a divergent effect with the virtual lighting prop as the center of the lighting special effects. The divergent effect refers to an effect that gradually weakens and radiates outward from the virtual lighting prop as the highest brightness point.

[0366] like Fig.19 As shown, in an optional embodiment, the device further includes:

[0367] The scene reproduction module 1940 is used to reduce the special effect of the illumination special effect and display the virtual scene in response to triggering a target condition; wherein the target condition includes at least one of the following: the second virtual object is outside the viewing angle of the first virtual object, the virtual lighting prop equipped by the second virtual object is in a turned-off state, and the lighting direction of the first virtual object does not match that of the virtual lighting prop.

[0368] In an optional embodiment, the virtual lighting prop corresponds to a virtual lighting range, and the virtual lighting range is used to indicate a range in which a lighting function of the virtual lighting prop is exerted;

[0369] The device also includes:

[0370] The halo display module 1950 is used to display a virtual halo special effect in response to the first virtual object being located outside the interference range and within the virtual lighting range, wherein the virtual halo special effect is a special effect formed with the virtual lighting prop as the center.

[0371] In an optional embodiment, the special effect display module 1930 is also used to display a skill cooling special effect, and the skill cooling special effect is used to reduce the attack frequency of the first virtual object launching a virtual attack on the second virtual object.

[0372] In an optional embodiment, the special effects display module 1930 is also used to display the lighting special effect in response to the first virtual object and the second virtual object belonging to different virtual camps; or, when the second virtual object is within the viewing angle of the first virtual object and the virtual lighting props equipped by the second virtual object are in an illuminated state, in response to the first virtual object and the second virtual object belonging to the same virtual camp, display a brightness enhancement animation, wherein the brightness enhancement animation includes the action of the second virtual object providing lighting for the first virtual object through the virtual lighting props.

[0373] In an optional embodiment, the special effects display module 1930 is also used to display the illumination special effect in response to the first object level of the first virtual object being not greater than the second object level of the second virtual object; and not display the illumination special effect in response to the first object level of the first virtual object being greater than the second object level of the second virtual object.

[0374] Fig.21 is a structural block diagram of a virtual scene display device provided by another exemplary embodiment of the present application. Fig.21 As shown, the device includes the following parts:

[0375] A scene display module 2110, configured to display a virtual scene including a first virtual object, wherein the virtual scene is displayed from the perspective of a second virtual object, wherein the second virtual object is equipped with a virtual lighting prop;

[0376] An operation receiving module 2120, configured to receive a prop control operation on the virtual lighting prop, wherein the prop control operation is used to adjust a prop state of the virtual lighting prop;

[0377] The special effect display module 2130 is used to display the lighting special effect when the first virtual object is within the viewing angle of the second virtual object, the prop state of the virtual lighting prop is presented as the lighting state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop. The lighting special effect is used to block the line of sight under the viewing angle of the first virtual object on the virtual scene.

[0378] In an optional embodiment, the special effect display module 2130 is used to display the lighting special effect in response to the first virtual object being within an interference range corresponding to the lighting direction of the virtual lighting prop.

[0379] In an optional embodiment, the operation receiving module 2120 is used to receive a movement control operation on the virtual lighting prop, and the movement control operation is used to adjust the lighting direction of the virtual lighting prop; or, to receive a switch control operation on the virtual lighting prop, and the switch control operation is used to adjust the lighting state of the virtual lighting prop.

[0380] To sum up, in addition to the lighting effect of the virtual lighting props, based on the matching relationship between the lighting direction of the first virtual object and the virtual lighting props, the line of sight blocking effect is increased for the virtual lighting props. Therefore, with the help of the virtual lighting props, the line of sight of the first virtual object that meets the matching relationship is blocked, the attack form of the first virtual object is interfered with, the effective attack probability of the first virtual object is reduced, the fun of the game is improved, and the inefficiency problem that the player needs to perform additional operations to interfere with the first virtual object when using the lighting virtual props is avoided, thereby fully improving the efficiency of human-computer interaction.

[0381] It should be noted that the virtual scene display device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the virtual scene display device provided in the above embodiment and the virtual scene display method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0382] Fig. 22The block diagram of the structure of an electronic device 2200 provided by an exemplary embodiment of the present application is shown. The electronic device 2200 may be a portable mobile terminal, such as a smart phone, a vehicle-mounted terminal, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The electronic device 2200 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0383] Typically, the electronic device 2200 includes: a processor 2201 and a memory 2202 .

[0384] The processor 2201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 2201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 2201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

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

[0386] In some embodiments, the electronic device 2200 further includes one or more sensors, including but not limited to: a proximity sensor, a gyroscope sensor, and a pressure sensor.

[0387] The proximity sensor, also called a distance sensor, is usually disposed on the front panel of the electronic device 2200. The proximity sensor is used to collect the distance between the user and the front of the electronic device 2200.

[0388] The gyroscope sensor can detect the body direction and rotation angle of the electronic device 2200, and the gyroscope sensor can cooperate with the acceleration sensor to collect the user's 3D actions on the electronic device 2200. The processor 2201 can implement the following functions based on the data collected by the gyroscope sensor: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0389] The pressure sensor can be set on the side frame of the electronic device 2200 and / or the lower layer of the display screen. When the pressure sensor is set on the side frame of the electronic device 2200, it can detect the user's holding signal of the electronic device 2200, and the processor 2201 performs left and right hand recognition or quick operation according to the holding signal collected by the pressure sensor. When the pressure sensor is set in the lower layer of the display screen, the processor 2201 controls the operability controls on the UI interface according to the user's pressure operation on the display screen. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0390] In some embodiments, the electronic device 2200 further includes other components, which can be understood by those skilled in the art. Fig. 22 The structure shown in the figure does not constitute a limitation on the electronic device 2200, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0391] The embodiment of the present application also provides a computer device, which can be implemented as follows: Figure 2 The computer device includes a processor and a memory, wherein at least one instruction, at least one program, code set or instruction set is stored in the memory, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the virtual scene display method provided by the above-mentioned method embodiments.

[0392] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the virtual scene display method provided by the above-mentioned method embodiments.

[0393] The embodiments of the present application also provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the virtual scene display method described in any of the above embodiments.

[0394] Optionally, the computer readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0395] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0396] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A virtual scene display method, characterized in that: The method comprises: Displaying a virtual scene from the perspective of a first virtual object, wherein the virtual scene includes a second virtual object, and the second virtual object is equipped with a virtual lighting prop; receiving a motion control operation on the first virtual object, wherein the motion control operation is used to control the first virtual object to move in the virtual scene; When the second virtual object is within the viewing angle of the first virtual object, the virtual lighting props equipped by the second virtual object are in an illuminated state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting props, a lighting effect is displayed, and the lighting effect is used to block the line of sight under the viewing angle of the first virtual object on the virtual scene.

2. The method according to claim 1, characterized in that When the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop, displaying the lighting effect includes: In response to the position of the first virtual object in the virtual scene being within an interference range corresponding to the lighting direction of the virtual lighting prop, the lighting effect is displayed.

3. The method according to claim 2, characterized in that In response to the position of the first virtual object in the virtual scene being within an interference range corresponding to the lighting direction of the virtual lighting prop, displaying the lighting special effect includes: In response to the interval distance between the first virtual object and the virtual lighting prop being less than a preset distance threshold, the illumination effect is displayed based on the interval distance.

4. The method according to claim 2, characterized in that: In response to the position of the first virtual object in the virtual scene being within an interference range corresponding to the lighting direction of the virtual lighting prop, displaying the lighting special effect includes: In response to an angle between the object orientation of the first virtual object and the lighting direction being less than a preset angle threshold, the illumination effect is displayed.

5. The method according to claim 3, characterized in that: The displaying of the illumination effect based on the interval distance includes: The illumination effect is displayed based on a display brightness corresponding to the spacing distance, wherein there is a negative correlation between the display brightness and the spacing distance.

6. The method according to claim 5, characterized in that The interference range has a plurality of sub-interference ranges, and the plurality of sub-interference ranges correspond to different illumination special effect intensities; The displaying of the illumination effect based on the display brightness corresponding to the interval distance includes: In response to the first virtual object being within a first sub-interference range within the interference range, displaying an illumination special effect with a first special effect intensity; In response to the first virtual object being within a second sub-interference range within the interference range, displaying an illumination special effect with a second special effect intensity; Among them, a first distance between the first sub-interference range and the virtual lighting prop is smaller than a second distance between the second sub-interference range and the virtual lighting prop, and the first special effect intensity is greater than the second special effect intensity.

7. The method according to claim 6, characterized in that The multiple sub-interference ranges respectively correspond to an interference rate, and the interference rate is used to indicate the degree of influence of line of sight interference on the first virtual object; In response to the first virtual object being within a first sub-interference range within the interference range, displaying an illumination special effect with a first special effect intensity comprises: In response to the first virtual object being within a first sub-interference range within the interference range, acquiring an interference effectiveness rate corresponding to the first sub-interference range; Based on the length of time that the first virtual object stays in the first sub-interference range and the interference effectiveness rate, acquiring an interference value corresponding to the first virtual object; A lighting effect having a first effect intensity is displayed based on the interference value.

8. The method according to any one of claims 1 to 7, characterized in that: The display illumination special effects include: The virtual lighting prop is used as the center of the lighting effect, and the lighting effect is displayed with a divergent effect. The divergent effect refers to an effect that gradually weakens by radiating outward from the virtual lighting prop as the highest brightness point.

9. The method according to any one of claims 1 to 7, characterized in that: After displaying the illumination special effect, the method further includes: In response to a trigger target condition, weakening a special effect of displaying the illumination special effect and displaying the virtual scene; Among them, the target condition includes at least one of the following: the second virtual object is outside the viewing angle of the first virtual object, the virtual lighting prop equipped by the second virtual object is in a turned off state, and the lighting direction of the first virtual object does not match that of the virtual lighting prop.

10. The method according to any one of claims 2 to 5, characterized in that: The virtual lighting prop corresponds to a virtual lighting range, and the virtual lighting range is used to indicate a range within which the lighting function of the virtual lighting prop is exerted; The method further comprises: In response to the first virtual object being located outside the interference range and within the virtual lighting range, a virtual halo special effect is displayed, where the virtual halo special effect is a special effect formed with the virtual lighting prop as the center.

11. The method according to any one of claims 1 to 7, characterized in that: After displaying the illumination special effect, the method further includes: A skill cooling effect is displayed, where the skill cooling effect is used to reduce the attack frequency of the first virtual object launching a virtual attack on the second virtual object.

12. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to the first virtual object and the second virtual object belonging to different virtual camps, displaying the illumination effect; or, When the second virtual object is within the field of view of the first virtual object and the virtual lighting props equipped by the second virtual object are in an illuminated state, in response to the first virtual object and the second virtual object belonging to the same virtual camp, a brightness enhancement animation is displayed, wherein the brightness enhancement animation includes an action in which the second virtual object provides lighting for the first virtual object through the virtual lighting props.

13. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to a first object level of the first virtual object being not greater than a second object level of the second virtual object, displaying the illumination effect; In response to the first object level of the first virtual object being greater than the second object level of the second virtual object, the illumination effect is not displayed.

14. A virtual scene display method, characterized in that: The method comprises: displaying a virtual scene including a first virtual object, the virtual scene being displayed from the perspective of a second virtual object, the second virtual object being equipped with a virtual lighting prop; receiving a prop control operation on the virtual lighting prop, wherein the prop control operation is used to adjust a prop state of the virtual lighting prop to a lighting state; When the first virtual object is within the viewing angle of the second virtual object and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop, an illumination light column is displayed, and the illumination light column is used to display the illumination effect to block the line of sight under the viewing angle of the first virtual object on the virtual scene.

15. The method according to claim 14, characterized in that When the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting prop, displaying a light column includes: In response to the position of the first virtual object in the virtual scene being within an interference range corresponding to the lighting direction of the virtual lighting prop, the illumination light column is displayed.

16. The method according to claim 14, characterized in that The receiving a prop control operation on the virtual lighting prop includes: receiving a movement control operation on the virtual lighting prop, wherein the movement control operation is used to adjust a lighting direction of the virtual lighting prop; or, A switch control operation on the virtual lighting prop is received, where the switch control operation is used to adjust the lighting state of the virtual lighting prop.

17. A virtual scene display device, characterized in that: The device comprises: A scene display module, configured to display a virtual scene from the perspective of a first virtual object, wherein the virtual scene includes a second virtual object, and the second virtual object is equipped with a virtual lighting prop; an operation receiving module, configured to receive a motion control operation on the first virtual object, wherein the motion control operation is used to control the first virtual object to move in the virtual scene; A special effects display module is used to display an illumination special effect when the second virtual object is within the viewing angle of the first virtual object, the virtual lighting props equipped by the second virtual object are in an illuminated state, and the position of the first virtual object in the virtual scene matches the lighting direction of the virtual lighting props. The illumination special effect is used to block the line of sight under the viewing angle of the first virtual object on the virtual scene.

18. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the virtual scene display method according to any one of claims 1 to 16.

19. A computer-readable storage medium, characterized in that: The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the virtual scene display method according to any one of claims 1 to 16.

20. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the virtual scene display method as claimed in any one of claims 1 to 16.