CN111054072B - Method, device, equipment and storage medium for role model tailing - Google Patents

Method, device, equipment and storage medium for role model tailing Download PDF

Info

Publication number
CN111054072B
CN111054072B CN201911302788.0A CN201911302788A CN111054072B CN 111054072 B CN111054072 B CN 111054072B CN 201911302788 A CN201911302788 A CN 201911302788A CN 111054072 B CN111054072 B CN 111054072B
Authority
CN
China
Prior art keywords
information
vertex
tailing
attribute information
character 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.)
Active
Application number
CN201911302788.0A
Other languages
Chinese (zh)
Other versions
CN111054072A (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.)
Mihoyo Technology Shanghai Co ltd
Original Assignee
Mihoyo Technology Shanghai 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 Mihoyo Technology Shanghai Co ltd filed Critical Mihoyo Technology Shanghai Co ltd
Priority to CN201911302788.0A priority Critical patent/CN111054072B/en
Publication of CN111054072A publication Critical patent/CN111054072A/en
Application granted granted Critical
Publication of CN111054072B publication Critical patent/CN111054072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing 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
    • 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/60Generating 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
    • 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/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • A63F2300/6646Methods 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 application discloses a method, a device, equipment and a storage medium for tailing a character model. The method comprises the following steps: extracting first attribute information of each vertex in the character model; extracting second attribute information of each vertex after the character model is transformed according to the movement instruction when the movement instruction is determined to be received; determining offset information of each vertex according to the first attribute information and the second attribute information; and tailing the color model according to the offset information. By acquiring initial attribute information of each vertex of the character model, determining offset information of each vertex according to second attribute information transformed by the movement instruction, and realizing tailing of the character model according to the offset information of each vertex, the tailing in the embodiment is determined according to the vertex information of the character model, so that the tailing can be well matched with the character model and fused with actions of the character model.

Description

