CN110559647A - method, apparatus, medium, and device for controlling sight display in virtual shooting game - Google Patents

method, apparatus, medium, and device for controlling sight display in virtual shooting game Download PDF

Info

Publication number
CN110559647A
CN110559647A CN201910913891.2A CN201910913891A CN110559647A CN 110559647 A CN110559647 A CN 110559647A CN 201910913891 A CN201910913891 A CN 201910913891A CN 110559647 A CN110559647 A CN 110559647A
Authority
CN
China
Prior art keywords
sight
aiming
display
display area
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910913891.2A
Other languages
Chinese (zh)
Other versions
CN110559647B (en
Inventor
黄沛如
胡方俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910913891.2A priority Critical patent/CN110559647B/en
Publication of CN110559647A publication Critical patent/CN110559647A/en
Application granted granted Critical
Publication of CN110559647B publication Critical patent/CN110559647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/219Input arrangements for video game devices characterised by their sensors, purposes or types for aiming at specific areas on the display, e.g. light-guns
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

the invention discloses a method for controlling the display of a foresight in a virtual shooting game, a device for controlling the display of the foresight in the virtual shooting game, a computer readable storage medium and electronic equipment, and relates to the technical field of games. The control method for the display of the foresight in the virtual shooting game comprises the following steps: determining the three-dimensional space coordinate of the position aimed by the sighting telescope in the virtual game scene, converting the three-dimensional space coordinate into the two-dimensional screen coordinate on the graphical user interface of the terminal equipment, determining the aiming display area of the sighting telescope in the graphical user interface, and displaying the aiming sight according to the two-dimensional screen coordinate and the aiming display area. The display effect of the sight can be improved.

Description

method, apparatus, medium, and device for controlling sight display in virtual shooting game
Technical Field
The present disclosure relates to the field of game technologies, and in particular, to a method for controlling a sight display in a virtual shooting game, a device for controlling a sight display in a virtual shooting game, a computer-readable storage medium, and an electronic device.
Background
With the rapid development of the information era, the configuration of terminal equipment such as computers, tablets, mobile phones and the like is improved, and the game industry is greatly improved. Currently, various large game vendors develop different types of gaming applications, such as shooting games.
In the shooting game, a player can aim and shoot a target object by controlling a weapon of a virtual character, wherein the aiming direction and the shooting landing point of the weapon are judged by the player through a sight of the weapon. However, the existing solutions for the sight in the shooting game may have some problems, for example, after the player opens the sighting telescope of the virtual weapon, the sight does not appear in the lens display area of the sighting telescope, but appears beside the virtual weapon.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a method for controlling a sight-star display in a virtual shooting game, a device for controlling a sight-star display in a virtual shooting game, a computer-readable storage medium, and an electronic apparatus, thereby overcoming, at least to some extent, a problem of poor sight-star display effect due to limitations and defects of the related art.
according to a first aspect of the present disclosure, there is provided a method of controlling a sight bead display in a virtual shooting game, comprising: determining three-dimensional space coordinates of a position aimed by the sighting telescope in the virtual game scene; converting the three-dimensional space coordinates into two-dimensional screen coordinates on a graphical user interface of the terminal equipment; determining a sighting display area of a sighting telescope in a graphical user interface; and displaying the aiming sight according to the two-dimensional screen coordinates and the aiming display area.
According to a second aspect of the present disclosure, there is provided a control apparatus for a sight display in a virtual shooting game, comprising: the coordinate determination module is used for determining the three-dimensional space coordinate of the position aimed by the sighting telescope in the virtual game scene; the coordinate conversion module is used for converting the three-dimensional space coordinate into a two-dimensional screen coordinate on a graphical user interface of the terminal equipment; the area determination module is used for determining an aiming display area of a sighting telescope in the graphical user interface; and the sight-sight display module is used for displaying the aiming sight according to the two-dimensional screen coordinates and the aiming display area.
Optionally, the coordinate determination module comprises: and the position determining unit is used for determining three-dimensional space coordinates of the position aimed along the vertical direction of the mirror surface of the sighting telescope in the virtual game scene.
Optionally, the region determining module includes: the sighting telescope coordinate determination unit is used for determining the three-dimensional space coordinates of the sighting telescope in the virtual game scene; and the sighting telescope coordinate conversion unit is used for converting the three-dimensional space coordinate of the sighting telescope into a two-dimensional screen coordinate on a graphical user interface of the terminal equipment, and the two-dimensional screen coordinate is used as a sighting display area.
Optionally, the front sight display module comprises: the display judging unit is used for displaying the aiming sight based on the two-dimensional screen coordinate if the two-dimensional screen coordinate is in the aiming display area; and if the two-dimensional screen coordinate is not in the display area, the aiming sight is not displayed.
Optionally, the front sight display module comprises: the sight position determining unit is used for determining the position of the sight image in the graphical user interface according to the two-dimensional screen coordinates; and the position judging unit is used for displaying the superposed part of the sight image and the aiming display area if the sight image is superposed with the aiming display area.
optionally, the front sight display module comprises: the deviation angle determining unit is used for determining the azimuth deviation angle of the aiming sight of the current frame and the aiming sight of the previous frame; and the sight bead display unit is used for displaying the aiming sight bead based on the azimuth deviation angle and the two-dimensional screen coordinates.
Optionally, the control device for the display of the foresight in the virtual shooting game further comprises: and the instruction response module is used for responding to the aiming adjustment instruction, adjusting the aiming display area and updating the display of the aiming sight.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of controlling the display of a foresight in a virtual shooter game as described above.
according to a fourth aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of controlling a sight display in a virtual shooting game as described above.
Exemplary embodiments of the present disclosure have the following advantageous effects:
In the technical scheme provided by some embodiments of the present disclosure, firstly, three-dimensional space coordinates of a position aimed by a sighting telescope in a virtual game scene are determined, secondly, the three-dimensional space coordinates are converted into two-dimensional screen coordinates on a terminal device graphical user interface, thirdly, an aiming display area of the sighting telescope in the graphical user interface is determined, and then, an aiming sight is displayed according to the two-dimensional screen coordinates and the aiming display area. On the one hand, the display of the aiming sight is displayed based on the two-dimensional screen coordinates and the aiming display area, the situation that the aiming sight is separated from the display of the sighting telescope is avoided, and the display effect of the aiming sight is improved. On the other hand, the three-dimensional space coordinates are converted into two-dimensional screen coordinates on a graphical user interface of the terminal equipment, so that objective basis is provided for position design of the aiming sight, and the accuracy of aiming sight design is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
Fig. 1 schematically illustrates a flowchart of a method of controlling a front sight display in a virtual shooting game according to an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a diagram of a front sight image display in two cases, according to an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a block diagram of a control device for a front sight display in a virtual shooting game, according to an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a coordinate determination module according to an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a region determination module according to an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of a sight-star display module according to an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a front sight display module according to another exemplary embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of a front sight display module according to another exemplary embodiment of the present disclosure;
FIG. 9 schematically illustrates a block diagram of a control device for a front sight display in a virtual shooting game, according to another exemplary embodiment of the present disclosure;
Fig. 10 schematically shows a block diagram of an electronic device in an exemplary embodiment according to the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In the present disclosure, the terms "comprises" and "comprising" are used in an open-ended fashion, and mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
With the development of the internet industry, the game industry has also been rapidly developed. To meet the needs of players, game merchants have devised various games that can be deployed on terminal devices, such as shooting games.
during operation of the shooting game, the target object is aimed by the sight of the virtual weapon. At present, some problems may exist in the display scheme of the sight, for example, when a player operates the sighting telescope of the virtual weapon to shake left and right or up and down, the sight is fixed and does not move along with the movement of the sighting telescope; after the player performs an operation of opening the scope cover of the virtual weapon, the sight is displayed in the game screen, but the sight does not coincide with the scope. In order to improve the display effect of the foresight, the disclosure provides a control method for foresight display in a virtual shooting game.
It should be noted that, in the exemplary embodiment of the present disclosure, the method for controlling the quasi-star display in the virtual shooting game described below may be generally implemented by a terminal device (e.g., a mobile phone, a tablet, a personal computer, etc.), that is, the steps of the method for controlling the quasi-star display in the virtual shooting game may be executed by the terminal device, in which case, the control means for the quasi-star display in the virtual shooting game may be configured in the terminal device.
Fig. 1 schematically shows a flowchart of a control method of a front sight display in a virtual shooting game of an exemplary embodiment of the present disclosure. Referring to fig. 1, a method for controlling a sight bead display in a virtual shooting game may include the steps of:
S102, determining three-dimensional space coordinates of the position aimed by the sighting telescope in the virtual game scene.
The position aimed by the sighting telescope can be a position aimed along the vertical direction of the mirror surface of the sighting telescope generally, and can also be a position aimed along the vertical direction of the center position of the mirror surface of the sighting telescope.
in an exemplary embodiment of the present disclosure, the virtual game scene is a three-dimensional virtual game scene, in which a three-dimensional coordinate system may be established such that people and objects in the virtual game scene have three-dimensional spatial coordinates. Then, the three-dimensional space coordinates in step S102 may be coordinates in a three-dimensional space coordinate system of a position aimed in a direction perpendicular to the mirror surface of the sighting telescope in the virtual game scene.
The terminal device may determine three-dimensional space coordinates of the position aimed in the vertical direction of the mirror surface of the sighting telescope in the virtual game scene, that is, the terminal device may determine three-dimensional space coordinates of the position aimed in the vertical direction of the mirror surface of the sighting telescope in the virtual game scene as three-dimensional space coordinates of the sight bead in the virtual game scene.
for example, in a virtual shooting game scene, the target object is a person, the position at which the sighting telescope is aimed is the position of the intersection point of the mirror surface of the sighting telescope and the body of the person at which the sighting telescope is aimed, and the position can also be regarded as the position of the aiming sight
And S104, converting the three-dimensional space coordinate into a two-dimensional screen coordinate on a graphical user interface of the terminal equipment.
In an exemplary embodiment of the present disclosure, the two-dimensional screen coordinates may be two-dimensional screen coordinates of a sight on a terminal device graphical user interface. The graphical user interface of the terminal equipment is a two-dimensional plane, and a two-dimensional screen coordinate system can be established on the plane, so that the virtual human or object displayed in the graphical user interface has two-dimensional screen coordinates. Then, the two-dimensional screen coordinates in step S104 may be coordinates converted into a two-dimensional screen coordinate system by three-dimensional space coordinates of the sight in the virtual game.
the terminal device may use a transformation calculation formula of the camera matrix to convert the three-dimensional spatial coordinates to two-dimensional screen coordinates on the graphical user interface of the terminal device. The transform calculation formula for the camera matrix may relate to, but is not limited to, matrices such as an orthographic projection matrix, a viewing matrix, and the like.
S106, determining a sighting display area of the sighting telescope in the graphical user interface.
The sighting display area of the sighting telescope can be an area displayed by a lens of the sighting telescope on the image user interface of the terminal equipment after the virtual character opens the virtual weapon, namely, the two-dimensional screen coordinate area of the sighting telescope under the two-dimensional screen coordinate system of the image user interface of the terminal equipment can be the sighting display area of the sighting telescope. The aiming display area can be various areas such as a circle, a rectangle, a square and the like, can be determined according to the shapes of the sighting telescope of different virtual weapons, and the aiming display area of the sighting telescope is not limited by the present disclosure.
In an exemplary embodiment of the present disclosure, in order to allow a design of a sighting display area of a sighting telescope in a graphical user interface to have a certain objective basis, a terminal device may determine three-dimensional space coordinates of the sighting telescope in a virtual game scene, and then convert the three-dimensional space coordinates of the sighting telescope into two-dimensional screen coordinates on the graphical user interface of the terminal device as the sighting display area.
And S108, displaying the aiming sight according to the two-dimensional screen coordinates and the aiming display area.
The terminal device of the present disclosure may display the aiming sight according to the two-dimensional screen coordinates and the aiming display area, that is, the aiming sight also refers to the aiming sight displayed in the two-dimensional screen coordinates.
according to another embodiment of the present disclosure, the aiming sight is displayed based on the two-dimensional screen coordinates if the two-dimensional screen coordinates are within the aiming display area, and the aiming sight is not displayed if the two-dimensional screen coordinates are not within the display area. That is, the two-dimensional screen coordinates of the aiming sight may be contained within the aiming display area in the terminal device graphical user interface.
It should be noted that, if the sighting display area of the sighting telescope does not appear, the sighting sight is not displayed at the two-dimensional screen coordinates. That is, the sighting telescope is not used in the virtual game scene, and the sighting sight is not displayed even if the three-dimensional space coordinates of the position at which the sighting telescope is aimed in the virtual game scene are determined.
For example, in a virtual game scenario, a virtual character holds a virtual weapon in his hand and does not aim the scope at the target, i.e., the two-dimensional screen coordinates of the aiming sight are not in the aiming display area of the scope, then the aiming sight is not displayed. The virtual character aims the sighting telescope at the target object, and the two-dimensional screen coordinates of the sighting sight are contained in the aiming display area of the sighting telescope, so that the sighting sight is displayed.
In an exemplary embodiment of the present disclosure, the aiming sight may also include a sight image, and the terminal device may determine a position of the sight image in the graphical user interface according to the two-dimensional screen coordinates, and if the sight image partially coincides with the aiming display area, display a portion of the sight image that coincides with the aiming display area.
the position of the sight bead image in the graphic user interface may refer to the position of the center position of the sight bead image in the graphic user interface, and the sight bead image of the present disclosure may be, but is not limited to, various shapes such as a dot, a star, a circle, a cross, a triangle, and the like. The sight bead image may also contain graduation lines and angles to aid in aiming.
Referring to fig. 2, in the sighting display area of the sighting telescope, a schematic diagram of the display of the sight star image in both cases. The sight-star image may be in the shape of a pentagon, and the aiming display area may be in the shape of a circle. In case a, the two-dimensional screen coordinates of the sight bead image are at the center position of the sighting display area of the sighting telescope, and the sight bead image is contained in the sighting display area, the whole of the sight bead image is displayed. In case B, the sight bead image partially overlaps the aiming display area, and only the portion of the sight bead image that overlaps the aiming display area is displayed.
For example, in a virtual game scenario, a virtual weapon is pre-aimed at a target object. In the case where the virtual weapon moves the scope to the edge of the sighting target object, the sight image partially coincides with the sighting display area, and the terminal device can display the portion of the sight image that coincides with the sighting display area in the sighting display area.
in addition, in the virtual game scene, the virtual weapon adjusts the three-dimensional space coordinate of the sighting telescope along the vertical direction of the mirror surface of the sighting telescope, so that the three-dimensional space coordinate of the sighting sight moves along with the movement of the sighting telescope, but the terminal equipment can ensure that the size of the sight image is unchanged by adjusting the parameter of the size of the sight image.
In an exemplary embodiment of the present disclosure, the ratio of the size of the sight bead image to the size of the image user interface of the terminal device may also be a preset value. It should be noted that the size of the image user interface of the terminal device is fixed, that is, only in the case that the size of the sight image is fixed, it can be ensured that the ratio of the size of the sight image to the size of the image user interface of the terminal device is a preset value.
For example, in a virtual game scene, a virtual character adjusts the position of the sighting telescope along the vertical direction of the mirror surface of the sighting telescope, so that the position of the sighting sight moves along with the movement of the sighting telescope, and the size of a sight star image changes.
in order to enable the ratio of the size of the sight bead image to the size of the image user interface of the terminal device to be unchanged, the terminal device can respond to an instruction sent by a player for adjusting the parameters of the sight bead image and display the sight bead image based on a preset value and two-dimensional screen coordinates of the sight bead image.
In another exemplary embodiment of the present disclosure, the terminal device may determine an azimuth deviation angle of the aiming sight of the current frame from the aiming sight of the previous frame, and display the aiming sight based on the azimuth deviation angle and the two-dimensional screen coordinates.
The azimuth deviation angle may be an angle between a connection extension line of the two-dimensional screen coordinate of the aiming sight of the current frame and the two-dimensional screen coordinate of the aiming sight of the previous frame and a horizontal axis extension line of the two-dimensional screen coordinate system, or an angle between the connection extension line and a vertical axis extension line of the two-dimensional screen coordinate system.
The terminal equipment can determine the moving direction of the aiming sight according to the direction deviation angle and display the aiming sight according to the two-dimensional screen coordinates of the current frame aiming sight.
According to another exemplary embodiment, the terminal device may adjust the aiming display area and update the display of the aiming sight in response to the aiming adjustment instruction.
The aiming adjustment instruction may be an instruction issued by the player. The aiming sight is displayed only after the aiming display area is displayed, that is, the aiming sight cannot be displayed in the condition that the aiming display area does not appear.
For example, in a virtual game scene, after a virtual character opens a lens cover of a sighting telescope of a virtual weapon, aiming at a target object is needed, a player sends aiming instructions, and then the terminal device can adjust an aiming display area and update the display of an aiming sight.
With the exemplary embodiments of the present disclosure, the two-dimensional screen coordinates of the aiming sight in combination with the aiming display area of the sighting telescope determine the display of the aiming sight so that the player sees the aiming sight and the sighting telescope as a whole through the virtual weapon without separation. The display of the aiming sight and the aiming sight utilizes the visual perception law of people for the visual display of people, and is visually presented to people, and the display of the aiming sight and the overall display effect of the aiming display area of the aiming sight are achieved.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, in an exemplary embodiment of the present disclosure, there is also provided a control apparatus for a sight display in a virtual shooting game.
Fig. 3 schematically shows a block diagram of a control apparatus for a front sight display in a virtual shooting game according to an exemplary embodiment of the present disclosure. Referring to fig. 3, a control apparatus 300 of a front sight display in a virtual shooting game according to an exemplary embodiment of the present disclosure may include: a coordinate determination module 302, a coordinate conversion module 304, an area determination module 306, and a sight display module 308.
the coordinate determination module 302 is configured to determine three-dimensional space coordinates of a position aimed at by the sighting telescope in the virtual game scene; a coordinate conversion module 304, configured to convert the three-dimensional space coordinate into a two-dimensional screen coordinate on a graphical user interface of the terminal device; an area determination module 306 for determining an aiming display area of a scope in a graphical user interface; and a sight-sight display module 308 for displaying the aiming sight according to the two-dimensional screen coordinates and the aiming display area.
According to an exemplary embodiment of the present disclosure, referring to fig. 4, the coordinate determination module 302 may include: a position determination unit 401 configured to perform: three-dimensional spatial coordinates of a position aimed along a direction perpendicular to a mirror surface of the sighting telescope in the virtual game scene are determined.
According to an exemplary embodiment of the present disclosure, referring to fig. 5, the region determining module 306 may include: a scope coordinate determination unit 502 and a scope coordinate conversion unit 504.
the sighting telescope coordinate determination unit 502 is used for determining the three-dimensional space coordinates of the sighting telescope in the virtual game scene; and a sighting telescope coordinate conversion unit 504, configured to convert the three-dimensional space coordinates of the sighting telescope into two-dimensional screen coordinates on the graphical user interface of the terminal device, as a sighting display area.
Referring to fig. 6, the sight display module 308 may include: a display determination unit 601 configured to perform: and if the two-dimensional screen coordinate is in the aiming display area, displaying the aiming sight based on the two-dimensional screen coordinate. And if the two-dimensional screen coordinate is not in the display area, the aiming sight is not displayed.
Referring to fig. 7, the sight display module 308 may include: a sight position determination unit 702 and a position determination unit 704.
The sight position determining unit 702 is configured to determine a position of a sight image in the graphical user interface according to the two-dimensional screen coordinates; and a position determination unit 704 configured to display the sight bead image of the overlapped portion in the aiming display area if the sight bead image at least partially overlaps the aiming display area.
Referring to fig. 8, the sight display module 308 may include: a deviation angle determination unit 801 and a front sight display unit 803.
the deviation angle determining unit 801 is configured to determine an azimuth deviation angle between the aiming sight of the current frame and the aiming sight of the previous frame; and a sight-sight display unit 803 for displaying the aiming sight based on the azimuth deviation angle and the two-dimensional screen coordinates.
According to an exemplary embodiment of the present disclosure, referring to fig. 9, the control apparatus 900 for the foresight display in the virtual shooting game may further include, compared to the control apparatus 300 for the foresight display in the virtual shooting game: an instruction response module 902 configured to perform: and adjusting the aiming display area and updating the display of the aiming sight in response to the aiming adjustment instruction.
the details of each module/unit in the above-mentioned apparatus have been described in detail in the embodiments of the method section, and thus are not described again.
in an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when the program product is run on the terminal device.
in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 1000 according to this embodiment of the invention is described below with reference to fig. 10. The electronic device 1000 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 10, the electronic device 1000 is embodied in the form of a general purpose computing device. The components of the electronic device 1000 may include, but are not limited to: the at least one processing unit 1010, the at least one memory unit 1020, a bus 1030 connecting different system components (including the memory unit 1020 and the processing unit 1010), and a display unit 1040.
Wherein the storage unit stores program code that is executable by the processing unit 1010 to cause the processing unit 1010 to perform steps according to various exemplary embodiments of the present invention as described in the "exemplary methods" section above in this specification. For example, the processing unit 1010 may perform steps S102 to S108 as shown in fig. 1.
The storage unit 1020 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)10201 and/or a cache memory unit 10202, and may further include a read-only memory unit (ROM) 10203.
The memory unit 1020 may also include a program/utility 10204 having a set (at least one) of program modules 10205, such program modules 10205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 1030 may be any one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, and a local bus using any of a variety of bus architectures.
The electronic device 1000 may also communicate with one or more external devices 1100 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to communicate with the electronic device 1000, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 1050. Also, the electronic device 1000 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1060. As shown, the network adapter 1060 communicates with the other modules of the electronic device 1000 over the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
it should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (11)

