CN-121988031-A - Visual identification control method, electronic device and readable storage medium
Abstract
The disclosure discloses a visual identification control method, which comprises the steps of responding to an adjustment operation for a game view angle, controlling a virtual camera in a game scene to perform view angle rotation, responding to the view angle rotation to be limited by a system, determining a current view cone of the virtual camera, determining a target virtual object positioned in a judging range from the virtual object if a virtual object exists in the current view cone and is not positioned on a sight line reference axis of the current view cone, and controlling a visual identification in a graphical user interface to generate directional deviation so as to point to the target virtual object. Through the method, when the rotation of the visual angle of a player is limited, the visual mark can automatically deviate from the pointing target, so that the player can be quickly positioned to avoid repeated movement, and the operation convenience and experience of the game are improved.
Inventors
- ZHANG ZHENG
- SHEN JIABO
Assignees
- 网易(杭州)网络有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260212
Claims (12)
- 1. A visual identification control method, the method comprising: controlling a virtual camera in a game scene to perform visual angle rotation in response to an adjustment operation for a game visual angle; determining a current view cone of the virtual camera in response to the perspective rotation being limited by the system; if a virtual object exists in the current view cone and the virtual object is not positioned on the sight line reference axis of the current view cone, determining a target virtual object positioned in a judging range from the virtual object; controlling visual indicia in a graphical user interface to produce a directional offset to point to the target virtual object.
- 2. The method of claim 1, wherein the method further comprises: The determination range is determined based on the line-of-sight reference axis.
- 3. The method of claim 2, wherein the determining the decision range based on the line of sight reference axis comprises: And determining an angle range generated by shifting the sight line reference axis by a preset distance angle along the direction in which the rotation of the visual angle is limited as the determination range.
- 4. The method of claim 1, wherein the responding to the viewing angle rotation is limited by a system comprising: and responding to the expected rotation angle of the virtual camera under the adjustment operation to reach a rotation boundary preset by a system.
- 5. The method of claim 1 or 4, wherein the view angle rotation being limited by a system comprises the virtual camera being limited in a pitch rotation direction.
- 6. The method of claim 1 or 4, wherein the view angle rotation is systematically limited further comprises the virtual camera being limited in a horizontal rotation direction.
- 7. The method of claim 1, wherein the determining a target virtual object from the virtual objects that is within a decision range comprises: Screening the virtual objects within the judging range, and determining the virtual objects with interactable attributes as candidate virtual objects; and determining the target virtual object from the candidate virtual objects.
- 8. The method of claim 7, wherein the determining the target virtual object from the candidate objects comprises: Calculating an angular deviation between the line of sight reference axis and each of the candidate objects; and determining the candidate object with the smallest angle deviation as the target virtual object.
- 9. The method of claim 1, wherein the controlling the visual cue to produce a directivity shift comprises: calculating the offset of the projection position of the target virtual object in the screen space and the current position of the visual identifier; and controlling the visual identification to move to the projection position according to the offset.
- 10. The method of claim 9, wherein the controlling the visual identification movement comprises moving in a smooth animated manner.
- 11. An electronic device, comprising: processor, and A memory for storing a data processing program, the electronic device being powered on and executing the program by the processor to perform the method of any one of claims 1 to 10.
- 12. A computer readable storage medium, storing a data processing program, the program being executable by a processor to perform the method of any one of claims 1 to 10.
Description
Visual identification control method, electronic device and readable storage medium Technical Field The present disclosure relates to the field of computers, and in particular, to a visual identification control method, an electronic device, and a computer readable storage medium. Background In games such as simulated business, visual markers such as sight are often used to assist players in aiming and interaction, and players move the sight by adjusting the viewing angle of the game to select virtual objects in the scene, achieving accurate positioning. However, when the view angle rotation cannot be continued due to the system limitation, if the pitch angle limit is reached, the target may be located outside the interaction range, which makes it difficult for the player to select, and the position of the virtual character needs to be frequently adjusted, so that the game experience and the operation efficiency are affected. Disclosure of Invention The present disclosure provides a visual identification control method, a program product, and an electronic device to at least partially solve the above-mentioned problems occurring in the related art. According to a first aspect of the present disclosure, there is provided a visual identification control method, including controlling a virtual camera in a game scene to perform view angle rotation in response to an adjustment operation for a game view angle, determining a current view cone of the virtual camera in response to the view angle rotation being limited by a system, determining a target virtual object located within a determination range from the virtual object if the virtual object exists in the current view cone and the virtual object is not located on a line of sight reference axis of the current view cone, and controlling the visual identification in a graphical user interface to generate a directional offset to point to the target virtual object. According to a second aspect of the present disclosure, there is provided an electronic device comprising a processor and a memory for storing executable instructions of the processor, wherein the processor is configured to perform the method of the first aspect and possible implementations thereof via execution of the executable instructions. According to a third aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect described above and possible implementations thereof. A visual identification control method in at least one embodiment of the present disclosure includes controlling a virtual camera in a game scene to perform view angle rotation in response to an adjustment operation for a game view angle, determining a current view cone of the virtual camera in response to the view angle rotation being limited by a system, determining a target virtual object located within a determination range from the virtual object if the virtual object exists in the current view cone and the virtual object is not located on a line of sight reference axis of the current view cone, and controlling a visual identification in a graphical user interface to generate a directional offset to point to the target virtual object. Therefore, when the rotation of the visual angle of the player is limited, the visual mark can automatically deviate from the pointing target, so that the player can be quickly positioned to avoid repeated movement, and the operation convenience and experience of the game are improved. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are needed in the description of the embodiments of the present disclosure will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art. Fig. 1 is a schematic diagram of an example system for implementing a visual identification control method according to an embodiment of the disclosure; FIG. 2 is a flowchart illustrating an example of a visual identification control method according to an embodiment of the disclosure; Fig. 3 is a schematic view illustrating an example of shooting by a virtual camera according to an embodiment of the disclosure; FIG. 4a is a schematic diagram of an example graphical user interface provided by an embodiment of the present disclosure; FIG. 4b is a schematic diagram of an example graphical user interface provided by an embodiment of the present disclosure; fig. 5 is a block diagram of an electronic device for implementing a visual identification control method according to an embodiment of the disclosure. Detailed Description In the following description, numerous specific details are set forth in order to provid