WO2019174144A1 - Method and apparatus for generating virtual character in game, and storage medium and computer device - Google Patents

Method and apparatus for generating virtual character in game, and storage medium and computer device Download PDF

Info

Publication number
WO2019174144A1
WO2019174144A1 PCT/CN2018/091366 CN2018091366W WO2019174144A1 WO 2019174144 A1 WO2019174144 A1 WO 2019174144A1 CN 2018091366 W CN2018091366 W CN 2018091366W WO 2019174144 A1 WO2019174144 A1 WO 2019174144A1
Authority
WO
WIPO (PCT)
Prior art keywords
dna
attribute
game
game player
virtual character
Prior art date
Application number
PCT/CN2018/091366
Other languages
French (fr)
Chinese (zh)
Inventor
孙亚洲
陈杰
袁永吉
肖贡
郭雨舜
陈斌
Original Assignee
深圳市达仁基因科技有限公司
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 深圳市达仁基因科技有限公司 filed Critical 深圳市达仁基因科技有限公司
Publication of WO2019174144A1 publication Critical patent/WO2019174144A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16BBIOINFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR GENETIC OR PROTEIN-RELATED DATA PROCESSING IN COMPUTATIONAL MOLECULAR BIOLOGY
    • G16B20/00ICT specially adapted for functional genomics or proteomics, e.g. genotype-phenotype associations
    • 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
    • A63F13/65Generating 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 automatically by game devices or servers from real world data, e.g. measurement in live racing competition
    • 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/50Features 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 details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5546Details of game data or player data management using player registration data, e.g. identification, account, preferences, game history
    • 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

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method, an apparatus, a storage medium, and a computer device for generating a virtual character in a game.
  • a virtual character refers to a character that does not exist in reality. It can exist in creative works such as TV dramas, comics, and games. It is a fictional character in creative works such as TV dramas, comics, and games.
  • the game player can create and set a personalized virtual character by directly adjusting the parameters of the virtual character in the game, using the human face image or the whole body image, or data collected by the 3D scanner.
  • current technologies make the appearance, capabilities, background and other attributes of virtual characters in games (including applications such as online games, social games, social applications, and virtual reality applications) less relevant to game players and cannot be well reflected. The real individual differences of the game players, so they can't really resonate with the gamers.
  • a method for generating a virtual character in a game comprising:
  • DNA DNA attribute of the game player being a genetic property obtained according to DNA data of the game player
  • a virtual character corresponding to the game player is generated in the game scene based on the attribute of the virtual character corresponding to the game player.
  • the method further includes:
  • mapping relationship between the DNA attribute and the virtual character attribute in the game is generated, including:
  • the obtaining a game player's DNA attributes includes:
  • the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
  • the method includes:
  • the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
  • the random or directional mutation of the genomic data of the DNA sample comprises:
  • the genomic data of the DNA sample is subjected to a random mutation or a directed mutation, which includes a game player upgrade or a performance improvement of the game player.
  • a virtual character generating device in a game comprising:
  • a game player's DNA attribute acquisition module for acquiring a DNA DNA attribute of the game player, the DNA attribute being a genetic attribute obtained according to the game player's DNA data;
  • An attribute configuration module of the virtual character configured to configure a property of the virtual character corresponding to the game player according to a mapping relationship between the DNA attribute of the game player and a virtual character attribute in the game according to a pre-established DNA attribute, and obtain the The attribute of the virtual character corresponding to the game player
  • the virtual character generating module is configured to generate a virtual character corresponding to the game player in the game scene according to an attribute of the virtual character corresponding to the game player.
  • the apparatus further includes:
  • a mapping relationship between the DNA attribute and the virtual character attribute is used to establish a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:
  • DNA DNA attribute of the game player being a genetic property obtained according to DNA data of the game player
  • a virtual character corresponding to the game player is generated in the game scene based on the attribute of the virtual character corresponding to the game player.
  • a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor performing the following steps when executing the computer program:
  • DNA DNA attribute of the game player being a genetic property obtained according to DNA data of the game player
  • a virtual character corresponding to the game player is generated in the game scene based on the attribute of the virtual character corresponding to the game player.
  • the avatar generation method, apparatus, storage medium, and computer device in the above game acquire the DNA attribute of the game player, and the DNA attribute is a genetic attribute obtained based on the DNA data of the game player.
  • the game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured to obtain the attribute of the virtual character corresponding to the game player.
  • This associates the game player's DNA attributes with the attributes of the virtual characters in the game, so that the attributes of the virtual characters reflect the DNA attributes of the game player.
  • a virtual character corresponding to the game player is generated in the game.
  • the avatar thus generated can reflect the individual differences of the game players and truly resonate with the game players.
  • FIG. 1 is an application environment diagram of a method for generating a virtual character in a game in an embodiment
  • Figure 2 is a diagram showing the internal structure of a server in an embodiment
  • FIG. 3 is a flow chart of a method for generating a virtual character in a game in an embodiment
  • FIG. 4 is a flow chart of a method for generating a virtual character in a game in another embodiment
  • FIG. 5 is a flow chart showing a manner of generating a mapping relationship between a DNA attribute and a virtual character attribute in a game in an embodiment
  • FIG. 6 is a flow chart of the method for obtaining a DNA attribute of a game player in FIG. 3;
  • FIG. 7 is a flowchart of a method for generating a virtual character in a game in still another embodiment
  • FIG. 8 is a schematic structural diagram of a virtual character generating device in a game in an embodiment
  • FIG. 9 is a schematic structural diagram of a virtual character generating device in a game in still another embodiment.
  • FIG. 10 is a schematic structural diagram of a DNA attribute acquisition module of the game player in FIG. 8.
  • the virtual character generation method in the game provided by the embodiment of the present application can be applied to the environment as shown in FIG. 1.
  • terminal 102 is connected to server 104 via a network.
  • a computer device which may be a server, and its internal structure diagram may be as shown in FIG. 2.
  • the computer device includes a processor, memory, network interface, and database connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for operation of an operating system and computer programs in a non-volatile storage medium.
  • the database of the computer device is used to store reference genome data, a mapping relationship between pre-established DNA attributes and virtual character attributes in the game.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection.
  • the computer program is executed by the processor to implement a virtual character generation method in the game.
  • a method for generating a virtual character in a game is provided.
  • the method is applied to the server in FIG. 1 as an example, and includes:
  • step 320 the DNA DNA attribute of the game player is obtained, and the DNA attribute is a genetic attribute obtained according to the DNA data of the game player.
  • DNA deoxyribonucleic acid
  • DNA also known as DNA
  • the main function is information storage, which can be compared to a "blueprint” or "recipe".
  • the instructions contained therein are required to construct other compounds in the cell, such as proteins and ribonucleic acids.
  • a DNA fragment with a protein encoding is called a gene.
  • the gene consists of DNA (deoxyribonucleic acid) in the nucleus of the human body, and the unpredictable sequence of genes determines the genetic variation of humans.
  • the DNA sample of the game player is acquired, and the DNA sample of the game player is detected to obtain the genomic data of the DNA sample.
  • the genomic data of the DNA sample is aligned with the reference genomic data in the reference database to obtain mutation information of the genomic data of the DNA sample.
  • the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
  • the DNA attribute is a genetic attribute obtained from the DNA data of the game player, such as gender information, ethnic information, age information, height information, weight information, skin color information, and the like.
  • Step 340 the game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured to obtain the attribute of the virtual character corresponding to the game player.
  • a mapping relationship between the DNA attribute and the virtual character attribute in the game is established in advance, and the mapping relationship is stored in the database. For example, if the gender information in the DNA attribute of the obtained game player is male, the gender attribute of the virtual character in the game is preset to be a male; the height information in the DNA attribute of the obtained game player is 160 cm to Between 175 cm, the height of the virtual character in the game is preset from 230 cm to 270 cm. A mapping relationship with the attributes of the virtual characters in the game is established for each acquired DNA attribute.
  • the game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured, for example, the virtual character corresponding to the game player is configured according to the gender information in the DNA attribute.
  • the gender attribute; the ethnic attribute of the virtual character corresponding to the game player is configured according to the ethnic information in the DNA attribute; the height attribute of the virtual character corresponding to the game player is correspondingly configured according to the height information in the DNA attribute;
  • the multiple genetic properties of the virtual characters are configured. After the configuration is completed, all genetic attributes of the avatar corresponding to the game player are obtained.
  • Step 360 Generate a virtual character corresponding to the game player in the game scene according to the attribute of the virtual character corresponding to the game player.
  • all genetic attributes of the virtual character corresponding to the game player are obtained.
  • virtual characters can be generated from all the genetic attributes of the virtual character. For example, according to various genetic attributes such as gender, ethnicity, age, height, weight, and skin color of the virtual character, a virtual character having the above genetic property is generated in the game scene, and the virtual character is displayed in the game as a game. The virtual character corresponding to the player.
  • the DNA attribute of the game player is obtained, and the DNA attribute is a genetic attribute obtained according to the DNA data of the game player.
  • the game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured to obtain the attribute of the virtual character corresponding to the game player.
  • This associates the game player's DNA attributes with the attributes of the virtual characters in the game, so that the attributes of the virtual characters reflect the DNA attributes of the game player.
  • a virtual character corresponding to the game player is generated in the game. The avatar thus generated can reflect the individual differences of the game players and truly resonate with the game players.
  • the method for generating a virtual character in a game further includes:
  • Step 330 establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  • the virtual character attribute in the game is searched for the corresponding DNA attribute according to a preset rule, and then the mapping relationship between the DNA attribute and the virtual character attribute in the game is established, and the mapping relationship specifically includes a mapping function.
  • the virtual character attribute refers to some adjustable parameters corresponding to the design rules of the virtual characters in the game, such as character height, gender, skin color, weight, body fat content, eye color, attack power, defense power, virtual race, special skills. Wait.
  • determining various parameters that can be adjusted such as the character height, gender, skin color, weight, Body fat content, eye color, attack power, defense, virtual race, special skills, etc.
  • the corresponding parameters can be adjusted, and the corresponding closest DNA attributes are found according to the preset rules.
  • the mapping relationship between these DNA attributes and the virtual character attributes in the game is established directly according to the preset rules.
  • some parameters of the virtual character in the game do not necessarily have a real DNA attribute corresponding to it.
  • the “attack power” and “defense power” of a avatar do not have a DNA attribute of “attack force” or “defense power”.
  • the mapping relationship between the DNA attribute and the virtual character attribute in the game is established in advance, that is, the mapping rule corresponding to setting the DNA attribute and the virtual character attribute in the game. Therefore, as long as the DNA attribute of the game player is obtained, the attribute of the virtual character in the game can be obtained according to this mapping rule.
  • the virtual characters can be generated according to the acquired attributes of the virtual characters in the game.
  • the generated virtual character has some attribute information corresponding to the game player, so that since the generated virtual character reflects the individual difference of the game player, it can truly resonate with the game player.
  • mapping relationship between the DNA attribute and the virtual character attribute in the game is generated, including:
  • Step 510 Search for the corresponding DNA attribute according to a preset rule for the virtual character attribute in the game.
  • the mapping relationship between these DNA attributes and the virtual character attributes in the game is directly established.
  • some parameters of the virtual character in the game do not necessarily have a real DNA attribute corresponding to it.
  • the “attack power” and “defense power” of a avatar do not have a DNA attribute of “attack force” or “defense power”.
  • the design parameters such as “attack force” and “defense power” of the avatar can be matched with the real DNA attributes of the game player such as “endurance”. Or correspond to "metabolism rate” and the like. Determine the correspondence between each DNA attribute and the avatar attribute and form a corresponding rule.
  • the corresponding virtual attribute of the game is searched for the corresponding DNA attribute according to a preset rule.
  • Step 520 establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  • a mapping relationship between the DNA attribute and the virtual character attribute in the game is established, and the mapping relationship specifically includes a mapping function.
  • the mapping function may be a simple discrete data association mapping, for example, a class-to-class correspondence. For example, if the DNA attribute detected by the game player DNA is male, then the gender in the virtual character attribute is set to be male. Or the DNA attribute detected by the game player DNA is Han Chinese in northern China, then the racial characteristics of the virtual character can also be set to a certain race in the game (such as Han or a other virtual race). This virtual race can be a race that does not exist in real life.
  • the mapping function can also be a mathematically related mapping (such as a formula), such as DNA detection for the game player that the player's height is between 160 cm and 175 cm, and the corresponding virtual character is 230 cm tall. Up to 270 cm, the game player's true height and the height of the avatar are converted by a formula.
  • the mapping function may also be a probability relation map (probability distribution function), for example, performing DNA detection on the game player to detect that the game player has strong cardiopulmonary function, and accordingly the game player obtains physical fitness in the battle scene of the game. The probability of special items will increase.
  • the mapping function can also be a complex mapping relationship, for example, DNA detection can predict the possible appearance of a certain age group of the game player, the appearance can be mapped to the appearance of the characters in the game, and then the game obtained by the DNA detection data The actual appearance of the player establishes the appearance of the corresponding game character.
  • mapping relationship between the DNA attribute and the virtual character attribute in the game when establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game, first, all the DNA attributes obtained by performing DNA detection on the game player must be generated with the virtual character corresponding to the game player to be generated. The attributes correspond. After the correspondence is formed, the corresponding DNA attribute is searched according to the preset rule for the virtual character attribute in the game according to the corresponding rule. Then, a mapping relationship between the DNA attribute and the virtual character attribute in the game is established, and the mapping relationship specifically includes a mapping function. The correspondence between the DNA attribute and the virtual character attribute in the game is quantized, that is, the attribute of the virtual character can be obtained through the mapping function. In this way, it is possible to restore the game player with higher accuracy on the virtual character according to the DNA attribute of the game player, so that the virtual character can truly resonate with the game player.
  • step 320 obtains the DNA attributes of the game player, including:
  • step 322 a DNA sample of the game player is obtained.
  • the DNA sample can be blood, saliva, skin, nails, hair, body fluids, oral mucosal cells, epithelial cells, etc. Any sample containing DNA or nucleic acid that belongs to the game player.
  • the collection container can be a collection tube containing a DNA stabilizer, a capture card or other DNA collector. The collection container protects the DNA in the sample, and the collection container has an identifier that can be used to clarify the correlation between the sample and the user of the player. After the collection container has collected the game player's DNA sample, the collection container containing the game player's DNA sample is submitted or delivered to the system-designated DNA testing laboratory.
  • step 324 the DNA sample of the game player is detected to obtain the genomic data of the DNA sample.
  • step 326 the genomic data of the DNA sample is aligned with the reference genomic data in the reference database to obtain mutation information of the genomic data of the DNA sample.
  • DNA sequencing DNA sequencing, or translation of DNA sequencing
  • A adenine
  • T thymine
  • C cytosine
  • G guanine
  • the gene chip is a micro-processing technology that regularly arranges tens of thousands or even millions of specific DNA fragments (gene probes) in a small volume (for example, 2 cm 2 ).
  • a gene chip On a support such as a slide, a two-dimensional array of DNA probes, which is very similar to an electronic chip on an electronic computer, is called a gene chip.
  • the system obtains the genomic data of the sample provided by the player by comparing the game player's DNA raw data with a reference database or a data set, wherein the DNA raw data includes the DNA sequencing or the DNA chip obtained by the above-mentioned DNA sequencing or DNA chip respectively. Chip data. Because raw DNA sequencing or chip data is often incomplete or contains errors, it is often necessary to obtain more complete and more reliable processed genomic data by means of genome assembly or alignment.
  • the specific method may be: if the original DNA data is sequencing data, the original sequencing data may be sequenced. There are two specific sequence stitching methods:
  • no reference sequence splicing that is, according to the original DNA sequencing data, analyze each sequencing sequence segment (ie read) in the data set, and then pass the method such as Overlap-Layout-Consensus (OLC), String Graph method, or De Bruijn Graph method.
  • OLC Overlap-Layout-Consensus
  • SAC Overlap-Layout-Consensus
  • String Graph method String Graph method
  • De Bruijn Graph method De Bruijn Graph method.
  • each sequencing sequence fragment (ie, read) in the original DNA sequencing data is located in the reference sequence, and the positioning method is based on the sequence fragment and the reference.
  • the similarity of a certain region of the sequence is greater than a certain threshold value, and the genomic information of the sample is determined by the positioning information of the sequenced fragments.
  • the uniqueness of the DNA sample is found by comparing the genomic information of the sample with the reference genome in the reference database or the data set, and further obtaining its uniqueness.
  • the positional information of the mutation and the nature of the mutation for example, the base of the 3,500th reference genome of chromosome 1 is A, and the base of the sample DNA is G). If the raw data of the DNA is chip data, the positional information and the mutation property of the unique mutation can be obtained by comparing with the probe information of the chip.
  • Step 328 obtaining the DNA attribute of the game player corresponding to the DNA sample based on the mutation information of the genomic data of the DNA sample.
  • the professional reference database or data set stores the positional information of the unique mutation of DNA, the correspondence between the mutation property and the true genetic property.
  • the DNA sample of the game player is collected by the collection container, and the DNA sample is sent to the DNA testing laboratory.
  • the DNA sequence or chip data of the game player is obtained by DNA sequencing or DNA chip.
  • the gamer's DNA raw sequencing or chip data is obtained by comparing it with a reference database or data set to obtain the location information and mutation properties of its unique mutation.
  • the location information and mutation properties of the unique mutations of the game player's DNA samples are compared to a professional reference database or data set to obtain the DNA properties of the samples provided by the game player. Thereby, the process of accurately obtaining the game player DNA attribute based on the game player's DNA sample is realized.
  • the method includes:
  • step 720 the genomic data of the DNA sample is mutated.
  • the genomic data of the acquired DNA sample of the game player may also be subjected to probabilistic mutation or directed mutation.
  • the probabilistic mutation is a random mutation of the genomic data according to the finite parameter probability model.
  • the directional mutation can be based on the preset mutation mode (such as directed point mutation, insertion deletion mutation, or structural mutation). Mutation of one or more positions or regions, or according to a pre-defined parameter, a narrow probability distribution, a greatly reduced randomness, a more probabilistic probability model for one or more locations of the genomic data Or the region is mutated.
  • the trigger condition refers to some special trigger conditions inside the game, including game player upgrades or game player performance enhancements, for example, game players pick up special treasures, experience special events or game players purchase special upgrade packages.
  • the system sets the mutational mutation period T and the mutation rate R according to the needs of a specific game. Where R can be a matrix representing the probability of mutation of one base in the DNA data to another base. For example, the mutation rate R matrix can be:
  • a in the above table refers to adenine; T: refers to thymine; C: refers to cytosine; G: refers to guanine.
  • r C ⁇ A 0.001 means that the mutation rate of cytosine C mutation to adenine A (i.e., the probability of mutation in one cycle) is 0.001, and so on.
  • the genomic data of the acquired DNA sample of the game player may also be subjected to a probabilistic mutation or a directional mutation, wherein the probabilistic mutation or the directional mutation may be mutated according to the DNA mutation matrix-R matrix.
  • the parameter setting of the R matrix will determine whether it is a probabilistic mutation or a directed mutation, as well as the directionality of the mutation.
  • the R matrix can be set to a real DNA mutation matrix that matches the actual situation, or it can be an arbitrary mutation matrix that is preset according to the game requirements. When a single mutation rate R is used, R represents the probability of mutation from any base to another different base.
  • the R matrix may also include an insertion mutation or a deletion mutation, wherein the insertion mutation rate or the deletion mutation rate may be a real DNA insertion mutation rate or a deletion mutation rate, or may be an arbitrarily set DNA insertion mutation rate or deletion. Mutation rate.
  • the insertion mutation refers to the insertion of one or more bases when the DNA is mutated, that is, one or more bases.
  • a deletion mutation refers to the deletion of one or more bases when the DNA is mutated, that is, one or more bases are missing.
  • step 740 the genomic data after the mutation is obtained.
  • the system mutates the genomic data of the game player according to the preset mutation period T and the mutation rate R described above.
  • T the game player's genomic data will be changed by a random probabilistic simulation according to the rate matrix R. The actual changes made in each round will be retained until the next round.
  • a total of T (mutation cycle) rounds will be performed. After the T (mutation cycle) round was performed, the genomic data after the mutation was obtained.
  • Step 760 Perform sequence alignment on the genomic data after the mutation and the reference genomic data in the reference database to obtain mutation information of the genomic data after the mutation.
  • the mutated genomic data can be used as sample genomic information to be aligned (ie, for example, the spliced sample genomic information in step 326), so that the genomic data after the mutation can be compared with the reference genome in the reference database or data set.
  • the uniqueness of the DNA sample after the mutation is found, and the positional information and mutational properties of the unique mutation are further obtained (for example, the base of the 3,500th reference genome of chromosome 1 is A, and the base of the sample DNA is G) .
  • the genomic data after the mutation is chip data
  • the positional information and the mutation property of the unique mutation can be obtained by comparing with the probe information of the chip.
  • step 780 the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
  • the positional information and the mutation property of the unique mutation of the genomic data after the mutation are compared with a professional reference database or data set to obtain the genetic property of the genomic data after the mutation, and the genetic property is the DNA of the game player. Attributes such as gender, population or ethnicity, the likelihood of height and weight, and the likelihood of various other signs. Among them, the professional reference database or data set stores the positional information of the unique mutation of DNA, the correspondence between the mutation property and the true genetic property.
  • the genomic data of the game player DNA sample is acquired, the genomic data is randomly simulated and mutated according to the probabilistic model of the tunable parameter, so that the genomic data of the game player can be randomly changed, which can be realized.
  • the difference between the virtual characters and the game players in the game ensures that the virtual characters are different from the game players to a certain extent to increase the playability and unpredictability of the game.
  • the user or the game system can not only select probabilistically, but also directionally mutate the genomic data to change one or several DNA attributes currently used by the user. Make the game's playability and unpredictability further increase.
  • an in-game virtual character generating device 800 is also provided, the device comprising:
  • a game player's DNA attribute acquisition module 802 configured to acquire a DNA DNA attribute of the game player, and the DNA attribute is a genetic attribute obtained according to the game player's DNA data;
  • the attribute configuration module 804 of the virtual character is configured to configure the attribute of the virtual character corresponding to the game player according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and obtain the virtual corresponding to the game player.
  • Character attribute
  • the virtual character generation module 806 is configured to generate a virtual character corresponding to the game player in the game scene according to the attribute of the virtual character corresponding to the game player.
  • the in-game virtual character generating apparatus 800 further includes:
  • the mapping relationship between the DNA attribute and the virtual character attribute building module 803 is used to establish a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  • the mapping relationship between the DNA attribute and the virtual character attribute in the game includes: searching for the corresponding DNA attribute according to a preset rule for the virtual character attribute in the game; establishing a mapping between the DNA attribute and the virtual character attribute in the game relationship.
  • the game player's DNA attribute acquisition module 802 includes
  • a DNA sample acquisition module 802a for acquiring a DNA sample of a game player
  • the genomic data obtaining module 802b is configured to detect a DNA sample of the game player and obtain genomic data of the DNA sample;
  • the mutation information obtaining module 802c of the genomic data is configured to sequence the genomic data of the DNA sample and the reference genomic data in the reference database to obtain mutation information of the genomic data of the DNA sample;
  • the DNA attribute acquisition module 802d is configured to obtain a DNA attribute of the game player corresponding to the DNA sample based on the mutation information of the genomic data of the DNA sample.
  • an in-game virtual character generating apparatus further includes: a genomic data mutation module for mutating genomic data of a DNA sample; obtaining mutated genomic data; and mutating the genome
  • the data is sequence-aligned with the reference genomic data in the reference database to obtain mutation information of the genomic data after the mutation; and the DNA attribute of the game player corresponding to the DNA sample is obtained according to the mutation information of the genomic data after the mutation.
  • the genomic data mutation module is further configured to mutate the genomic data of the DNA sample when the trigger condition is met, the trigger condition including a game player upgrade or a performance improvement of the game player.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of: obtaining a DNA DNA property of a game player, the DNA attribute being a game according to the game
  • the genetic property obtained by the player's DNA data; the game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured to obtain the corresponding game player.
  • the attribute of the virtual character; the virtual character corresponding to the game player is generated in the game scene according to the attribute of the virtual character corresponding to the game player.
  • the following steps are further implemented: establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  • the following steps are further implemented: searching for the corresponding DNA attribute according to a preset rule for the virtual character attribute in the game; and establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  • the following steps are further performed: acquiring a DNA sample of the game player; detecting a DNA sample of the game player, obtaining genomic data of the DNA sample; and genomic data of the DNA sample and reference
  • the reference genomic data in the database is subjected to sequence alignment to obtain mutation information of the genomic data of the DNA sample; and the DNA information of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
  • the computer program described above is further executed by the processor to: mutate the genomic data of the DNA sample; obtain the genomic data after the mutation; and convert the genomic data after the mutation with the reference genome in the reference database
  • the data is subjected to sequence alignment to obtain mutation information of the genomic data after the mutation; and the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
  • the computer program described above when executed by the processor, further implements the step of mutating the genomic data of the DNA sample when the trigger condition is met, the triggering conditions including game player upgrades or performance improvement of the game player.
  • a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to: obtain the deoxygenation of the game player
  • the ribonucleic acid DNA attribute is a genetic attribute obtained according to the DNA data of the game player
  • the virtual attribute of the game player is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the virtual corresponding to the game player is configured.
  • the attribute of the character obtains the attribute of the virtual character corresponding to the game player; and the virtual character corresponding to the game player is generated in the game scene according to the attribute of the virtual character corresponding to the game player.
  • the processor when executing the computer program, further implements the steps of establishing a mapping relationship between the DNA attributes and the virtual character attributes in the game.
  • the processor executes the computer program, the following steps are further performed: searching for the corresponding DNA attribute according to a preset rule for the virtual character attribute in the game; and establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  • the processor executes the computer program, the following steps are further performed: acquiring a DNA sample of the game player; detecting the DNA sample of the game player, obtaining genomic data of the DNA sample; and genomic data of the DNA sample and the reference database
  • the reference genomic data in the sequence is subjected to sequence alignment to obtain mutation information of the genomic data of the DNA sample; and the DNA information of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
  • the processor executes the computer program to perform the following steps: mutating the genomic data of the DNA sample; obtaining the genomic data after the mutation; and using the genomic data after the mutation and the reference genomic data in the reference database
  • the sequence alignment is performed to obtain mutation information of the genomic data after the mutation; and the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
  • the processor when executing the computer program, further implements the step of mutating the genomic data of the DNA sample when the trigger condition is met, the triggering conditions including game player upgrades or performance improvement of the game player.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Genetics & Genomics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Computer Security & Cryptography (AREA)
  • Biophysics (AREA)
  • Business, Economics & Management (AREA)
  • Molecular Biology (AREA)
  • Proteomics, Peptides & Aminoacids (AREA)
  • General Business, Economics & Management (AREA)
  • Biotechnology (AREA)
  • Evolutionary Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A method and apparatus for generating a virtual character in a game, and a storage medium and a computer device. The method comprises: acquiring a DNA attribute of a game player, wherein the DNA attribute is a genetic attribute obtained according to DNA data of the game player; and configuring, according to a pre-established mapping relationship between the DNA attribute and an attribute of a virtual character in a game, the attributes of the virtual character corresponding to the game player. By associating a DNA attribute of a game player with an attribute in a virtual character in a game, the attribute of the virtual character can reflect the DNA attribute of the game player, so that the virtual character can reflect the individual differences between players.

Description

游戏中的虚拟人物生成方法、装置、存储介质、计算机设备Virtual character generation method, device, storage medium, computer device in game
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年03月13日提交中国专利局,申请号为201810205058.8,发明名称为“游戏中的虚拟人物生成方法、装置、存储介质、计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims to be filed on March 13, 2018, the Chinese Patent Office, the application number is 201110205058.8, and the title of the invention is the priority of the Chinese patent application of "the method, device, storage medium, and computer equipment for generating virtual characters in the game". The content is incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种游戏中的虚拟人物生成方法、装置、存储介质、计算机设备。The present application relates to the field of computer technology, and in particular, to a method, an apparatus, a storage medium, and a computer device for generating a virtual character in a game.
背景技术Background technique
虚拟人物指在现实中不存在的人物,它可以存在于电视剧、漫画、游戏等创作性作品中,是在电视剧、漫画、游戏等创作性作品中虚构的人物。在游戏玩家玩游戏的过程中,游戏玩家可以通过直接调节游戏中的虚拟人物的参数、使用人物脸部图像或全身图像、或3D扫描仪所采集的数据来创建和设置个性化的虚拟人物。但是当前的技术让游戏(包括例如网络游戏、社交游戏、社交应用、以及虚拟现实应用等应用)中虚拟人物的外观、能力、背景等属性与游戏玩家的相关性较低,无法很好地反映游戏玩家的真实个体差异,因此无法与游戏玩家真正地引起共鸣。A virtual character refers to a character that does not exist in reality. It can exist in creative works such as TV dramas, comics, and games. It is a fictional character in creative works such as TV dramas, comics, and games. During the game player's game play, the game player can create and set a personalized virtual character by directly adjusting the parameters of the virtual character in the game, using the human face image or the whole body image, or data collected by the 3D scanner. However, current technologies make the appearance, capabilities, background and other attributes of virtual characters in games (including applications such as online games, social games, social applications, and virtual reality applications) less relevant to game players and cannot be well reflected. The real individual differences of the game players, so they can't really resonate with the gamers.
发明内容Summary of the invention
基于此,有必要针对上述技术问题,提供一种能够生成与游戏玩家相关性较高、能够引起游戏玩家共鸣的游戏中的虚拟人物生成方法、装置、存储介质、计算机设备。Based on this, it is necessary to provide a method, apparatus, storage medium, and computer device for generating a virtual character in a game that is highly correlated with a game player and can resonate with a game player.
一种游戏中的虚拟人物生成方法,所述方法包括:A method for generating a virtual character in a game, the method comprising:
获取游戏玩家的脱氧核糖核酸DNA属性,所述DNA属性为根据所述游戏玩家的DNA数据所获得的遗传学属性;Obtaining a DNA DNA attribute of the game player, the DNA attribute being a genetic property obtained according to DNA data of the game player;
将所述游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与所述游戏玩家对应的虚拟人物的属性,获得与所述游戏玩家对应的虚拟人物的属性;Configuring, according to a mapping relationship between the DNA attribute of the game player and the virtual character attribute in the game, the attribute of the virtual character corresponding to the game player, and obtaining the attribute of the virtual character corresponding to the game player;
根据与所述游戏玩家对应的虚拟人物的属性,在游戏场景中生成与所述游戏玩家对应的虚拟人物。A virtual character corresponding to the game player is generated in the game scene based on the attribute of the virtual character corresponding to the game player.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
建立DNA属性与游戏中虚拟人物属性的映射关系。Establish a mapping relationship between DNA attributes and virtual character attributes in the game.
在其中一个实施例中,所述DNA属性与游戏中虚拟人物属性的映射关系的生成方式,包括:In one embodiment, the mapping relationship between the DNA attribute and the virtual character attribute in the game is generated, including:
对游戏中虚拟人物属性按照预设规则查找对应的DNA属性;Find the corresponding DNA attribute according to the preset rule for the virtual character attribute in the game;
建立所述DNA属性与游戏中虚拟人物属性的映射关系。Establish a mapping relationship between the DNA attribute and the virtual character attribute in the game.
在其中一个实施例中,所述获取游戏玩家的DNA属性,包括:In one embodiment, the obtaining a game player's DNA attributes includes:
获取游戏玩家的DNA样本;Obtain a DNA sample of the game player;
对所述游戏玩家的DNA样本进行检测,获取所述DNA样本的基因组数据;Detecting a DNA sample of the game player to obtain genomic data of the DNA sample;
将所述DNA样本的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取所述DNA样本的基因组数据的突变信息;Aligning the genomic data of the DNA sample with reference genomic data in a reference database to obtain mutation information of genomic data of the DNA sample;
根据所述DNA样本的基因组数据的突变信息得到与所述DNA样本对应的游戏玩家的DNA属性。The DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
在其中一个实施例中,在所述对所述游戏玩家的DNA样本进行检测,获取所述DNA样本的基因组数据之后,包括:In one embodiment, after the detecting the DNA sample of the game player to obtain the genomic data of the DNA sample, the method includes:
对所述DNA样本的基因组数据进行突变;Mutation of the genomic data of the DNA sample;
获取经过突变之后的基因组数据;Obtaining genomic data after mutation;
将所述经过突变之后的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取所述经过突变之后的基因组数据的突变信息;Performing sequence alignment of the mutated genomic data with reference genomic data in a reference database to obtain mutation information of the mutated genomic data;
根据所述经过突变之后的基因组数据的突变信息得到与所述DNA样本对应的游戏玩家的DNA属性。The DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
在其中一个实施例中,所述对所述DNA样本的基因组数据进行随机突变或定向突变,包括:In one embodiment, the random or directional mutation of the genomic data of the DNA sample comprises:
当满足触发条件时,对所述DNA样本的基因组数据进行随机突变或定向突变,所述触发条件包括游戏玩家升级或游戏玩家的性能提升。When the trigger condition is met, the genomic data of the DNA sample is subjected to a random mutation or a directed mutation, which includes a game player upgrade or a performance improvement of the game player.
一种游戏中的虚拟人物生成装置,所述装置包括:A virtual character generating device in a game, the device comprising:
游戏玩家的DNA属性获取模块,用于获取游戏玩家的脱氧核糖核酸DNA属性,所述DNA属性为根据所述游戏玩家的DNA数据所获得的遗传学属性;a game player's DNA attribute acquisition module for acquiring a DNA DNA attribute of the game player, the DNA attribute being a genetic attribute obtained according to the game player's DNA data;
虚拟人物的属性配置模块,用于将所述游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与所述游戏玩家对应的虚拟人物的属性,获得与所述游戏玩家对应的虚拟人物的属性An attribute configuration module of the virtual character, configured to configure a property of the virtual character corresponding to the game player according to a mapping relationship between the DNA attribute of the game player and a virtual character attribute in the game according to a pre-established DNA attribute, and obtain the The attribute of the virtual character corresponding to the game player
虚拟人物生成模块,用于根据与所述游戏玩家对应的虚拟人物的属性,在游戏场景中生成与所述游戏玩家对应的虚拟人物。The virtual character generating module is configured to generate a virtual character corresponding to the game player in the game scene according to an attribute of the virtual character corresponding to the game player.
在其中一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
DNA属性与虚拟人物属性的映射关系建立模块,用于建立DNA属性与游戏中虚拟人物属性的映射关系。A mapping relationship between the DNA attribute and the virtual character attribute is used to establish a mapping relationship between the DNA attribute and the virtual character attribute in the game.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:
获取游戏玩家的脱氧核糖核酸DNA属性,所述DNA属性为根据所述游戏玩家的DNA数据所获得的遗传学属性;Obtaining a DNA DNA attribute of the game player, the DNA attribute being a genetic property obtained according to DNA data of the game player;
将所述游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与所述游戏玩家对应的虚拟人物的属性,获得与所述游戏玩家对应的虚拟人物的属性;Configuring, according to a mapping relationship between the DNA attribute of the game player and the virtual character attribute in the game, the attribute of the virtual character corresponding to the game player, and obtaining the attribute of the virtual character corresponding to the game player;
根据与所述游戏玩家对应的虚拟人物的属性,在游戏场景中生成与所述游戏玩家对应的虚拟人物。A virtual character corresponding to the game player is generated in the game scene based on the attribute of the virtual character corresponding to the game player.
一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor performing the following steps when executing the computer program:
获取游戏玩家的脱氧核糖核酸DNA属性,所述DNA属性为根据所述游戏玩家的DNA数据所获得的遗传学属性;Obtaining a DNA DNA attribute of the game player, the DNA attribute being a genetic property obtained according to DNA data of the game player;
将所述游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与所述游戏玩家对应的虚拟人物的属性,获得与所述游戏玩家对应的虚拟人物的属性;Configuring, according to a mapping relationship between the DNA attribute of the game player and the virtual character attribute in the game, the attribute of the virtual character corresponding to the game player, and obtaining the attribute of the virtual character corresponding to the game player;
根据与所述游戏玩家对应的虚拟人物的属性,在游戏场景中生成与所述游戏玩家对应的虚拟人物。A virtual character corresponding to the game player is generated in the game scene based on the attribute of the virtual character corresponding to the game player.
上述游戏中的虚拟人物生成方法、装置、存储介质、计算机设备,获取游戏玩家的DNA属性,DNA属性为根据游戏玩家的DNA数据所获得的遗传学属性。将游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与游戏玩家对应的虚拟人物的属性,获得与游戏玩家对应的虚拟人物的属性。这样就将游戏玩家的DNA属性与游戏中虚拟人物的属性进行了关联,使得虚拟人物的属性能够反映游戏玩家的DNA属性。再进一步根据与游戏玩家对应的虚拟人物的属性,在游戏中生成与游戏玩家对应的虚拟人物。这样所生成的虚拟人物就可以反映游戏玩家的个体差异,与游戏玩家真正地引起共鸣。The avatar generation method, apparatus, storage medium, and computer device in the above game acquire the DNA attribute of the game player, and the DNA attribute is a genetic attribute obtained based on the DNA data of the game player. The game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured to obtain the attribute of the virtual character corresponding to the game player. This associates the game player's DNA attributes with the attributes of the virtual characters in the game, so that the attributes of the virtual characters reflect the DNA attributes of the game player. Further, based on the attribute of the avatar corresponding to the game player, a virtual character corresponding to the game player is generated in the game. The avatar thus generated can reflect the individual differences of the game players and truly resonate with the game players.
附图说明DRAWINGS
图1为一个实施例中游戏中的虚拟人物生成方法的应用环境图;1 is an application environment diagram of a method for generating a virtual character in a game in an embodiment;
图2为一个实施例中服务器的内部结构图;Figure 2 is a diagram showing the internal structure of a server in an embodiment;
图3为一个实施例中游戏中的虚拟人物生成方法的流程图;3 is a flow chart of a method for generating a virtual character in a game in an embodiment;
图4为另一个实施例中游戏中的虚拟人物生成方法的流程图;4 is a flow chart of a method for generating a virtual character in a game in another embodiment;
图5为一个实施例中DNA属性与游戏中虚拟人物属性的映射关系的生成方式的流程图;5 is a flow chart showing a manner of generating a mapping relationship between a DNA attribute and a virtual character attribute in a game in an embodiment;
图6为图3中获取游戏玩家的DNA属性方法的流程图;6 is a flow chart of the method for obtaining a DNA attribute of a game player in FIG. 3;
图7为再一个实施例中游戏中的虚拟人物生成方法的流程图;7 is a flowchart of a method for generating a virtual character in a game in still another embodiment;
图8为一个实施例中游戏中的虚拟人物生成装置的结构示意图;8 is a schematic structural diagram of a virtual character generating device in a game in an embodiment;
图9为又一个实施例中游戏中的虚拟人物生成装置的结构示意图;9 is a schematic structural diagram of a virtual character generating device in a game in still another embodiment;
图10为图8中游戏玩家的DNA属性获取模块的结构示意图。FIG. 10 is a schematic structural diagram of a DNA attribute acquisition module of the game player in FIG. 8.
具体实施方式detailed description
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图对本申请的具体实施方式做详细的说明。在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似改进,因此本申请不受下面公开的具体实施的限制。The specific embodiments of the present application will be described in detail below with reference to the accompanying drawings. Numerous specific details are set forth in the description below in order to provide a thorough understanding of the application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar improvements without departing from the scope of the present application, and thus the present application is not limited by the specific embodiments disclosed below.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention applies, unless otherwise defined. The terminology used herein is for the purpose of describing particular embodiments, and is not intended to be limiting. The technical features of the above embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, It is considered to be the range described in this specification.
本申请实施例提供的游戏中的虚拟人物生成方法可应用于如图1所示的环境中。参考图1所示,终端102通过网络与服务器104连接。The virtual character generation method in the game provided by the embodiment of the present application can be applied to the environment as shown in FIG. 1. Referring to FIG. 1, terminal 102 is connected to server 104 via a network.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图2所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储参考基因组数据、预先建立的DNA属性与游戏中虚拟人物属性的映射关系。该计算机设备的网络接口用于与外部的终端通过网络连 接通信。该计算机程序被处理器执行时以实现一种游戏中的虚拟人物生成方法。In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in FIG. 2. The computer device includes a processor, memory, network interface, and database connected by a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for operation of an operating system and computer programs in a non-volatile storage medium. The database of the computer device is used to store reference genome data, a mapping relationship between pre-established DNA attributes and virtual character attributes in the game. The network interface of the computer device is used to communicate with an external terminal via a network connection. The computer program is executed by the processor to implement a virtual character generation method in the game.
在一个实施例中,如图3所示,提供了一种游戏中的虚拟人物生成方法,以该方法应用于图1中的服务器为例进行说明,包括:In an embodiment, as shown in FIG. 3, a method for generating a virtual character in a game is provided. The method is applied to the server in FIG. 1 as an example, and includes:
步骤320,获取游戏玩家的脱氧核糖核酸DNA属性,DNA属性为根据游戏玩家的DNA数据所获得的遗传学属性。In step 320, the DNA DNA attribute of the game player is obtained, and the DNA attribute is a genetic attribute obtained according to the DNA data of the game player.
获取游戏玩家的真实DNA属性,其中DNA(deoxyribonucleic acid)是指脱氧核糖核酸又称去氧核糖核酸,是一种生物大分子,可组成遗传指令,引导生物发育与生命机能运作。主要功能是信息储存,可比喻为“蓝图”或“食谱”。其中包含的指令,是建构细胞内其他的化合物,如蛋白质与核糖核酸所需。带有蛋白质编码的DNA片段称为基因。基因由人体细胞核内的DNA(脱氧核糖核酸)组成,变幻莫测的基因排序决定了人类的遗传变异特性。Get the true DNA properties of the game player, where DNA (deoxyribonucleic acid) refers to DNA, also known as DNA, is a biological macromolecule that can form genetic instructions to guide biological development and vital functioning. The main function is information storage, which can be compared to a "blueprint" or "recipe". The instructions contained therein are required to construct other compounds in the cell, such as proteins and ribonucleic acids. A DNA fragment with a protein encoding is called a gene. The gene consists of DNA (deoxyribonucleic acid) in the nucleus of the human body, and the unpredictable sequence of genes determines the genetic variation of humans.
具体地,获取游戏玩家的DNA样本,对游戏玩家的DNA样本进行检测,获取DNA样本的基因组数据。将DNA样本的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取DNA样本的基因组数据的突变信息。根据DNA样本的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。DNA属性为根据游戏玩家的DNA数据所获得的遗传学属性,例如性别信息、民族信息、年龄信息、身高信息、体重信息、肤色信息等多种遗传学属性。Specifically, the DNA sample of the game player is acquired, and the DNA sample of the game player is detected to obtain the genomic data of the DNA sample. The genomic data of the DNA sample is aligned with the reference genomic data in the reference database to obtain mutation information of the genomic data of the DNA sample. The DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample. The DNA attribute is a genetic attribute obtained from the DNA data of the game player, such as gender information, ethnic information, age information, height information, weight information, skin color information, and the like.
步骤340,将游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与游戏玩家对应的虚拟人物的属性,获得与游戏玩家对应的虚拟人物的属性。 Step 340, the game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured to obtain the attribute of the virtual character corresponding to the game player.
预先建立了DNA属性与游戏中虚拟人物属性的映射关系,并将该映射关系存储在数据库中。例如,上述获取到的游戏玩家的DNA属性中的性别信息为男性,则预先设定游戏中虚拟人物的性别属性就为男性;上述获取到的游戏玩家的DNA属性中的身高信息为160厘米至175厘米之间,则预先设定游戏中虚拟人物的身高为230厘米到270厘米。对每一个获取的DNA属性都建 立这样的与游戏中虚拟人物属性的映射关系。A mapping relationship between the DNA attribute and the virtual character attribute in the game is established in advance, and the mapping relationship is stored in the database. For example, if the gender information in the DNA attribute of the obtained game player is male, the gender attribute of the virtual character in the game is preset to be a male; the height information in the DNA attribute of the obtained game player is 160 cm to Between 175 cm, the height of the virtual character in the game is preset from 230 cm to 270 cm. A mapping relationship with the attributes of the virtual characters in the game is established for each acquired DNA attribute.
将游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与游戏玩家对应的虚拟人物的属性,例如根据DNA属性中的性别信息相应配置与游戏玩家对应的虚拟人物的性别属性;根据DNA属性中的民族信息相应配置与游戏玩家对应的虚拟人物的民族属性;根据DNA属性中的身高信息相应配置与游戏玩家对应的虚拟人物的身高属性;以此类推完成对游戏中虚拟人物的多种遗传学属性进行配置。在配置完成之后,获得与游戏玩家对应的虚拟人物的所有遗传学属性。The game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured, for example, the virtual character corresponding to the game player is configured according to the gender information in the DNA attribute. The gender attribute; the ethnic attribute of the virtual character corresponding to the game player is configured according to the ethnic information in the DNA attribute; the height attribute of the virtual character corresponding to the game player is correspondingly configured according to the height information in the DNA attribute; The multiple genetic properties of the virtual characters are configured. After the configuration is completed, all genetic attributes of the avatar corresponding to the game player are obtained.
步骤360,根据与游戏玩家对应的虚拟人物的属性,在游戏场景中生成与游戏玩家对应的虚拟人物。Step 360: Generate a virtual character corresponding to the game player in the game scene according to the attribute of the virtual character corresponding to the game player.
具体地,在配置完成之后,获得与游戏玩家对应的虚拟人物的所有遗传学属性。然后就可以在游戏场景中根据虚拟人物的所有遗传学属性生成虚拟人物。例如,根据虚拟人物的性别、民族、年龄、身高、体重、肤色等多种遗传学属性,综合起来在游戏场景中生成具有上述遗传学属性的虚拟人物,将虚拟人物展示在游戏中作为与游戏玩家对应的虚拟人物。Specifically, after the configuration is completed, all genetic attributes of the virtual character corresponding to the game player are obtained. Then, in the game scene, virtual characters can be generated from all the genetic attributes of the virtual character. For example, according to various genetic attributes such as gender, ethnicity, age, height, weight, and skin color of the virtual character, a virtual character having the above genetic property is generated in the game scene, and the virtual character is displayed in the game as a game. The virtual character corresponding to the player.
本实施例中,获取游戏玩家的DNA属性,DNA属性为根据游戏玩家的DNA数据所获得的遗传学属性。将游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与游戏玩家对应的虚拟人物的属性,获得与游戏玩家对应的虚拟人物的属性。这样就将游戏玩家的DNA属性与游戏中虚拟人物的属性进行了关联,使得虚拟人物的属性能够反映游戏玩家的DNA属性。再进一步根据与游戏玩家对应的虚拟人物的属性,在游戏中生成与游戏玩家对应的虚拟人物。这样所生成的虚拟人物就可以反映游戏玩家的个体差异,与游戏玩家真正地引起共鸣。In this embodiment, the DNA attribute of the game player is obtained, and the DNA attribute is a genetic attribute obtained according to the DNA data of the game player. The game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured to obtain the attribute of the virtual character corresponding to the game player. This associates the game player's DNA attributes with the attributes of the virtual characters in the game, so that the attributes of the virtual characters reflect the DNA attributes of the game player. Further, based on the attribute of the avatar corresponding to the game player, a virtual character corresponding to the game player is generated in the game. The avatar thus generated can reflect the individual differences of the game players and truly resonate with the game players.
在一个实施例中,如图4所示,提供了一种游戏中的虚拟人物生成方法还包括:In an embodiment, as shown in FIG. 4, the method for generating a virtual character in a game further includes:
步骤330,建立DNA属性与游戏中虚拟人物属性的映射关系。 Step 330, establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
对游戏中虚拟人物属性按照预设规则查找对应的DNA属性,再建立 DNA属性与游戏中虚拟人物属性的映射关系,该映射关系具体包括映射函数。虚拟人物属性指的是游戏中的虚拟人物的设计规则对应的一些可以调节的参数,例如人物身高、性别、肤色、体重、体脂含量、眼睛颜色、攻击力、防御力、虚拟种族、特殊技能等。在建立DNA属性与游戏中虚拟人物属性的映射函数时,具体地,根据一款游戏中的虚拟人物的设计规则,确定其各个可以调节设定的参数,例如人物身高、性别、肤色、体重、体脂含量、眼睛颜色、攻击力、防御力、虚拟种族、特殊技能等。然后根据该游戏中虚拟人物的各个可以调节设定的参数,按照预设规则找到相对应的最接近的DNA属性。具体地,对于虚拟人物的设计参数“身高”、“性别”等与游戏玩家的DNA属性有直接对应的关系,就直接按照预设规则建立这些DNA属性与游戏中虚拟人物属性的映射关系。但是游戏中虚拟人物部分参数不一定会有一个真实的DNA属性与之相对应。例如一个虚拟人物的“攻击力”和“防御力”,就没有一个“攻击力”或“防御力”的DNA属性。因此,对于虚拟人物的“攻击力”和“防御力”这样的设计参数,就可以按照预设规则与游戏玩家真实的DNA属性如“耐力”或“新陈代谢速率”等进行对应。按照上述的DNA属性与游戏中虚拟人物属性之间的对应关系,对于每一个DNA属性,建立该DNA属性数值对该虚拟人物参数的映射函数。The virtual character attribute in the game is searched for the corresponding DNA attribute according to a preset rule, and then the mapping relationship between the DNA attribute and the virtual character attribute in the game is established, and the mapping relationship specifically includes a mapping function. The virtual character attribute refers to some adjustable parameters corresponding to the design rules of the virtual characters in the game, such as character height, gender, skin color, weight, body fat content, eye color, attack power, defense power, virtual race, special skills. Wait. When establishing a mapping function of the DNA attribute and the virtual character attribute in the game, specifically, according to the design rule of the virtual character in a game, determining various parameters that can be adjusted, such as the character height, gender, skin color, weight, Body fat content, eye color, attack power, defense, virtual race, special skills, etc. Then according to the parameters of the virtual characters in the game, the corresponding parameters can be adjusted, and the corresponding closest DNA attributes are found according to the preset rules. Specifically, for the virtual character's design parameters "height", "gender" and the like have a direct correspondence with the game player's DNA attributes, the mapping relationship between these DNA attributes and the virtual character attributes in the game is established directly according to the preset rules. However, some parameters of the virtual character in the game do not necessarily have a real DNA attribute corresponding to it. For example, the “attack power” and “defense power” of a avatar do not have a DNA attribute of “attack force” or “defense power”. Therefore, for the design parameters such as "attack force" and "defense power" of the virtual character, it is possible to correspond to the game player's real DNA attributes such as "endurance" or "metabolism rate" according to a preset rule. According to the correspondence between the DNA attribute and the virtual character attribute in the game, for each DNA attribute, a mapping function of the DNA attribute value to the virtual character parameter is established.
在本申请实施例中,预先建立了DNA属性与游戏中虚拟人物属性的映射关系,即相当于设置DNA属性与游戏中虚拟人物属性的映射规则。从而只要获取了游戏玩家的DNA属性,那么就可以根据这个映射规则得到游戏中虚拟人物的属性。在获取了游戏中虚拟人物的属性之后,就可以按照所获取的游戏中虚拟人物的属性进行生成虚拟人物。该生成的虚拟人物即具有与游戏玩家相对应的一些属性信息,这样因为所生成的虚拟人物反映了游戏玩家的个体差异,所以就可以与游戏玩家真正地引起共鸣。In the embodiment of the present application, the mapping relationship between the DNA attribute and the virtual character attribute in the game is established in advance, that is, the mapping rule corresponding to setting the DNA attribute and the virtual character attribute in the game. Therefore, as long as the DNA attribute of the game player is obtained, the attribute of the virtual character in the game can be obtained according to this mapping rule. After the attributes of the virtual characters in the game are acquired, the virtual characters can be generated according to the acquired attributes of the virtual characters in the game. The generated virtual character has some attribute information corresponding to the game player, so that since the generated virtual character reflects the individual difference of the game player, it can truly resonate with the game player.
在一个实施例中,如图5所示,DNA属性与游戏中虚拟人物属性的映射关系的生成方式,包括:In one embodiment, as shown in FIG. 5, the mapping relationship between the DNA attribute and the virtual character attribute in the game is generated, including:
步骤510,对游戏中虚拟人物属性按照预设规则查找对应的DNA属性。Step 510: Search for the corresponding DNA attribute according to a preset rule for the virtual character attribute in the game.
对游戏中虚拟人物属性按照预设规则找到相对应的最接近的DNA属性。具体地,对于虚拟人物的设计参数“身高”、“性别”等与游戏玩家的DNA属性有直接对应的关系,就直接建立这些DNA属性与游戏中虚拟人物属性的映射关系。但是游戏中虚拟人物部分参数不一定会有一个真实的DNA属性与之相对应。例如一个虚拟人物的“攻击力”和“防御力”,就没有一个“攻击力”或“防御力”的DNA属性。因此,对于虚拟人物的“攻击力”和“防御力”这样的设计参数,就可以将虚拟人物的“攻击力”和“防御力”这样的设计参数与游戏玩家真实的DNA属性如“耐力”或“新陈代谢速率”等进行对应。确定每一个DNA属性与虚拟人物属性之间的对应关系,并形成对应规则。Find the corresponding closest DNA attribute to the virtual character attribute in the game according to the preset rules. Specifically, for the relationship between the design parameters "height", "gender" and the like of the virtual character and the DNA attribute of the game player, the mapping relationship between these DNA attributes and the virtual character attributes in the game is directly established. However, some parameters of the virtual character in the game do not necessarily have a real DNA attribute corresponding to it. For example, the “attack power” and “defense power” of a avatar do not have a DNA attribute of “attack force” or “defense power”. Therefore, for the design parameters such as "attack force" and "defense power" of the avatar, the design parameters such as the "attack force" and "defense power" of the avatar can be matched with the real DNA attributes of the game player such as "endurance". Or correspond to "metabolism rate" and the like. Determine the correspondence between each DNA attribute and the avatar attribute and form a corresponding rule.
然后按照预设规则,对游戏中虚拟人物属性按照预设规则查找对应的DNA属性。Then, according to the preset rule, the corresponding virtual attribute of the game is searched for the corresponding DNA attribute according to a preset rule.
步骤520,建立DNA属性与游戏中虚拟人物属性的映射关系。 Step 520, establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
按照预设规则,对游戏中虚拟人物属性按照预设规则查找对应的DNA属性之后,建立DNA属性与游戏中虚拟人物属性的映射关系,该映射关系具体包括映射函数。该映射函数可以是简单的离散数据关联映射,例如是类对类的对应关系,例如对游戏玩家进行DNA检测出的DNA属性为男性,那么虚拟人物属性中的性别就会被设定为男性,或对游戏玩家进行DNA检测出的DNA属性为中国北方汉族,那么虚拟人物的种族特性也可以被相应地设定成游戏中的某一个种族(例如汉族或一个其他虚拟的种族)。该虚拟的种族可以是现实生活中并不存在的种族。According to the preset rule, after searching the corresponding DNA attribute according to the preset rule for the virtual character attribute in the game, a mapping relationship between the DNA attribute and the virtual character attribute in the game is established, and the mapping relationship specifically includes a mapping function. The mapping function may be a simple discrete data association mapping, for example, a class-to-class correspondence. For example, if the DNA attribute detected by the game player DNA is male, then the gender in the virtual character attribute is set to be male. Or the DNA attribute detected by the game player DNA is Han Chinese in northern China, then the racial characteristics of the virtual character can also be set to a certain race in the game (such as Han or a other virtual race). This virtual race can be a race that does not exist in real life.
当然,该映射函数也可以是数学相关映射(例如一个公式),比如对游戏玩家进行DNA检测出该游戏玩家的身高在160厘米至175厘米之间,与之相对应的虚拟人物身高为230厘米到270厘米,游戏玩家的真实身高和虚拟人物的身高之间经过一个公式进行转换。该映射函数也可以是一个概率关系映射(概率分布函数),例如对游戏玩家进行DNA检测,检测出该游戏玩家具有强大的心肺功能,那么相应地游戏玩家在游戏的战斗场景中获得体能相关的特殊物品的概率就会增加。该映射函数也可以是一个复杂的映射关系,例 如通过DNA检测可以预测游戏玩家某一年龄段的可能相貌,该相貌可以与游戏中人物的相貌有一个映射关系,进而通过DNA检测数据得到的游戏玩家的实际相貌建立其相应的游戏人物相貌。Of course, the mapping function can also be a mathematically related mapping (such as a formula), such as DNA detection for the game player that the player's height is between 160 cm and 175 cm, and the corresponding virtual character is 230 cm tall. Up to 270 cm, the game player's true height and the height of the avatar are converted by a formula. The mapping function may also be a probability relation map (probability distribution function), for example, performing DNA detection on the game player to detect that the game player has strong cardiopulmonary function, and accordingly the game player obtains physical fitness in the battle scene of the game. The probability of special items will increase. The mapping function can also be a complex mapping relationship, for example, DNA detection can predict the possible appearance of a certain age group of the game player, the appearance can be mapped to the appearance of the characters in the game, and then the game obtained by the DNA detection data The actual appearance of the player establishes the appearance of the corresponding game character.
在本申请实施例中,建立DNA属性与游戏中虚拟人物属性的映射关系时,首先必须将对游戏玩家进行DNA检测所获得的所有DNA属性,与所要生成的与该游戏玩家对应的虚拟人物的属性进行对应。在对应之后形成了规则,就按照该对应规则对游戏中虚拟人物属性按照预设规则查找对应的DNA属性。然后再建立DNA属性与游戏中虚拟人物属性的映射关系,该映射关系具体包括映射函数。就将DNA属性与游戏中虚拟人物属性之间的对应关系进行量化,即通过映射函数就可以获取到虚拟人物的属性。如此,便可以实现根据游戏玩家的DNA属性能够在虚拟人物身上准确度较高的还原游戏玩家,从而虚拟人物就可以与游戏玩家真正地引起共鸣。In the embodiment of the present application, when establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game, first, all the DNA attributes obtained by performing DNA detection on the game player must be generated with the virtual character corresponding to the game player to be generated. The attributes correspond. After the correspondence is formed, the corresponding DNA attribute is searched according to the preset rule for the virtual character attribute in the game according to the corresponding rule. Then, a mapping relationship between the DNA attribute and the virtual character attribute in the game is established, and the mapping relationship specifically includes a mapping function. The correspondence between the DNA attribute and the virtual character attribute in the game is quantized, that is, the attribute of the virtual character can be obtained through the mapping function. In this way, it is possible to restore the game player with higher accuracy on the virtual character according to the DNA attribute of the game player, so that the virtual character can truly resonate with the game player.
在一个实施例中,如图6所示,步骤320获取游戏玩家的DNA属性,包括:In one embodiment, as shown in FIG. 6, step 320 obtains the DNA attributes of the game player, including:
步骤322,获取游戏玩家的DNA样本。In step 322, a DNA sample of the game player is obtained.
DNA样本可以是血液、唾液、皮肤、指甲、头发、体液、口腔黏膜细胞、上皮细胞等任何含有DNA或核酸的,属于游戏玩家的样本。采集容器可以是含有DNA稳定剂的采集管、采集卡或其他DNA采集器。采集容器能够保护样本中的DNA,同时采集容器上有标识,能够用以明确该样本与所属玩家用户的相关关系。在采集容器采集了游戏玩家的DNA样本之后,将包含游戏玩家的DNA样本的采集容器提交或投递到系统指定的DNA检测实验室。The DNA sample can be blood, saliva, skin, nails, hair, body fluids, oral mucosal cells, epithelial cells, etc. Any sample containing DNA or nucleic acid that belongs to the game player. The collection container can be a collection tube containing a DNA stabilizer, a capture card or other DNA collector. The collection container protects the DNA in the sample, and the collection container has an identifier that can be used to clarify the correlation between the sample and the user of the player. After the collection container has collected the game player's DNA sample, the collection container containing the game player's DNA sample is submitted or delivered to the system-designated DNA testing laboratory.
步骤324,对游戏玩家的DNA样本进行检测,获取DNA样本的基因组数据。In step 324, the DNA sample of the game player is detected to obtain the genomic data of the DNA sample.
步骤326,将DNA样本的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取DNA样本的基因组数据的突变信息。In step 326, the genomic data of the DNA sample is aligned with the reference genomic data in the reference database to obtain mutation information of the genomic data of the DNA sample.
在DNA检测实验室中,通过DNA测序或DNA芯片的方式,获得该游戏玩家的DNA原始测序或芯片数据。其中,DNA测序(DNA sequencing, 或译DNA定序)是指分析特定DNA片段的碱基序列,也就是腺嘌呤(A)、胸腺嘧啶(T)、胞嘧啶(C)与鸟嘌呤的(G)排列方式。其中,基因芯片是通过微加工技术,将数以万计、乃至百万计的特定序列的DNA片段(基因探针)有规律地排列固定于一个较小体积(例如2平方厘米)的硅片、玻片等支持物上,构成一个二维的DNA探针阵列,与电子计算机上的电子芯片十分相似所以被称为基因芯片。In the DNA testing laboratory, the game player's DNA raw sequencing or chip data is obtained by means of DNA sequencing or DNA chip. Among them, DNA sequencing (DNA sequencing, or translation of DNA sequencing) refers to the analysis of the base sequence of a specific DNA fragment, that is, adenine (A), thymine (T), cytosine (C) and guanine (G )Arrangement. Among them, the gene chip is a micro-processing technology that regularly arranges tens of thousands or even millions of specific DNA fragments (gene probes) in a small volume (for example, 2 cm 2 ). On a support such as a slide, a two-dimensional array of DNA probes, which is very similar to an electronic chip on an electronic computer, is called a gene chip.
系统通过将游戏玩家的DNA原始数据与参考数据库或数据集进行比较,获得玩家所提供的样本的基因组数据,其中DNA原始数据包括上述DNA测序或DNA芯片两种方式所分别获得的DNA原始测序或芯片数据。因为DNA原始测序或芯片数据往往是不完整的或含有错误的,因此通常需要通过基因组组装或比对等方法来获得较为完整和较为可信的处理过的基因组数据。The system obtains the genomic data of the sample provided by the player by comparing the game player's DNA raw data with a reference database or a data set, wherein the DNA raw data includes the DNA sequencing or the DNA chip obtained by the above-mentioned DNA sequencing or DNA chip respectively. Chip data. Because raw DNA sequencing or chip data is often incomplete or contains errors, it is often necessary to obtain more complete and more reliable processed genomic data by means of genome assembly or alignment.
具体的方法可以为:如果DNA原始数据为测序数据,那么可以对原始测序数据进行序列拼接。具体的序列拼接方法可以有两种:The specific method may be: if the original DNA data is sequencing data, the original sequencing data may be sequenced. There are two specific sequence stitching methods:
1,无参考序列拼接:即依据DNA原始测序数据,分析该数据集中的各个测序序列片段(即read),然后通过诸如Overlap-Layout-Consensus(OLC)方法,String Graph方法,或De Bruijn Graph方法,将这些序列片段组装成较长的contig(组装群),最终通过测序序列间的其他信息关系(例如成对关系,即paired-end序列中的成对信息)形成Scaffolds,即推断出各个Contigs的前后和DNA正负链的关系。这些Contig和Scaffold信息最终形成拼接后的该样本的基因组信息。1, no reference sequence splicing: that is, according to the original DNA sequencing data, analyze each sequencing sequence segment (ie read) in the data set, and then pass the method such as Overlap-Layout-Consensus (OLC), String Graph method, or De Bruijn Graph method. These sequence fragments are assembled into a long contig (assembly group), and finally Scaffolds are formed by sequencing other information relationships between sequences (for example, pairwise relationships, ie, paired information in paired-end sequences), that is, each Contigs is inferred. The relationship between the front and back of the DNA and the positive and negative strands of DNA. These Contig and Scaffold information ultimately form the genomic information of the spliced sample.
2,有参考序列拼接:即使用一个参考序列(例如人类参考基因组序列),将DNA原始测序数据中的各个测序序列片段(即read)定位到这个参考序列中,定位的方式以序列片段与参考序列的某一个区域的相似性大于某一个阈值为准,通过这些测序序列片段的定位信息,确定出样本的基因组信息。2, there is a reference sequence splicing: that is, using a reference sequence (such as a human reference genomic sequence), each sequencing sequence fragment (ie, read) in the original DNA sequencing data is located in the reference sequence, and the positioning method is based on the sequence fragment and the reference. The similarity of a certain region of the sequence is greater than a certain threshold value, and the genomic information of the sample is determined by the positioning information of the sequenced fragments.
在通过序列拼接这一步骤,确定了样本的基因组信息之后,再通过将样本的基因组信息与参考数据库或数据集中的参考基因组比对的方式,发现该DNA样本的独特性,并进一步获得其特有突变的位置信息和突变性质(例如 染色体1第3500位参考基因组的碱基为A,样本DNA的碱基为G)。如果DNA原始数据为芯片数据,那么可以通过与芯片的探针信息比对的方式,获得其特有突变的位置信息和突变性质。After the sequence splicing step is performed to determine the genomic information of the sample, the uniqueness of the DNA sample is found by comparing the genomic information of the sample with the reference genome in the reference database or the data set, and further obtaining its uniqueness. The positional information of the mutation and the nature of the mutation (for example, the base of the 3,500th reference genome of chromosome 1 is A, and the base of the sample DNA is G). If the raw data of the DNA is chip data, the positional information and the mutation property of the unique mutation can be obtained by comparing with the probe information of the chip.
步骤328,根据DNA样本的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。 Step 328, obtaining the DNA attribute of the game player corresponding to the DNA sample based on the mutation information of the genomic data of the DNA sample.
将游戏玩家的DNA样本的特有突变的位置信息和突变性质与专业的参考数据库或数据集进行比较,以获得游戏玩家所提供的样本的遗传学属性,遗传学属性即为游戏玩家的DNA属性,例如性别、种群或民族关系、身高及体重的可能性、以及其他各种体征的可能性。其中,专业的参考数据库或数据集中存储了DNA的特有突变的位置信息、突变性质与真实遗传学属性之间的对应关系。Comparing the location information and mutation properties of the unique mutations of the game player's DNA samples with a professional reference database or data set to obtain the genetic properties of the samples provided by the game player, the genetic properties being the DNA attributes of the game player, Such as gender, population or ethnic relationship, the possibility of height and weight, and the possibility of various other signs. Among them, the professional reference database or data set stores the positional information of the unique mutation of DNA, the correspondence between the mutation property and the true genetic property.
在本申请实施例中,通过采集容器采集游戏玩家的DNA样本,将DNA样本发送至DNA检测实验室。在DNA检测实验室中,对DNA样本通过DNA测序或DNA芯片的方式,获得该游戏玩家的DNA原始测序或芯片数据。将游戏玩家的DNA原始测序或芯片数据通过与参考数据库或数据集进行比对的方式,获得其特有突变的位置信息和突变性质。最后,将游戏玩家的DNA样本的特有突变的位置信息和突变性质与专业的参考数据库或数据集进行比较,以获得游戏玩家所提供的样本的DNA属性。从而,实现了根据游戏玩家的DNA样本准确获得游戏玩家DNA属性的过程。In the embodiment of the present application, the DNA sample of the game player is collected by the collection container, and the DNA sample is sent to the DNA testing laboratory. In the DNA testing laboratory, the DNA sequence or chip data of the game player is obtained by DNA sequencing or DNA chip. The gamer's DNA raw sequencing or chip data is obtained by comparing it with a reference database or data set to obtain the location information and mutation properties of its unique mutation. Finally, the location information and mutation properties of the unique mutations of the game player's DNA samples are compared to a professional reference database or data set to obtain the DNA properties of the samples provided by the game player. Thereby, the process of accurately obtaining the game player DNA attribute based on the game player's DNA sample is realized.
在一个实施例中,如图7所示,在对游戏玩家的DNA样本进行检测,获取DNA样本的基因组数据之后,包括:In one embodiment, as shown in FIG. 7, after detecting the DNA sample of the game player and obtaining the genomic data of the DNA sample, the method includes:
步骤720,对DNA样本的基因组数据进行突变。In step 720, the genomic data of the DNA sample is mutated.
当满足触发条件时,也可以对所获取的游戏玩家的DNA样本的基因组数据进行概率性突变或定向性突变。概率性突变即为按照可调参数的概率模型对基因组数据进行随机突变,定向性突变则可以按照预设的突变方式(例如定向的点突变、插入删除突变、或结构突变等),对基因组数据的某一个或几个位置或区域进行突变,或按照一个预先限定好参数的,概率分布较窄的, 随机性大大降低的,突变方向较为明确的概率模型对基因组数据的某一个或几个位置或区域进行突变。触发条件指游戏内部的一些特殊触发条件,包括游戏玩家升级或游戏玩家的性能提升,例如,游戏玩家捡到特殊宝物、经历特殊事件或游戏玩家购买了特殊的升级包。系统根据某一个具体游戏的需求,设置突变的突变周期T和突变速率R。其中,R可以为一个矩阵,代表着DNA数据中某一个碱基突变到另一个碱基的突变概率。例如,突变速率R矩阵可以是:When the trigger condition is met, the genomic data of the acquired DNA sample of the game player may also be subjected to probabilistic mutation or directed mutation. The probabilistic mutation is a random mutation of the genomic data according to the finite parameter probability model. The directional mutation can be based on the preset mutation mode (such as directed point mutation, insertion deletion mutation, or structural mutation). Mutation of one or more positions or regions, or according to a pre-defined parameter, a narrow probability distribution, a greatly reduced randomness, a more probabilistic probability model for one or more locations of the genomic data Or the region is mutated. The trigger condition refers to some special trigger conditions inside the game, including game player upgrades or game player performance enhancements, for example, game players pick up special treasures, experience special events or game players purchase special upgrade packages. The system sets the mutational mutation period T and the mutation rate R according to the needs of a specific game. Where R can be a matrix representing the probability of mutation of one base in the DNA data to another base. For example, the mutation rate R matrix can be:
  AA CC GG TT
AA r A→A=0.99 r A→A =0.99 r A→C=0.001 r A→C =0.001 r A→G=0.008 r A→G =0.008 r A→T=0.001 r A→T =0.001
CC r C→A=0.001 r C→A =0.001 r C→C=0.99 r C→C =0.99 r C→G=0.001 r C→G =0.001 r C→T=0.008 r C→T = 0.008
GG r G→A=0.008 r G→A =0.008 r G→C=0.001 r G→C =0.001 r G→G=0.99 r G→G =0.99 r G→T=0.001 r G→T =0.001
TT r T→A=0.001 r T→A =0.001 r T→C=0.003 r T→C =0.003 r T→G=0.001 r T→G =0.001 r T→T=0.995 r T→T =0.995
其中,上表中的A:指的是腺嘌呤;T:指的是胸腺嘧啶;C:指的是胞嘧啶;G:指的是鸟嘌呤。r C→A=0.001指的是胞嘧啶C突变至腺嘌呤A的突变速率(即一个周期内的突变概率)为0.001,以此类推。 Among them, A in the above table refers to adenine; T: refers to thymine; C: refers to cytosine; G: refers to guanine. r C→A = 0.001 means that the mutation rate of cytosine C mutation to adenine A (i.e., the probability of mutation in one cycle) is 0.001, and so on.
当满足触发条件时,也可以对所获取的游戏玩家的DNA样本的基因组数据进行概率性突变或定向性突变,其中概率性突变或定向性突变可以按照DNA突变矩阵-R矩阵来进行突变,该R矩阵的参数设置将决定是概率性突变或定向性突变,以及突变的方向性。R矩阵的设置可以是符合实际情况的真实DNA突变矩阵,也可以是根据游戏需求任意预先设置的突变矩阵。当使用单一的突变速率R时,R代表着任意一个碱基到另一个不同碱基的突变概率。该R矩阵也可以包括插入突变或删除突变,其中插入突变速率或删除突变速率可以是符合实际情况的真实DNA插入突变速率或删除突变速率,当然也可以是一个任意设置的DNA插入突变速率或删除突变速率。其中,插入突变指的是DNA突变时插入了一个或多个碱基,即为多了一个或多个碱基。删除突变指的是DNA突变时删除了一个或多个碱基,即为少了一个或多个碱基。When the trigger condition is met, the genomic data of the acquired DNA sample of the game player may also be subjected to a probabilistic mutation or a directional mutation, wherein the probabilistic mutation or the directional mutation may be mutated according to the DNA mutation matrix-R matrix. The parameter setting of the R matrix will determine whether it is a probabilistic mutation or a directed mutation, as well as the directionality of the mutation. The R matrix can be set to a real DNA mutation matrix that matches the actual situation, or it can be an arbitrary mutation matrix that is preset according to the game requirements. When a single mutation rate R is used, R represents the probability of mutation from any base to another different base. The R matrix may also include an insertion mutation or a deletion mutation, wherein the insertion mutation rate or the deletion mutation rate may be a real DNA insertion mutation rate or a deletion mutation rate, or may be an arbitrarily set DNA insertion mutation rate or deletion. Mutation rate. Among them, the insertion mutation refers to the insertion of one or more bases when the DNA is mutated, that is, one or more bases. A deletion mutation refers to the deletion of one or more bases when the DNA is mutated, that is, one or more bases are missing.
步骤740,获取经过突变之后的基因组数据。In step 740, the genomic data after the mutation is obtained.
系统按照上述预先设置的突变周期T和突变速率R,对游戏玩家的基因组数据进行突变。每一个突变周期T内,游戏玩家的基因组数据将按照速率矩阵R,通过随机地概率性模拟进行更改。每一轮实际发生的更改会保留到下一轮。一共会进行T(突变周期)轮。在进行了T(突变周期)轮之后,即获得了经过突变之后的基因组数据。The system mutates the genomic data of the game player according to the preset mutation period T and the mutation rate R described above. Within each mutation period T, the game player's genomic data will be changed by a random probabilistic simulation according to the rate matrix R. The actual changes made in each round will be retained until the next round. A total of T (mutation cycle) rounds will be performed. After the T (mutation cycle) round was performed, the genomic data after the mutation was obtained.
步骤760,将经过突变之后的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取经过突变之后的基因组数据的突变信息。Step 760: Perform sequence alignment on the genomic data after the mutation and the reference genomic data in the reference database to obtain mutation information of the genomic data after the mutation.
可以把经过突变之后的基因组数据作为待比对的样本基因组信息(即例如步骤326中的拼接后的样本基因组信息),因此可以把突变之后的基因组数据通过与参考数据库或数据集中的参考基因组比对的方式,发现该突变之后的DNA样本的独特性,并进一步获得其特有突变的位置信息和突变性质(例如染色体1第3500位参考基因组的碱基为A,样本DNA的碱基为G)。如果经过突变之后的基因组数据为芯片数据,那么可以通过与芯片的探针信息比对的方式,获得其特有突变的位置信息和突变性质。The mutated genomic data can be used as sample genomic information to be aligned (ie, for example, the spliced sample genomic information in step 326), so that the genomic data after the mutation can be compared with the reference genome in the reference database or data set. In the right way, the uniqueness of the DNA sample after the mutation is found, and the positional information and mutational properties of the unique mutation are further obtained (for example, the base of the 3,500th reference genome of chromosome 1 is A, and the base of the sample DNA is G) . If the genomic data after the mutation is chip data, the positional information and the mutation property of the unique mutation can be obtained by comparing with the probe information of the chip.
步骤780,根据经过突变之后的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。In step 780, the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
将经过突变之后的基因组数据的特有突变的位置信息和突变性质,与专业的参考数据库或数据集进行比较,以获得经过突变之后的基因组数据的遗传学属性,遗传学属性即为游戏玩家的DNA属性,例如性别、种群或民族关系、身高及体重的可能性、以及其他各种体征的可能性。其中,专业的参考数据库或数据集中存储了DNA的特有突变的位置信息、突变性质与真实遗传学属性之间的对应关系。The positional information and the mutation property of the unique mutation of the genomic data after the mutation are compared with a professional reference database or data set to obtain the genetic property of the genomic data after the mutation, and the genetic property is the DNA of the game player. Attributes such as gender, population or ethnicity, the likelihood of height and weight, and the likelihood of various other signs. Among them, the professional reference database or data set stores the positional information of the unique mutation of DNA, the correspondence between the mutation property and the true genetic property.
在本申请实施例中,在获取了游戏玩家DNA样本的基因组数据之后,通过按可调参数的概率模型对基因组数据进行随机模拟突变,因此,可以对游戏玩家的基因组数据进行随机改变,可以实现一定程度上的游戏中虚拟人物与游戏玩家的差别,确保虚拟人物与游戏玩家一定程度的不同,以增加游戏 的可玩性和不可预测性。同时,在游戏玩家升级或特定触发条件满足时,用户或游戏系统不仅可以选择概率性地,还可以定向性的对基因组数据进行突变,改变用户当前使用的某一种或某几种DNA属性,使游戏的可玩性和不可预测性进一步增加。In the embodiment of the present application, after the genomic data of the game player DNA sample is acquired, the genomic data is randomly simulated and mutated according to the probabilistic model of the tunable parameter, so that the genomic data of the game player can be randomly changed, which can be realized. To some extent, the difference between the virtual characters and the game players in the game ensures that the virtual characters are different from the game players to a certain extent to increase the playability and unpredictability of the game. At the same time, when the game player upgrades or specific trigger conditions are met, the user or the game system can not only select probabilistically, but also directionally mutate the genomic data to change one or several DNA attributes currently used by the user. Make the game's playability and unpredictability further increase.
在一个实施例中,如图8所示,还提供了一种游戏中的虚拟人物生成装置800,该装置包括:In one embodiment, as shown in FIG. 8, an in-game virtual character generating device 800 is also provided, the device comprising:
游戏玩家的DNA属性获取模块802,用于获取游戏玩家的脱氧核糖核酸DNA属性,DNA属性为根据游戏玩家的DNA数据所获得的遗传学属性;a game player's DNA attribute acquisition module 802, configured to acquire a DNA DNA attribute of the game player, and the DNA attribute is a genetic attribute obtained according to the game player's DNA data;
虚拟人物的属性配置模块804,用于将游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与游戏玩家对应的虚拟人物的属性,获得与游戏玩家对应的虚拟人物的属性The attribute configuration module 804 of the virtual character is configured to configure the attribute of the virtual character corresponding to the game player according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and obtain the virtual corresponding to the game player. Character attribute
虚拟人物生成模块806,用于根据与游戏玩家对应的虚拟人物的属性,在游戏场景中生成与游戏玩家对应的虚拟人物。The virtual character generation module 806 is configured to generate a virtual character corresponding to the game player in the game scene according to the attribute of the virtual character corresponding to the game player.
在一个实施例中,如图9所示,提供了一种游戏中的虚拟人物生成装置800还包括:In an embodiment, as shown in FIG. 9, the in-game virtual character generating apparatus 800 further includes:
DNA属性与虚拟人物属性的映射关系建立模块803,用于建立DNA属性与游戏中虚拟人物属性的映射关系。The mapping relationship between the DNA attribute and the virtual character attribute building module 803 is used to establish a mapping relationship between the DNA attribute and the virtual character attribute in the game.
在一个实施例中,DNA属性与游戏中虚拟人物属性的映射关系的生成方式,包括:对游戏中虚拟人物属性按照预设规则查找对应的DNA属性;建立DNA属性与游戏中虚拟人物属性的映射关系。In one embodiment, the mapping relationship between the DNA attribute and the virtual character attribute in the game includes: searching for the corresponding DNA attribute according to a preset rule for the virtual character attribute in the game; establishing a mapping between the DNA attribute and the virtual character attribute in the game relationship.
在一个实施例中,如图10所示,游戏玩家的DNA属性获取模块802,包括In one embodiment, as shown in FIG. 10, the game player's DNA attribute acquisition module 802 includes
DNA样本获取模块802a,用于获取游戏玩家的DNA样本;a DNA sample acquisition module 802a for acquiring a DNA sample of a game player;
基因组数据获取模块802b,用于对游戏玩家的DNA样本进行检测,获取DNA样本的基因组数据;The genomic data obtaining module 802b is configured to detect a DNA sample of the game player and obtain genomic data of the DNA sample;
基因组数据的突变信息获取模块802c,用于将DNA样本的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取DNA样本的基因组数 据的突变信息;The mutation information obtaining module 802c of the genomic data is configured to sequence the genomic data of the DNA sample and the reference genomic data in the reference database to obtain mutation information of the genomic data of the DNA sample;
DNA属性获取模块802d,用于根据DNA样本的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。The DNA attribute acquisition module 802d is configured to obtain a DNA attribute of the game player corresponding to the DNA sample based on the mutation information of the genomic data of the DNA sample.
在一个实施例中,提供了一种游戏中的虚拟人物生成装置还包括:基因组数据突变模块,用于对DNA样本的基因组数据进行突变;获取经过突变之后的基因组数据;将经过突变之后的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取经过突变之后的基因组数据的突变信息;根据经过突变之后的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。In one embodiment, an in-game virtual character generating apparatus further includes: a genomic data mutation module for mutating genomic data of a DNA sample; obtaining mutated genomic data; and mutating the genome The data is sequence-aligned with the reference genomic data in the reference database to obtain mutation information of the genomic data after the mutation; and the DNA attribute of the game player corresponding to the DNA sample is obtained according to the mutation information of the genomic data after the mutation.
在一个实施例中,基因组数据突变模块,还用于当满足触发条件时,对DNA样本的基因组数据进行突变,触发条件包括游戏玩家升级或游戏玩家的性能提升。In one embodiment, the genomic data mutation module is further configured to mutate the genomic data of the DNA sample when the trigger condition is met, the trigger condition including a game player upgrade or a performance improvement of the game player.
在一个实施例中,还提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:获取游戏玩家的脱氧核糖核酸DNA属性,DNA属性为根据游戏玩家的DNA数据所获得的遗传学属性;将游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与游戏玩家对应的虚拟人物的属性,获得与游戏玩家对应的虚拟人物的属性;根据与游戏玩家对应的虚拟人物的属性,在游戏场景中生成与游戏玩家对应的虚拟人物。In one embodiment, there is also provided a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of: obtaining a DNA DNA property of a game player, the DNA attribute being a game according to the game The genetic property obtained by the player's DNA data; the game player's DNA attribute is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the attribute of the virtual character corresponding to the game player is configured to obtain the corresponding game player. The attribute of the virtual character; the virtual character corresponding to the game player is generated in the game scene according to the attribute of the virtual character corresponding to the game player.
在一个实施例中,上述计算机程序被处理器执行时还实现以下步骤:建立DNA属性与游戏中虚拟人物属性的映射关系。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
在一个实施例中,上述计算机程序被处理器执行时还实现以下步骤:对游戏中虚拟人物属性按照预设规则查找对应的DNA属性;建立DNA属性与游戏中虚拟人物属性的映射关系。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: searching for the corresponding DNA attribute according to a preset rule for the virtual character attribute in the game; and establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
在一个实施例中,上述计算机程序被处理器执行时还实现以下步骤:获取游戏玩家的DNA样本;对游戏玩家的DNA样本进行检测,获取DNA样本的基因组数据;将DNA样本的基因组数据与参考数据库中的参考基因组数 据进行序列比对,获取DNA样本的基因组数据的突变信息;根据DNA样本的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。In one embodiment, when the computer program is executed by the processor, the following steps are further performed: acquiring a DNA sample of the game player; detecting a DNA sample of the game player, obtaining genomic data of the DNA sample; and genomic data of the DNA sample and reference The reference genomic data in the database is subjected to sequence alignment to obtain mutation information of the genomic data of the DNA sample; and the DNA information of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
在一个实施例中,上述计算机程序被处理器执行时还实现以下步骤:对DNA样本的基因组数据进行突变;获取经过突变之后的基因组数据;将经过突变之后的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取经过突变之后的基因组数据的突变信息;根据经过突变之后的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。In one embodiment, the computer program described above is further executed by the processor to: mutate the genomic data of the DNA sample; obtain the genomic data after the mutation; and convert the genomic data after the mutation with the reference genome in the reference database The data is subjected to sequence alignment to obtain mutation information of the genomic data after the mutation; and the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
在一个实施例中,上述计算机程序被处理器执行时还实现以下步骤:当满足触发条件时,对DNA样本的基因组数据进行突变,触发条件包括游戏玩家升级或游戏玩家的性能提升。In one embodiment, the computer program described above, when executed by the processor, further implements the step of mutating the genomic data of the DNA sample when the trigger condition is met, the triggering conditions including game player upgrades or performance improvement of the game player.
在一个实施例中,还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:获取游戏玩家的脱氧核糖核酸DNA属性,DNA属性为根据游戏玩家的DNA数据所获得的遗传学属性;将游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与游戏玩家对应的虚拟人物的属性,获得与游戏玩家对应的虚拟人物的属性;根据与游戏玩家对应的虚拟人物的属性,在游戏场景中生成与游戏玩家对应的虚拟人物。In one embodiment, there is also provided a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to: obtain the deoxygenation of the game player The ribonucleic acid DNA attribute, the DNA attribute is a genetic attribute obtained according to the DNA data of the game player; the virtual attribute of the game player is configured according to the mapping relationship between the pre-established DNA attribute and the virtual character attribute in the game, and the virtual corresponding to the game player is configured. The attribute of the character obtains the attribute of the virtual character corresponding to the game player; and the virtual character corresponding to the game player is generated in the game scene according to the attribute of the virtual character corresponding to the game player.
在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:建立DNA属性与游戏中虚拟人物属性的映射关系。In one embodiment, the processor, when executing the computer program, further implements the steps of establishing a mapping relationship between the DNA attributes and the virtual character attributes in the game.
在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:对游戏中虚拟人物属性按照预设规则查找对应的DNA属性;建立DNA属性与游戏中虚拟人物属性的映射关系。In one embodiment, when the processor executes the computer program, the following steps are further performed: searching for the corresponding DNA attribute according to a preset rule for the virtual character attribute in the game; and establishing a mapping relationship between the DNA attribute and the virtual character attribute in the game.
在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:获取游戏玩家的DNA样本;对游戏玩家的DNA样本进行检测,获取DNA样本的基因组数据;将DNA样本的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取DNA样本的基因组数据的突变信息;根据DNA样本的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。In one embodiment, when the processor executes the computer program, the following steps are further performed: acquiring a DNA sample of the game player; detecting the DNA sample of the game player, obtaining genomic data of the DNA sample; and genomic data of the DNA sample and the reference database The reference genomic data in the sequence is subjected to sequence alignment to obtain mutation information of the genomic data of the DNA sample; and the DNA information of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:对DNA样本的基因组数据进行突变;获取经过突变之后的基因组数据;将经过突变之后的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取经过突变之后的基因组数据的突变信息;根据经过突变之后的基因组数据的突变信息得到与DNA样本对应的游戏玩家的DNA属性。In one embodiment, the processor executes the computer program to perform the following steps: mutating the genomic data of the DNA sample; obtaining the genomic data after the mutation; and using the genomic data after the mutation and the reference genomic data in the reference database The sequence alignment is performed to obtain mutation information of the genomic data after the mutation; and the DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
在一个实施例中,上述处理器执行计算机程序时还实现以下步骤:当满足触发条件时,对DNA样本的基因组数据进行突变,触发条件包括游戏玩家升级或游戏玩家的性能提升。In one embodiment, the processor, when executing the computer program, further implements the step of mutating the genomic data of the DNA sample when the trigger condition is met, the triggering conditions including game player upgrades or performance improvement of the game player.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一非易失性的计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the computer program can be stored in a non-volatile computer readable storage medium. The program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (19)

  1. 一种游戏中的虚拟人物生成方法,所述方法包括:A method for generating a virtual character in a game, the method comprising:
    获取游戏玩家的脱氧核糖核酸DNA属性,所述DNA属性为根据所述游戏玩家的DNA数据所获得的遗传学属性;Obtaining a DNA DNA attribute of the game player, the DNA attribute being a genetic property obtained according to DNA data of the game player;
    将所述游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与所述游戏玩家对应的虚拟人物的属性,获得与所述游戏玩家对应的虚拟人物的属性;Configuring, according to a mapping relationship between the DNA attribute of the game player and the virtual character attribute in the game, the attribute of the virtual character corresponding to the game player, and obtaining the attribute of the virtual character corresponding to the game player;
    根据与所述游戏玩家对应的虚拟人物的属性,在游戏场景中生成与所述游戏玩家对应的虚拟人物。A virtual character corresponding to the game player is generated in the game scene based on the attribute of the virtual character corresponding to the game player.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    建立DNA属性与游戏中虚拟人物属性的映射关系。Establish a mapping relationship between DNA attributes and virtual character attributes in the game.
  3. 根据权利要求2所述的方法,其特征在于,所述DNA属性与游戏中虚拟人物属性的映射关系的生成方式,包括:The method according to claim 2, wherein the mapping of the mapping between the DNA attribute and the virtual character attribute in the game comprises:
    对游戏中虚拟人物属性按照预设规则查找对应的DNA属性;Find the corresponding DNA attribute according to the preset rule for the virtual character attribute in the game;
    建立所述DNA属性与游戏中虚拟人物属性的映射关系。Establish a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  4. 根据权利要求1所述的方法,其特征在于,所述获取游戏玩家的DNA属性,包括:The method of claim 1 wherein said obtaining a game player's DNA attributes comprises:
    获取游戏玩家的DNA样本;Obtain a DNA sample of the game player;
    对所述游戏玩家的DNA样本进行检测,获取所述DNA样本的基因组数据;Detecting a DNA sample of the game player to obtain genomic data of the DNA sample;
    将所述DNA样本的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取所述DNA样本的基因组数据的突变信息;Aligning the genomic data of the DNA sample with reference genomic data in a reference database to obtain mutation information of genomic data of the DNA sample;
    根据所述DNA样本的基因组数据的突变信息得到与所述DNA样本对应的游戏玩家的DNA属性。The DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
  5. 根据权利要求4所述的方法,其特征在于,在所述对所述游戏玩家的DNA样本进行检测,获取所述DNA样本的基因组数据之后,包括:The method according to claim 4, wherein after detecting the DNA sample of the game player and acquiring the genomic data of the DNA sample, the method comprises:
    对所述DNA样本的基因组数据进行突变;Mutation of the genomic data of the DNA sample;
    获取经过突变之后的基因组数据;Obtaining genomic data after mutation;
    将所述经过突变之后的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取所述经过突变之后的基因组数据的突变信息;Performing sequence alignment of the mutated genomic data with reference genomic data in a reference database to obtain mutation information of the mutated genomic data;
    根据所述经过突变之后的基因组数据的突变信息得到与所述DNA样本对应的游戏玩家的DNA属性。The DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述经过突变之后的基因组数据的突变信息得到与所述DNA样本对应的游戏玩家的DNA属性,包括:The method according to claim 5, wherein said obtaining, based on said mutation information of said mutated genomic data, a DNA attribute of a game player corresponding to said DNA sample, comprising:
    将经过突变之后的基因组数据的特有突变的位置信息和突变性质,与专业的参考数据库或数据集进行比较,以获得经过突变之后的基因组数据的遗传学属性。The positional information and mutation properties of the unique mutation of the genomic data after the mutation are compared with a professional reference database or data set to obtain the genetic properties of the genomic data after the mutation.
  7. 根据权利要求5所述的方法,其特征在于,所述对所述DNA样本的基因组数据进行突变,包括:The method according to claim 5, wherein said mutating said genomic data of said DNA sample comprises:
    当满足触发条件时,对所述DNA样本的基因组数据进行突变,所述触发条件包括游戏玩家升级或游戏玩家的性能提升。The genomic data of the DNA sample is mutated when the trigger condition is met, the trigger condition including a game player upgrade or a performance improvement of the game player.
  8. 根据权利要求7所述的方法,其特征在于,所述突变包括概率性突变和定向性突变。The method of claim 7, wherein said mutation comprises a probabilistic mutation and a directional mutation.
  9. 一种游戏中的虚拟人物生成装置,其特征在于,所述装置包括:A virtual character generating device in a game, characterized in that the device comprises:
    游戏玩家的DNA属性获取模块,用于获取游戏玩家的脱氧核糖核酸DNA属性,所述DNA属性为根据所述游戏玩家的DNA数据所获得的遗传学属性;a game player's DNA attribute acquisition module for acquiring a DNA DNA attribute of the game player, the DNA attribute being a genetic attribute obtained according to the game player's DNA data;
    虚拟人物的属性配置模块,用于将所述游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与所述游戏玩家对应的虚拟人物的属性,获得与所述游戏玩家对应的虚拟人物的属性;An attribute configuration module of the virtual character, configured to configure a property of the virtual character corresponding to the game player according to a mapping relationship between the DNA attribute of the game player and a virtual character attribute in the game according to a pre-established DNA attribute, and obtain the The attribute of the virtual character corresponding to the game player;
    虚拟人物生成模块,用于根据与所述游戏玩家对应的虚拟人物的属性,在游戏场景中生成与所述游戏玩家对应的虚拟人物。The virtual character generating module is configured to generate a virtual character corresponding to the game player in the game scene according to an attribute of the virtual character corresponding to the game player.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    DNA属性与虚拟人物属性的映射关系建立模块,用于建立DNA属性与游戏中虚拟人物属性的映射关系。A mapping relationship between the DNA attribute and the virtual character attribute is used to establish a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的游戏中的虚拟人物生成方法的步骤。A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor, and the method for generating a virtual character in a game according to any one of claims 1 to 8 step.
  12. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1中所述的游戏中的虚拟人物生成方法的步骤。A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program to implement the game of claim 1. The steps of the avatar generation method.
  13. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program to implement the following steps:
    获取游戏玩家的脱氧核糖核酸DNA属性,所述DNA属性为根据所述游戏玩家的DNA数据所获得的遗传学属性;Obtaining a DNA DNA attribute of the game player, the DNA attribute being a genetic property obtained according to DNA data of the game player;
    将所述游戏玩家的DNA属性按照预先建立的DNA属性与游戏中虚拟人物属性的映射关系,配置与所述游戏玩家对应的虚拟人物的属性,获得与所述游戏玩家对应的虚拟人物的属性;Configuring, according to a mapping relationship between the DNA attribute of the game player and the virtual character attribute in the game, the attribute of the virtual character corresponding to the game player, and obtaining the attribute of the virtual character corresponding to the game player;
    根据与所述游戏玩家对应的虚拟人物的属性,在游戏场景中生成与所述游戏玩家对应的虚拟人物。A virtual character corresponding to the game player is generated in the game scene based on the attribute of the virtual character corresponding to the game player.
  14. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器还用于实现:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor is further configured to:
    建立DNA属性与游戏中虚拟人物属性的映射关系。Establish a mapping relationship between DNA attributes and virtual character attributes in the game.
  15. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器还用于实现:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor is further configured to:
    对游戏中虚拟人物属性按照预设规则查找对应的DNA属性;Find the corresponding DNA attribute according to the preset rule for the virtual character attribute in the game;
    建立所述DNA属性与游戏中虚拟人物属性的映射关系。Establish a mapping relationship between the DNA attribute and the virtual character attribute in the game.
  16. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器还用于实现:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor is further configured to:
    获取游戏玩家的DNA样本;Obtain a DNA sample of the game player;
    对所述游戏玩家的DNA样本进行检测,获取所述DNA样本的基因组数据;Detecting a DNA sample of the game player to obtain genomic data of the DNA sample;
    将所述DNA样本的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取所述DNA样本的基因组数据的突变信息;Aligning the genomic data of the DNA sample with reference genomic data in a reference database to obtain mutation information of genomic data of the DNA sample;
    根据所述DNA样本的基因组数据的突变信息得到与所述DNA样本对应的游戏玩家的DNA属性。The DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data of the DNA sample.
  17. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器还用于实现:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor is further configured to:
    对所述DNA样本的基因组数据进行突变;Mutation of the genomic data of the DNA sample;
    获取经过突变之后的基因组数据;Obtaining genomic data after mutation;
    将所述经过突变之后的基因组数据与参考数据库中的参考基因组数据进行序列比对,获取所述经过突变之后的基因组数据的突变信息;Performing sequence alignment of the mutated genomic data with reference genomic data in a reference database to obtain mutation information of the mutated genomic data;
    根据所述经过突变之后的基因组数据的突变信息得到与所述DNA样本对应的游戏玩家的DNA属性。The DNA attribute of the game player corresponding to the DNA sample is obtained based on the mutation information of the genomic data after the mutation.
  18. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器还用于实现:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor is further configured to:
    将经过突变之后的基因组数据的特有突变的位置信息和突变性质,与专业的参考数据库或数据集进行比较,以获得经过突变之后的基因组数据的遗传学属性。The positional information and mutation properties of the unique mutation of the genomic data after the mutation are compared with a professional reference database or data set to obtain the genetic properties of the genomic data after the mutation.
  19. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器还用于实现:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor is further configured to:
    当满足触发条件时,对所述DNA样本的基因组数据进行突变,所述触发条件包括游戏玩家升级或游戏玩家的性能提升。The genomic data of the DNA sample is mutated when the trigger condition is met, the trigger condition including a game player upgrade or a performance improvement of the game player.
PCT/CN2018/091366 2018-03-13 2018-06-14 Method and apparatus for generating virtual character in game, and storage medium and computer device WO2019174144A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810205058.8 2018-03-13
CN201810205058.8A CN108499110B (en) 2018-03-13 2018-03-13 Virtual portrait generation method, device, storage medium, computer equipment in game

Publications (1)

Publication Number Publication Date
WO2019174144A1 true WO2019174144A1 (en) 2019-09-19

Family

ID=63377679

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/091366 WO2019174144A1 (en) 2018-03-13 2018-06-14 Method and apparatus for generating virtual character in game, and storage medium and computer device

Country Status (2)

Country Link
CN (1) CN108499110B (en)
WO (1) WO2019174144A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2712418C1 (en) * 2019-11-08 2020-01-28 Илья Юрьевич Емельянов Computing device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109908587B (en) * 2019-03-20 2022-07-15 北京小米移动软件有限公司 Method and device for generating image parameters of reproducible virtual character and storage medium
CN110917612A (en) * 2019-11-13 2020-03-27 芯海科技(深圳)股份有限公司 Game interaction method and device, electronic equipment and storage medium
CN112121436B (en) * 2020-09-18 2024-02-09 网易(杭州)网络有限公司 Game data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008293401A (en) * 2007-05-28 2008-12-04 Nomura Research Institute Ltd Virtual space providing device, virtual space management method and computer program
CN101676922A (en) * 2008-09-19 2010-03-24 英业达股份有限公司 System for adjusting virtual creature parameter according to entity creature status and method thereof
CN102457496A (en) * 2010-10-20 2012-05-16 英雄部落股份有限公司 Identification system for multiply identities
US20150298006A1 (en) * 2014-04-22 2015-10-22 Dna Diagnostics Center, Inc. Helix profile system and methods
CN105431813A (en) * 2013-05-20 2016-03-23 微软技术许可有限责任公司 Attributing user action based on biometric identity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008293401A (en) * 2007-05-28 2008-12-04 Nomura Research Institute Ltd Virtual space providing device, virtual space management method and computer program
CN101676922A (en) * 2008-09-19 2010-03-24 英业达股份有限公司 System for adjusting virtual creature parameter according to entity creature status and method thereof
CN102457496A (en) * 2010-10-20 2012-05-16 英雄部落股份有限公司 Identification system for multiply identities
CN105431813A (en) * 2013-05-20 2016-03-23 微软技术许可有限责任公司 Attributing user action based on biometric identity
US20150298006A1 (en) * 2014-04-22 2015-10-22 Dna Diagnostics Center, Inc. Helix profile system and methods

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2712418C1 (en) * 2019-11-08 2020-01-28 Илья Юрьевич Емельянов Computing device

Also Published As

Publication number Publication date
CN108499110A (en) 2018-09-07
CN108499110B (en) 2019-11-01

Similar Documents

Publication Publication Date Title
WO2019174144A1 (en) Method and apparatus for generating virtual character in game, and storage medium and computer device
Haghshenas et al. HASLR: fast hybrid assembly of long reads
Baele et al. Genealogical working distributions for Bayesian model testing with phylogenetic uncertainty
Holder et al. Phylogeny estimation: traditional and Bayesian approaches
US7831392B2 (en) System and process for validating, aligning and reordering one or more genetic sequence maps using at least one ordered restriction map
CN109011580B (en) Incomplete game card face obtaining method and device, computer equipment and storage medium
Lewis Maximum likelihood as an alternative to parsimony for inferring phylogeny using nucleotide sequence data
Steinberg et al. Building and improving reference genome assemblies
CN109310332A (en) Method for analyzing numerical data
Gong et al. Global biological network alignment by using efficient memetic algorithm
Zhang et al. A survey on the algorithm and development of multiple sequence alignment
Ralph et al. Using B cell receptor lineage structures to predict affinity
KR20190136765A (en) Gene analysis apparatus and method of analyzing gene using the same
Souza et al. Detecting clustered independent rare variant associations using genetic algorithms
CN106570350B (en) Mononucleotide polymorphic site parting algorithm
ES2456240T3 (en) Method and computer system to evaluate classification annotations assigned to DNA sequences
Tavakoli et al. Haplotype-aware variant selection for genome graphs
Lalwani Design and implementation of bi-level artificial bee colony algorithm to train hidden Markov models for performing multiple sequence alignment of proteins
Ali et al. Evolutionary analysis reveals low coverage as the major challenge for protein interaction network alignment
Khaledian et al. A study of pclust settings: obtaining accurate cluster results
TWI650664B (en) Method for establishing assessment model for protein loss of function and risk assessment method and system using the assessment model
He et al. A new hidden Markov model for protein quality assessment using compatibility between protein sequence and structure
Fortmann-Grote et al. Peer Community Journal
Al-Nuaimi Ancestral Reconstruction and Investigations of Genomics Recombination on Chloroplasts Genomes
Feng et al. Comparison and Analysis of Computational Methods for Identifying N6-Methyladenosine Sites in Saccharomyces cerevisiae

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18909685

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/01/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18909685

Country of ref document: EP

Kind code of ref document: A1