CN109126136A - Generation method, device, equipment and the storage medium of three-dimensional pet - Google Patents

Generation method, device, equipment and the storage medium of three-dimensional pet Download PDF

Info

Publication number
CN109126136A
CN109126136A CN201810840540.9A CN201810840540A CN109126136A CN 109126136 A CN109126136 A CN 109126136A CN 201810840540 A CN201810840540 A CN 201810840540A CN 109126136 A CN109126136 A CN 109126136A
Authority
CN
China
Prior art keywords
pet
dimensional
layer
dimensional pet
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810840540.9A
Other languages
Chinese (zh)
Other versions
CN109126136B (en
Inventor
杨旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810840540.9A priority Critical patent/CN109126136B/en
Publication of CN109126136A publication Critical patent/CN109126136A/en
Application granted granted Critical
Publication of CN109126136B publication Critical patent/CN109126136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/825Fostering virtual characters
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content
    • 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/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8058Virtual breeding, e.g. tamagotchi

Abstract

This application discloses a kind of three-dimensional pet generation method, device, equipment and storage mediums, belong to field of Computer Graphics.The described method includes: sending the acquisition request of three-dimensional pet to server;Receive the figure parameter for the three-dimensional pet that the server is sent;According to the figure parameter, determine that the n-layer target of the three-dimensional pet makes material from the material set of the three-dimensional pet;It include that n-layer makes material in the material set, the n-layer production material and the n role position of the three-dimensional pet respectively correspond, and there are the different materials that at least one layer of production material includes at least two corresponding same positions;The n-layer target production material of the three-dimensional pet is overlapped combination according to hierarchic sequence, generates the pet image of the three-dimensional pet.The embodiment of the present application can be that same type of three-dimensional pet generates exponential other different pet images based on limited production material.

Description

Generation method, device, equipment and the storage medium of three-dimensional pet
Technical field
The invention relates to field of Computer Graphics, in particular to a kind of generation method of three-dimensional pet, Device, equipment and storage medium.
Background technique
There are the three-dimensional pet of many same types in game application, three-dimensional pet include soldier, offices and men, Hero, pet, non-player role (Non-Player Character, NPC) etc..
When generating the three-dimensional pet of same type, the relevant technologies can be arranged three-dimensional for the three-dimensional pet of same type Body model, different pattern and clothes are then superimposed on the body of body model and/or face, to generate The mutually different three-dimensional pet of pet image.
But due to the same type three-dimensional pet of different pet images, on the material for needing to add some personalizations respectively It goes, therefore generating process needs to expend more time and computing resource, and leads to the number of types of the pet image generated It is limited.
Summary of the invention
The embodiment of the present application provides generation method, device, equipment and the storage medium of a kind of three-dimensional pet, can be with It solves to need to add some personalized materials respectively to the three-dimensional pet of same type in the related technology, needs to expend more The problem of time and computing resource.The technical solution is as follows:
According to the one aspect of the application, a kind of generation method of three-dimensional pet is provided, applied to being provided with three In the application program for tieing up virtual pet, the pet image there are three-dimensional pet described at least one is advised based on gene genetic Then generate, which comprises
The acquisition request of three-dimensional pet is sent to server;
Receive the figure parameter for the three-dimensional pet that the server is sent;
According to the figure parameter, the three-dimensional pet is determined from the material set of the three-dimensional pet N-layer target makes material;It include that n-layer makes material in the material set, the n-layer production material is doted on the three-dimensional N role position of object respectively corresponds, and there is the not homoatomic that at least one layer of production material includes at least two corresponding same positions Material, i-th layer of target production material are one in i-th layer of production material, and 0≤i≤n and n are the integer greater than 1;
The n-layer target of three-dimensional pet production material is overlapped combination according to hierarchic sequence, described in generation The pet image of three-dimensional pet.
According to the another aspect of the application, a kind of generation method of three-dimensional pet is provided, applied to being provided with three In the server for tieing up virtual pet, the pet image there are three-dimensional pet described at least one is based on gene genetic rule It generates, which comprises
Receive the acquisition request for the three-dimensional pet that terminal is sent;
Determine that the figure parameter of the three-dimensional pet, the figure parameter are used to indicate institute according to the acquisition request State the n-layer target production material that terminal determines the three-dimensional pet from the material set of the three-dimensional pet, institute It states n-layer production material and the n role position of the three-dimensional pet respectively corresponds, every layer of production material includes at least two The different materials at corresponding same position, i-th layer of target production material are one in i-th layer of production material, 0≤i≤n and n is Integer greater than 1;
The figure parameter of the three-dimensional pet is sent to the terminal.
According to the another aspect of the application, a kind of generating means of three-dimensional pet are provided, described device is provided with The three-dimensional pet, the pet image there are at least one three-dimensional pet are generated based on gene genetic rule, Described device includes:
Sending module, for sending the acquisition request of three-dimensional pet to server;
Receiving module, for receiving the figure parameter for the three-dimensional pet that the server is sent;
Determining module, described in being determined from the material set of the three-dimensional pet according to the figure parameter The n-layer target of three-dimensional pet makes material;Include that n-layer makes material in the material set, n-layer production material with The n role position of the three-dimensional pet respectively corresponds, and there is at least one layer of production material includes at least two corresponding same The different materials at one position, i-th layer of target production material is i-th layer of one made in material, and 0≤i≤n and n are greater than 1 Integer;
Generation module, for the n-layer target production material of the three-dimensional pet to be overlapped according to hierarchic sequence Combination generates the pet image of the three-dimensional pet.
According to the another aspect of the application, a kind of generating means of three-dimensional pet are provided, described device is provided with The three-dimensional pet, the pet image there are three-dimensional pet described at least one are generated based on gene genetic rule , described device includes:
Receiving module, the acquisition request of the three-dimensional pet for receiving terminal transmission;
Determining module, for determining the figure parameter of the three-dimensional pet, the image according to the acquisition request Parameter is used to indicate the n-layer mesh that the terminal determines the three-dimensional pet from the material set of the three-dimensional pet Mark production material, the n-layer production material and the n role position of the three-dimensional pet respectively correspond, every layer of production element Material includes the different materials at least two corresponding same positions, and i-th layer of target production material is one in i-th layer of production material A, 0≤i≤n and n are the integer greater than 1;
Sending module, for sending the figure parameter of the three-dimensional pet to the terminal.
According to the another aspect of the application, a kind of electronic equipment is provided, the electronic equipment includes memory and processing Device;The memory is stored at least one program, and at least one program is loaded by the processor and executed to realize The generation method of three-dimensional pet as described above.
According to the another aspect of the application, a kind of computer readable storage medium is provided, is stored in the storage medium There is at least one program, at least one program is loaded by processor and executed to realize three-dimensional pet as described above Generation method.
Technical solution bring beneficial effect provided by the embodiments of the present application includes at least:
N-layer by providing three-dimensional pet makes material, and n-layer makes n role of material and three-dimensional pet Position respectively corresponds, and there are the different materials that at least one layer of production material includes at least two corresponding same positions, according to service The figure parameter that device is sent determines the n-layer target production material of current three-dimensional pet, so as to be based on limited system Making material is that same type of three-dimensional pet generates exponential other different pet images, for example the difference of hundreds of millions ranks is doted on Figure image.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the structural block diagram for the computer system that one exemplary embodiment of the application provides;
Fig. 2 is the structural block diagram for the server system that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart of the generation method for the three-dimensional pet that one exemplary embodiment of the application provides;
Fig. 4 is the n-layer production material for the three-dimensional pet that one exemplary embodiment of the application provides in stack combinations When schematic diagram;
Fig. 5 is the flow chart of the generation method for the three-dimensional pet that one exemplary embodiment of the application provides;
Fig. 6 is the schematic diagram of the material set for the three-dimensional pet that one exemplary embodiment of the application provides;
Fig. 7 is schematic diagram of the three-dimensional pet of another exemplary embodiment of the application offer in stack combinations;
Fig. 8 is the schematic diagram of one exemplary embodiment of the application a variety of different three-dimensional pets generated;
Fig. 9 is the flow chart of the generation method for the three-dimensional pet that another exemplary embodiment of the application provides;
Figure 10 is the interface schematic diagram for the purchase three-dimensional pet that another exemplary embodiment of the application provides;
Figure 11 is the flow chart of the generation method for the three-dimensional pet that another exemplary embodiment of the application provides;
Figure 12 is the interface schematic diagram for the breeding three-dimensional pet that another exemplary embodiment of the application provides;
Figure 13 is the block diagram of the generating means for the three-dimensional pet that another exemplary embodiment of the application provides;
Figure 14 is the block diagram of the generating means for the three-dimensional pet that another embodiment of the application provides;
Figure 15 is the structural block diagram for the terminal that another exemplary embodiment of the application provides;
Figure 16 is the structural block diagram for the server that another exemplary embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with attached drawing to the application Embodiment is described in further detail.
Virtual pet: being the digital pet presented with the pet image of cartoon fashion and/or animal forms.This is virtual Pet is two-dimensional digital pet or 3-dimensional digital pet, for example, virtual pet is that pet image in the form of cartoon cat is in Existing three-dimensional pet.Optionally, it is randomly generated there are the pet image of a part of virtual pet, for example 0 generation is virtual What the pet image of pet was randomly generated;Pet image there are a part of virtual pet is according to parents virtual pet And/or the pet image of other ancestors virtual pets is generated according to gene genetic rule, such as in addition to the 0 generation virtual pet The pet image of offspring virtual pet is generated according to gene genetic rule.Optionally, every virtual pet has an only nothing Two gene order, the gene order include the generation parameter for determining the pet image of virtual pet, and gene order is also referred to as Figure parameter.
In some embodiments, the pet information of every virtual pet is stored on block catenary system, by block linkwork The common recognition mechanism of multiple nodes on system is stored and is authenticated.Pet information includes at least: virtual pet it is unique Gene order, also it is optional include: virtual pet mark, parents' information of virtual pet, generation-inter- information, the void of virtual pet The family tree information of quasi- pet, the historical trading flowing water information of virtual pet, the history career event information of virtual pet and virtual At least one of other information of pet.Since the gene order of every virtual pet is unique, and in block The information stored on catenary system is true and unique, therefore virtual pet has collection attribute.Simultaneously as virtual pet Pet information is stored on block catenary system, even if virtual pet is design, the number used in the first application program is doted on Object, move to also can be convenient in the second application program carry out using.First application program and the second application program are different Application program.
In some embodiments, virtual pet is the number that the application program (or application program) run in terminal is shown Word pet.The application program includes at least one in following function: crawl virtual pet generates virtual pet, breeding virtually Pet, trade virtual pet are fought using virtual pet, carry out augmented reality (Augmented using virtual pet Reality, AR) it interacts, social activity is carried out using virtual pet, virtual pet is used to carry out AR education.In further embodiments, The application program is that the application program of acquisition, breeding and/or the transaction of virtual pet is carried out based on block catenary system.At other In embodiment, which is the social gaming program based on geographical location, which is provided with using virtual Pet collected, is grown up and/or militant at least one function.
In some embodiments, application program has the function of fighting using virtual pet.At this point, gene order meeting Determine feature possessed by virtual pet.Features described above may include: external feature and/or internal characteristics.
External feature refers to the feature for embodying the pet image of virtual pet.Optionally, virtual pet includes skin, spot The difference physical feeling such as line, ear, beard, decorative pattern, eyes and mouth, each physical feeling can there are many different outer In feature.Above-mentioned external feature may include the visible features such as color, shape, texture.For example, the external feature of skin can wrap Include white skin, red skin, orange skin, yellow-toned skin, green skin, cyan skin, blue skin and purple skin etc. Different colours.In another example the external feature of ear may include the different shapes such as screech owl, cropped ear, grasswort, folding ear, normal ear.
Internal characteristics refer to the feature for embodying the inherent attribute of virtual pet.For example, inherent attribute may include intelligence value, Attack force value, defence force value, clever force value, magic power value, force, resistance to force value, quick angle value, potential value, velocity amplitude, life value etc. A variety of different attributes.
The gene order of virtual pet: one group of parameter value including the pet image for generating virtual pet, also referred to as shape As parameter.By taking virtual pet is 3D virtual pet as an example, the pet image of each virtual pet includes the 3D image of multiple types Material, the 3D image material of each type correspond to different role position and/or texture level, each 3D image material corresponding one The 3D material mark of a material mark, each type can be considered a parameter value in gene order.Schematically, if a 3D The 3D body model of virtual pet be it is identical, then the pet image of 3D virtual pet include at least 8 kinds of 3D image materials (also referred to as Local feature): 3D body model, ear model, skin material, eyes material, nose material, mouth material, beard material, body Body speckle material, thorax abdomen decorative pattern material.Optionally, it includes: tail material, outside that the pet image of 3D virtual pet is also optional Pendant material and global characteristics.Tail material is the feature for determining the tail model of virtual pet, such as when pet image When being type of animal, tail material is elongated tail or short and thick tail;External hanging member material is for determining matching for virtual pet The feature of decorations, accessories include but is not limited to knapsack, glasses, hold in stage property, waistband, clothes, cap, shoes and head ornaments It is at least one;Global characteristics are the integration image characteristics for being covered on the body model of virtual pet, and are had highest Display priority.When in target figure parameter including global characteristics, global characteristics can cover local feature and completely be shown Show namely local feature can be hidden and not show.For example when some pet cat has superman's global characteristics, it will not show itself Cat image, but show that a pet image or a pet with robot appearance with superman's appearance is vivid.
Accordingly, gene order includes: global characteristics parameter, dermatoglyph characteristic parameter, skin color characteristic parameter, tripe It is special that dermatoglyph manages characteristic parameter, belly Color characteristics parameters, eyes textural characteristics parameter, eye color characteristic parameter, mouth texture It is special to levy parameter, mouth Color characteristics parameters, beard textural characteristics parameter, beard Color characteristics parameters, ear characteristic parameter, tail Levy at least one of parameter, pendant characteristic parameter.The key-value pair that multiple arranged in sequence can be used in gene order is indicated, should The form of (gene name, parameter value) can be used in key-value pair.In a schematical example, gene order is represented as Gene= [(3D body model feature, default), (skin characteristic, smooth), (belly feature, decorative pattern 1), (mouth textural characteristics, small protruding canine teeth 1), (mouth color characteristic, red), (tail feature, tubbiness shape)].
Gene genetic rule: also known as heredity rule, genetic algorithm or Gene hepatitis B vaccine, are by parents virtual pet And/or the pet image of other ancestors virtual pets is imitated true biological genetic development and is transmitted, it is virtual to generate child The rule of the pet image of pet.It in some embodiments, is unique personalized empty for each virtual pet of guarantee Quasi- pet, each virtual pet have unique gene order.In some embodiments, which is by father After the pet image of mother virtual pet and/or other ancestors virtual pets carries out recombination and duplicate removal according to genetic development, generate Child virtual pet has the rule of the pet image of unique trait.Duplicate removal refer to when in genetic process occur with have virtually dote on When the identical gene order of object, the gene order of the virtual pet can be regenerated, to guarantee the gene of the virtual pet only The mechanism of one property.Optionally, since gene genetic rule is to imitate the heredity rule of true biology, there is also reproductive processes The middle restrictive condition that there is pregnancy duration, close relative and cannot breed etc.
In the embodiment of the present application, between two virtual pets with genetic affinity, there are gene.Gene Refer to the gene that another party is hereditary to by the side in two virtual pets with genetic affinity.The spy that gene are determined Sign can be described as hereditary feature.There are identical hereditary features between two virtual pets with genetic affinity, namely exist Identical image material feature.For example, two virtual pets with genetic affinity, all have yellow-toned skin.In another example two Virtual pet with genetic affinity all has red skin and folding ear.The quantity of hereditary feature can be one, be also possible to Multiple, the embodiment of the present application is not construed as limiting this.In general, the generation between two virtual pets with genetic affinity Point closer, then hereditary feature is more;Conversely, the seniority in the family between two virtual pets with genetic affinity is remoter, then heredity is special It levies fewer.
The generation-inter- information of virtual pet: refer to virtual pet generation part information in entire virtual pet world outlook, by virtual Generation-inter- in the father virtual pet and mother virtual pet of pet determines.In some embodiments, the generation of child virtual pet Border adds one to obtain by the maximum generation-inter- number in father virtual pet and mother virtual pet, for example father virtual pet is 0 generation void Quasi- pet, mother virtual pet is 4 generation virtual pets, then child virtual pet is 5 generation virtual pets.In some embodiments, The generation-inter- of virtual pet primary is minimum, such as the generation-inter- of virtual pet primary is 0.The generation-inter- of non-virtual pet primary is by its parent The generation-inter- of close virtual pet determines.By the generation-inter- for the child virtual pet that the breeding of parents virtual pet generates, it is higher than its parent The generation-inter- of close virtual pet.In one example, if only allowing the parents virtual pet of identical generation-inter- to breed generates child Virtual pet (namely next-generation virtual pet), then the generation-inter- that the generation-inter- of child virtual pet is equal to parents virtual pet adds 1. For example, the generation-inter- of parents virtual pet is 1, then the generation-inter- of child virtual pet is 2;In another example parents virtual pet Generation-inter- be 0, then the generation-inter- of child virtual pet be 1.In another example, if both allowing the parents of identical generation-inter- Virtual pet breeding generates child virtual pet (namely next-generation virtual pet), and the parents of different generation-inter-s is also allowed virtually to dote on Object breeding generates child virtual pet, then the generation-inter- of child virtual pet is equal in parents virtual pet, generation-inter- higher one The generation-inter- of side adds 1.For example, the generation-inter- of father virtual pet is 0, the generation-inter- of mother virtual pet is 2, then child virtual pet Generation-inter- is 3.In addition, virtual pet primary is not to be by father virtual pet and the breeding generation of mother virtual pet, but by void The quasi- automatic output of pet system.Therefore, virtual pet primary and be not present father virtual pet and mother virtual pet, more will not There are the seniority in the family be higher than virtual pet primary and with its other virtual pet with genetic affinity.
Fig. 1 shows the structural block diagram of the computer system 100 of one exemplary embodiment of the application offer.The computer System 100 includes: first terminal 120, server cluster 140 and second terminal 160.
First terminal 120 is connected by wireless network or cable network with server cluster 120.First terminal 120 can be with It is smart phone, game host, desktop computer, tablet computer, E-book reader, MP3 player, MP4 player and knee At least one of mo(u)ld top half portable computer.First equipment, 120 installation and operation has the application program for supporting virtual pet.This is answered It can be pet develop class games, AR games, any one in AR educational procedure with program.First terminal 120 It is the terminal that the first user uses, the application program in first terminal 120 is logged in the first user account number.
First terminal 120 is connected by wireless network or cable network with server 140.
Server cluster 140 include a server, multiple servers, cloud computing platform and virtualization center at least It is a kind of.Server cluster 140 is used to that the application program of virtual pet to be supported to provide background service.Optionally, server cluster 140 undertake main calculating work, and first terminal 120 and second terminal 160 undertake secondary calculation work;Alternatively, server cluster 140 undertake secondary calculation work, and first terminal 120 and second terminal 160 undertake main calculating work;Alternatively, server cluster 140, cooperated computing is carried out using distributed computing architecture between 160 three of first terminal 120 and second terminal.The server set Group 140 can be referred to as server.
Optionally, server cluster 140 includes: access server 141 and game server 142.Access server 141 is used In providing access service and the messaging service of first terminal 120 and second terminal 160, and by useful information in terminal and It is forwarded between game server 142.Game server 142 is used to provide the background service of application program, such as: game logic clothes During business, material offer service, the generation service of virtual pet, the breeding of the transactional services of virtual pet, virtual pet service It is at least one.Game server 142 can be one or more.When game server 142 is more, there are at least two trips Play server 142 is used to provide different services, and/or, there are at least two game servers 142 for providing identical clothes Business, the embodiment of the present application are not limited this.
160 installation and operation of second terminal has the application program for supporting virtual pet.The application program can be pet and support At any one in class games, AR games, AR educational procedure.Second terminal 160 is the end that second user uses End.Second user account number is logged in the application program of second terminal 120.
Optionally, the first user account number and second user account number are in same virtual social network.Optionally, it first uses Family account number and second user account number may belong to the same troop, the same tissue, with friend relation or with provisional Communicate permission.Optionally, the first user account number and second user account number also may belong to different troops, different tissues or have Antagonistic Liang Ge group.
Optionally, the application program installed in first terminal 120 and second terminal 160 be identical or two terminals on The application program of installation is the same type application program of different control system platforms.The application program includes in following function At least one of: crawl virtual pet is generated virtual pet, breeding virtual pet, trade virtual pet, is carried out using virtual pet Fight is carried out AR interaction using virtual pet, social activity is carried out using virtual pet, carrying out AR education using virtual pet.Another In some embodiments, which is that the application of acquisition, breeding and/or the transaction of virtual pet is carried out based on block catenary system Program.In further embodiments, which is the social gaming program based on geographical location, which mentions It is provided with and is collected, grown up and/or militant at least one function using virtual pet.
First terminal 120 can refer to one in multiple terminals, and second terminal 160 can refer to one in multiple terminals A, the present embodiment is only illustrated with first terminal 120 and second terminal 160.First terminal 120 and second terminal 160 Terminal type is identical or different, which includes: smart phone, game host, desktop computer, tablet computer, electronics At least one of book reader, MP3 player, MP4 player and pocket computer on knee.Following embodiment is whole with first End 120 and/or second terminal 140 are smart phones to illustrate.
Those skilled in the art could be aware that the quantity of above-mentioned terminal can be more or less.For example above-mentioned terminal can be with Only one perhaps above-mentioned terminal be tens or several hundred or greater number.The embodiment of the present application to the quantity of terminal and Device type is not limited.
In some alternative embodiments, server cluster 120 is used to store the pet information and friendship of each virtual pet Easily record.Pet information includes: the pet mark for unique identification virtual pet, for characterizing the pet image of virtual pet Figure parameter, at least one of the preview graph for characterizing virtual pet.In an alternative embodiment as shown in Figure 2 In, server cluster 120 is also connected with block catenary system 180, and server cluster 120 is by the pet information of each virtual pet And/or transaction record is stored in block catenary system 180.In some alternative embodiments, server cluster 120 itself can also Using as in block catenary system 180 a node operation and storing data.
Fig. 3 shows the flow chart of the generation method of the three-dimensional pet of one exemplary embodiment of the application offer. The present embodiment be applied to come in first terminal shown in FIG. 1 or second terminal with the generation method for example, first terminal or Second terminal is referred to as terminal, and operation is provided with the application program of three-dimensional pet in the first terminal or second terminal, deposits It in the pet image of at least one three-dimensional pet (such as non-first for virtual pet) is generated based on gene genetic rule. This method comprises:
In step 301, the acquisition request of three-dimensional pet is sent to server;
Three-dimensional pet is the role for showing in the application program in terminal.The type packet of three-dimensional pet It includes but is not limited to: at least one of soldier, general, hero, pet, NPC, saddle horse.
Operation has application program in terminal.The application program is provided with the function using three-dimensional pet.Use three-dimensional The function of virtual pet includes: to carry out game in virtual environment using three-dimensional pet, carried out using three-dimensional pet Analogue simulation carries out AR game using three-dimensional pet, carries out at least one of AR education using three-dimensional pet.
The acquisition modes of three-dimensional pet in application program include but is not limited to: buying pattern, drawing manner, gift bag Get at least one of mode, accumulated point exchanging mode, mode of reproduction.That is, this step includes at least one in following form Kind:
The acquisition request of three-dimensional pet is sent to server by buying pattern;
The acquisition request of three-dimensional pet is sent to server by drawing manner;
Acquisition request of the mode to server transmission three-dimensional pet is got by gift bag;
The acquisition request of three-dimensional pet is sent to server by accumulated point exchanging mode;
The mode bred based on existing three-dimensional pet sends the acquisition request of three-dimensional pet to server.
Server can generate the figure parameter of the three-dimensional pet before or after receiving acquisition request.When connecing After receiving acquisition request, the figure parameter of three-dimensional pet is sent to terminal by server.For example, server can be preparatory The figure parameter of each three-dimensional pet is generated at random.For another example, server can be with
In step 302, the figure parameter for the three-dimensional pet that server is sent is received;
Accordingly, terminal receives the figure parameter for the three-dimensional pet that server is sent.
Optionally, the figure parameter of three-dimensional pet includes: the material mark of n-layer target production material.
In step 303, according to figure parameter, three-dimensional pet is determined from the material set of three-dimensional pet N-layer target makes material;
The material set of three-dimensional pet is stored in the application program of terminal.It include that n-layer makes in the material set Material, n-layer production material and the n role position of three-dimensional pet respectively correspond, and there is at least one layer of production material and include The different materials at least two corresponding same positions, i-th layer of target production material are one in i-th layer of production material, 0≤i ≤ n and n are the integer greater than 1.
Application program is in the figure parameter for getting three-dimensional pet, according to figure parameter from the element of three-dimensional pet Determine that the corresponding n-layer target of three-dimensional pet makes material in material set.
In step 304, the n-layer target production material of three-dimensional pet is overlapped combination according to hierarchic sequence, Generate the pet image of three-dimensional pet.
Since n-layer production material and the n role position of three-dimensional pet respectively correspond, different role position is corresponding Show that level is different, therefore n-layer target production material respectively corresponds respective hierarchic sequence (also referred to as priority orders).
The n-layer target of three-dimensional pet is made material by terminal, is overlapped combination according to respective hierarchic sequence, raw At the pet image of three-dimensional pet.The pet image can be the pet image of two dimension, 2.5 dimensions or three-dimensional.
After generating the pet image of three-dimensional pet, terminal shows three-dimensional void in the user interface of application program The pet image of quasi- pet;And/or in the reality scene picture of camera shooting, terminal is superimposed on reality scene picture The pet image of the three-dimensional pet;And/or in the virtual environment world Overlapping display three-dimensional pet pet shape As.
In conclusion method provided in this embodiment, the n-layer by providing three-dimensional pet makes material, n-layer production Material is respectively corresponded with the n role position of three-dimensional pet respectively, and every layer of production material includes that at least two correspondences are same The different materials at position determine that the n-layer target of current three-dimensional pet makes element according to the figure parameter that server is sent Material, so as to be that same type of three-dimensional pet generates exponential other different pet shapes based on limited production material As, such as the different pets image of hundreds of millions ranks.
By taking three-dimensional pet is pet cat as an example, as shown in figure 4, including 8 layers of production in the material set of the pet cat Material :+7 layer texture material of three dimensional body model.7 layer texture materials include: ear 41, beard 42, mouth 43, eyes 44, flower Line 45, speckle 46 and skin 47.Optionally, ear 41 includes the ear of multiple and different shapes;Beard 42 includes multiple and different shapes The beard of shape;Mouth 43 includes the mouth of multiple and different shapes;Eyes 44 include the eyes of multiple and different shapes and/or color; Decorative pattern 45 includes the face and abdominal marking of multiple and different shapes and/or color;Speckle 46 include multiple and different shapes and/or The body speckle of color;Skin 47 includes the skin background colour of multiple and different colors.When needing to generate a certain pet cat, A target texture material is determined in every layer texture material, and n-layer target texture material is successively superimposed according to hierarchic sequence Generate the pet image of pet cat.
Fig. 5 shows the process of the generation method of the three-dimensional pet of another exemplary embodiment of the application offer Figure.The present embodiment is applied to computer system shown in FIG. 1 in this way to illustrate.In the computer system, first Operation is provided with the application program of three-dimensional pet in terminal or second terminal, and there are at least one three-dimensional pet (ratios As non-first for virtual pet) pet image be to be generated based on gene genetic rule.This method comprises:
In step 501, terminal to server sends the acquisition request of three-dimensional pet;
Operation has application program in terminal, which is logged in user account number.Multiple terminals can simultaneously with service Device communication, each terminal are communicated using respective user account number with server.Different user account numbers is for distinguishing difference User.
It is pet cat with the three-dimensional pet, which is to provide for the program for having pet cat, application program In the acquisition modes of three-dimensional pet include but is not limited to: buying pattern, drawing manner, gift bag gets mode, integral is converted Change at least one of mode, mode of reproduction.In some embodiments, mode of reproduction includes: local mode of reproduction and different use Mode of reproduction between family.Local mode of reproduction is the mode of reproduction between two virtual pets that same user account number provides;No With the mode of reproduction that the mode of reproduction between user is between two virtual pets provided by different user account number.
Terminal sends acquisition request to server according to the operation that user triggers in application program.Terminal passes through wired network Network or wireless network send the acquisition request of three-dimensional pet to server.The acquisition request includes but is not limited to following ginseng Number:
User account number;Alternatively,
The mark of user account number and three-dimensional pet;Alternatively,
User account number, three-dimensional pet parents mark.
In step 502, the acquisition request that server receiving terminal is sent;
In step 503, server determines the figure parameter of three-dimensional pet according to acquisition request;
Optionally, server generates and stores in advance the figure parameter of multiple three-dimensional pets.It is asked when receiving acquisition After asking, server in the figure parameter of stored multiple three-dimensional pets, dote on by the three-dimensional for determining that this is used The figure parameter of object.For example, server generates and is stored at random the first figure parameter for three-dimensional pet.
Optionally, server generates three-dimensional according to the information carried in acquisition request after receiving acquisition request The figure parameter of pet.
Figure parameter is used to indicate the n-layer mesh that terminal determines three-dimensional pet from the material set of three-dimensional pet Mark production material.In material set, n-layer production material and the n role position of three-dimensional pet respectively correspond, exist to Few one layer of production material includes the different materials at least two corresponding same positions, and i-th layer of target production material is i-th layer of production One in material, 0≤i≤n.In general, figure parameter includes the respective material mark of n-layer target production material.When n-layer makes When material includes the three dimensional body model of three-dimensional pet and unique three dimensional body model, can not include in figure parameter The mark of three dimensional body model, but including other n-1 layers of respective material mark of target production material.
In step 504, server sends the figure parameter of three-dimensional pet to terminal;
Server sends the figure parameter of three-dimensional pet by cable network or wireless network to terminal.Optionally, Figure parameter includes: the respective material mark of n-layer target production material, alternatively, other n-1 layers in addition to three dimensional body model Target makes the respective material mark of material.
In step 505, terminal receives the figure parameter for the three-dimensional pet that server is sent;
In step 506, terminal determines that three-dimensional is doted on from the material set of three-dimensional pet according to figure parameter The n-layer target of object makes material;
Resource file is stored in the application program of terminal.The resource file includes the material set of three-dimensional pet. Terminal identifies according to the material in figure parameter and determines that target makes material from material set.
By taking three-dimensional pet is pet cat as an example, with reference to Fig. 6, the material set of the pet cat includes 8 layers of production material: + 7 layer texture material of three dimensional body model.The same three dimensional body model can be used in the pet cat, and 7 layer texture materials then wrap It includes: skin 61, speckle 62, ear 63, beard 64, decorative pattern 65, eyes 66 and mouth 67.Speckle, which refers to, to be mainly made of spot Lines, decorative pattern refer to the lines being mainly made of lines.Each material in the same texture material layer has different colors And/or shape.Optionally, there is each material in texture material layer transparency n, transparency n to be greater than 0% and less than 100%. That is, each material in texture material layer has translucence, it can be seen that different layers after the texture material superposition of different layers Textured pattern.Alternatively, the background parts in texture material layer be it is transparent, and foreground part be it is opaque, when multilayer line The pet image of a complete virtual pet can be obtained after reason material layer superposition.
8 kinds of skin materials 101 to 108, respectively white skin, red skin, orange skin, yellow are shown in Fig. 6 Skin, green skin, cyan skin, blue skin and purple skin, various skins can be distinguished and have according to different colours Identical shape;Accordingly, further it is shown that 8 kinds of speckle materials 201 to 208,8 kind of ear material 301 to 308,8 kind of beard material 401 to 408,8 kind of decorative pattern material 501 to 508,8 kind of eyes material 601 to 608,8 kind of mouth material 701 to 708.
Optionally, 8 kinds of speckle materials 201 to 208 in Fig. 6 are divided according to different shape, but same shape Speckle material more speckle materials can also be marked off according to different colours;Accordingly, 8 kinds of decorative pattern materials 501 in Fig. 6 It is to be divided according to different shape, but the decorative pattern material of same shape can also mark off more according to different colours to 508 More decorative pattern materials;Accordingly, 8 kinds of eyes materials 601 to 608 in Fig. 6 are divided according to different shape, but same The eyes material of shape can also mark off more eyes materials according to different colours, and the application is not limited this.
Optionally, terminal is identified according to the corresponding material of i-th layer of target production material, is determined from i-th layer of production material I-th layer of target makes material.
In a schematical example, the figure parameter of a certain pet cat includes: purported skin material 102, target Speckle material 201, target ear material 301, target beard material 404, target decorative pattern material 501, objective eye material 604, Target mouth material 704.The figure parameter can be write a Chinese character in simplified form are as follows: { 102,201,301,404,501,605,704 }.In other In embodiment, figure parameter can be indicated using key-value pair, be write a Chinese character in simplified form are as follows: (skin, 102), (speckle, 201), (ear, 301), (beard, 404), (decorative pattern, 501), (eyes, 605), (mouth, 704) }
Terminal extracts mesh from skin material set after getting the figure parameter of pet cat, according to material mark 102 Mark skin material;Target speckle material is extracted from speckle material set according to material mark 201;According to material mark 301 from Target ear material is extracted in ear material set;Target beard element is extracted from beard material set according to material mark 404 Material;Target decorative pattern material is extracted from decorative pattern material set according to material mark 501;604 are identified from eyes material according to material Objective eye material is extracted in set;Target mouth material is extracted from mouth material set according to material mark 704.
In step 507, the n-layer target production material of three-dimensional pet is overlapped group according to hierarchic sequence by terminal It closes, generates the pet image of three-dimensional pet.
Successive overlaying relation of the hierarchic sequence for indicating when generating pet image, between each layer target production material. Optionally, every layer of production material also has respective display priority.The hierarchic sequence of every layer of target production material can be with institute The display priority for belonging to level is identical, can also be not identical as the display priority of affiliated level.
With hierarchic sequence are as follows: for ear > skin > speckle > decorative pattern > eyes > mouth > beard, terminal is in determination Out n-layer target production material after, successively by the target ear material 1 of pet cat, purported skin material 2, target speckle material 3, Target decorative pattern material 4, objective eye material 5, target mouth material 6, target beard material 7 are superimposed upon the three dimensional body of pet cat On model 0, to generate the pet cat with individual character pet image.Terminal or server can be generated through the above way The different pet cat of hundreds of millions ranks, Fig. 8 show different 87 cat generated in the manner described above.
After generating the pet image of three-dimensional pet, terminal shows three-dimensional void in the user interface of application program The pet image of quasi- pet;And/or terminal, in the reality scene picture that camera is shot, terminal is on reality scene picture It is superimposed the pet image of the three-dimensional pet;And/or terminal Overlapping display three-dimensional pet in the virtual environment world Pet image.
Optionally, when which is three-dimensional three-dimensional pet, terminal can also be according to Three-dimensional Display mode The pet image of the three-dimensional pet is shown from different viewing angles and/or different viewing distances, the embodiment of the present application is to this It is not limited.
In conclusion method provided in this embodiment, the n-layer by providing three-dimensional pet makes material, n-layer production Material is respectively corresponded with the n role position of three-dimensional pet respectively, and every layer of production material includes that at least two correspondences are same The different materials at position determine that the n-layer target of current three-dimensional pet makes element according to the figure parameter that server is sent Material, so as to be that same type of three-dimensional pet generates exponential other different pet shapes based on limited production material As, such as the different pets image of hundreds of millions ranks.
Due to the figure parameter of each virtual pet be it is unique, each virtual pet has an only nothing Two property, and when the pet information of virtual pet stores on block catenary system, the figure parameter of virtual pet be it is true and Uniquely, it therefore can guarantee the collection attribute of each virtual pet, also can guarantee the scarcity of certain virtual pets.
In the alternative embodiment based on Fig. 5, terminal can obtain a three-dimensional pet by buying pattern Figure parameter below explains this using embodiment illustrated in fig. 9;Terminal can also obtain one by mode of reproduction The figure parameter of three-dimensional pet below explains this using embodiment illustrated in fig. 10.
Fig. 9 shows the flow chart of the three-dimensional pet generation method of another exemplary embodiment of the application offer. The present embodiment is applied to computer system shown in FIG. 1 in this way to illustrate.This method comprises:
In step 901, server generates the figure parameter and preview graph of multiple three-dimensional pets at random;
By taking three-dimensional pet is the pet cat of three dimensional form as an example, server generates multiple three-dimensionals at random in advance and dotes on The preview graph of the figure parameter of object and each three-dimensional pet.Optionally, server generates head at random and dotes on for three-dimensional The figure parameter of object, such as server generated several first figure parameters for three-dimensional pet every 10 days.
Optionally, server also joins the pet mark of each three-dimensional pet, the image of each three-dimensional pet The preview graph of several and each three-dimensional pet is stored.In some embodiments, server dotes on each three-dimensional The pet mark and figure parameter of object are stored in block catenary system.
Table one schematically illustrates the relationship between three.
Table one
Pet cat mark Figure parameter Preview graph
6613 101、204、305、405、506、601、702 Picture 1
6614 102、202、303、404、504、602、708 Picture 2
6611 102、203、303、404、502、601、707 Picture 3
6609 102、208、301、401、502、602、706 Picture 4
In various embodiments, material mark uses one of number, letter, spcial character, Chinese character or several Combination be indicated, in the present embodiment only with material mark using three bit digitals indicate come for example, but to material mark Specific manifestation form be not limited.
In step 902, server sends the preview graph of multiple three-dimensional pets to terminal;
After application program launching in terminal, user's login user account number in the application.Then, which connects Receive the interface display operation of user.When interface display operation is the preview graph interface for requesting display three-dimensional pet, Application program requests the preview graph of multiple three-dimensional pets to server.Optionally, which can be three-dimensional void The purchase interface of quasi- pet.
Accordingly, terminal receives the preview graph for multiple three-dimensional pets that server is sent.Schematically, server will The pet mark and preview graph of three-dimensional pet in table one are sent to terminal, and terminal receives the pet mark of three-dimensional pet Knowledge and preview graph.The preview graph can be two-dimensional image.
In step 903, terminal shows the first user interface for buying virtual objects;
Terminal is after the pet mark and preview graph for receiving three-dimensional pet, according to the pet mark of three-dimensional pet Know and preview graph generates the first user interface.First user interface is the interface for buying virtual objects.
Figure 10 schematically illustrates the display process of the first user interface.Firstly, the multiple pets of display in application program The preview interface 91 of cat, the interior pet mark and preview graph including 8 different pet cats of the preview interface 91.When user wishes When buying first pet cat of the second row, the card region where clicking first pet cat jumps to the of the pet cat One user interface 92.Shown in first user interface 92 preview graph of pet cat, price trend, pet cat pet mark Knowledge, the vivid feature of pet cat and purchase button.The price that this pet cat is also shown on the purchase button is 634 gold medals Coin, user can click the purchase button and buy.
In step 904, terminal receives the purchase operation triggered in the first user interface;
Optionally, the control for buying three-dimensional pet, such as purchase button are shown in the first user interface.When For user when operating the control in the first user interface, terminal receives the purchase operation triggered in the first user interface.
In step 905, terminal sends the first acquisition request to server according to purchase operation, and the first acquisition request is used for Buy three-dimensional pet;
Optionally, the pet mark of three-dimensional pet is carried in the first acquisition request.Alternatively, in the first acquisition request Also carry the pet mark and price of three-dimensional pet;Alternatively, also carrying three-dimensional pet in the first acquisition request Pet mark and user account number;Alternatively, also carried in the first acquisition request three-dimensional pet pet mark, price and User account number.
After application program in terminal receives purchase operation in the first user interface, first sent to server is obtained Take request.
In step 906, server receives the first acquisition request;
After server receives the first acquisition request, the pet mark of three-dimensional pet is extracted from the first acquisition request Know.Optionally, server extracts the price and user account number of three-dimensional pet also from the first acquisition request.
Server determines whether the user account number meets the purchase condition of the three-dimensional pet, and purchase condition includes but not Be limited at least one of following condition: the user account number have purchase permission, the account resource of the user account number be greater than this three Price, the login state of the user account number of dimension virtual pet are in effective status.
When the user account number meets the purchase condition of the three-dimensional pet, server will account corresponding with the price Resource is transferred to the corresponding another user account number of seller from the user account number, determines that this is bought successfully.
In step 907, server determines the figure parameter of three-dimensional pet according to the first acquisition request;
When acquisition request is the first acquisition request for buying three-dimensional pet, server is obtained according to first and is asked Interior pet is asked to identify the figure parameter for determining three-dimensional pet.
Server extracts the pet mark of three-dimensional pet from the first acquisition request, is then identified according to pet In multiple vivid roles of storage, figure parameter corresponding with pet mark is determined.
Wherein, the figure parameter of three-dimensional pet is randomly generated.
Table one is schematically combined, when pet mark is " 6611 ", determines figure parameter corresponding with pet mark It include: 102,203,303,404,502,601,707.
In step 908, server sends the figure parameter of three-dimensional pet to terminal;
The pet mark and figure parameter of three-dimensional pet are sent to terminal by server.Schematically, server to Terminal sends the first feedback information, and the pet mark and figure parameter of three-dimensional pet are carried in first feedback information.
In step 909, terminal receives the figure parameter for the three-dimensional pet that server is sent;
Terminal extracts the figure parameter of three-dimensional pet from the first feedback information.
In step 910, terminal determines that three-dimensional is doted on from the material set of three-dimensional pet according to figure parameter The n-layer target of object makes material;
Resource file is stored in the application program of terminal.The resource file includes the material set of three-dimensional pet. Terminal identifies according to the material in figure parameter and determines that target makes material from material set.
By taking three-dimensional pet is pet cat as an example, the material set of the pet cat includes 8 layers of production material: three dimensional body + 7 layer texture material of model.The same three dimensional body model can be used in the pet cat, and 7 layer texture materials include: skin, spot Line, ear, beard, decorative pattern, eyes and mouth.
Terminal is identified according to the corresponding material of i-th layer of target production material, and i-th layer of mesh is determined from i-th layer of production material Mark production material.
Figure parameter with the three-dimensional pet includes that material mark 102,203,303,404,502,601,707 is Example, terminal extract purported skin from skin material set after getting the figure parameter of pet cat, according to material mark 102 Material;Target speckle material is extracted from speckle material set according to material mark 203;It is plain from ear according to material mark 303 Target ear material is extracted in material set;Target beard material is extracted from beard material set according to material mark 404;According to Material mark 502 extracts target decorative pattern material from decorative pattern material set;It is mentioned from eyes material set according to material mark 601 Take objective eye material;Target mouth material is extracted from mouth material set according to material mark 707.
In step 911, the n-layer target production material of three-dimensional pet is overlapped group according to hierarchic sequence by terminal It closes, generates the pet image of three-dimensional pet.
Successive overlaying relation of the hierarchic sequence for indicating when generating pet image, between each layer target production material. Optionally, every layer of production material also has respective display priority.The hierarchic sequence of every layer of target production material can be with institute The display priority for belonging to level is identical, can also be not identical as the display priority of affiliated level.
Hierarchic sequence may is that ear > skin > speckle > decorative pattern > eyes > mouth > beard.
In conclusion method provided in this embodiment, the n-layer by providing three-dimensional pet makes material, n-layer production Material is respectively corresponded with the n role position of three-dimensional pet respectively, and every layer of production material includes that at least two correspondences are same The different materials at position determine that the n-layer target of current three-dimensional pet makes element according to the figure parameter that server is sent Material, so as to be that same type of three-dimensional pet generates exponential other different pet shapes based on limited production material As, such as the different pets image of hundreds of millions ranks.
Method provided in this embodiment, the image by generating three-dimensional pet by server random manner are joined Number, can maximize the total quantity for increasing pet image generated.It is divided into 4 material-makings with some three-dimensional pet Layer, 4 production materials of different shapes of every layer of production, the production material of each shape have 4 different colors namely every layer 16 A material variation, so that it may produce the three-dimensional pet of the different images of 16*16*16*16=65536 kind.
Figure 11 shows the process of the generation method of the three-dimensional pet of another exemplary embodiment of the application offer Figure.The present embodiment is applied to computer system shown in FIG. 1 in this way to illustrate.This method comprises:
In step 1101, terminal receives the breeding operation triggered on second user interface;
Second user interface is the user interface for breeding sub- three-dimensional pet based on parents three-dimensional pet. The second user interface can be a user interface, be also possible to the combination of several user interfaces.User can be by father three Dimension virtual pet and mother three-dimensional pet match, and are then based on father's three-dimensional pet and mother's three-dimensional is doted on Object breeds to obtain new three-dimensional pet.
Optionally, at least one three-dimensional pet in father's three-dimensional pet and mother three-dimensional pet is to belong to In active user's account number.For example, active user's account number possesses father three-dimensional pet, the mother possessed with other user account numbers Close three-dimensional pet is matched, and breeding obtains new three-dimensional pet;In another example active user's account number possesses mother three Virtual pet is tieed up, the father three-dimensional pet possessed with other user account numbers matches, and breeding obtains new three-dimensional Pet;For another example active user's account number possesses father's three-dimensional pet and mother three-dimensional pet simultaneously, breeding obtains new Three-dimensional pet.
By taking three-dimensional pet is pet cat as an example, Figure 12 schematically illustrates the second user interface.User can be with Mother pet cat " doting on wealth miaow 000033 " is added in mother's field, and a father pet cat is added in father's field " fast pretty cat 000024 ", then breeds to obtain a new pet cat by Two Pets cat.User is on second user interface " determine breeding " button clicking operation, can be considered the breeding operation of user's triggering.
In step 1102, terminal sends the second acquisition request to server according to breeding operation, and the second acquisition request is used Three-dimensional pet is generated according to hereditary rule according to the production material of parents three-dimensional pet in request;
Terminal is operated according to the breeding that user triggers, and sends the second acquisition request to server.Second acquisition request is used In request server according to the production material of parents three-dimensional pet, dote on according to gene genetic rule to generate three-dimensional Object.
In some embodiments, it is carried in the second acquisition request: the pet mark of parents three-dimensional pet, and/ Or, the figure parameter of parents three-dimensional pet.In further embodiments, the second acquisition request can also include: father First user account number corresponding to three-dimensional pet, second user account number corresponding to mother three-dimensional pet.
In step 1103, server receives the second acquisition request, and the second acquisition request carries parents' three-dimensional The pet of pet identifies;
After server receives the second acquisition request, the information carried in the second acquisition request is extracted.For example, server from It is extracted in second acquisition request: the pet mark of parents three-dimensional pet, and/or, the shape of parents three-dimensional pet As parameter;In another example server is also extracted from the second acquisition request: the first user corresponding to father three-dimensional pet Second user account number corresponding to account number and mother three-dimensional pet.
In step 1104, server determines the figure parameter of three-dimensional pet according to the second acquisition request;
When acquisition request is for requesting generate three-dimensional pet according to parents' three-dimensional pet second to obtain When taking request, three-dimensional pet is generated according to hereditary rule according to the production material of parents three-dimensional pet.
Optionally, it is carried when in the second acquisition request: when the pet mark of parents three-dimensional pet, server root It is identified according to the pet of father three-dimensional pet, obtains the figure parameter of father's three-dimensional pet;According to mother's three-dimensional The pet of pet identifies, and obtains the figure parameter of mother's three-dimensional pet;According to the figure parameter of father three-dimensional pet With the figure parameter of mother three-dimensional pet, three-dimensional pet is generated according to hereditary rule.
Schematically, a kind of gene genetic rule include: the three-dimensional pet bred i target production material with The respective production material of father three-dimensional pet is identical, the j target production material of the three-dimensional pet bred and mother The respective production material of close three-dimensional pet is identical, i+j=n.
Schematically, another gene genetic rule includes: a target production material of the three-dimensional pet bred It is identical as the respective production material of father three-dimensional pet, the b target of the three-dimensional pet bred production material with The respective production material of mother three-dimensional pet is identical, and the c1 target production material of the three-dimensional pet bred is random It generates, a+b+c1=n.
Schematically, another gene genetic rule includes: a target production material of the three-dimensional pet bred It is identical as the respective production material of father three-dimensional pet, the b target of the three-dimensional pet bred production material with The respective production material of mother three-dimensional pet is identical, the c2 target of the three-dimensional pet bred production material according to Default corresponding relationship generates, which includes that the pet mark of parents three-dimensional pet makes with c2 target Corresponding relationship between material, a+b+c2=n.
Schematically, another gene genetic rule includes: at least one in inheritance rules, variation rule and loss rule Kind;
Inheritance rules refer to that all or part of vivid material of the third pet image of child virtual pet is duplication from the One pet image and/or the second pet image.Optionally, inheritance rules further include: the third pet shape of child virtual pet All or part of vivid material of elephant is the pet image replicated from ancestors virtual pet;
Variation rule refers to that the third pet image of child virtual pet includes the vivid material that variation obtains, and variation obtains Vivid material be vivid material that the first pet image and the second pet image do not have;
Loss rule refer to when the first pet image and/or the second pet image have global characteristics vivid material when, Do not have the vivid material of global characteristics in third pet image, the vivid material of global characteristics is the body for covering virtual pet The integration image material of model and have highest display priority.
It should be noted that said gene heredity rule is only to schematically illustrate, the present embodiment does not limit hereditary rule Concrete form.
In step 1105, server sends the figure parameter of three-dimensional pet to terminal;
The pet mark and figure parameter of three-dimensional pet are sent to terminal by server.Schematically, server to Terminal sends the second feedback information, carry in second feedback information three-dimensional pet of this breeding pet mark and Figure parameter.
Optionally, between the feedback time of the second feedback information and the sending time of the second acquisition request there are the time difference, The time difference is greater than threshold value.The time difference can be described as the breeding time.Schematically, the breeding time is several hours, several days, a few weeks Or some months.
In a step 1106, terminal receives the figure parameter for the three-dimensional pet that server is sent;
Terminal extracts the figure parameter of three-dimensional pet from the second feedback information.
In step 1107, terminal determines three-dimensional according to figure parameter from the material set of three-dimensional pet The n-layer target of pet makes material;
Resource file is stored in the application program of terminal.The resource file includes the material set of three-dimensional pet. Terminal identifies according to the material in figure parameter and determines that target makes material from material set.
By taking three-dimensional pet is pet cat as an example, the material set of the pet cat includes 8 layers of production material: three dimensional body + 7 layer texture material of model.The same three dimensional body model can be used in the pet cat, and 7 layer texture materials include: skin, spot Line, ear, beard, decorative pattern, eyes and mouth.
Terminal is identified according to the corresponding material of i-th layer of target production material, and i-th layer of mesh is determined from i-th layer of production material Mark production material.
In step 1108, the n-layer target production material of three-dimensional pet is overlapped by terminal according to hierarchic sequence Combination generates the pet image of three-dimensional pet.
Successive overlaying relation of the hierarchic sequence for indicating when generating pet image, between each layer target production material. Optionally, every layer of production material also has respective display priority.The hierarchic sequence of every layer of target production material can be with institute The display priority for belonging to level is identical, can also be not identical as the display priority of affiliated level.
Hierarchic sequence may is that ear > skin > speckle > decorative pattern > eyes > mouth > beard.Schematically, eyes With highest display priority, there are incidence relations with hierarchic sequence for the display priority of other production materials.For example, each The display priority of level are as follows: eyes > beard > mouth > decorative pattern > speckle > skin > ear.
In conclusion method provided in this embodiment, the n-layer by providing three-dimensional pet makes material, n-layer production Material is respectively corresponded with the n role position of three-dimensional pet respectively, and every layer of production material includes that at least two correspondences are same The different materials at position determine that the n-layer target of current three-dimensional pet makes element according to the figure parameter that server is sent Material, so as to be that same type of three-dimensional pet generates exponential other different pet shapes based on limited production material As, such as the different pets image of hundreds of millions ranks.
Method provided in this embodiment breeds to obtain the three-dimensional void of new children by existing parents' three-dimensional pet Quasi- pet, and the three-dimensional void of new children is obtained according to gene genetic rule according to the production material of parents three-dimensional pet The production material of quasi- pet realizes that the pet image of three-dimensional pet has to simulate the genetic development in real world More really simulate effect.
The following are the Installation practice of the embodiment of the present application, Installation practice and above method embodiment are corresponded, right The details being not described in detail in Installation practice can refer to above-mentioned corresponding embodiment of the method.
Figure 13 is the block diagram of the generating means for the three-dimensional pet that one exemplary embodiment of the application provides.The device The all or part of software, hardware or both being implemented in combination with as terminal can be passed through.Described device provides Three-dimensional pet is stated, the pet image there are three-dimensional pet described at least one is generated based on gene genetic rule 's.The device includes: sending module 1320, receiving module 1340, determining module 1360 and generation module 1380.
Sending module 1320, for sending the acquisition request of three-dimensional pet to server.
Receiving module 1340, for receiving the figure parameter for the three-dimensional pet that the server is sent.
Determining module 1360, for being determined from the material set of the three-dimensional pet according to the figure parameter The n-layer target of the three-dimensional pet makes material;It include that n-layer makes material, the n-layer production element in the material set Material and the n role position of the three-dimensional pet respectively correspond, and there is at least one layer of production material includes at least two pairs The different materials at same position are answered, i-th layer of target production material is one in i-th layer of production material, 0≤i≤n.I is whole Number, n are the positive integer greater than 1.Optionally, 8 n.
Generation module 1380, for carrying out the n-layer target production material of the three-dimensional pet according to hierarchic sequence Stack combinations generate the pet image of the three-dimensional pet.
In an alternative embodiment, the figure parameter includes the n-layer target production element of the three-dimensional pet The material of material identifies;
The determining module 1360, for making the material mark of material according to i-th layer of target of the three-dimensional pet Know, from i-th layer of production material in the material set, determines i-th layer of target production material.
In an alternative embodiment, n-layer production material include: three-dimensional pet three dimensional body model and N-1 layer texture material layer;
The generation module 1380, for based on the three dimensional body model of the three-dimensional pet, according to described Every layer texture material is successively superimposed on the three dimensional body model by the hierarchic sequence of n-1 layer texture material layer.
In some alternative embodiments, at least two layer texture material layers, including at least two in following material layer Layer: ear, skin, speckle, decorative pattern, eyes, mouth and beard.
In other optional embodiments, each material in the same texture material layer have different color and/ Or shape.
In other optional embodiments, each material in the texture material layer has transparency n, described transparent It spends n and is greater than 0% and less than 100%.
In some alternative embodiments, the receiving module 1340, for receiving the purchase triggered in the first user interface Buy operation;The sending module 1320 is also used to be operated according to the purchase to the server the first acquisition request of transmission, institute The first acquisition request is stated for buying the three-dimensional pet.
In some alternative embodiments, the receiving module 1340, for receive triggered on second user interface it is numerous Educate operation;The sending module 1320, it is described for sending the second acquisition request to the server according to breeding operation Second acquisition request is for requesting to generate described three according to hereditary rule according to the production material of parents three-dimensional pet Tie up virtual pet.
Figure 14 shows the structural block diagram of the three-dimensional pet generating means of one exemplary embodiment of the application offer. The device can pass through all or part of software, hardware or both being implemented in combination with as server.Described device It is provided with the three-dimensional pet, the pet image there are three-dimensional pet described at least one is advised based on gene genetic Then generate.The device includes: receiving module 1420, determining module 1440 and sending module 1460.
Receiving module 1420, the acquisition request of the three-dimensional pet for receiving terminal transmission;
Determining module 1440, it is described for determining the figure parameter of the three-dimensional pet according to the acquisition request Figure parameter is used to indicate the n that the terminal determines the three-dimensional pet from the material set of the three-dimensional pet Layer target makes material, and the n-layer production material and the n role position of the three-dimensional pet respectively correspond, every layer of system It include the different materials at least two corresponding same positions as material, i-th layer of target production material is in i-th layer of production material One, 0≤i≤n;
Sending module 1460, for sending the figure parameter of the three-dimensional pet to the terminal.
In some alternative embodiments, the determining module 1440, for being for buying when the acquisition request When stating the first acquisition request of three-dimensional pet, determined according to the pet mark in first acquisition request described three-dimensional empty The figure parameter of quasi- pet;Wherein, the figure parameter of the three-dimensional pet is randomly generated.
In some alternative embodiments, the determining module 1440, for being for asking rooting when the acquisition request It is three-dimensional according to the parents when generating the second acquisition request of the three-dimensional pet according to parents' three-dimensional pet The production material of virtual pet generates the figure parameter of the three-dimensional pet according to hereditary rule.
Figure 15 shows the structural block diagram of the terminal 1500 of one exemplary embodiment of the application offer.The terminal 1500 can To be: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 1500 is also Other titles such as user equipment, portable terminal, laptop terminal, terminal console may be referred to as.
In general, terminal 1500 includes: processor 1501 and memory 1502.
Processor 1501 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 1501 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1501 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 1501 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1501 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 1502 may include one or more computer readable storage mediums, which can To be non-transient.Memory 1502 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1502 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 1501 for realizing this Shen Please in embodiment of the method provide three-dimensional pet generation method.
In some embodiments, terminal 1500 is also optional includes: peripheral device interface 1503 and at least one periphery are set It is standby.It can be connected by bus or signal wire between processor 1501, memory 1502 and peripheral device interface 1503.It is each outer Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1503.Specifically, peripheral equipment includes: In radio circuit 1504, touch display screen 1505, camera 1506, voicefrequency circuit 1507, positioning component 1508 and power supply 1509 At least one.
Peripheral device interface 1503 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 1501 and memory 1502.In some embodiments, processor 1501, memory 1502 and periphery Equipment interface 1503 is integrated on same chip or circuit board;In some other embodiments, processor 1501, memory 1502 and peripheral device interface 1503 in any one or two can be realized on individual chip or circuit board, this implementation Example is not limited this.
Radio circuit 1504 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal. Radio circuit 1504 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1504 is by telecommunications Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 1504 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution Code chipset, user identity module card etc..Radio circuit 1504 can by least one wireless communication protocol come with it is other Terminal is communicated.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some implementations In example, radio circuit 1504 can also include that NFC (Near Field Communication, wireless near field communication) is related Circuit, the application are not limited this.
Display screen 1505 is for showing UI (User Interface, user interface).The UI may include figure, text, Icon, video and its their any combination.When display screen 1505 is touch display screen, display screen 1505 also there is acquisition to exist The ability of the touch signal on the surface or surface of display screen 1505.The touch signal can be used as control signal and be input to place Reason device 1501 is handled.At this point, display screen 1505 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press Button and/or soft keyboard.In some embodiments, display screen 1505 can be one, and the front panel of terminal 1500 is arranged;Another In a little embodiments, display screen 1505 can be at least two, be separately positioned on the different surfaces of terminal 1500 or in foldover design; In still other embodiments, display screen 1505 can be flexible display screen, is arranged on the curved surface of terminal 1500 or folds On face.Even, display screen 1505 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1505 can be with Using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1506 is for acquiring image or video.Optionally, CCD camera assembly 1506 includes front camera And rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.? In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide Pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angle Shooting function.In some embodiments, CCD camera assembly 1506 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light Lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for Light compensation under different-colour.
Voicefrequency circuit 1507 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and It converts sound waves into electric signal and is input to processor 1501 and handled, or be input to radio circuit 1504 to realize that voice is logical Letter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1500 to be multiple. Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1501 or radio frequency will to be come from The electric signal of circuit 1504 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1507 may be used also To include earphone jack.
Positioning component 1508 is used for the current geographic position of positioning terminal 1500, to realize navigation or LBS (Location Based Service, location based service).Positioning component 1508 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 1509 is used to be powered for the various components in terminal 1500.Power supply 1509 can be alternating current, direct current Electricity, disposable battery or rechargeable battery.When power supply 1509 includes rechargeable battery, which can be line charge Battery or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is to pass through The battery of wireless coil charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1500 further includes having one or more sensors 1510.One or more sensing Device 1510 includes but is not limited to: acceleration transducer 1511, gyro sensor 1512, pressure sensor 1513, fingerprint sensing Device 1514, optical sensor 1515 and proximity sensor 1516.
Acceleration transducer 1511 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1500 Size.For example, acceleration transducer 1511 can be used for detecting component of the acceleration of gravity in three reference axis.Processor The 1501 acceleration of gravity signals that can be acquired according to acceleration transducer 1511, control touch display screen 1505 with transverse views Or longitudinal view carries out the display of user interface.Acceleration transducer 1511 can be also used for game or the exercise data of user Acquisition.
Gyro sensor 1512 can detecte body direction and the rotational angle of terminal 1500, gyro sensor 1512 Acquisition user can be cooperateed with to act the 3D of terminal 1500 with acceleration transducer 1511.Processor 1501 is according to gyro sensors The data that device 1512 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clapped Image stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1505 in terminal 1500 can be set in pressure sensor 1513.When When the side frame of terminal 1500 is arranged in pressure sensor 1513, user can detecte to the gripping signal of terminal 1500, by Reason device 1501 carries out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1513 acquires.Work as pressure sensor 1513 when being arranged in the lower layer of touch display screen 1505, is grasped by processor 1501 according to pressure of the user to touch display screen 1505 Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control, At least one of icon control, menu control.
Fingerprint sensor 1514 is used to acquire the fingerprint of user, is collected by processor 1501 according to fingerprint sensor 1514 Fingerprint recognition user identity, alternatively, by fingerprint sensor 1514 according to the identity of collected fingerprint recognition user.Knowing Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation by processor 1501, which grasps Make to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1514 can be set Set the front, the back side or side of terminal 1500.When being provided with physical button or manufacturer Logo in terminal 1500, fingerprint sensor 1514 can integrate with physical button or manufacturer Logo.
Optical sensor 1515 is for acquiring ambient light intensity.In one embodiment, processor 1501 can be according to light The ambient light intensity that sensor 1515 acquires is learned, the display brightness of touch display screen 1505 is controlled.Specifically, work as ambient light intensity When higher, the display brightness of touch display screen 1505 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1505 is turned down Show brightness.In another embodiment, the ambient light intensity that processor 1501 can also be acquired according to optical sensor 1515, is moved The acquisition parameters of state adjustment CCD camera assembly 1506.
Proximity sensor 1516, also referred to as range sensor are generally arranged at the front panel of terminal 1500.Proximity sensor 1516 for acquiring the distance between the front of user Yu terminal 1500.In one embodiment, when proximity sensor 1516 is examined When measuring the distance between the front of user and terminal 1500 and gradually becoming smaller, by processor 1501 control touch display screen 1505 from Bright screen state is switched to breath screen state;When proximity sensor 1516 detect the distance between front of user and terminal 1500 by When gradual change is big, touch display screen 1505 is controlled by processor 1501 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1500 of structure shown in Figure 15 Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
Figure 16 is the structural schematic diagram for the server that the application one embodiment provides.Specifically: server 1600 wraps Include central processing unit (English: Central Processing Unit, abbreviation: CPU) 1601 including random access memory (English: random access memory, abbreviation: RAM) 1602 and read-only memory (English: read-only memory, letter Claim: ROM) 1603 system storage 1604, and connection system storage 1604 and central processing unit 1601 system it is total Line 1605.The server 1600 further includes the basic input/output that information is transmitted between each device helped in computer System (I/O system) 1606, and for the great Rong of storage program area 1613, application program 1614 and other program modules 1615 Amount storage equipment 1607.
The basic input/output 1606 includes display 1608 for showing information and inputs for user The input equipment 1609 of such as mouse, keyboard etc of information.Wherein the display 1608 and input equipment 1609 all pass through The i/o controller 1610 for being connected to system bus 1605 is connected to central processing unit 1601.The basic input/defeated System 1606 can also include i/o controller 1610 to touch for receiving and handling from keyboard, mouse or electronics out Control the input of multiple other equipment such as pen.Similarly, i/o controller 1610 also provides output to display screen, printer Or other kinds of output equipment.
The mass-memory unit 1607 (is not shown by being connected to the bulk memory controller of system bus 1605 It is connected to central processing unit 1601 out).The mass-memory unit 1607 and its associated computer-readable medium are Server 1600 provides non-volatile memories.That is, the mass-memory unit 1607 may include such as hard disk or The computer of person's CD-ROM (English: Compact Disc Read-Only Memory, abbreviation: CD-ROM) driver etc Readable medium (not shown).
Without loss of generality, the computer-readable medium may include computer storage media and communication media.Computer Storage medium includes information such as computer readable instructions, data structure, program module or other data for storage The volatile and non-volatile of any method or technique realization, removable and irremovable medium.Computer storage medium includes RAM, ROM, Erasable Programmable Read Only Memory EPROM (English: erasable programmable read-only memory, letter Claim: EPROM), electrically erasable programmable read-only memory (English: electrically erasable programmable Read-only memory, referred to as: EEPROM), flash memory or other solid-state storages its technologies, CD-ROM, digital versatile disc (English Text: Digital Versatile Disc, referred to as: DVD) or other optical storages, cassette, tape, disk storage or other Magnetic storage device.Certainly, skilled person will appreciate that the computer storage medium be not limited to it is above-mentioned several.Above-mentioned System storage 1604 and mass-memory unit 1607 may be collectively referred to as memory.
According to the various embodiments of the application, the server 1600 can also be arrived by network connections such as internets Remote computer operation on network.Namely server 1600 can be connect by the network being connected on the system bus 1605 Mouth unit 1611 is connected to network 1612, in other words, it is other kinds of to be connected to that Network Interface Unit 1611 also can be used Network or remote computer system (not shown).
The application also provides a kind of computer readable storage medium, be stored in the storage medium at least one instruction, At least one section of program, code set or instruction set, at least one instruction or refer at least one section of program, the code set Collection is enabled to be loaded by the processor and executed to realize the generation method of the three-dimensional pet of above method embodiment offer.
Present invention also provides a kind of computer program products, when it runs on an electronic device, so that electronic equipment Execute three-dimensional pet generation method described in above-mentioned each embodiment of the method.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (15)