Method, device, equipment and storage medium for role model tailing
Technical Field
The embodiment of the application relates to the technical field of graphic processing, in particular to a method, a device, equipment and a storage medium for tailing a character model.
Background
In the field of game design, the real experience of a user during a game is often increased by adding a dynamic effect to a game character, and a dynamic effect of character movement is generally adopted by adding a tail to the character.
The inventor finds that at least the following problems exist in the prior art: in the prior art, the tailing of the game character is usually realized by adopting default lines set in advance aiming at the original game character, and the default lines are irrelevant to elements contained in the game character, so that the tailing realized by the default lines cannot be well matched with the body of the game character and is perfectly fused with the action of the game character.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for tailing a character model. To achieve a good match of the diagonal color model to the tail.
In a first aspect, an embodiment of the present application provides a method for role model tailing, including: extracting first attribute information of each vertex in the character model, wherein the first attribute information comprises initial position information and color information;
extracting second attribute information of each vertex after the character 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;
determining offset information of each vertex according to the first attribute information and the second attribute information;
and tailing the color model according to the offset information.
In a second aspect, an embodiment of the present application provides an apparatus for character model tailing, including: a first attribute information extraction module for extracting first attribute information of each vertex in the character model, wherein the first attribute information includes initial position information and color information;
a second attribute information extraction module for extracting second attribute information of each vertex after the character 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 character model tailing module is used for tailing the character model according to the offset information.
In a third aspect, an embodiment of the present application provides an apparatus, including:
one or more processors;
a 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 in any of the embodiments of the present application.
In a fourth aspect, embodiments of the present application also provide a computer storage medium having stored thereon a computer program which, when executed by a processor, implements a method as in any of the embodiments of the present application.
According to the technical scheme of the embodiment of the application, the initial attribute information of each vertex of the character model is obtained, the offset information of each vertex is determined according to the second attribute information transformed by the moving instruction, and the tailing of the character 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 application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a character model tailing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a character model tailing method according to a second embodiment of the present application;
FIG. 3 is a schematic diagram of a character model tailing device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof.
In addition, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
Fig. 1 is a flowchart of a method for character model tailing according to an embodiment of the present application, where the method is applicable to a situation where a character model is processed to implement tailing, and the method may be performed by an apparatus for character model tailing according to an embodiment of the present application, where the apparatus may be implemented in a software and/or hardware manner. As shown in fig. 1, the method specifically includes the following operations:
step 101, extracting first attribute information of each vertex in the character model.
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; the character model is obtained by means of duplication.
Specifically, in this embodiment, since each character model has corresponding identification information, the identification information may specifically be a character name or a character number, for example, the character number 1 corresponds to a preset model a, the character number 2 corresponds to a preset model b, and 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 character number 1, the modeling server may send the character number 1 to the modeling server, where the modeling server obtains the preset model a corresponding to the character number 1 through query, receives the preset model a returned by the modeling server, uses the preset model a as the character model, and obtains the character model through a copying manner.
In the present embodiment, since the character model is configured by a plurality of vertices, when the character model is acquired at an initial time by a replication method, first attribute information of each vertex in the character model at the initial time can be extracted, and the first attribute information includes initial position and color information, that is, the initial position of each vertex configuring the character model and a specific color of each vertex can be acquired by extracting the first attribute information of each vertex in the character model at the initial time.
And 102, when the movement instruction is determined to be received, extracting second attribute information of each vertex after the character model is transformed according to the movement instruction.
Wherein the second attribute information includes the transformed position information and color information.
Specifically, when the movement instruction is determined to be received, the character model moves correspondingly according to the movement instruction, wherein the movement instruction comprises the movement direction and the movement distance of the character model. When it is determined that the character model moves according to the movement instruction and performs position conversion, second attribute information of each vertex of the character model is extracted after the character model is converted according to the movement instruction, wherein the second attribute information includes the converted position information and color information, the manner of extracting the second attribute information of each vertex of the character model according to the embodiment is substantially the same as the manner of extracting the first attribute information, and the first attribute information is the same as the color information included in the second attribute information and the position information is different for the same vertex.
Step 103, determining the offset information of each vertex according to the first attribute information and the second attribute information.
Specifically, in the present embodiment, since the character model is shifted in position, the absolute value of the difference between the initial position information included in the first attribute information and the transformed 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 and color information.
For example, 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 transformed position information included in the second attribute information for vertex 1 is (0, 5), the color information is red, and since the initial position information and the transformed position information have a shift of 5, the first attribute information and the second attribute information include the same color and are red, it is determined that the position shift included in the shift information for vertex 1 is 5, and the color information included in the shift 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: effective vertices in the character model are determined by a map, wherein the map includes preset rules for effective vertex selection.
Specifically, in this embodiment, the effective vertices in the character model may be determined by a map, that is, the vertices that represent the selected character model that need to be moved in a trailing manner, where the map includes a vertex selection area and a vertex non-selection area, and by overlaying the map in the character model, the vertices in the vertex selection area in the character model are used as the effective vertices, and the specific principle of dividing the map into the vertex selection area and the vertex non-selection area is not an important point of the present application, so that a detailed description is omitted in this embodiment.
And 104, tailing the color model according to the offset information.
Optionally, tailing the character model according to the offset information may include: and tailing the effective vertexes in the color model according to the offset information.
Optionally, tailing the valid vertices in the color model according to the offset information may include: determining the trailing length of the effective vertex according to the position offset; and determining the tailing color of the effective vertex according to the color information.
Specifically, in this embodiment, only the valid vertices determined by the map are trailing, for example, the valid vertices determined by the map include vertex 1 and vertex 2, and the offset information of vertex 1 includes: the position offset is 5 and the color information is red; the offset information of the vertex 2 includes: the positional shift amount is 3 and the color information is blue. Then, for the vertex 1, the trailing length of the vertex 1 can be determined to be 5 according to the position offset 5, and the trailing color of the vertex 1 can be determined to be red according to the color information red; similarly, for the vertex 2, the trailing length of the vertex 2 may be determined to be 2 according to the positional offset 2, and the trailing color of the vertex 2 may be determined to be blue according to the color information blue. Of course, this embodiment is merely an example of two valid vertices, and a specific number of valid vertices in the character model is defined and described in this embodiment.
Optionally, tailing the valid vertices in the color model according to the offset information may include: and tailing the effective vertexes in the angle model through a shader according to the offset information, wherein the shader is used for controlling the tailing direction and the tailing force of the effective vertexes.
Specifically, in this embodiment, the effective vertex of the character model may be trailing by the shader loader, where the shader loader in this embodiment may be used to control the trailing direction and the trailing force of the effective vertex, for example, for the effective vertex 1, the trailing direction is from the transformed position to the initial position, the trailing force is 30, the trailing force is proportional to the thickness of the trailing line, the greater the trailing force, the thicker the trailing line of the effective vertex, and the color of the trailing line is the same as the color of the vertex 1 itself. If the effective vertex 1 is a vertex constituting a hair portion of the character model, the color of the tail is black as with the color of the hair, and if the effective vertex 1 is a vertex constituting a clothing portion of the character model, and the color of the clothing is red, the color of the tail is red as with the color of the clothing. Thus, the tail can be well matched with the character model, and the tail can be well fused with the action of the character model in the process of the movement of the character model.
Optionally, after determining the tail color of the effective vertex according to the color information, the method may further include: receiving a tailing enhancement instruction; and performing fuzzy transformation and distortion transformation on the tail of the effective vertex according to the tail enhancement instruction.
Specifically, in this embodiment, in order to further enhance the tailing effect, when it is determined that the tailing enhancing instruction is received, the tailing of the effective vertex may be subjected to fuzzy transformation and distortion transformation, so that the tailing effect is more abundant, however, this embodiment is merely illustrative, and other ways of enhancing the tailing effect are also within the scope of the present application, which is not limited in the present application.
Optionally, after tailing the valid vertices in the color model according to the offset information, the method further includes: and rendering and displaying the tail of the effective vertexes through a display device.
In this embodiment, the tailing of the effective vertex may be specifically rendered on the display device, and the display device may be specifically a liquid crystal display screen, which is not limited to the specific type of the display device in the embodiment of the present application.
According to the technical scheme of the embodiment of the application, the initial attribute information of each vertex of the character model is obtained, the offset information of each vertex is determined according to the second attribute information transformed by the moving instruction, and the tailing of the character model is realized according to the offset information of each vertex.
Example two
Fig. 2 is a flowchart of a method for tailing a character model according to an embodiment of the present application, which is based on the foregoing embodiment, and further includes, after tailing the character model according to the offset information: and detecting the tailing effect of the color model. Correspondingly, the method of the embodiment specifically comprises the following operations:
in step 201, first attribute information for each vertex in a character model is extracted.
Step 202, when it is determined that the movement instruction is received, extracting second attribute information of each vertex after the character model is transformed according to the movement instruction.
Step 203, determining the offset information of each vertex according to the first attribute information and the second attribute information.
And 204, tailing the color model according to the offset information.
In step 205, the smearing effect of the color model is detected.
Specifically, in the present embodiment, after the character model is tailing according to the offset information, by detecting the tailing effect of the character model, it is possible to determine whether or not the tailing of the character model is abnormal, and in the case where it is determined that the tailing is abnormal, the above-described steps 201 to 204 are re-executed.
For example, after the character model is tailing according to the offset information, the rendering effect of the character model tailing is found to be not displayed on the display device, which indicates that the first attribute information or the second attribute information of each vertex in the character model may have invalid information, or that the shader fails when the valid vertex in the character model is tailing, or that the tailing cannot be rendered and displayed due to the failure of the display device, and the tailing process can be corrected or the display device can be maintained according to the detection result by detecting the tailing effect of the character model, so as to improve the tailing effect of the character model.
According to the technical scheme of the embodiment of the application, the initial attribute information of each vertex of the character model is obtained, the offset information of each vertex is determined according to the second attribute information transformed by the moving instruction, and the tailing of the character model is realized according to the offset information of each vertex. By detecting the smear effect of the character model, the smear effect of the character model can be further optimized.
Example III
Fig. 3 is a schematic structural diagram of a character model tailing device according to a third embodiment of the present application, the device including: a first attribute information extraction module 301, a second attribute information extraction module 302, an offset information determination module 303, and a character model tailing module 304.
Wherein, the first attribute information extracting module 301 is configured to extract first attribute information of each vertex in the character model, where the first attribute information includes initial position information and color information;
a second attribute information extraction module 302, configured to extract, when it is determined that the movement instruction is received, second attribute information of each vertex after the character model is 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 the character model tailing module 304 is configured to tail the character model according to the offset information.
The device can execute the role model tailing method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be found in the method provided by any embodiment of the present application.
Example IV
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present application. Fig. 4 illustrates a block diagram of an exemplary device 412 suitable for use in implementing embodiments of the application. The device 412 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the application.
As shown in fig. 4, device 412 is in the form of a general purpose computing device. Components of device 412 may include, but are not limited to: one or more processors 416, a memory 428, a bus 418 that connects the various system components (including the memory 428 and the processor 416).
Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 428 is used to store instructions. Memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 430 and/or cache memory 432. 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 or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 418 via one or more data medium interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the application.
A program/utility 440 having a set (at least one) of program modules 442 may be stored in, for example, the 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 or some combination of which may include an implementation of a network environment. Program modules 442 generally perform the functions and/or methodologies in the described embodiments of the application.
The device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), one or more devices that enable a user to interact with the device 412, and/or 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 through an input/output (I/O) interface 422. Also, device 412 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 420. As shown, network adapter 420 communicates with 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 connection with device 412, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 416, by executing instructions stored in the memory 428, performs various functional applications and data processing, such as implementing a method for character model tailing provided by embodiments of the present application, including: extracting first attribute information of each vertex in the character model, wherein the first attribute information comprises initial position information and color information; extracting second attribute information of each vertex after the character 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; determining offset information of each vertex according to the first attribute information and the second attribute information; and tailing the color model according to the offset information.
Example five
A fifth embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for character model tailing as provided by all the embodiments of the present application:
extracting first attribute information of each vertex in the character model, wherein the first attribute information comprises initial position information and color information; extracting second attribute information of each vertex after the character 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; determining offset information of each vertex according to the first attribute information and the second attribute information; and tailing the color 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either 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 of the foregoing. 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 of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present application and the technical principle applied. It will be understood by those skilled in the art that the present application 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 application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the application, which is set forth in the following claims.

Claims (8)

1. A method of character model tailing, comprising:
extracting first attribute information of each vertex in a character model, wherein the first attribute information comprises initial position information and color information;
extracting second attribute information of each vertex after the character 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;
determining offset information of each vertex according to the first attribute information and the second attribute information, wherein the offset information comprises position offset and color information;
tailing the character model according to the offset information;
after determining the offset information of each vertex according to the first attribute information and the second attribute information, the method further includes: determining effective vertexes in the character model through a mapping, wherein the mapping comprises preset rules for selecting the effective vertexes;
the tailing 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 tailing color of the effective vertex according to the color information.
2. The method of claim 1, wherein after determining the tailing color of the active vertex from the color information, further comprising:
receiving a tailing enhancement instruction;
and performing fuzzy transformation and distortion transformation on the tail of the effective vertex according to the tail enhancement instruction.
3. The method of claim 1, wherein the tailing the active vertices in the character model according to the offset information comprises:
and tailing the effective vertexes in the character model through a shader according to the offset information, wherein the shader is used for controlling the tailing direction and the tailing force of the effective vertexes.
4. The method of claim 1, further comprising, prior to extracting the first attribute information for each vertex in the character model:
determining identification information;
acquiring a preset model matched with the identification information, and taking the preset model as the role model;
the character model is obtained by means of replication.
5. The method of claim 1, wherein the tailing the valid vertices in the character model according to the offset information further comprises:
and rendering and displaying the tail of the effective vertexes through a display device.
6. An apparatus for character model tailing, comprising:
a first attribute information extraction module for extracting first attribute information of each vertex in the character model, wherein the first attribute information comprises initial position information and color information;
a second attribute information extraction module, configured to extract second attribute information of each vertex after the character model performs transformation according to the movement instruction when it is determined that the movement instruction is received, where the second attribute information includes transformed position information and color information;
an offset information determining module, configured to determine offset information of each vertex according to the first attribute information and the second attribute information, where the offset information includes a position offset and color information;
a role model tailing module, configured to tailing the role model according to the offset information;
the device also comprises an effective vertex determining module, a rule selecting module and a rule selecting module, wherein the effective vertex determining module is used for determining the effective vertex in the role model through a mapping, and the mapping comprises a preset rule selected by the effective vertex;
the role model tailing module is used for determining the tailing length of the effective vertexes according to the position offset; and determining the tailing color of the effective vertex according to the color information.
7. An electronic device, the device comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
8. A computer storage medium having stored thereon a computer program, which when executed by a processor performs the method according to any of claims 1-5.
CN201911302788.0A 2019-12-17 2019-12-17 Method, device, equipment and storage medium for role model tailing Active CN111054072B (en)

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 CN111054072A (en) 2020-04-24
CN111054072B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN111667563B (en) * 2020-06-19 2023-04-07 抖音视界有限公司 Image processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9756299B2 (en) * 2014-04-14 2017-09-05 Crayola, Llc Handheld digital drawing and projection device

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
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)

