CN112657191A - Role identification display method, device, equipment and storage medium - Google Patents

Role identification display method, device, equipment and storage medium Download PDF

Info

Publication number
CN112657191A
CN112657191A CN202011544818.1A CN202011544818A CN112657191A CN 112657191 A CN112657191 A CN 112657191A CN 202011544818 A CN202011544818 A CN 202011544818A CN 112657191 A CN112657191 A CN 112657191A
Authority
CN
China
Prior art keywords
role
hanging point
position information
target hanging
obstacle
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
CN202011544818.1A
Other languages
Chinese (zh)
Other versions
CN112657191B (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.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming Technology 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 Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN202011544818.1A priority Critical patent/CN112657191B/en
Publication of CN112657191A publication Critical patent/CN112657191A/en
Application granted granted Critical
Publication of CN112657191B publication Critical patent/CN112657191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a role identification display method, a role identification display device, a role identification display equipment and a storage medium. The method comprises the following steps: acquiring position information of a target hanging point, wherein the target hanging point is bound with a root point of a role; determining the position information of a role identifier according to the position information of the target hanging point, wherein the role identifier is bound with the target hanging point; and displaying the role identification according to the position information of the role identification. According to the technical scheme of the invention, the position information of the role identification can be determined according to the position information of the target hanging point. Meanwhile, whether the game role can pass through the barrier or not is judged according to the double judgment standards of the hanging point and the collision box, so that the operation precision is improved, and the game experience of the player is improved. When the game role can not pass through the obstacle according to the hanging point judgment, whether the game role can pass through the obstacle or not is judged without a collision box, so that the calculation amount is greatly reduced, the calculation efficiency is improved, and the smoothness of the game is improved.

Description

Role identification display method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of games, in particular to a role identification display method, a role identification display device, role identification equipment and a storage medium.
Background
With the rapid development of the internet, the network game industry comes to birth and develops vigorously, and the network game has become a sunrise industry with great potential and wide development prospect in the current society. However, with the rapid development of the gaming industry, game players have placed higher demands on the gaming experience. In a network game, in order for a player to recognize the identity of another game player and to grasp the state of the player and another game character in real time, it is necessary to display character identification information in the vicinity of the character. In the prior art, if the body of a character is greatly inclined, the identification information of the character may deviate from the optimal display position, and the impression experience of a game player is greatly influenced. When judging whether a character can pass through an obstacle, collision detection is generally performed by using a collision box. However, the shapes of the game scene and the game role are changeable, the effect is not good when the collision box is used as a single judgment standard, and the appearance design of the game role is more and more complex and exquisite, so that the collision detection is carried out by adopting the collision box, the calculation amount is large, the calculation efficiency is low, and the extremely poor game experience is brought to game players.
Disclosure of Invention
The embodiment of the invention provides a role identification display method, a role identification display device and a role identification display storage medium, which are used for binding a target hanging point and a root point of a role and determining the position information of a role identification according to the position information of the target hanging point. Meanwhile, whether the game role can pass through the barrier or not is judged according to double judgment standards of the hanging point and the collision box.
In a first aspect, an embodiment of the present invention provides a role identifier display method, including:
acquiring position information of a target hanging point, wherein the target hanging point is bound with a root point of a role;
determining the position information of a role identifier according to the position information of the target hanging point, wherein the role identifier is bound with the target hanging point;
and displaying the role identifier according to the position information of the role identifier.
Further, the role identification includes: name, ID, physical strength, blood volume, and bulletin board.
Further, the method also comprises the following steps:
acquiring attribute information of objects in the area around the role;
and controlling the role according to the position information of the target hanging point and the attribute information of the object.
Further, controlling the role according to the position information of the target hanging point and the attribute information of the object, including:
and if the object is determined to be the obstacle according to the attribute information of the object, judging whether the character can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the character.
Further, judging whether the character can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the character comprises the following steps:
if the grid vertex of the obstacle and the role identification are determined not to be collided according to the position information of the target hanging point, and the role is determined not to be collided with the obstacle according to a collision box corresponding to the role, determining that the role can pass through the obstacle;
and if the mesh vertex of the obstacle is determined to collide with the role identifier according to the position information of the target hanging point, determining that the role cannot pass through the obstacle.
In a second aspect, an embodiment of the present invention further provides a role identifier display apparatus, where the apparatus includes:
the system comprises a first obtaining module, a first judging module and a second obtaining module, wherein the first obtaining module is used for obtaining the position information of a target hanging point, and the target hanging point is bound with a root point of a role;
the determining module is used for determining the position information of the role identifier according to the position information of the target hanging point, wherein the role identifier is bound with the target hanging point;
and the display module is used for displaying the role identification according to the position information of the role identification.
Further, the role identification includes: name, ID, physical strength, blood volume, and bulletin board.
Further, the method also comprises the following steps:
the second acquisition module is used for acquiring the attribute information of the objects in the area around the role;
and the control module is used for controlling the role according to the position information of the target hanging point and the attribute information of the object.
Further, the control module is specifically configured to:
and if the object is determined to be the obstacle according to the attribute information of the object, judging whether the character can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the character.
Further, the control module is further configured to:
if the grid vertex of the obstacle and the role identification are determined not to be collided according to the position information of the target hanging point, and the role is determined not to be collided with the obstacle according to a collision box corresponding to the role, determining that the role can pass through the obstacle;
and if the mesh vertex of the obstacle is determined to collide with the role identifier according to the position information of the target hanging point, determining that the role cannot pass through the obstacle.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the role identification display method according to any one of the embodiments of the present invention when executing the computer program.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the role identification display method according to any one of the embodiments of the present invention.
The embodiment of the invention binds the target hanging point and the root point of the role and can determine the position information of the role identification according to the position information of the target hanging point. Meanwhile, whether the game role can pass through the barrier or not is judged according to the double judgment standards of the hanging point and the collision box, so that the operation precision is improved, and the game experience of the player is improved. When the game role can not pass through the obstacle according to the hanging point judgment, whether the game role can pass through the obstacle or not is judged without a collision box, so that the calculation amount is greatly reduced, the calculation efficiency is improved, and the smoothness of the game is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a role identification display method according to a first embodiment of the present invention;
FIG. 1a is a diagram of a prior art role identification display location;
FIG. 1b is a diagram illustrating a display position of a character identifier according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a role identification display apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device in a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of a role identifier display method according to an embodiment of the present invention, where this embodiment is applicable to a case of displaying a role identifier, and the method may be executed by a role identifier display apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s110, position information of a target hanging point is obtained, wherein the target hanging point is bound with a root point of a role.
The role refers to the current role of the player in the game, and may be a secondary character such as raly, or other living creature, and the player may switch the current role as required in the game process, for example, may switch the current role from raly a to raly B.
Based on the game character modeling technique, the root point of the current character is a root skeleton displacement point of the current character, and represents the entire motion of the character. Generally, in most game applications, the movement and animation of the player are separated, the movement system is only responsible for processing the position and rotation of the player, and the animation system only performs corresponding animation. Therefore, it is necessary to set a root point of the character for representing the overall motion of the current character so that the moving position of the character perfectly matches the animation.
For example, the setting position of the root point may be set according to a user requirement, for example, the root point may be set at a position away from a midpoint of a two-foot connection line of the current character by a preset distance, which is not limited in this embodiment of the present invention. The root point of the general character is set on the projection of the center of gravity of the current character between the feet.
Specifically, position information of the target hanging point is obtained, the target hanging point is bound with the root point of the current role, and the relative positions of the root point and the target hanging point are unchanged. When the current role jumps, the root point of the current role changes, and the target hanging point changes along with the height change of the root point of the current role. When the current character walks, joggs and squats, the root point can incline forwards and backwards or backwards, but the height change cannot occur, so that the target hanging point bound with the root point of the current character cannot be changed in height. That is, the distance between the target hanging point and the root point of the current character is always kept constant, and the target hanging point changes with the change in the height of the root point of the current character.
And S120, determining the position information of the role identification according to the position information of the target hanging point, wherein the role identification is bound with the target hanging point.
The role identification is used for displaying the identity information and the current state of the role. The identity information of the character may be the name and ID of the character, and the current state of the character may be the physical strength, blood volume, offensive power, and defensive power of the user.
Specifically, the role identifier and the target hanging point are bound, the binding distance between the role identifier and the target hanging point is kept unchanged, and the position information of the role identifier is determined according to the position information of the target hanging point.
For example, the manner of determining the location information of the role identifier according to the location information of the target hanging point may be: the distance between the position of the character identifier and the target hanging point is kept unchanged, and the position of the target hanging point can be adjusted according to the motion state of the current character. The role identification and the target hanging point are bound, and the advantages are that: the display position of the character identifier can be adjusted on a circle which takes the target hanging point as the center and the binding distance between the character identifier and the target hanging point as the radius, so that the position information of the character identifier can be changed according to the motion state of the game character. For example, when the game character moves straight, the character identifier can be displayed above the top of the character, and the connecting line between the central point of the character identifier and the target hanging point is perpendicular to the horizontal plane.
Note that the best display position of the character logo is 2cm above the top of the character. As shown in fig. 1a, in the prior art, when the movement form of the character changes, the display position of the character mark deviates from the optimal position, which brings a poor experience to the game player, for example, when the body of the character is greatly inclined in the prior art, the character mark may be displayed at the top of the character and further displayed above the top of the head, the back or the feet of the character along with the deviation. For example, character identification may appear on both feet of some characters while the game character is swimming. As shown in fig. 1b, in the role identifier display method in this embodiment, the role identifier is bound to the target hanging point 102, the target hanging point 102 is bound to the root point 101, when the body of the role is greatly tilted, the role identifier and the position of the target hanging point can be adjusted, so that the identifier information of the role is always displayed above the game role, and the connection line between the center point of the role identifier and the target hanging point is perpendicular to the horizontal plane.
Further, since the display position of the character marker needs to be set as the movement form of the character changes, the marker position of each character needs to be arranged when modeling the game character. The role identification and the target hanging point are bound, and the advantages are that: for different game roles, the positions of the role identifiers can be changed by changing the positions of the target hanging points, and the positions of the role identifiers do not need to be determined one by one.
Optionally, the role identification includes: name, ID, physical strength, blood volume, and bulletin board.
Wherein the name is generally assigned by the system for representing the identity of the role. The ID may be assigned by the system or defined by the user, the ID has uniqueness, and the user may set the initial ID when registering the game account, or modify the initial ID according to rules. The ID may be any combination of chinese characters, letters, or symbols, which is not limited in this embodiment of the present invention. The physical strength and blood volume can be changed in real time according to the current state of the character. The bulletin board is used for displaying identity information or status information of the character, for example, the name, ID, physical strength and blood volume of the user can be displayed on the bulletin board. Preferably, the bulletin board is configured to be transparent.
And S130, displaying the role identifier according to the position information of the role identifier.
Specifically, the identification of the character is displayed at the corresponding position according to the position information of the character identification, so that the user can identify the identities of other game characters in the game process and acquire the states of the character of the user and the characters of other game players in real time. Optionally, the method further includes:
acquiring attribute information of objects in the area around the role;
and controlling the role according to the position information of the target hanging point and the attribute information of the object.
The attribute information of the object in the area around the current character may be at least one of a position, a height, a volume, a material, a value, a usage, and a type of the object.
The object in the area around the current character may be an object whose distance from the current character is less than a set distance, for example, an object whose distance from the current character is less than 5 meters may be obtained.
The object may be a fixed object, such as a cave, a door frame, a stone, etc., a living body, such as a monster and other game characters, etc., or any object or living body that blocks the current character from continuing to travel. For example, the object may be another romance, a monster, a stone, or a cave, which is not limited in this embodiment of the present invention.
Specifically, the position information and the type of the object are determined according to the attribute information of the object, and the type may be an obstacle or a target object. And controlling the current role according to the position of the target hanging point, the type and the position information of the object.
For example, if the object is determined to be an obstacle according to the attribute information of the object, whether the current character can pass through the obstacle is determined according to the position information of the target hanging point and the position information of the obstacle. And if the object is determined to be the target object according to the attribute information of the object, judging whether the current role can pick up the target object according to the position information of the target hanging point and the position information of the target object.
Optionally, controlling the role according to the position information of the target hanging point and the attribute information of the object includes:
and if the object is determined to be the obstacle according to the attribute information of the object, judging whether the character can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the character.
Specifically, the object is determined to be an obstacle according to the attribute information of the object, the obstacle is an object capable of colliding with the current character, the obstacle may be a fixed object, such as a cave, a door frame, a stone, etc., may be a living body, such as a monster and other game characters, etc., or may be any object or living body that blocks the current character from continuing to travel.
Specifically, the method for judging whether the current role can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the current role may be: determining whether the current role can pass through the barrier according to the position information of the target hanging point, and judging whether the current role can pass through the barrier according to a collision box corresponding to the current role; or judging whether the current role can pass through the obstacle according to a collision box corresponding to the current role, and then determining whether the current role can pass through the obstacle according to the position information of the target hanging point; and determining whether the current role can pass through the obstacle according to the position information of the target hanging point while judging whether the current role can pass through the obstacle according to the collision box corresponding to the current role.
It should be noted that, since whether the current role can pass through the obstacle is determined according to the position information of the target hanging point, it is only required to calculate whether the target hanging point can pass through the obstacle, and the calculation amount is small. And judging whether the current role can pass through the obstacle according to the collision box corresponding to the current role, wherein whether each collision box corresponding to the current role collides with the obstacle needs to be calculated, and each game role may have a plurality of collision boxes, for example, the head, the body and the limbs of the game role are respectively one collision box. The three-dimensional shape of the crash box is determined according to the three-dimensional structure of the character, and the more the three-dimensional shape of the crash box is close to the three-dimensional structure of the character, the more accurate the crash analysis is, and the more the calculation amount of the crash analysis is. Therefore, a large amount of calculation is required to determine whether the current character can pass through the obstacle according to the collision box corresponding to the current character. In this embodiment, it is preferable to determine whether the current role can pass through the obstacle according to the position information of the target hanging point, and then determine whether the current role can pass through the obstacle according to the collision box corresponding to the current role, so as to reduce the amount of collision analysis calculation for determining whether the current role can pass through the obstacle.
Optionally, the determining whether the role can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the role includes:
if the grid vertex of the obstacle and the role identification are determined not to be collided according to the position information of the target hanging point, and the role is determined not to be collided with the obstacle according to a collision box corresponding to the role, determining that the role can pass through the obstacle;
and if the mesh vertex of the obstacle is determined to collide with the role identifier according to the position information of the target hanging point, determining that the role cannot pass through the obstacle.
Based on a game scene modeling technology, obstacles in the online game are objects or life bodies formed by different numbers of triangles, and a grid structure covering the objects is obtained.
Specifically, the collision analysis is performed on the target hanging point and each grid vertex corresponding to the obstacle, and the collision analysis is performed on the collision box of the current role and the grid vertex corresponding to the obstacle. And if the target hanging point does not collide with each grid vertex corresponding to the obstacle, and the collision box of the current role does not collide with the grid vertex corresponding to the obstacle, determining that the current role can pass through the obstacle.
The advantages of such an arrangement are: whether the current role can pass through the obstacle or not is judged only according to the collision box corresponding to the current role, but if the motion state of the current role is changed greatly instantly, the role can be blocked in the obstacle. Therefore, whether the current role can pass through the barrier or not is judged according to the position information of the target hanging point and the collision box corresponding to the current role. And if the target hanging point does not collide with each grid vertex corresponding to the obstacle, and the collision box of the current role does not collide with the grid vertex corresponding to the obstacle, determining that the current role can pass through the obstacle.
According to the technical scheme of the embodiment, the target hanging point is bound with the root point of the role, so that the position information of the role identification can be determined according to the position information of the target hanging point. Meanwhile, whether the game role can pass through the barrier or not is judged according to the double judgment standards of the hanging point and the collision box, so that the operation precision is improved, and the game experience of the player is improved. When the game role can not pass through the obstacle according to the hanging point judgment, whether the game role can pass through the obstacle or not is judged without a collision box, so that the calculation amount is greatly reduced, the calculation efficiency is improved, and the smoothness of the game is improved.
Example two
Fig. 2 is a schematic structural diagram of a role identification display apparatus according to a second embodiment of the present invention. The present embodiment is applicable to the case of displaying a role identifier, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device providing a role identifier display function, as shown in fig. 2, where the role identifier display apparatus specifically includes: a first acquisition module 210, a determination module 220, and a display module 230.
The first obtaining module 210 is configured to obtain location information of a target hanging point, where the target hanging point is bound to a root point of a role;
a determining module 220, configured to determine location information of a role identifier according to the location information of the target hanging point, where the role identifier is bound to the target hanging point;
and a display module 230, configured to display the role identifier according to the location information of the role identifier.
Optionally, the role identification includes: name, ID, physical strength, blood volume, and bulletin board.
Optionally, the method further includes:
the second acquisition module is used for acquiring the attribute information of the objects in the area around the role;
and the control module is used for controlling the role according to the position information of the target hanging point and the attribute information of the object.
Optionally, the control module is specifically configured to:
and if the object is determined to be the obstacle according to the attribute information of the object, judging whether the character can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the character.
Optionally, the control module is further configured to:
if the grid vertex of the obstacle and the role identification are determined not to be collided according to the position information of the target hanging point, and the role is determined not to be collided with the obstacle according to a collision box corresponding to the role, determining that the role can pass through the obstacle;
and if the mesh vertex of the obstacle is determined to collide with the role identifier according to the position information of the target hanging point, determining that the role cannot pass through the obstacle.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme of the embodiment, the target hanging point is bound with the root point of the role, so that the position information of the role identification can be determined according to the position information of the target hanging point. Meanwhile, whether the game role can pass through the barrier or not is judged according to the double judgment standards of the hanging point and the collision box, so that the operation precision is improved, and the game experience of the player is improved. When the game role can not pass through the obstacle according to the hanging point judgment, whether the game role can pass through the obstacle or not is judged without a collision box, so that the calculation amount is greatly reduced, the calculation efficiency is improved, and the smoothness of the game is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer device in a third embodiment of the present invention. FIG. 3 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 3 is only an example and should not impose any limitation on the scope of use or functionality of embodiments of the present invention.
As shown in FIG. 3, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (a Compact disk-Read Only Memory (CD-ROM)), Digital Video disk (DVD-ROM), or other optical media may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. In the computer device 12 of the present embodiment, the display 24 is not provided as a separate body but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. Moreover, computer device 12 may also communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN)) and/or a public Network (e.g., the Internet) via Network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement the role identification display method provided by the embodiment of the present invention: acquiring position information of a target hanging point, wherein the target hanging point is bound with a root point of a role; determining the position information of a role identifier according to the position information of the target hanging point, wherein the role identifier is bound with the target hanging point; and displaying the role identifier according to the position information of the role identifier.
Example four
A fourth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a role identification display method according to any embodiment of the present invention: acquiring position information of a target hanging point, wherein the target hanging point is bound with a root point of a role; determining the position information of a role identifier according to the position information of the target hanging point, wherein the role identifier is bound with the target hanging point; and displaying the role identifier according to the position information of the role identifier.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (Hyper Text Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A character identification display method is characterized by comprising the following steps:
acquiring position information of a target hanging point, wherein the target hanging point is bound with a root point of a role;
determining the position information of a role identifier according to the position information of the target hanging point, wherein the role identifier is bound with the target hanging point;
and displaying the role identification according to the position information of the role identification.
2. The method of claim 1, wherein the role identification comprises: name, ID, physical strength, blood volume, and bulletin board.
3. The method of claim 1, further comprising:
acquiring attribute information of objects in the area around the role;
and controlling the role according to the position information of the target hanging point and the attribute information of the object.
4. The method of claim 3, wherein controlling the character according to the position information of the target hanging point and the attribute information of the object comprises:
and if the object is determined to be the obstacle according to the attribute information of the object, judging whether the character can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the character.
5. The method of claim 4, wherein determining whether the character can pass through the obstacle according to the position information of the target hanging point and a collision box corresponding to the character comprises:
if the grid vertex of the obstacle and the role identification are determined not to be collided according to the position information of the target hanging point, and the role is determined not to be collided with the obstacle according to a collision box corresponding to the role, determining that the role can pass through the obstacle;
and if the mesh vertex of the obstacle is determined to collide with the role identifier according to the position information of the target hanging point, determining that the role cannot pass through the obstacle.
6. A character recognition display apparatus, comprising:
the system comprises a first obtaining module, a first judging module and a second obtaining module, wherein the first obtaining module is used for obtaining the position information of a target hanging point, and the target hanging point is bound with a root point of a role;
the determining module is used for determining the position information of the role identifier according to the position information of the target hanging point, wherein the role identifier is bound with the target hanging point;
and the display module is used for displaying the role identification according to the position information of the role identification.
7. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring the attribute information of the objects in the area around the role;
and the control module is used for controlling the role according to the position information of the target hanging point and the attribute information of the object.
8. The apparatus of claim 7, wherein the control module is specifically configured to:
and if the object is determined to be the obstacle according to the attribute information of the object, judging whether the character can pass through the obstacle according to the position information of the target hanging point and the collision box corresponding to the character.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN202011544818.1A 2020-12-23 2020-12-23 Character identification display method, device, equipment and storage medium Active CN112657191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011544818.1A CN112657191B (en) 2020-12-23 2020-12-23 Character identification display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011544818.1A CN112657191B (en) 2020-12-23 2020-12-23 Character identification display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112657191A true CN112657191A (en) 2021-04-16
CN112657191B CN112657191B (en) 2023-04-28

Family

ID=75408168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011544818.1A Active CN112657191B (en) 2020-12-23 2020-12-23 Character identification display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112657191B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001100731A (en) * 1999-09-28 2001-04-13 Toshiba Corp Object picture display device
US20040209684A1 (en) * 2002-10-15 2004-10-21 Namco Ltd. Method of controlling game system, program, information storage medium and game system
JP2017144026A (en) * 2016-02-17 2017-08-24 株式会社北電子 Game machine
CN108196669A (en) * 2017-12-14 2018-06-22 网易(杭州)网络有限公司 Modification method, device, processor and the head-mounted display apparatus of avatar model
CN108714303A (en) * 2018-05-16 2018-10-30 深圳市腾讯网络信息技术有限公司 Collision checking method, equipment and computer readable storage medium
CN110665230A (en) * 2019-09-26 2020-01-10 腾讯科技(深圳)有限公司 Virtual role control method, device, equipment and medium in virtual world
CN110689604A (en) * 2019-05-10 2020-01-14 腾讯科技(深圳)有限公司 Personalized face model display method, device, equipment and storage medium
CN111054070A (en) * 2019-12-17 2020-04-24 上海米哈游天命科技有限公司 Game-based commodity display method and device, terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001100731A (en) * 1999-09-28 2001-04-13 Toshiba Corp Object picture display device
US20040209684A1 (en) * 2002-10-15 2004-10-21 Namco Ltd. Method of controlling game system, program, information storage medium and game system
JP2017144026A (en) * 2016-02-17 2017-08-24 株式会社北電子 Game machine
CN108196669A (en) * 2017-12-14 2018-06-22 网易(杭州)网络有限公司 Modification method, device, processor and the head-mounted display apparatus of avatar model
CN108714303A (en) * 2018-05-16 2018-10-30 深圳市腾讯网络信息技术有限公司 Collision checking method, equipment and computer readable storage medium
CN110689604A (en) * 2019-05-10 2020-01-14 腾讯科技(深圳)有限公司 Personalized face model display method, device, equipment and storage medium
CN110665230A (en) * 2019-09-26 2020-01-10 腾讯科技(深圳)有限公司 Virtual role control method, device, equipment and medium in virtual world
CN111054070A (en) * 2019-12-17 2020-04-24 上海米哈游天命科技有限公司 Game-based commodity display method and device, terminal and storage medium

Also Published As

Publication number Publication date
CN112657191B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN112619143B (en) Role identification display method, device, equipment and storage medium
CN107633317B (en) Method and device for establishing journey planning model and planning journey
CN104335268B (en) For changing the mthods, systems and devices for providing 3-D transition animation for map view
US9144744B2 (en) Locating and orienting device in space
CN110660219A (en) Parking lot parking prediction method and device
US9370721B2 (en) Systems and methods for creating a playable video game from a static model
CN104076920A (en) Information processing apparatus, information processing method, and storage medium
CN113359986B (en) Augmented reality data display method and device, electronic equipment and storage medium
US8994727B2 (en) Map symbol drawing device
CN113209617A (en) Virtual object marking method and device
CN112546631B (en) Role control method, device, equipment and storage medium
CN112657191B (en) Character identification display method, device, equipment and storage medium
CN108076227A (en) A kind of control method and mobile terminal for mobile terminal
CN112642155B (en) Role control method, device, equipment and storage medium
CN112657201B (en) Role arm length determining method, role arm length determining device, role arm length determining equipment and storage medium
CN112657200B (en) Role control method, device, equipment and storage medium
CN112657199B (en) Role arm length calculation method, device, equipment and storage medium
CN115193042A (en) Display control method, display control device, electronic equipment and storage medium
CN108983954A (en) Data processing method, device and system based on virtual reality
CN106774974B (en) The method and apparatus of output information
KR102315842B1 (en) System for providing carom billards guidance service using reinforcement learning of deep learning model
CN112791418B (en) Determination method and device of shooting object, electronic equipment and storage medium
Sherstyuk et al. Collision-free navigation with extended terrain maps
KR20220120263A (en) Game ui analyzing method
CN116785706A (en) Display control method, display control device, electronic equipment and medium

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