1. a kind of generation method of three-dimensional pet, which is characterized in that applied to being provided with answering for the three-dimensional pet With in program, the pet image there are three-dimensional pet described at least one is generated based on gene genetic rule, described Method includes:
The acquisition request of three-dimensional pet is sent to server;
Receive the figure parameter for the three-dimensional pet that the server is sent;
According to the figure parameter, the n-layer of the three-dimensional pet is determined from the material set of the three-dimensional pet Target makes material;It include that n-layer makes material, the n-layer production material and the three-dimensional pet in the material set N role position respectively correspond, there are the different materials that at least one layer of production material includes at least two corresponding same positions, I-th layer of target production material is one in i-th layer of production material, and 0≤i≤n and n are the integer greater than 1;
The n-layer target production material of the three-dimensional pet is overlapped combination according to hierarchic sequence, generates the three-dimensional The pet image of virtual pet.
2. the method according to claim 1, wherein the figure parameter includes the n of the three-dimensional pet The material mark of layer target production material;
It is described according to the figure parameter, the three-dimensional pet is determined from the material set of the three-dimensional pet N-layer target makes material, comprising:
The material mark that material is made according to i-th layer of target of the three-dimensional pet, i-th layer from the material set It makes in material, determines i-th layer of target production material.
3. according to the method described in claim 2, it is characterized in that, n-layer production material includes: the three-dimensional pet Three dimensional body model and n-1 layer texture material layer;
The n-layer target production material by the three-dimensional pet is overlapped combination according to hierarchic sequence, described in generation The pet image of three-dimensional pet, comprising:
Based on the three dimensional body model of the three-dimensional pet, according to the hierarchic sequence of the n-1 layer texture material layer Successively every layer texture material is superimposed on the three dimensional body model.
4. according to the method described in claim 3, it is characterized in that, at least two layer texture material layers, including following material At least two layers in layer:
Ear, skin, speckle, decorative pattern, eyes, mouth and beard.
5. according to the method described in claim 4, it is characterized in that, each material in the same texture material layer has Different colors and/or shape.
6. according to the method described in claim 4, it is characterized in that, each material in the texture material layer has transparency N, the transparency n are greater than 0% and less than 100%.
7. method according to any one of claims 1 to 6, which is characterized in that described to send three-dimensional pet to server Acquisition request, comprising:
Receive the purchase operation triggered in the first user interface;
The first acquisition request is sent to the server according to purchase operation, first acquisition request is described for buying Three-dimensional pet.
8. method according to any one of claims 1 to 6, which is characterized in that described to send three-dimensional pet to server Acquisition request, comprising:
Receive the breeding operation triggered on second user interface;
The second acquisition request is sent to the server according to breeding operation, second acquisition request is for requesting basis The production material of parents three-dimensional pet generates the three-dimensional pet according to hereditary rule.
9. a kind of three-dimensional pet generation method, which is characterized in that applied to being provided in the server of three-dimensional pet, Pet image there are three-dimensional pet described at least one is generated according to gene genetic rule, which comprises
Receive the acquisition request for the three-dimensional pet that terminal is sent;
Determine that the figure parameter of the three-dimensional pet, the figure parameter are used to indicate the end according to the acquisition request It holds and determines that the n-layer target of the three-dimensional pet makes material, the n-layer from the material set of the three-dimensional pet Production material and the n role position of the three-dimensional pet respectively correspond, and every layer of production material includes at least two corresponding The different materials at same position, i-th layer of target production material is i-th layer of one made in material, and 0≤i≤n and n are greater than 1 Integer;
The figure parameter of the three-dimensional pet is sent to the terminal.
10. according to the method described in claim 9, it is characterized in that, described determine the three-dimensional void according to the acquisition request The figure parameter of quasi- pet, comprising:
When the acquisition request is the first acquisition request for buying the three-dimensional pet, obtained according to described first Pet mark in request determines the figure parameter of the three-dimensional pet;
Wherein, the figure parameter of the three-dimensional pet is randomly generated.
11. according to the method described in claim 9, it is characterized in that, described determine the three-dimensional void according to the acquisition request The figure parameter of quasi- pet, comprising:
When that the acquisition request is for requesting to generate the three-dimensional pet according to parents' three-dimensional pet When two acquisition requests, generated according to the production material of parents' three-dimensional pet according to hereditary rule described three-dimensional empty The figure parameter of quasi- pet.
12. a kind of three-dimensional pet generating means, which is characterized in that described device is provided with the three-dimensional pet, deposits It in the pet image of at least one three-dimensional pet is generated based on gene genetic rule, described device includes:
Sending module, for sending the acquisition request of three-dimensional pet to server;
Receiving module, for receiving the figure parameter for the three-dimensional pet that the server is sent;
Determining module, for determining the three-dimensional from the material set of the three-dimensional pet according to the figure parameter The n-layer target of virtual pet makes material;Include that n-layer makes material in the material set, n-layer production material with it is described The n role position of three-dimensional pet respectively corresponds, and there is at least one layer of production material includes at least two corresponding same portions The different materials of position, i-th layer of target production material is i-th layer of one made in material, and 0≤i≤n and n are whole greater than 1 Number;
Generation module, for the n-layer target production material of the three-dimensional pet to be overlapped combination according to hierarchic sequence, Generate the pet image of the three-dimensional pet.
13. a kind of three-dimensional pet generating means, which is characterized in that described device is provided with the three-dimensional pet, deposits It in the pet image of at least one three-dimensional pet is generated based on gene genetic rule, described device includes:
Receiving module, the acquisition request of the three-dimensional pet for receiving terminal transmission;
Determining module, for determining the figure parameter of the three-dimensional pet, the figure parameter according to the acquisition request It is used to indicate the n-layer target system that the terminal determines the three-dimensional pet from the material set of the three-dimensional pet Make material, the n-layer production material and the n role position of the three-dimensional pet respectively correspond, every layer of production material package Including the different materials at least two corresponding same positions, i-th layer of target production material is one in i-th layer of production material, 0≤ I≤n and n are the integer greater than 1;
Sending module, for sending the figure parameter of the three-dimensional pet to the terminal.
14. a kind of electronic equipment, which is characterized in that the electronic equipment includes memory and processor;
At least one program is stored in the memory, at least one program is loaded by the processor and executed with reality The now generation method of the three-dimensional pet as described in claim 1 to 11 is any.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium Program, at least one program are loaded by processor and are executed to realize the three-dimensional as described in claim 1 to 11 is any The generation method of virtual pet.
CN201810840540.9A 2018-07-27 2018-07-27 Three-dimensional virtual pet generation method, device, equipment and storage medium Active CN109126136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810840540.9A CN109126136B (en) 2018-07-27 2018-07-27 Three-dimensional virtual pet generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810840540.9A CN109126136B (en) 2018-07-27 2018-07-27 Three-dimensional virtual pet generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109126136A true CN109126136A (en) 2019-01-04
CN109126136B CN109126136B (en) 2020-09-15