1. A method for controlling the display of a foresight in a virtual shooting game, comprising:
Determining three-dimensional space coordinates of a position aimed by the sighting telescope in the virtual game scene;
Converting the three-dimensional space coordinates into two-dimensional screen coordinates on a graphical user interface of the terminal equipment;
Determining a sighting display area of the sighting telescope in the graphical user interface;
And displaying the aiming sight according to the two-dimensional screen coordinates and the aiming display area.
2. The method of controlling a sight-star display in a virtual shooting game of claim 1, wherein determining three-dimensional spatial coordinates of a location in a virtual game scene at which a sight is aimed comprises:
Three-dimensional space coordinates of a position aimed along a direction perpendicular to a mirror surface of the sighting telescope in a virtual game scene are determined.
3. The method of controlling a sight-star display in a virtual shooting game of claim 1 or 2, wherein determining the sight-display area of the sight in the graphical user interface comprises:
Determining three-dimensional spatial coordinates of the sighting telescope in the virtual game scene;
And converting the three-dimensional space coordinate of the sighting telescope into a two-dimensional screen coordinate on the graphical user interface of the terminal equipment, and taking the two-dimensional screen coordinate as the aiming display area.
4. The method of controlling a sight bead display in a virtual shooting game according to claim 1 or 2, wherein displaying a sight bead based on the two-dimensional screen coordinates and the sight display area includes:
And if the two-dimensional screen coordinate is in the aiming display area, displaying an aiming sight based on the two-dimensional screen coordinate.
5. The method of controlling a sight bead display in a virtual shooting game according to claim 1 or 2, wherein displaying a sight bead based on the two-dimensional screen coordinates and the sight display area includes:
And if the two-dimensional screen coordinate is not in the display area, not displaying the aiming sight.
6. The method of controlling a sight-star display in a virtual shooting game according to claim 1 or 2, wherein the sight-star includes a sight-star image; wherein displaying an aiming sight according to the two-dimensional screen coordinates and the aiming display area comprises:
Determining the position of the sight bead image in a graphical user interface according to the two-dimensional screen coordinates;
and if the sight bead image is partially overlapped with the aiming display area, displaying the overlapped part of the sight bead image and the aiming display area.
7. The method for controlling a sight bead display in a virtual shooting game according to claim 1 or 2, wherein displaying a sight bead according to the two-dimensional screen coordinates and the sight display area includes:
Determining the azimuth deviation angle of the aiming sight of the current frame and the aiming sight of the previous frame;
displaying the aiming sight based on the azimuth deviation angle and the two-dimensional screen coordinates.
8. The method of controlling a sight bead display in a virtual shooting game according to claim 1 or 2, characterized in that the method of controlling a sight bead display in a virtual shooting game further comprises:
And responding to an aiming adjustment instruction, adjusting the aiming display area and updating the display of the aiming sight.
9. A control device for the display of a sight in a virtual shooting game is characterized by being applied to terminal equipment; wherein, the controlling means that foresight shows in the virtual shooting game includes:
the coordinate determination module is used for determining the three-dimensional space coordinate of the position aimed by the sighting telescope in the virtual game scene;
The coordinate conversion module is used for converting the three-dimensional space coordinate into a two-dimensional screen coordinate on a graphical user interface of the terminal equipment;
an area determination module to determine an aiming display area of the scope in the graphical user interface;
And the sight display module is used for displaying aiming sight according to the two-dimensional screen coordinates and the aiming display area.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a method of controlling a sight display in a virtual shooting game according to any one of claims 1 to 8.
11. An electronic device, comprising:
one or more processors;
Storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of controlling a sight display in a virtual shooting game according to any one of claims 1 to 8.
CN201910913891.2A 2019-09-25 2019-09-25 Control method and device for sight display in virtual shooting game, medium and equipment Active CN110559647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910913891.2A CN110559647B (en) 2019-09-25 2019-09-25 Control method and device for sight display in virtual shooting game, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910913891.2A CN110559647B (en) 2019-09-25 2019-09-25 Control method and device for sight display in virtual shooting game, medium and equipment