* Cited by examiner, † Cited by third party
Title
Unity拖尾渲染你值得拥有;游戏开发;《知乎》;全文第1页-第3页,全部附图 *

Also Published As

Publication number Publication date
CN111054072A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
US11321593B2 (en) Method and apparatus for detecting object, method and apparatus for training neural network, and electronic device
US10984556B2 (en) Method and apparatus for calibrating relative parameters of collector, device and storage medium
CN107515759B (en) Screen capture method and device, electronic equipment and readable storage medium
CN108564082B (en) Image processing method, device, server and medium
CN108553894B (en) Display control method and device, electronic equipment and storage medium
CN109472852B (en) Point cloud image display method and device, equipment and storage medium
CN110222703B (en) Image contour recognition method, device, equipment and medium
CN110969687B (en) Collision detection method, device, equipment and medium
US11475636B2 (en) Augmented reality and virtual reality engine for virtual desktop infrastucture
CN111054072B (en) Method, device, equipment and storage medium for role model tailing
CN108008876B (en) Display method, device and equipment of floating window and storage medium
KR101331337B1 (en) Alternative graphics pipe
CN114022604A (en) Model drawing method and device, electronic equipment and storage medium
CN116433692A (en) Medical image segmentation method, device, equipment and storage medium
CN109558118B (en) Method, apparatus, device and storage medium for creating native components of a smart applet
CN107491289B (en) Window rendering method and device
CN112416332B (en) Graphical programming interface display method, device, equipment and medium
CN114373460A (en) Instruction determination method, device, equipment and medium for vehicle-mounted voice assistant
US20160140699A1 (en) Automatically identifying and healing spots in images
CN111125564B (en) Thermodynamic diagram generation method, thermodynamic diagram generation device, thermodynamic diagram generation computer device and thermodynamic diagram generation storage medium
CN114356475B (en) Display processing method, device, equipment and storage medium
CN111696154B (en) Coordinate positioning method, device, equipment and storage medium
CN110162251B (en) Image scaling method and device, storage medium and electronic equipment
CN112559340A (en) Picture testing method, device, equipment and storage medium
CN112465692A (en) Image processing method, device, 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