Family

ID=64799170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810840540.9A Active CN109126136B (en) 2018-07-27 2018-07-27 Three-dimensional virtual pet generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109126136B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3711831A1 (en) * 2019-03-20 2020-09-23 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for generating image parameter for reproducible virtual character, and storage medium thereof
CN112634416A (en) * 2020-12-23 2021-04-09 北京达佳互联信息技术有限公司 Method and device for generating virtual image model, electronic equipment and storage medium
CN113769393A (en) * 2021-09-27 2021-12-10 上海完美时空软件有限公司 Method and device for generating character image, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100203933A1 (en) * 2007-05-31 2010-08-12 Sony Computer Entertainment Europe Limited Entertainment system and method
CN103903292A (en) * 2012-12-27 2014-07-02 北京新媒传信科技有限公司 Method and system for realizing head portrait editing interface
CN104376160A (en) * 2014-11-07 2015-02-25 薛景 Real person simulation individuality ornament matching system
CN104965997A (en) * 2015-06-05 2015-10-07 浙江工业大学 Crop virtual breeding method based on plant function and structure model
CN106204698A (en) * 2015-05-06 2016-12-07 北京蓝犀时空科技有限公司 Virtual image for independent assortment creation generates and uses the method and system of expression
CN108295465A (en) * 2018-02-12 2018-07-20 腾讯科技(深圳)有限公司 Share the method, apparatus, equipment and storage medium in the visual field in three-dimensional virtual environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100203933A1 (en) * 2007-05-31 2010-08-12 Sony Computer Entertainment Europe Limited Entertainment system and method
CN103903292A (en) * 2012-12-27 2014-07-02 北京新媒传信科技有限公司 Method and system for realizing head portrait editing interface
CN104376160A (en) * 2014-11-07 2015-02-25 薛景 Real person simulation individuality ornament matching system
CN106204698A (en) * 2015-05-06 2016-12-07 北京蓝犀时空科技有限公司 Virtual image for independent assortment creation generates and uses the method and system of expression
CN104965997A (en) * 2015-06-05 2015-10-07 浙江工业大学 Crop virtual breeding method based on plant function and structure model
CN108295465A (en) * 2018-02-12 2018-07-20 腾讯科技(深圳)有限公司 Share the method, apparatus, equipment and storage medium in the visual field in three-dimensional virtual environment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3711831A1 (en) * 2019-03-20 2020-09-23 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for generating image parameter for reproducible virtual character, and storage medium thereof
US11052316B2 (en) 2019-03-20 2021-07-06 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for generating image parameter for reproducible virtual character
CN112634416A (en) * 2020-12-23 2021-04-09 北京达佳互联信息技术有限公司 Method and device for generating virtual image model, electronic equipment and storage medium
CN112634416B (en) * 2020-12-23 2023-07-28 北京达佳互联信息技术有限公司 Method and device for generating virtual image model, electronic equipment and storage medium
CN113769393A (en) * 2021-09-27 2021-12-10 上海完美时空软件有限公司 Method and device for generating character image, storage medium and electronic device