Publications (2)

Publication Number Publication Date
CN110559647A true CN110559647A (en) 2019-12-13
CN110559647B CN110559647B (en) 2023-07-14

Family

ID=68782519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910913891.2A Active CN110559647B (en) 2019-09-25 2019-09-25 Control method and device for sight display in virtual shooting game, medium and equipment

Country Status (1)

Country Link
CN (1) CN110559647B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113256710A (en) * 2021-05-21 2021-08-13 深圳市慧鲤科技有限公司 Method and device for displaying foresight in game, computer equipment and storage medium
CN113769398A (en) * 2021-09-14 2021-12-10 网易(杭州)网络有限公司 Processing method, device and equipment of virtual sighting telescope and storage medium
CN113797538A (en) * 2021-09-06 2021-12-17 网易(杭州)网络有限公司 Method, device, terminal and storage medium for displaying front sight
CN115471550A (en) * 2022-08-31 2022-12-13 北京四维远见信息技术有限公司 2.5-dimensional image space geometric azimuth correction method, device, equipment and medium
CN116669822A (en) * 2020-09-11 2023-08-29 拳头游戏公司 Improved targeting of remote objects in multiplayer games
CN117237409A (en) * 2023-09-06 2023-12-15 广州飞漫思维数码科技有限公司 Shooting game sight correction method and system based on Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013158456A (en) * 2012-02-03 2013-08-19 Konami Digital Entertainment Co Ltd Game device, game system, control method of game device and program
CN103520921A (en) * 2013-10-18 2014-01-22 深圳市宇恒互动科技开发有限公司 Cursor control method and system and control device
CN107913515A (en) * 2017-10-25 2018-04-17 网易(杭州)网络有限公司 Information processing method and device, storage medium, electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0359950B1 (en) * 1988-09-23 1994-05-11 Oerlikon-Contraves AG Method and sighting apparatus for the coarse alignment of fire and weapon control systems
CN108744511B (en) * 2018-05-30 2022-11-29 腾讯科技(深圳)有限公司 Method, device and storage medium for displaying sighting telescope in virtual environment
CN109701280A (en) * 2019-01-24 2019-05-03 网易(杭州)网络有限公司 The control method and device that foresight is shown in a kind of shooting game

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013158456A (en) * 2012-02-03 2013-08-19 Konami Digital Entertainment Co Ltd Game device, game system, control method of game device and program
CN103520921A (en) * 2013-10-18 2014-01-22 深圳市宇恒互动科技开发有限公司 Cursor control method and system and control device
CN107913515A (en) * 2017-10-25 2018-04-17 网易(杭州)网络有限公司 Information processing method and device, storage medium, electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张循和: "游戏中的枪械瞄具", 《轻兵器》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116669822A (en) * 2020-09-11 2023-08-29 拳头游戏公司 Improved targeting of remote objects in multiplayer games
CN113256710A (en) * 2021-05-21 2021-08-13 深圳市慧鲤科技有限公司 Method and device for displaying foresight in game, computer equipment and storage medium
CN113797538A (en) * 2021-09-06 2021-12-17 网易(杭州)网络有限公司 Method, device, terminal and storage medium for displaying front sight
CN113797538B (en) * 2021-09-06 2024-06-11 网易(杭州)网络有限公司 Method, device, terminal and storage medium for sight display
CN113769398A (en) * 2021-09-14 2021-12-10 网易(杭州)网络有限公司 Processing method, device and equipment of virtual sighting telescope and storage medium
CN115471550A (en) * 2022-08-31 2022-12-13 北京四维远见信息技术有限公司 2.5-dimensional image space geometric azimuth correction method, device, equipment and medium
CN117237409A (en) * 2023-09-06 2023-12-15 广州飞漫思维数码科技有限公司 Shooting game sight correction method and system based on Internet of things

Also Published As

Publication number Publication date
CN110559647B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN110559647B (en) Control method and device for sight display in virtual shooting game, medium and equipment
US20200330866A1 (en) Location indication information display method, electronic apparatus, and storage medium
CN109847336B (en) Virtual scene display method and device, electronic equipment and storage medium
US11880956B2 (en) Image processing method and apparatus, and computer storage medium
US11423518B2 (en) Method and device of correcting image distortion, display device, computer readable medium, electronic device
EP3978089A1 (en) Interactive method and system based on augmented reality device, electronic device, and computer readable medium
US20170186219A1 (en) Method for 360-degree panoramic display, display module and mobile terminal
CN110362193B (en) Target tracking method and system assisted by hand or eye tracking
JP7403249B2 (en) Systems and methods for foveal simulation
KR100962557B1 (en) Augmented reality implementation apparatus and method of the same
CN111275801A (en) Three-dimensional picture rendering method and device
US20240071016A1 (en) Mixed reality system, program, mobile terminal device, and method
CN112384843A (en) Dynamic panel mask
US20240144617A1 (en) Methods and systems for anchoring objects in augmented or virtual reality
CN108553895A (en) User interface element and the associated method and apparatus of three-dimensional space model
CN110706283A (en) Calibration method and device for sight tracking, mobile terminal and storage medium
CN115525152A (en) Image processing method, system, device, electronic equipment and storage medium
CN111569414A (en) Flight display method and device of virtual aircraft, electronic equipment and storage medium
CN110286906B (en) User interface display method and device, storage medium and mobile terminal
CN113903210A (en) Virtual reality simulation driving method, device, equipment and storage medium
JP7287172B2 (en) Display control device, display control method, and program
CN114827569B (en) Picture display method and device, virtual reality equipment and storage medium
US11748938B2 (en) Virtual reality simulator and virtual reality simulation program
CN116785703A (en) Information display method and device and computing equipment
Scherfgen et al. A robust inside-out approach for 3D interaction with large displays

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant