CN111054072A - Role model trailing method, device, equipment and storage medium - Google Patents
Role model trailing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111054072A CN111054072A CN201911302788.0A CN201911302788A CN111054072A CN 111054072 A CN111054072 A CN 111054072A CN 201911302788 A CN201911302788 A CN 201911302788A CN 111054072 A CN111054072 A CN 111054072A
- Authority
- CN
- China
- Prior art keywords
- information
- vertex
- attribute information
- trailing
- model
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000033001 locomotion Effects 0.000 claims abstract description 34
- 230000009466 transformation Effects 0.000 claims description 14
- 238000000605 extraction Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 5
- 238000009877 rendering Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000010076 replication Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/56—Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/60—Methods for processing data by generating or executing the game program
- A63F2300/66—Methods for processing data by generating or executing the game program for rendering three dimensional images
- A63F2300/6646—Methods for processing data by generating or executing the game program for rendering three dimensional images for the computation and display of the shadow of an object or character
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Image Generation (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a storage medium for trailing a role model. The method comprises the following steps: extracting first attribute information of each vertex in the role model; when the movement instruction is determined to be received, extracting second attribute information of each vertex after the role model is transformed according to the movement instruction; determining offset information of each vertex according to the first attribute information and the second attribute information; and carrying out tailing on the character model according to the offset information. The initial attribute information of each vertex of the role model is obtained, the offset information of each vertex is determined according to the second attribute information after the movement instruction is converted, and the role model is subjected to tailing according to the offset information of each vertex.
Description
Technical Field
The embodiment of the invention relates to the technical field of graphic processing, in particular to a role model trailing method, a role model trailing device, a role model trailing equipment and a role model trailing storage medium.
Background
In the field of game design, the real experience of a user in a game process is often increased by adding a dynamic effect to a game character, and the dynamic effect of character movement is generally realized by adding a tailing to the character.
The inventor finds that at least the following problems exist in the prior art: in the prior art, the trailing of a game role is usually realized by adopting a default line set in advance for the original game role, and the default line is irrelevant to elements contained in the game role, so that the trailing realized by the default line cannot be well matched with the body of the game role and perfectly fused with the action of the game role.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for trailing a role model. To achieve a good match of the character model to the tail.
In a first aspect, an embodiment of the present invention provides a method for trailing a role model, including: extracting first attribute information of each vertex in the role model, wherein the first attribute information comprises initial position information and color information;
when the movement instruction is determined to be received, extracting second attribute information of each vertex of the role model after transformation according to the movement instruction, wherein the second attribute information comprises transformed position information and color information;
determining offset information of each vertex according to the first attribute information and the second attribute information;
and carrying out tailing on the character model according to the offset information.
In a second aspect, an embodiment of the present invention provides a device for trailing a character model, including: the first attribute information extraction module is used for extracting first attribute information of each vertex in the role model, wherein the first attribute information comprises initial position information and color information;
the second attribute information extraction module is used for extracting second attribute information of each vertex after the role model is transformed according to the movement instruction when the movement instruction is determined to be received, wherein the second attribute information comprises transformed position information and color information;
the offset information determining module is used for determining the offset information of each vertex according to the first attribute information and the second attribute information;
and the role model tailing module is used for tailing the role model according to the offset information.
In a third aspect, an embodiment of the present invention provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods of any of the embodiments of the present invention.
In a fourth aspect, the embodiments of the present invention further provide a computer storage medium, on which a computer program is stored, which when executed by a processor implements the method according to any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the initial attribute information of each vertex of the role model is obtained, the offset information of each vertex is determined according to the second attribute information after the movement instruction is converted, and the tailing of the role model is realized according to the offset information of each vertex.
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 method for trailing a character model according to an embodiment of the present invention;
FIG. 2 is a flowchart of a role model trailing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a character model trailing device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus provided in the fourth 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 noted that, for the convenience of description, only some of the matters related to the present invention are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a method for trailing a character model according to an embodiment of the present invention, where this embodiment is applicable to a case where a character model is processed to implement trailing, and the method may be executed by an apparatus for trailing a character model according to 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 operations:
Wherein the first attribute information includes initial position information and color information.
Optionally, before extracting the first attribute information of each vertex in the character model, the method may further include: determining identification information; acquiring a preset model matched with the identification information, and taking the preset model as a role model; and acquiring the role model in a copying mode.
Specifically, in this embodiment, each role model has corresponding identification information, and the identification information may specifically be a role name or a role number, for example, the role number 1 corresponds to a preset model a, and the role number 2 corresponds to a preset model b, but in this embodiment, the preset model a or the preset model b is created by a modeling server through specific modeling software, and when the identification information is determined to be the role number 1, the role number 1 may be sent to the modeling server, where the modeling server obtains the preset model a corresponding to the role number 1 through query, receives the preset model a returned by the modeling server, uses the preset model a as a role model, and obtains the role model through replication.
It should be noted that, in the present embodiment, since the character model is configured by a plurality of vertices, when the character model is obtained at the initial time by the replication method, the first attribute information of each vertex in the character model at the initial time can be extracted, and the first attribute information includes the initial position and the color information, that is, by extracting the first attribute information of each vertex in the character model at the initial time, the initial position of each vertex configuring the character model and the specific color of each vertex can be obtained.
And 102, when the movement instruction is determined to be received, extracting second attribute information of each vertex of the role model after the role model is transformed according to the movement instruction.
Wherein the second attribute information includes the transformed position information and color information.
Specifically, when it is determined that a movement instruction is received, the character model moves correspondingly according to the movement instruction, and the movement instruction includes a movement direction and a movement distance of the character model. When it is determined that the character model moves according to the movement instruction and the position conversion occurs, the second attribute information of each vertex of the character model after the transformation according to the movement instruction is extracted, and the second attribute information includes the position information and the color information after the transformation.
Specifically, in the present embodiment, since the character model has moved in position, the absolute value of the difference between the initial position information included in the first attribute information and the converted position information included in the second attribute information for each vertex is used as the offset information for each vertex.
Optionally, the offset information includes a position offset amount and color information.
For example, if the character model includes vertex 1, vertex 2, and vertex 3, the initial position information included in the first attribute information for vertex 1 is (0, 0), the color information is red, the converted position information included in the second attribute information for vertex 1 is (0, 5), and the color information is red, and the offset amount between the initial position information and the converted position information is 5, and the first attribute information and the second attribute information include the same color and are red, the position offset amount included in the offset information for vertex 1 is determined to be 5, and the color information included in the offset information for vertex 1 is red.
Optionally, after determining the offset information of each vertex according to the first attribute information and the second attribute information, the method may further include: and determining an effective vertex in the role model through a map, wherein the map comprises a preset rule selected by the effective vertex.
Specifically, in this embodiment, an effective vertex in the character model, that is, a vertex that needs to be subjected to trailing movement in the selected character model, may be determined by a map, where the map includes a vertex selection area and a vertex non-selection area, and the map is covered in the character model, so that a vertex in the vertex selection area in the character model is taken as the effective vertex, and a specific partitioning principle about the vertex selection area and the vertex non-selection area in the map is not a key point of this application, and therefore, details are not described in this embodiment.
And 104, carrying out tailing on the character model according to the offset information.
Optionally, the smearing the character model according to the offset information may include: and carrying out tailing on the effective vertex in the character model according to the offset information.
Optionally, tailing an effective vertex in the character model according to the offset information, which may include: determining the trailing length of the effective vertex according to the position offset; and determining the trailing color of the effective vertex according to the color information.
Specifically, in the present embodiment, only the effective vertices determined by the map are smeared, for example, the effective vertices determined by the map include vertex 1 and vertex 2, and the offset information of vertex 1 includes: the positional offset amount is 5 and the color information is red; the offset information of vertex 2 includes: the positional shift amount is 3 and the color information is blue. For vertex 1, the trailing length of vertex 1 can be determined to be 5 according to the position offset 5, and the trailing color of vertex 1 can be determined to be red according to the color information red; similarly, for vertex 2, the length of the tail of vertex 2 may be determined to be 2 according to the position offset 2, and the color of the tail of vertex 2 may be determined to be blue according to the color information. Of course, the present embodiment is only an example in which two effective vertices are taken as an example, and the present embodiment defines the specific number of effective vertices in the character model.
Optionally, tailing an effective vertex in the character model according to the offset information, which may include: and carrying out trailing on the effective vertex in the character model through a shader according to the offset information, wherein the shader is used for controlling the trailing direction and trailing strength of the effective vertex.
Specifically speaking, can specifically be in this embodiment carry out the tailing through the effective summit of shader's, shader in this embodiment can be used to control the trailing direction and the trailing dynamics of effective summit, for example, to effective summit 1, the trailing direction is from the position orientation initial position after the transform, and the trailing dynamics is 30, and the trailing dynamics is directly proportional with the thickness of trailing lines, and the trailing dynamics is bigger, and the trailing lines of effective summit are thicker to the color of trailing lines is the same with the color of summit 1 itself. If the effective vertex 1 is a vertex constituting a hair part of the character model, the color of the tail is black, which is the same as the color of the hair, and if the effective vertex 1 is a vertex constituting a clothes part of the character model, and the color of the clothes is red, the color of the tail is red, which is the same as the color of the clothes. Therefore, the trailing and the role model can be well matched, and the trailing and the role model can be well fused in the motion process of the role model.
Optionally, after determining the trailing color of the effective vertex according to the color information, the method may further include: receiving a tailing enhancement instruction; and carrying out fuzzy transformation and warping transformation on the trailing of the effective vertex according to the trailing enhancement instruction.
Specifically, in order to further enhance the effect of the smear in this embodiment, it is determined that the smear enhancement instruction is received, and then the smear of the effective vertex is subjected to fuzzy transformation and warping transformation, so that the effect of the smear is richer.
Optionally, after tailing an effective vertex in the character model according to the offset information, the method may further include: and rendering and displaying the trailing of the effective vertex through a display device.
In this embodiment, the trailing of the effective vertex may be specifically rendered on a display device, and the display device may be specifically a liquid crystal display screen.
According to the technical scheme of the embodiment of the invention, the initial attribute information of each vertex of the role model is obtained, the offset information of each vertex is determined according to the second attribute information after the movement instruction is converted, and the tailing of the role model is realized according to the offset information of each vertex.
Example two
Fig. 2 is a flowchart of a method for smearing a character model according to an embodiment of the present invention, where the embodiment is based on the foregoing embodiment, in this embodiment, after smearing a character model according to offset information, the method further includes: and detecting the tailing effect of the character model. Correspondingly, the method of the embodiment specifically includes the following operations:
And step 204, carrying out tailing on the character model according to the offset information.
Specifically, in this embodiment, after the smearing is performed on the character model according to the offset information, by detecting the smearing effect of the character model, it can be determined whether the smearing of the character model is abnormal, and in a case where it is determined that the smearing is abnormal, the above steps 201 to 204 are re-executed.
For example, after the character model is subjected to the tailing according to the offset information, it is found that the rendering effect of the tailing of the character model is not displayed on the display device, it is indicated that the first attribute information or the second attribute information of each vertex in the character model may have invalid information, or a shader fails when the valid vertex in the character model is subjected to the tailing, or the tailing cannot be rendered and displayed due to the failure of the display device, and by detecting the tailing effect of the character model, the tailing process can be corrected or the display device can be maintained according to the detection result, so that the tailing effect of the character model is improved.
According to the technical scheme of the embodiment of the invention, the initial attribute information of each vertex of the role model is obtained, the offset information of each vertex is determined according to the second attribute information after the movement instruction is converted, and the tailing of the role model is realized according to the offset information of each vertex. By detecting the trailing effect of the character model, the trailing effect of the character model can be further optimized.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a character model trailing device according to a third embodiment of the present invention, where the device includes: a first attribute information extraction module 301, a second attribute information extraction module 302, an offset information determination module 303, and a role model tailing module 304.
The first attribute information extraction module 301 is configured to extract first attribute information of each vertex in the role model, where the first attribute information includes initial position information and color information;
a second attribute information extraction module 302, configured to, when it is determined that a movement instruction is received, extract second attribute information of each vertex of the character model after being transformed according to the movement instruction, where the second attribute information includes transformed position information and color information;
an offset information determining module 303, configured to determine offset information of each vertex according to the first attribute information and the second attribute information;
and a role model tailing module 304, configured to tailing the role model according to the offset information.
The device can execute the method for trailing the role model provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary device 412 suitable for use in implementing embodiments of the present invention. The device 412 shown in fig. 4 is only an example and should not impose any limitation on the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, device 412 is in the form of a general purpose computing device. The components of device 412 may include, but are not limited to: one or more processors 416, a memory 428, and a bus 418 that couples the various system components (including the memory 428 and the processors 416).
The memory 428 is used to store instructions. Memory 428 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, 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 (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can 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 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 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. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown, network adapter 420 communicates with the other modules of device 412 over bus 418. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 executes instructions stored in the memory 428 to perform various functional applications and data processing, for example, implement a method for role model trailing provided by the embodiment of the present invention, including: extracting first attribute information of each vertex in the role model, wherein the first attribute information comprises initial position information and color information; when the movement instruction is determined to be received, extracting second attribute information of each vertex of the role model after transformation according to the movement instruction, wherein the second attribute information comprises transformed position information and color information; determining offset information of each vertex according to the first attribute information and the second attribute information; and carrying out tailing on the character model according to the offset information.
EXAMPLE five
An embodiment five 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 method for trailing a role model, as provided in all inventive embodiments of this application:
extracting first attribute information of each vertex in the role model, wherein the first attribute information comprises initial position information and color information; when the movement instruction is determined to be received, extracting second attribute information of each vertex of the role model after transformation according to the movement instruction, wherein the second attribute information comprises transformed position information and color information; determining offset information of each vertex according to the first attribute information and the second attribute information; and carrying out tailing on the character model according to the offset information.
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. 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 any of a variety of 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.
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 and 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).
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 method for role model tailing, which is characterized by comprising the following steps:
extracting first attribute information of each vertex in a role model, wherein the first attribute information comprises initial position information and color information;
when a movement instruction is determined to be received, extracting second attribute information of each vertex of the role model after transformation according to the movement instruction, wherein the second attribute information comprises transformed position information and color information;
determining the offset information of each vertex according to the first attribute information and the second attribute information;
and tailing the role model according to the offset information.
2. The method of claim 1, wherein after determining the offset information for each vertex according to the first attribute information and the second attribute information, further comprising:
determining an effective vertex in the role model through a map, wherein the map comprises a preset rule selected by the effective vertex;
the trailing the character model according to the offset information includes:
and tailing the effective vertex in the role model according to the offset information.
3. The method of claim 2, wherein the offset information comprises a position offset and color information;
the trailing the effective vertex in the character model according to the offset information includes:
determining the trailing length of the effective vertex according to the position offset;
and determining the trailing color of the effective vertex according to the color information.
4. The method of claim 3, wherein after determining the trailing color of the active vertex from the color information, further comprising:
receiving a tailing enhancement instruction;
and carrying out fuzzy transformation and warping transformation on the trailing of the effective vertex according to the trailing enhancement instruction.
5. The method of claim 2, wherein the smearing the valid vertices in the character model according to the offset information comprises:
and trailing the effective vertex in the character model through a shader according to the offset information, wherein the shader is used for controlling the trailing direction and trailing strength of the effective vertex.
6. The method of claim 1, wherein before extracting the first attribute information of each vertex in the character model, the method further comprises:
determining identification information;
acquiring a preset model matched with the identification information, and taking the preset model as the role model;
and acquiring the role model in a copying mode.
7. The method of claim 1, wherein after the smearing the valid vertices in the character model according to the offset information, further comprising:
and rendering and displaying the trailing of the effective vertex through a display device.
8. An apparatus for character model tailing, comprising:
the first attribute information extraction module is used for extracting first attribute information of each vertex in the role model, wherein the first attribute information comprises initial position information and color information;
the second attribute information extraction module is used for extracting second attribute information of each vertex of the role model after transformation according to the movement instruction when the movement instruction is determined to be received, wherein the second attribute information comprises position information and color information after transformation;
an offset information determining module, configured to determine offset information of each vertex according to the first attribute information and the second attribute information;
and the role model tailing module is used for tailing the role model according to the offset information.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer storage medium on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911302788.0A CN111054072B (en) | 2019-12-17 | 2019-12-17 | Method, device, equipment and storage medium for role model tailing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911302788.0A CN111054072B (en) | 2019-12-17 | 2019-12-17 | Method, device, equipment and storage medium for role model tailing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111054072A true CN111054072A (en) | 2020-04-24 |
CN111054072B CN111054072B (en) | 2023-11-07 |
Family
ID=70301989
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911302788.0A Active CN111054072B (en) | 2019-12-17 | 2019-12-17 | Method, device, equipment and storage medium for role model tailing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111054072B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111666007A (en) * | 2020-04-28 | 2020-09-15 | 平安科技(深圳)有限公司 | Method and device for realizing mouse following special effect, computer equipment and storage medium |
WO2021254127A1 (en) * | 2020-06-19 | 2021-12-23 | 北京字节跳动网络技术有限公司 | Image processing method, apparatus and device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102566956A (en) * | 2011-12-12 | 2012-07-11 | 中国船舶重工集团公司第七二四研究所 | Multi-type sensor information real-time display method by software based on commercial graphic card |
US20150294491A1 (en) * | 2014-04-14 | 2015-10-15 | Crayola Llc | Handheld digital drawing and projection device |
CN106204696A (en) * | 2016-07-05 | 2016-12-07 | 网易(杭州)网络有限公司 | A kind of specially good effect implementation method and device |
CN108921927A (en) * | 2018-06-12 | 2018-11-30 | 阿里巴巴集团控股有限公司 | A kind of fireworks special efficacy implementation method, device and equipment based on particle |
-
2019
- 2019-12-17 CN CN201911302788.0A patent/CN111054072B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102566956A (en) * | 2011-12-12 | 2012-07-11 | 中国船舶重工集团公司第七二四研究所 | Multi-type sensor information real-time display method by software based on commercial graphic card |
US20150294491A1 (en) * | 2014-04-14 | 2015-10-15 | Crayola Llc | Handheld digital drawing and projection device |
CN106204696A (en) * | 2016-07-05 | 2016-12-07 | 网易(杭州)网络有限公司 | A kind of specially good effect implementation method and device |
CN108921927A (en) * | 2018-06-12 | 2018-11-30 | 阿里巴巴集团控股有限公司 | A kind of fireworks special efficacy implementation method, device and equipment based on particle |
Non-Patent Citations (1)
Title |
---|
游戏开发: "Unity拖尾渲染你值得拥有", 《知乎》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111666007A (en) * | 2020-04-28 | 2020-09-15 | 平安科技(深圳)有限公司 | Method and device for realizing mouse following special effect, computer equipment and storage medium |
WO2021254127A1 (en) * | 2020-06-19 | 2021-12-23 | 北京字节跳动网络技术有限公司 | Image processing method, apparatus and device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111054072B (en) | 2023-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3621034B1 (en) | Method and apparatus for calibrating relative parameters of collector, and storage medium | |
CN109766879B (en) | Character detection model generation method, character detection device, character detection equipment and medium | |
RU2445705C2 (en) | Method of preparing data display in servers (versions) and machine-readable medium | |
CN109472852B (en) | Point cloud image display method and device, equipment and storage medium | |
US20140198112A1 (en) | Method of controlling information processing apparatus and information processing apparatus | |
CN110969687B (en) | Collision detection method, device, equipment and medium | |
WO2018120992A1 (en) | Window rendering method and terminal | |
CN109558604A (en) | A kind of machine translation method, device, electronic equipment and storage medium | |
CN114373460A (en) | Instruction determination method, device, equipment and medium for vehicle-mounted voice assistant | |
CN110058652A (en) | Application interface starts method, apparatus, electronic equipment and storage medium | |
CN112287010B (en) | Map service providing method, device, terminal and storage medium based on android system | |
CN111054072B (en) | Method, device, equipment and storage medium for role model tailing | |
KR101331337B1 (en) | Alternative graphics pipe | |
CN116433692A (en) | Medical image segmentation method, device, equipment and storage medium | |
CN110162757B (en) | Table structure extraction method and system | |
CN117032874B (en) | Remote control method, device, computing equipment and storage medium | |
CN111026463B (en) | Page loading method, device, equipment and storage medium | |
CN114356475B (en) | Display processing method, device, equipment and storage medium | |
CN113791858A (en) | Display method, device, equipment and storage medium | |
CN112966671A (en) | Contract detection method and device, electronic equipment and storage medium | |
CN109815307B (en) | Position determination method, apparatus, device, and medium | |
CN113760317A (en) | Page display method, device, equipment and storage medium | |
US20210104011A1 (en) | Systems, processes, and computer program products for acceleration of bit-per-pixel fill transfers in a graphics rendering system | |
CN112559340A (en) | Picture testing method, device, equipment and storage medium | |
CN112364268A (en) | Resource acquisition method and device, electronic equipment and storage 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 |