Also Published As

Publication number Publication date
CN109126136B (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN109260707A (en) Methods of exhibiting, device, equipment and the storage medium of virtual pet
JP7237096B2 (en) Virtual pet information display method and device, terminal, server, computer program and system thereof
CN110420465A (en) Mating system, device, equipment and the storage medium of virtual pet
CN109978989A (en) Three-dimensional face model generation method, device, computer equipment and storage medium
CN110019918B (en) Information display method, device, equipment and storage medium of virtual pet
CN109603151A (en) Skin display methods, device and the equipment of virtual role
CN108970115A (en) Information display method, device, equipment and storage medium in battle game
CN110119815A (en) Model training method, device, storage medium and equipment
CN109345616A (en) Two dimension rendering map generalization method, equipment and the storage medium of three-dimensional pet
JP6865164B2 (en) Memory / charging device for game pieces
CN109011579A (en) Generation method, device and the readable medium of virtual pet
US20140114630A1 (en) Generating Artifacts based on Genetic and Breeding Simulation
US11893301B2 (en) Colocated shared augmented reality without shared backend
CN109126136A (en) Generation method, device, equipment and the storage medium of three-dimensional pet
CN110135336A (en) Training method, device and the storage medium of pedestrian's generation model
CN110136228A (en) Face replacement method, apparatus, terminal and the storage medium of virtual role
CN110136236A (en) Personalized face's display methods, device, equipment and the storage medium of three-dimensional character
CN110496392A (en) Control method, device, terminal and the storage medium of virtual objects
CN109908587A (en) Figure parameter generation method, device and the storage medium of fertile virtual role
CN110377200A (en) Sharing data generation method, device and storage medium
CN110399183A (en) Mating system, device, equipment and the storage medium of virtual pet
CN109806583A (en) Method for displaying user interface, device, equipment and system
CN109102007A (en) Exchange method, device, terminal and storage medium based on label
CN109045690A (en) Virtual pet acquisition methods, device, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant