CN112619143A - 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
CN112619143A
CN112619143A CN202011544809.2A CN202011544809A CN112619143A CN 112619143 A CN112619143 A CN 112619143A CN 202011544809 A CN202011544809 A CN 202011544809A CN 112619143 A CN112619143 A CN 112619143A
Authority
CN
China
Prior art keywords
role
hanging point
position information
target
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
CN202011544809.2A
Other languages
Chinese (zh)
Other versions
CN112619143B (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 CN202011544809.2A priority Critical patent/CN112619143B/en
Publication of CN112619143A publication Critical patent/CN112619143A/en
Application granted granted Critical
Publication of CN112619143B publication Critical patent/CN112619143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5372Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for tagging characters, objects or locations in the game scene, e.g. displaying a circle under the character controlled by the player
    • 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/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/426Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
    • 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/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • A63F13/577Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using determination of contact between game characters or objects, e.g. to avoid collision between virtual racing cars
    • 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/55Controlling game characters or game objects based on the game progress
    • A63F13/58Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
    • 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/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/303Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (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 arranged on a target skeleton or mesh of a current 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, and determining the position information of the role identifier according to the position information of the target hanging point by the technical scheme of the invention. 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. The game role is changeable in game scene and game role form, the effect is poor by taking the collision box as a single judgment standard, the appearance design of the game role is more and more complex and exquisite, the collision box is adopted for collision detection, the calculation amount is large, the calculation efficiency is low, and 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, a role identification display equipment and a role identification display storage medium, which are used for setting a target hanging point on a target skeleton or mesh of a current 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 arranged on a target skeleton or mesh of a current 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 acquisition module, a first display module and a second acquisition module, wherein the first acquisition module is used for acquiring the position information of a target hanging point, and the target hanging point is arranged on a target skeleton or mesh of a current 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.
According to the embodiment of the invention, the target hanging point is arranged on the target skeleton or mesh of the current 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.
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 role identifier display provided in an embodiment of the present invention, where this embodiment is applicable to a case of displaying role identifiers, and the method may be executed by a role identifier display apparatus in an embodiment of the present invention, and 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, obtaining position information of a target hanging point, wherein the target hanging point is arranged on a target skeleton or mesh of the current 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.
Specifically, based on a game role modeling technology, each game role is composed of different numbers of bones, a layer of Mesh is covered on the bones to be used as skin, the Mesh is composed of vertexes, a link is established between the vertexes and the bone link, and the Mesh is driven to move when the bones move. The target hanging point is a mark point arranged on a target skeleton or mesh of the current game role, and the target skeleton or mesh can be any skeleton or corresponding mesh of the game role, for example, the skeleton or mesh at the top of the game role and the skeleton or mesh at the corner of the game role. The target hanging point may be set by automatically generating a null node with a fixed position by using a tool, for example, a hanging point named MoveHead may be additionally added to Prefab.
In addition, the target hanging point is arranged on the target skeleton or the mesh of the current game role, and the game role can generate various motion forms such as jumping, running, squatting and the like in a game scene, so that the positions of the skeleton and the mesh are changed. Therefore, the position of the target hanging point can also be changed correspondingly along with the motion form of the current game role.
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, when the movement form of the character is changed in the prior art, the display position of the character mark may be deviated from the optimal position, which may bring a bad experience to the game player. For example, the character identification may appear above both feet of some characters when the game character is lying down. As shown in fig. 1b, in the role identifier display method in this embodiment, the role identifier is bound to the target hanging point 101, the target hanging point 101 is set on a target skeleton or mesh of a current role, when a body of the role is greatly inclined, the role identifier and the target hanging point may be adjusted to always display the identifier information of the role above the game role, and a connection line between a center point of the role identifier and the target hanging point is perpendicular to a 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 identity information 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 arranged on the target skeleton or mesh of the current 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 position information of a target hanging point, where the target hanging point is set on a target skeleton or mesh of a current 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 arranged on the target skeleton or mesh of the current 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 arranged on a target skeleton or mesh of a current 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 arranged on a target skeleton or mesh of a current 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 arranged on a target skeleton or mesh of a current 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.
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 acquisition module, a first display module and a second acquisition module, wherein the first acquisition module is used for acquiring the position information of a target hanging point, and the target hanging point is arranged on a target skeleton or mesh of a current 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.
CN202011544809.2A 2020-12-23 2020-12-23 Role identification display method, device, equipment and storage medium Active CN112619143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011544809.2A CN112619143B (en) 2020-12-23 2020-12-23 Role identification display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011544809.2A CN112619143B (en) 2020-12-23 2020-12-23 Role identification display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112619143A true CN112619143A (en) 2021-04-09
CN112619143B CN112619143B (en) 2023-03-21

Family

ID=75322070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011544809.2A Active CN112619143B (en) 2020-12-23 2020-12-23 Role identification display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112619143B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113101634A (en) * 2021-04-19 2021-07-13 网易(杭州)网络有限公司 Virtual map display method and device, electronic equipment and storage medium
CN113101636A (en) * 2021-04-19 2021-07-13 网易(杭州)网络有限公司 Information display method and device of virtual object, electronic equipment and storage medium
CN114882153A (en) * 2022-04-01 2022-08-09 网易(杭州)网络有限公司 Animation generation method and device

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
US20180236357A1 (en) * 2017-02-22 2018-08-23 Kabushiki Kaisha Square Enix (Also Trading As Squa Re Enix Co., Ltd.) Program and system
US20190138803A1 (en) * 2016-05-13 2019-05-09 Sony Corporation Image processing apparatus, image processing system, and image processing method, and program
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
CN110898431A (en) * 2019-12-03 2020-03-24 网易(杭州)网络有限公司 Display control method and device of information in virtual reality game
CN111437606A (en) * 2020-03-30 2020-07-24 腾讯科技(深圳)有限公司 Collision detection method and device, storage medium and electronic device
CN112090070A (en) * 2020-09-18 2020-12-18 腾讯科技(深圳)有限公司 Interaction method and device of virtual props and electronic equipment

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
US20190138803A1 (en) * 2016-05-13 2019-05-09 Sony Corporation Image processing apparatus, image processing system, and image processing method, and program
US20180236357A1 (en) * 2017-02-22 2018-08-23 Kabushiki Kaisha Square Enix (Also Trading As Squa Re Enix Co., Ltd.) Program and system
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
CN110898431A (en) * 2019-12-03 2020-03-24 网易(杭州)网络有限公司 Display control method and device of information in virtual reality game
CN111437606A (en) * 2020-03-30 2020-07-24 腾讯科技(深圳)有限公司 Collision detection method and device, storage medium and electronic device
CN112090070A (en) * 2020-09-18 2020-12-18 腾讯科技(深圳)有限公司 Interaction method and device of virtual props and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113101634A (en) * 2021-04-19 2021-07-13 网易(杭州)网络有限公司 Virtual map display method and device, electronic equipment and storage medium
CN113101636A (en) * 2021-04-19 2021-07-13 网易(杭州)网络有限公司 Information display method and device of virtual object, electronic equipment and storage medium
CN113101634B (en) * 2021-04-19 2024-02-02 网易(杭州)网络有限公司 Virtual map display method and device, electronic equipment and storage medium
CN114882153A (en) * 2022-04-01 2022-08-09 网易(杭州)网络有限公司 Animation generation method and device

Also Published As

Publication number Publication date
CN112619143B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN112619143B (en) Role identification display method, device, equipment and storage medium
US9144744B2 (en) Locating and orienting device in space
US10363486B2 (en) Smart video game board system and methods
CN110473293B (en) Virtual object processing method and device, storage medium and electronic equipment
CN110533723A (en) The determination method and device of method, posture information that augmented reality is shown
US8994727B2 (en) Map symbol drawing device
CN113359986B (en) Augmented reality data display method and device, electronic equipment and storage medium
CN110478898B (en) Configuration method and device of virtual scene in game, storage medium and electronic equipment
CN107992036A (en) Transport Vehicle paths planning method, device and storage medium in a kind of intelligent parking garage
CN113209617A (en) Virtual object marking method and device
CN112546631B (en) Role control method, device, equipment and storage medium
CN109857259A (en) Collision body interaction control method and device, electronic equipment and storage medium
CN112657191B (en) Character identification display 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
CN112642155B (en) Role control method, device, equipment and storage medium
CN112657199B (en) Role arm length calculation method, device, equipment and storage medium
CN112915540B (en) Data processing method, device and equipment for virtual scene and storage medium
CN112657200B (en) Role control method, device, equipment and storage medium
JP2024505591A (en) How to land beacons and drones
CN106774974B (en) The method and apparatus of output information
CN112435317A (en) Anti-threading method and device in game, electronic equipment and storage medium
KR102315842B1 (en) System for providing carom billards guidance service using reinforcement learning of deep learning model
CN112435315B (en) Anti-threading method and device in game, electronic equipment and storage medium
CN113821855A (en) BIM-based gantry crane construction simulation method, device and medium
Sherstyuk et al. Collision-free navigation with extended terrain maps

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